X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fgamemode_onslaught.qc;fp=qcsrc%2Fserver%2Fmutators%2Fgamemode_onslaught.qc;h=3ebcb7eac0f0db0e2a12582e5352f1b8b7ca61d4;hp=53cf0c7980ac1caa3d387aa3d6ff7527e872e35a;hb=9dd7ac97faf9fc1548cc3d416cedaeef803e7528;hpb=53bf2689427e11616d100949df37f463426ef78f diff --git a/qcsrc/server/mutators/gamemode_onslaught.qc b/qcsrc/server/mutators/gamemode_onslaught.qc index 53cf0c798..3ebcb7eac 100644 --- a/qcsrc/server/mutators/gamemode_onslaught.qc +++ b/qcsrc/server/mutators/gamemode_onslaught.qc @@ -2,6 +2,8 @@ #include "../controlpoint.qh" #include "../generator.qh" +bool g_onslaught; + float autocvar_g_onslaught_debug; float autocvar_g_onslaught_teleport_wait; bool autocvar_g_onslaught_spawn_at_controlpoints; @@ -2177,6 +2179,7 @@ void ons_DelayedInit() // Do this check with a delay so we can wait for teams to void ons_Initialize() { + g_onslaught = true; ons_captureshield_force = autocvar_g_onslaught_shield_force; addstat(STAT_ROUNDLOST, AS_INT, ons_roundlost); @@ -2184,7 +2187,7 @@ void ons_Initialize() InitializeEntity(world, ons_DelayedInit, INITPRIO_GAMETYPE); } -REGISTER_MUTATOR(ons, g_onslaught) +REGISTER_MUTATOR(ons, IS_GAMETYPE(ONSLAUGHT)) { ActivateTeamplay(); SetLimits(autocvar_g_onslaught_point_limit, -1, -1, -1);