12 .bool m_entcs_private;
37 void entcs_think(
entity this);
45 void entcs_force_origin(
entity player);
47 void entcs_update_players(
entity player);
49 bool radar_showenemies;
64 #define entcs_receiver(...) EVAL_entcs_receiver(OVERLOAD(entcs_receiver, __VA_ARGS__)) 65 #define EVAL_entcs_receiver(...) __VA_ARGS__ 66 #define entcs_receiver_1(i) AL_gete(_entcs, i) 67 #define entcs_receiver_2(i, v) AL_sete(_entcs, i, v) 68 #define entcs_is_self(e) ((e).sv_entnum == player_localentnum - 1) 74 const int ENTCS_SPEC_PURE = 1;
75 const int ENTCS_SPEC_IN_SCOREBOARD = 2;
76 #define entcs_IsSpectating(i) boolean(entcs_GetSpecState(i)) 78 int entcs_GetSpecState(
int i)
81 entity e = entcs_receiver(i);
82 int fr = ((e) ? e.frags :
stof(getplayerkeyvalue(i,
"frags")));
84 return ENTCS_SPEC_PURE;
87 return ENTCS_SPEC_IN_SCOREBOARD;
94 int entcs_GetClientColors(
int i)
96 entity e = entcs_receiver(i);
97 return e ? e.colormap :
stof(getplayerkeyvalue(i,
"colors"));
104 int entcs_GetTeamColor(
int i)
106 return (!
teamplay) ? 0 : entcs_GetClientColors(i) & 15;
112 int entcs_GetTeam(
int i)
114 return (entcs_GetSpecState(i) == ENTCS_SPEC_PURE) ?
NUM_SPECTATOR : entcs_GetTeamColor(i);
120 int entcs_GetScoreTeam(
int i)
122 int t = entcs_GetTeam(i);
130 string entcs_GetName(
int i)
132 entity e = entcs_receiver(i);
146 float entcs_GetAlpha(
int i)
149 return e ? e.alpha : 1;
155 vector entcs_GetColor(
int i)
158 return (!e || e.colormap <= 0)
162 : entcs_GetClientColors(e.colormap - 1)) & 15,
true)
169 bool entcs_IsDead(
int i)
172 return e ? e.csqcmodel_isdead :
false;
#define AL_NEW(this, n, default, T)
void entcs_detach(entity this)
#define REGISTER_NET_LINKED(id)
entity CSQCModel_server2csqc(int i)
void entcs_attach(entity this)
#define STATIC_INIT(func)
during worldspawn
ERASEABLE string ColorTranslateRGB(string s)
#define SHUTDOWN(func)
before shutdown
vector(float skel, float bonenum) _skel_get_boneabs_hidden
const int FRAGS_PLAYER_OUT_OF_GAME
const int FRAGS_SPECTATOR
#define REGISTER_NET_TEMP(id)
#define colormapPaletteColor(c, isPants)