X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmain.qh;h=ed095ba485ec56a78b603a59b9919d2e12875adf;hb=e3f69d98a5280a43326e34b201a800c7a5bf5e63;hp=dc3d80dbea81f83548c0cd977a68fcd75d6e70bb;hpb=dba16d1e3e79360f1167ec2965a551e56c3bdcf2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/main.qh b/qcsrc/server/main.qh index dc3d80dbe..ed095ba48 100644 --- a/qcsrc/server/main.qh +++ b/qcsrc/server/main.qh @@ -1,6 +1,32 @@ #pragma once -bool expr_evaluate(string s); +float autocvar_g_balance_contents_damagerate; +float autocvar_g_balance_contents_drowndelay; +int autocvar_g_balance_contents_playerdamage_drowning; +int autocvar_g_balance_contents_playerdamage_lava; +int autocvar_g_balance_contents_playerdamage_lava_burn; // 10 is a nice value +float autocvar_g_balance_contents_playerdamage_lava_burn_time = 2.5; // note: damage is total across this time (not by dps) +int autocvar_g_balance_contents_playerdamage_slime; +int autocvar_g_balance_contents_projectiledamage; +float autocvar_g_balance_falldamage_deadminspeed; +float autocvar_g_balance_falldamage_factor; +int autocvar_g_balance_falldamage_maxdamage; +float autocvar_g_balance_falldamage_minspeed; +bool autocvar_g_balance_falldamage_onlyvertical; +#define autocvar_slowmo cvar("slowmo") +float autocvar_sys_ticrate; + +bool dropclient_schedule(entity this); + +/** print(), but only print if the server is not local */ +void dedicated_print(string input); + +.float remove_except_protected_forbidden; +void remove_except_protected(entity e); + +void remove_safely(entity e); + +void remove_unsafely(entity e); #ifdef PROFILING float client_cefc_accumulator; @@ -9,7 +35,8 @@ float client_cefc_accumulatortime; float servertime, serverprevtime, serverframetime; -.vector oldvelocity; // for fall damage +// set in CreatureFrame_All for entities that can be damaged by fall (players) and contents (projectiles) +.vector oldvelocity; .float watersound_finished; @@ -18,6 +45,8 @@ float servertime, serverprevtime, serverframetime; .float contents_damagetime; +string GetField_fullspawndata(entity e, string f, ...); + /* ================== main