]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/main.qh
Merge branch 'Juhu/target_print' 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 autocvar_sv_autopause;
20 void Pause_TryPause_Dedicated(entity this);
21
22 bool dropclient_schedule(entity this);
23
24 /** print(), but only print if the server is not local */
25 void dedicated_print(string input);
26
27 .float remove_except_protected_forbidden;
28 void remove_except_protected(entity e);
29
30 void remove_safely(entity e);
31
32 void remove_unsafely(entity e);
33
34 #ifdef PROFILING
35 float client_cefc_accumulator;
36 float client_cefc_accumulatortime;
37 #endif
38
39 float servertime, serverprevtime, serverframetime;
40
41 // set in CreatureFrame_All for entities that can be damaged by fall (players) and contents (projectiles)
42 .vector oldvelocity;
43
44 .float watersound_finished;
45
46 .bool iscreature;
47 .float species;
48
49 .float contents_damagetime;
50
51 string GetField_fullspawndata(entity e, string f, ...);
52
53 /*
54 ==================
55 main
56
57 unused but required by the engine
58 ==================
59 */
60 void main ();