18#include "../shared/api.h"
19#include "../shared/system/entityDef.h"
20#include "ServerGame.h"
26#include "../nav/linkflags.h"
27#include "../nav/nodes.h"
28#include "../nav/route.h"
29#include "../nav/NodeEditor.h"
30#include "../nav/way_convert.h"
31#include "../nav/NavInfo.h"
32#include "../nav/Hint.h"
35#include "AddonDelegate.h"
36#include "AddonManager.h"
37#include "MapDelegate.h"
44#include "SessionManager.h"
46#include "CapturePoint.h"
47#include "CaptureItem.h"
51#define EVALUATE_FIELD(fieldname, changedflag) {\
52 if (ATTR_CHANGED(fieldname)) {\
53 SetSendFlags(changedflag);\
55 SAVE_STATE(fieldname);\
58#define EVALUATE_VECTOR(fieldname, idx, changedflag) {\
59 if (VEC_CHANGED(fieldname, idx)) {\
60 SetSendFlags(changedflag);\
62 SAVE_STATE_FIELD(fieldname, idx);\
65#define SENDENTITY_BYTE(field, changedflag) {\
66 if (flChanged & changedflag)\
67 WriteByte(MSG_ENTITY, field);\
70#define SENDENTITY_SHORT(field, changedflag) {\
71 if (flChanged & changedflag)\
72 WriteShort(MSG_ENTITY, field);\
75#define SENDENTITY_INT(field, changedflag) {\
76 if (flChanged & changedflag)\
77 WriteInt(MSG_ENTITY, field);\
80#define SENDENTITY_FLOAT(field, changedflag) {\
81 if (flChanged & changedflag)\
82 WriteFloat(MSG_ENTITY, field);\
85#define SENDENTITY_STRING(field, changedflag) {\
86 if (flChanged & changedflag)\
87 WriteString(MSG_ENTITY, field);\
90#define SENDENTITY_COORD(field, changedflag) {\
91 if (flChanged & changedflag)\
92 WriteCoord(MSG_ENTITY, field);\
95#define SENDENTITY_ANGLE(field, changedflag) {\
96 if (flChanged & changedflag)\
97 WriteAngle(MSG_ENTITY, field);\
100#define SENDENTITY_ENTITY(field, changedflag) {\
101 if (flChanged & changedflag)\
102 WriteEntity(MSG_ENTITY, field);\
105#define SENDENTITY_COLOR(field, changedflag) {\
106 if (flChanged & changedflag)\
107 WriteByte(MSG_ENTITY, field * 255.0);\
110#define SENDENTITY_MODELINDEX(field, changedflag) {\
111 if (flChanged & changedflag)\
112 WriteShort(MSG_ENTITY, field);\
115var
bool g_isloading =
false;
117var
bool autocvar_mp_flashlight =
true;
119void Client_FixAngle(entity, vector);
120void Client_ShakeOnce(vector,
float,
float,
float,
float);
127.void(
void) PlayerUse;
128.void(
void) PlayerUseUnpressed;
130.bool ruleSendInventory;
139int trace_surfaceflagsi;
141string __fullspawndata;
143var
bool g_ents_initialized =
false;
150#define SAVE_DECIMAL(x,y,z) fputs(x, sprintf("%S \"%d\" ", y, z))
151#define SAVE_INTEGER(x,y,z) fputs(x, sprintf("%S \"%i\" ", y, z))
152#define SAVE_FLOAT(x,y,z) fputs(x, sprintf("%S \"%f\" ", y, z))
153#define SAVE_VECTOR(x,y,z) fputs(x, sprintf("%S \"%v\" ", y, z))
154#define SAVE_STRING(x,y,z) fputs(x, sprintf("%S \"%s\" ", y, z))
155#define SAVE_HEX(x,y,z) fputs(x, sprintf("%S \"%x\" ", y, z))
163ncEntity EntityDef_SpawnClassname(
string className);
169ncEntity EntityDef_CreateClassname(
string className);
198WriteEntityEvent(
float to, entity targetEntity,
float eventType)
200 WriteByte(to, SVC_CGAMEPACKET);
201 WriteByte(to, EV_ENTITYEVENT);
202 WriteEntity(to, targetEntity);
203 WriteFloat(to, eventType);
ncEntity is the lowest of the user-accessible entity class.
Definition: Entity.h:75
var materialAPI_t material
Access atlasPicAPI_t functions using this variable.
Definition: api_func.h:566
string EntityDef_GetKeyValue(string, string)
Retrieves the value of a specific key defined within an EntityDef.
Definition: entityDef.qc:278
bool EntityDef_HasSpawnClass(string className)
Checks if an entity class was defined in an EntityDef.
Definition: entityDef.qc:679
ncEntity Entity_CreateClass(string className)
Always returns a valid entity.
Definition: entityDef.qc:665
void Mapcycle_Load(string)
Can be called by the server game to override the current mapcycle with that of a custom mapcycle file...
Definition: mapcycle.qc:18