]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix turrets in assault
authorMario <zacjardine@y7mail.com>
Tue, 25 Aug 2015 03:05:56 +0000 (13:05 +1000)
committerMario <zacjardine@y7mail.com>
Tue, 25 Aug 2015 03:05:56 +0000 (13:05 +1000)
qcsrc/server/mutators/gamemode_assault.qc

index 4700c57d87e94501159972903b3200b617fce604..f3b4786593b6f06c8a50c63b841cbd4bb31bc71a 100644 (file)
@@ -553,8 +553,8 @@ MUTATOR_HOOKFUNCTION(assault_PlayerSpawn)
 
 MUTATOR_HOOKFUNCTION(assault_TurretSpawn)
 {
-       if (!self.team)
-               self.team = 14;
+       if(!self.team || self.team == MAX_SHOT_DISTANCE)
+               self.team = 5; // this gets reversed when match starts?
 
        return false;
 }