33 dropclient(this.
owner);
46 bool scheduled =
false;
61 e.nextthink =
time + 0.1;
89 if (
STAT(FROZEN,
this))
150 bool have_hook =
false;
154 if(this.(weaponentity).
hook && this.(weaponentity).
hook.state)
190 if (it.move_movetype == MOVETYPE_NOCLIP) continue;
191 CreatureFrame_Liquids(it);
192 CreatureFrame_FallDamage(it);
193 it.oldvelocity = it.velocity;
240 if (e.initialize_entity)
245 if ((ent == e) || ((ent.classname ==
"initialize_entity") && (ent.enemy == e)))
251 prev.initialize_entity_next = ent.initialize_entity_next;
252 ent =
prev.initialize_entity_next;
263 ent = ent.initialize_entity_next;
271 if(e.remove_except_protected_forbidden)
272 error(
"not allowed to remove this at this point");
278 if(e.classname ==
"spike")
279 error(
"Removing spikes is forbidden (crylink bug), please report");
318 if(
time > client_cefc_accumulatortime + 1)
320 float t = client_cefc_accumulator / (
time - client_cefc_accumulatortime);
330 "CEFC time: ",
ftos(t * 1000),
"ms; ",
331 "CEFC calls per second: ",
ftos(c_seeing * (c_seen - 1) / t),
"; ",
334 client_cefc_accumulatortime =
time;
335 client_cefc_accumulator = 0;
376 GlobalStats_updateglobal();
379 GlobalStats_update(it);
418 if (this.
angles ==
'0 -1 0') {
420 }
else if (this.
angles ==
'0 -2 0') {
424 #define X(out, in) MACRO_BEGIN \
425 if (in != 0) { out = out + (random() * 2 - 1) * in; } \
427 X(this.
origin.x,
this.originjitter.x);
X(this.
origin.y,
this.originjitter.y);
X(this.
origin.z,
this.originjitter.z);
428 X(this.
angles.x,
this.anglesjitter.x);
X(this.
angles.y,
this.anglesjitter.y);
X(this.
angles.z,
this.anglesjitter.z);
429 X(this.
angles.y,
this.anglejitter);
455 if (!e.fullspawndata)
458 if (
strstrofs(e.fullspawndata,
"//", 0) >= 0)
462 LOG_WARNF(
"^1EDICT %s fullspawndata contains unsupported //comment^7%s",
ftos(num_for_edict(e)), e.fullspawndata);
473 if (
argv(t) == fieldname)
484 v = strreplace(
"\\",
"/", v);
485 if (whichpack(v) ==
"")
505 string base_pack = whichpack(
strcat(
"maps/",
mapname,
".bsp"));
506 if (base_pack ==
"" || !base_pack)
509 int glob = search_packfile_begin(pattern,
true,
true, base_pack);
527 delete(tracetest_ent);
557 LOG_INFO(
"Received HTTP request data for an invalid id ",
ftos(
id),
".");
void anticheat_startframe()
void waypoint_spawnforteleporter_wz(entity e, entity tracetest_ent)
#define MUTATOR_CALLHOOK(id,...)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void URI_Get_Callback(int id, int status, string data)
engine callback
float autocvar_g_maxspeed
#define PHYS_INPUT_BUTTON_CHAT(s)
float isGametypeInFilter(Gametype gt, float tp, float ts, string pattern)
void execute_next_frame()
const vector PL_MIN_CONST
const vector PL_MAX_CONST
const float MOVE_NOMONSTERS
float DPCONTENTS_PLAYERCLIP
float trace_dphitq3surfaceflags
float Q3SURFACEFLAG_NODAMAGE
const float CONTENT_SLIME
void CSQCProjectile_Check(entity e)
ERASEABLE bool expr_evaluate(string s)
Evaluate an expression of the form: [+ | -]?
void Damage(entity targ, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force)
float Fire_AddDamage(entity e, entity o, float d, float t, float dt)
IntrusiveList g_damagedbycontents
void GameLogEcho(string s)
bool autocvar_sv_eventlog
void Curl_URI_Get_Callback(int id, float status, string data)
bool intermission_running
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define IL_EACH(this, cond, body)
void OnlineBanList_URI_Get_Callback(float id, float status, string data)
#define FOREACH_ENTITY_CLASS(class, cond, body)
#define SV_OnEntityPreSpawnFunction
void UncustomizeEntitiesRun()
Gametype MapInfo_LoadedGametype
ERASEABLE vector solve_quadratic(float a, float b, float c)
ax^2 + bx + c = 0
void set_movetype(entity this, int mt)
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define new_pure(class)
purely logical entities (not linked to the area grid)
bool DoesQ3ARemoveThisEntity(entity this)
void PlayerFrame(entity this)
const float TIMEOUT_LEADTIME
void ReadyRestart(bool forceWarmupEnd)
void remove_safely(entity e)
void dedicated_print(string input)
print(), but only print if the server is not local
void Pause_TryPause_Dedicated(entity this)
void sys_phys_update(entity this, float dt)
void WarpZone_PostInitialize_Callback()
void remove_unsafely(entity e)
void make_safe_for_remove(entity e)
bool dropclient_schedule(entity this)
Schedules dropclient for a player and returns true; if dropclient is already scheduled (for that play...
void CreatureFrame_Liquids(entity this)
string GetField_fullspawndata(entity e, string fieldname, bool vfspath)
Retrieves the value of a map entity field from fullspawndata.
void remove_except_protected(entity e)
void SV_PausedTic(float elapsedtime)
void CreatureFrame_hotliquids(entity this)
void dropclient_do(entity this)
void CreatureFrame_FallDamage(entity this)
string FindFileInMapPack(string pattern)
int autocvar_g_balance_contents_playerdamage_lava_burn
float autocvar_sys_ticrate
float autocvar_g_balance_contents_playerdamage_lava_burn_time
bool autocvar_sv_autopause
float watersound_finished
int autocvar_g_balance_falldamage_maxdamage
float autocvar_g_balance_falldamage_minspeed
float autocvar_g_balance_contents_damagerate
float autocvar_g_balance_falldamage_factor
int autocvar_g_balance_contents_playerdamage_slime
float autocvar_g_balance_falldamage_deadminspeed
int autocvar_g_balance_contents_playerdamage_lava
int autocvar_g_balance_contents_projectiledamage
float contents_damagetime
bool autocvar_g_balance_falldamage_onlyvertical
IntrusiveList g_projectiles
void WarpZone_StartFrame()
const int CH_PLAYER_SINGLE
#define sound(e, c, s, v, a)
IntrusiveList g_monster_targets
var void delete_fn(entity e)
ERASEABLE float url_URI_Get_Callback(int id, float status, string data)
const int URI_GET_IPBAN_END
const int URI_GET_DISCARD
const int URI_GET_CURL_END
const string STR_OBSERVER
#define IS_REAL_CLIENT(v)
#define FOREACH_CLIENT(cond, body)
#define IS_FAKE_CLIENT(v)
#define vdist(v, cmp, f)
Vector distance comparison, avoids sqrt()
const int MAX_WEAPONSLOTS
entity weaponentities[MAX_WEAPONSLOTS]
void InitializeEntitiesRun()
entity initialize_entity_first
bool autocvar_sv_dedicated