]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/main.qh
Obey strict sorting when comparing player scores, fixes #1469
[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 /** print(), but only print if the server is not local */
20 void dedicated_print(string input);
21
22 .float remove_except_protected_forbidden;
23 void remove_except_protected(entity e);
24
25 void remove_safely(entity e);
26
27 void remove_unsafely(entity e);
28
29 // copies a string to a tempstring (so one can strunzone it)
30 string strcat1(string s) = #115; // FRIK_FILE
31
32 #ifdef PROFILING
33 float client_cefc_accumulator;
34 float client_cefc_accumulatortime;
35 #endif
36
37 float servertime, serverprevtime, serverframetime;
38
39 .vector oldvelocity; // for fall damage
40
41 .float watersound_finished;
42
43 .bool iscreature;
44 .float species;
45
46 .float contents_damagetime;
47
48 /*
49 ==================
50 main
51
52 unused but required by the engine
53 ==================
54 */
55 void main ();