From: tzork Date: Thu, 18 Nov 2010 16:04:14 +0000 (+0100) Subject: Make turrets switch team corretly in assualt. X-Git-Tag: xonotic-v0.1.0preview~118^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=16e148e5ac10ff9485d3d745b23ed4202ab709b5;p=xonotic%2Fxonotic-data.pk3dir.git Make turrets switch team corretly in assualt. --- diff --git a/qcsrc/server/assault.qc b/qcsrc/server/assault.qc index d7ea87d33..3575d5632 100644 --- a/qcsrc/server/assault.qc +++ b/qcsrc/server/assault.qc @@ -251,31 +251,30 @@ void assault_roundstart_use() { activator = self; SUB_UseTargets(); - /* + #ifdef TTURRETS_ENABLED -entity ent,oldself; + entity ent, oldself; //(Re)spawn all turrets oldself = self; ent = find(world, classname, "turret_main"); while(ent) { - // Swap turret teams - if(ent.team == COLOR_TEAM1) - ent.team = COLOR_TEAM2; - else - ent.team = COLOR_TEAM1; + // Swap turret teams + if(ent.team == COLOR_TEAM1) + ent.team = COLOR_TEAM2; + else + ent.team = COLOR_TEAM1; - self = ent; + self = ent; - // Dubbles as teamchange - turret_stdproc_respawn(); - //ent.turret_spawnfunc(); + // Dubbles as teamchange + turret_stdproc_respawn(); - ent = find(ent, classname, "turret_main"); + ent = find(ent, classname, "turret_main"); } self = oldself; #endif -*/ + }