Xonotic
main.qh
Go to the documentation of this file.
1 #pragma once
2 
8 float autocvar_g_balance_contents_playerdamage_lava_burn_time = 2.5; // note: damage is total across this time (not by dps)
16 #define autocvar_slowmo cvar("slowmo")
18 
19 bool dropclient_schedule(entity this);
20 
22 void dedicated_print(string input);
23 
26 
27 void remove_safely(entity e);
28 
29 void remove_unsafely(entity e);
30 
31 #ifdef PROFILING
32 float client_cefc_accumulator;
33 float client_cefc_accumulatortime;
34 #endif
35 
37 
38 .vector oldvelocity; // for fall damage
39 
41 
42 .bool iscreature;
43 .float species;
44 
46 
47 /*
48 ==================
49 main
50 
51 unused but required by the engine
52 ==================
53 */
54 void main ();
bool autocvar_g_balance_falldamage_onlyvertical
Definition: main.qh:15
float autocvar_g_balance_falldamage_deadminspeed
Definition: main.qh:11
float autocvar_g_balance_contents_playerdamage_lava_burn_time
Definition: main.qh:8
int autocvar_g_balance_contents_playerdamage_lava
Definition: main.qh:6
float autocvar_g_balance_contents_damagerate
Definition: main.qh:3
bool dropclient_schedule(entity this)
Schedules dropclient for a player and returns true; if dropclient is already scheduled (for that play...
Definition: main.qc:42
float autocvar_g_balance_contents_drowndelay
Definition: main.qh:4
bool iscreature
Definition: main.qh:42
entity() spawn
float autocvar_sys_ticrate
Definition: main.qh:17
float watersound_finished
Definition: main.qh:40
void dedicated_print(string input)
print(), but only print if the server is not local
Definition: main.qc:205
float species
Definition: main.qh:43
void remove_safely(entity e)
Definition: main.qc:255
vector oldvelocity
Definition: main.qh:38
int autocvar_g_balance_contents_playerdamage_lava_burn
Definition: main.qh:7
void remove_unsafely(entity e)
Definition: main.qc:248
float serverframetime
Definition: main.qh:36
int autocvar_g_balance_falldamage_maxdamage
Definition: main.qh:13
int autocvar_g_balance_contents_playerdamage_slime
Definition: main.qh:9
float autocvar_g_balance_falldamage_minspeed
Definition: main.qh:14
float remove_except_protected_forbidden
Definition: main.qh:24
float autocvar_g_balance_falldamage_factor
Definition: main.qh:12
void remove_except_protected(entity e)
Definition: main.qc:241
int autocvar_g_balance_contents_playerdamage_drowning
Definition: main.qh:5
void main()
Definition: main.qc:506
int autocvar_g_balance_contents_projectiledamage
Definition: main.qh:10
float servertime
Definition: main.qh:36
float serverprevtime
Definition: main.qh:180
float contents_damagetime
Definition: main.qh:45