set self.team of func_assault_destructible to the defending team, so defenders won...
authorMaik Merten <maikmerten@googlemail>
Thu, 5 Aug 2010 12:53:17 +0000 (14:53 +0200)
committerMaik Merten <maikmerten@googlemail>
Thu, 5 Aug 2010 12:53:17 +0000 (14:53 +0200)
qcsrc/server/assault.qc

index d67e288392bcac8cf884134034b8d1d4d67c6b11..f5b71b8533210ca1abca7f4063eda2ea328f74f8 100644 (file)
@@ -187,6 +187,11 @@ void spawnfunc_func_assault_destructible() {
                return;
        }
        self.spawnflags = 3;
+       if(assault_attacker_team == COLOR_TEAM1) {
+               self.team = COLOR_TEAM2;
+       } else {
+               self.team = COLOR_TEAM1;
+       }
        spawnfunc_func_breakable();
 }