18#include "../shared/api.h"
19#include "../shared/entityDef.h"
25#include "../nav/linkflags.h"
26#include "../nav/nodes.h"
27#include "../nav/route.h"
28#include "../nav/NodeEditor.h"
29#include "../nav/way_convert.h"
30#include "../nav/NavInfo.h"
31#include "../nav/Hint.h"
34#include "AddonDelegate.h"
35#include "MapDelegate.h"
42#include "SessionManager.h"
44#include "CapturePoint.h"
45#include "CaptureItem.h"
48#define EVALUATE_FIELD(fieldname, changedflag) {\
49 if (ATTR_CHANGED(fieldname)) {\
50 SetSendFlags(changedflag);\
52 SAVE_STATE(fieldname);\
55#define EVALUATE_VECTOR(fieldname, idx, changedflag) {\
56 if (VEC_CHANGED(fieldname, idx)) {\
57 SetSendFlags(changedflag);\
59 SAVE_STATE_FIELD(fieldname, idx);\
62#define SENDENTITY_BYTE(field, changedflag) {\
63 if (flChanged & changedflag)\
64 WriteByte(MSG_ENTITY, field);\
67#define SENDENTITY_SHORT(field, changedflag) {\
68 if (flChanged & changedflag)\
69 WriteShort(MSG_ENTITY, field);\
72#define SENDENTITY_INT(field, changedflag) {\
73 if (flChanged & changedflag)\
74 WriteInt(MSG_ENTITY, field);\
77#define SENDENTITY_FLOAT(field, changedflag) {\
78 if (flChanged & changedflag)\
79 WriteFloat(MSG_ENTITY, field);\
82#define SENDENTITY_STRING(field, changedflag) {\
83 if (flChanged & changedflag)\
84 WriteString(MSG_ENTITY, field);\
87#define SENDENTITY_COORD(field, changedflag) {\
88 if (flChanged & changedflag)\
89 WriteCoord(MSG_ENTITY, field);\
92#define SENDENTITY_ANGLE(field, changedflag) {\
93 if (flChanged & changedflag)\
94 WriteAngle(MSG_ENTITY, field);\
97#define SENDENTITY_ENTITY(field, changedflag) {\
98 if (flChanged & changedflag)\
99 WriteEntity(MSG_ENTITY, field);\
102#define SENDENTITY_COLOR(field, changedflag) {\
103 if (flChanged & changedflag)\
104 WriteByte(MSG_ENTITY, field * 255.0);\
107#define SENDENTITY_MODELINDEX(field, changedflag) {\
108 if (flChanged & changedflag)\
109 WriteShort(MSG_ENTITY, field);\
112var
bool g_isloading =
false;
114var
bool autocvar_mp_flashlight =
true;
116void Client_FixAngle(entity, vector);
117void Client_ShakeOnce(vector,
float,
float,
float,
float);
124.void(
void) PlayerUse;
125.void(
void) PlayerUseUnpressed;
136int trace_surfaceflagsi;
138string __fullspawndata;
140var
bool g_ents_initialized =
false;
147#define SAVE_DECIMAL(x,y,z) fputs(x, sprintf("%S \"%d\" ", y, z))
148#define SAVE_INTEGER(x,y,z) fputs(x, sprintf("%S \"%i\" ", y, z))
149#define SAVE_FLOAT(x,y,z) fputs(x, sprintf("%S \"%f\" ", y, z))
150#define SAVE_VECTOR(x,y,z) fputs(x, sprintf("%S \"%v\" ", y, z))
151#define SAVE_STRING(x,y,z) fputs(x, sprintf("%S \"%s\" ", y, z))
152#define SAVE_HEX(x,y,z) fputs(x, sprintf("%S \"%x\" ", y, z))
160ncEntity EntityDef_SpawnClassname(
string className);
166ncEntity EntityDef_CreateClassname(
string className);
195WriteEntityEvent(
float to, entity targetEntity,
float eventType)
197 WriteByte(to, SVC_CGAMEPACKET);
198 WriteByte(to, EV_ENTITYEVENT);
199 WriteEntity(to, targetEntity);
200 WriteFloat(to, eventType);
ncEntity is the lowest of the user-accessible entity class.
Definition: Entity.h:75
string EntityDef_GetKeyValue(string, string)
Retrieves the value of a specific key defined within an EntityDef.
Definition: entityDef.qc:276
bool EntityDef_HasSpawnClass(string className)
Checks if an entity class was defined in an EntityDef.
Definition: entityDef.qc:634
ncEntity Entity_CreateClass(string className)
Always returns a valid entity.
Definition: entityDef.qc:620
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