2017-02-13 05:07:47 +03:00
|
|
|
#ifndef _INCLUDE_MAIN_H_
|
|
|
|
#define _INCLUDE_MAIN_H_
|
|
|
|
|
|
|
|
#define MIN_AMOUNT 100.0f
|
|
|
|
#define FLOAT_CROUCH 49.9f
|
|
|
|
#define MAX_CLIENTS 32
|
|
|
|
#define GET_DISTANCE(a, b) ((a - b).Length2D())
|
|
|
|
#define GET_COLLIDE(a, b) (abs(a.z - b.z) < 96 && (a - b).Length2D() < 96)
|
|
|
|
|
2023-11-06 20:28:27 +03:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
SC_TEAM_ALL = 0,
|
|
|
|
SC_TEAM_T,
|
|
|
|
SC_TEAM_CT,
|
|
|
|
SC_TEAM_TEAMMATE,
|
|
|
|
};
|
|
|
|
|
2017-02-13 05:07:47 +03:00
|
|
|
extern int DispatchSpawn(edict_t *pEntity);
|
|
|
|
extern int ShouldCollide(edict_t *pentTouched, edict_t *pentOther);
|
|
|
|
extern int OnMetaAttach();
|
|
|
|
extern void OnMetaDetach();
|
|
|
|
extern void SVR_SemiclipOption();
|
|
|
|
extern void ClientDisconnect(edict_t *pEnt);
|
|
|
|
extern void PM_Move(playermove_t *pmove,int);
|
|
|
|
extern void ServerActivate_Post(edict_t *pEdictList,int edictCount,int clientMax);
|
|
|
|
extern void ServerDeactivate_Post();
|
|
|
|
extern void SEM_PRINT(const char *fmt, ...);
|
|
|
|
extern void UTIL_LogPrintf(const char *fmt, ...);
|
|
|
|
extern DLL_FUNCTIONS *g_pFunctionTable;
|
|
|
|
extern NEW_DLL_FUNCTIONS *g_pNewFunctionTable;
|
|
|
|
|
|
|
|
#endif //_INCLUDE_MAIN_H_
|