]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/main.qh
Merge branch 'z411/annce_queue' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / main.qh
1 #pragma once
2
3 float autocvar_g_balance_contents_damagerate;
4 float autocvar_g_balance_contents_drowndelay;
5 int autocvar_g_balance_contents_playerdamage_drowning;
6 int autocvar_g_balance_contents_playerdamage_lava;
7 int autocvar_g_balance_contents_playerdamage_lava_burn; // 10 is a nice value
8 float autocvar_g_balance_contents_playerdamage_lava_burn_time = 2.5; // note: damage is total across this time (not by dps)
9 int autocvar_g_balance_contents_playerdamage_slime;
10 int autocvar_g_balance_contents_projectiledamage;
11 float autocvar_g_balance_falldamage_deadminspeed;
12 float autocvar_g_balance_falldamage_factor;
13 int autocvar_g_balance_falldamage_maxdamage;
14 float autocvar_g_balance_falldamage_minspeed;
15 bool autocvar_g_balance_falldamage_onlyvertical;
16 #define autocvar_slowmo cvar("slowmo")
17 float autocvar_sys_ticrate;
18
19 bool dropclient_schedule(entity this);
20
21 /** print(), but only print if the server is not local */
22 void dedicated_print(string input);
23
24 .float remove_except_protected_forbidden;
25 void remove_except_protected(entity e);
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
36 float servertime, serverprevtime, serverframetime;
37
38 // set in CreatureFrame_All for entities that can be damaged by fall (players) and contents (projectiles)
39 .vector oldvelocity;
40
41 .float watersound_finished;
42
43 .bool iscreature;
44 .float species;
45
46 .float contents_damagetime;
47
48 string GetField_fullspawndata(entity e, string f, ...);
49
50 /*
51 ==================
52 main
53
54 unused but required by the engine
55 ==================
56 */
57 void main ();