X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fworld.qh;h=271f394adaa91c84f801a48db1856032781ca485;hb=cc84ebedeb4523efb23fa8c5dd1e703cd0434a23;hp=3f6b9b6d22d676abd06947c077560d28e6924307;hpb=3e6905a36d1f6320a5543efe8e2e7e6b0c069cef;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/world.qh b/qcsrc/server/world.qh index 3f6b9b6d2..271f394ad 100644 --- a/qcsrc/server/world.qh +++ b/qcsrc/server/world.qh @@ -3,6 +3,7 @@ #include bool autocvar__sv_init; +bool autocvar__endmatch; bool autocvar_g_use_ammunition; bool autocvar_g_jetpack; bool autocvar_g_warmup_allguns; @@ -26,11 +27,13 @@ float autocvar_timelimit_max; float autocvar_timelimit_overtime; int autocvar_timelimit_overtimes; float autocvar_timelimit_suddendeath; +bool autocvar_sv_gameplayfix_droptofloorstartsolid; +bool autocvar_sv_gameplayfix_droptofloorstartsolid_nudgetocorrect; float checkrules_equality; float checkrules_suddendeathwarning; float checkrules_suddendeathend; -float checkrules_overtimesadded; //how many overtimes have been already added +int checkrules_overtimesadded; //how many overtimes have been already added // flag set on worldspawn so that the code knows if it is dedicated or not bool server_is_dedicated; @@ -47,6 +50,10 @@ string gamemode_name; string record_type; +string autocvar_sv_termsofservice_url; +// only escape the terms of service url on map change +string sv_termsofservice_url_escaped; + string clientstuff; string matchid; @@ -109,7 +116,7 @@ float g_weapon_stay; float want_weapon(entity weaponinfo, float allguns); // WEAPONTODO: what still needs done? float g_grappling_hook; -float warmup_stage; +int warmup_stage; bool sv_ready_restart_after_countdown; @@ -138,13 +145,17 @@ void ReadyRestart(bool forceWarmupEnd); void DumpStats(float final); -bool MoveToRandomLocationWithinBounds(entity e, vector boundmin, vector boundmax, float goodcontents, float badcontents, float badsurfaceflags, int attempts, float maxaboveground, float minviewdistance); +bool MoveToRandomLocationWithinBounds(entity e, vector boundmin, vector boundmax, float goodcontents, float badcontents, float badsurfaceflags, int attempts, float maxaboveground, float minviewdistance, bool frompos); float MoveToRandomMapLocation(entity e, float goodcontents, float badcontents, float badsurfaceflags, float attempts, float maxaboveground, float minviewdistance); void CheckRules_World(); float RedirectionThink(); +// quake 3 music compatibility +.string music; +.string noise; + void readplayerstartcvars(); void readlevelcvars(); @@ -154,3 +165,5 @@ void droptofloor(entity this); IntrusiveList g_moveables; STATIC_INIT(g_moveables) { g_moveables = IL_NEW(); } + +bool observe_blocked_if_eliminated = false; // forbids eliminated players from observing