]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Properly lower turret power & increase buff count to 5
authorMario <mario.mario@y7mail.com>
Sat, 20 Apr 2013 06:57:14 +0000 (16:57 +1000)
committerMario <mario.mario@y7mail.com>
Sat, 20 Apr 2013 06:57:14 +0000 (16:57 +1000)
qcsrc/server/mutators/gamemode_towerdefense.qc

index 632075a2bfb3585da22210aeef2d734feff0ff38..b2b46b2948c192609b50ea1388821c5866bad7ed 100644 (file)
@@ -925,7 +925,7 @@ MUTATOR_HOOKFUNCTION(td_TurretSpawn)
                return TRUE; // wasn't spawned by a player
                
        self.bot_attack = FALSE;
-       self.turret_buff = 0.2; // half power by default
+       buffturret(self, 0.5);
        
        return FALSE;
 }
@@ -1008,7 +1008,7 @@ MUTATOR_HOOKFUNCTION(td_PlayerCommand)
                        Send_Notification(NOTIF_ONE, self, MSG_INFO, INFO_TD_NOFUEL_UPGRADE, autocvar_g_td_turret_upgrade_cost);
                        return TRUE;
                }
-               if(trace_ent.turret_buff >= 3)
+               if(trace_ent.turret_buff >= 5)
                {
                        Send_Notification(NOTIF_ONE, self, MSG_INFO, INFO_TD_MAXPOWER);
                        return TRUE;