X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fteamplay.qc;h=73332277c1be43ac93d7113504bf6f571f6d65de;hb=34095b88e7a8d82f83aca8ce1009f9622026d159;hp=ba1b4e6eedacb91412044bd0529c472ac3ffb977;hpb=6dc9591eba337374f2b4348a6a6deaa1cb6887d0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index ba1b4e6ee..73332277c 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -1,4 +1,19 @@ #include "teamplay.qh" +#include "_all.qh" + +#include "cl_client.qh" +#include "race.qh" +#include "scores.qh" +#include "scores_rules.qh" + +#include "bot/bot.qh" + +#include "command/vote.qh" + +#include "mutators/mutators_include.qh" + +#include "../common/deathtypes.qh" +#include "../common/teams.qh" void TeamchangeFrags(entity e) { @@ -26,6 +41,7 @@ void ActivateTeamplay() { serverflags |= SERVERFLAG_TEAMPLAY; teamplay = 1; + cvar_set("teamplay", "2"); // DP needs this for sending proper getstatus replies. } void InitGameplayMode() @@ -42,8 +58,9 @@ void InitGameplayMode() world.maxs = mi_max; MapInfo_LoadMapSettings(mapname); - teamplay = 0; serverflags &= ~SERVERFLAG_TEAMPLAY; + teamplay = 0; + cvar_set("teamplay", "0"); // DP needs this for sending proper getstatus replies. if (!cvar_value_issafe(world.fog)) { @@ -146,6 +163,7 @@ void InitGameplayMode() if(g_onslaught) { ActivateTeamplay(); + fraglimit_override = autocvar_g_onslaught_point_limit; have_team_spawns = -1; // request team spawns MUTATOR_ADD(gamemode_onslaught); }