]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/main.qh
Transifex autosync
[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 // copies a string to a tempstring (so one can strunzone it)
32 string strcat1(string s) = #115; // FRIK_FILE
33
34 #ifdef PROFILING
35 float client_cefc_accumulator;
36 float client_cefc_accumulatortime;
37 #endif
38
39 float servertime, serverprevtime, serverframetime;
40
41 .vector oldvelocity; // for fall damage
42
43 .float watersound_finished;
44
45 .bool iscreature;
46 .float species;
47
48 .float contents_damagetime;
49
50 /*
51 ==================
52 main
53
54 unused but required by the engine
55 ==================
56 */
57 void main ();