From 16e148e5ac10ff9485d3d745b23ed4202ab709b5 Mon Sep 17 00:00:00 2001 From: tzork Date: Thu, 18 Nov 2010 17:04:14 +0100 Subject: [PATCH] Make turrets switch team corretly in assualt. --- qcsrc/server/assault.qc | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/qcsrc/server/assault.qc b/qcsrc/server/assault.qc index d7ea87d332..3575d56329 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 -*/ + } -- 2.39.2