2014-08-04 14:35:12 +04:00
|
|
|
// vim: set ts=4 sw=4 tw=99 noet:
|
|
|
|
//
|
|
|
|
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
|
|
|
// Copyright (C) The AMX Mod X Development Team.
|
|
|
|
//
|
|
|
|
// This software is licensed under the GNU General Public License, version 3 or higher.
|
|
|
|
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
|
|
|
// https://alliedmods.net/amxmodx-license
|
|
|
|
|
|
|
|
//
|
|
|
|
// Natural Selection Module
|
|
|
|
//
|
2007-08-02 20:20:32 +04:00
|
|
|
|
2004-07-22 16:46:35 +04:00
|
|
|
#ifndef NS_H
|
|
|
|
#define NS_H
|
|
|
|
|
|
|
|
#include "ns_const.h"
|
2007-08-02 20:20:32 +04:00
|
|
|
|
|
|
|
#if defined CRAZY_OPTS
|
|
|
|
#define EXTERN_VIS __attribute__((externally_visible))
|
|
|
|
#else
|
|
|
|
#define EXTERN_VIS
|
|
|
|
#endif
|
2004-07-22 16:46:35 +04:00
|
|
|
|
2004-10-20 18:24:03 +04:00
|
|
|
extern DLL_FUNCTIONS *g_pFunctionTable;
|
|
|
|
extern DLL_FUNCTIONS *g_pFunctionTable_Post;
|
|
|
|
extern enginefuncs_t *g_pengfuncsTable;
|
|
|
|
extern enginefuncs_t *g_pengfuncsTable_Post;
|
|
|
|
extern NEW_DLL_FUNCTIONS *g_pNewFunctionsTable;
|
|
|
|
extern NEW_DLL_FUNCTIONS *g_pNewFunctionsTable_Post;
|
|
|
|
|
|
|
|
|
2004-07-22 16:46:35 +04:00
|
|
|
|
|
|
|
|
2007-08-02 20:20:32 +04:00
|
|
|
extern class CPlayer g_player[33];
|
2004-07-22 16:46:35 +04:00
|
|
|
extern edict_t *player_edicts[33]; // Stupid INDEXENT() bug.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-08-02 20:20:32 +04:00
|
|
|
void PlayerPreThink(edict_t *pEntity);
|
|
|
|
void PlayerPreThink_Post(edict_t *pEntity);
|
|
|
|
void PlayerPostThink_Post(edict_t *pEntity);
|
|
|
|
void UpdateClientData( const struct edict_s *ent, int sendweapons, struct clientdata_s *cd );
|
|
|
|
void StartFrame(void);
|
|
|
|
edict_t* CreateNamedEntity_Post(int className);
|
2013-02-13 11:14:37 +04:00
|
|
|
void AlertMessage_Post(ALERT_TYPE atype, const char *szFmt, ...);
|
2007-08-02 20:20:32 +04:00
|
|
|
|
|
|
|
|
|
|
|
typedef struct tagAMX_HEADER {
|
|
|
|
int32_t size PACKED; /* size of the "file" */
|
|
|
|
uint16_t magic PACKED; /* signature */
|
|
|
|
char file_version; /* file format version */
|
|
|
|
char amx_version; /* required version of the AMX */
|
|
|
|
int16_t flags PACKED;
|
|
|
|
int16_t defsize PACKED; /* size of a definition record */
|
|
|
|
int32_t cod PACKED; /* initial value of COD - code block */
|
|
|
|
int32_t dat PACKED; /* initial value of DAT - data block */
|
|
|
|
int32_t hea PACKED; /* initial value of HEA - start of the heap */
|
|
|
|
int32_t stp PACKED; /* initial value of STP - stack top */
|
|
|
|
int32_t cip PACKED; /* initial value of CIP - the instruction pointer */
|
|
|
|
int32_t publics PACKED; /* offset to the "public functions" table */
|
|
|
|
int32_t natives PACKED; /* offset to the "native functions" table */
|
|
|
|
int32_t libraries PACKED; /* offset to the table of libraries */
|
|
|
|
int32_t pubvars PACKED; /* the "public variables" table */
|
|
|
|
int32_t tags PACKED; /* the "public tagnames" table */
|
|
|
|
int32_t nametable PACKED; /* name table */
|
|
|
|
} PACKED AMX_HEADER;
|
|
|
|
|
|
|
|
// Don't enable this, it just adds some offset finding natives
|
|
|
|
#define DEVELOPER_BUILD
|
2004-07-22 16:46:35 +04:00
|
|
|
|
|
|
|
|
2004-08-22 16:40:24 +04:00
|
|
|
#endif // NS_H
|
|
|
|
|