]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
stop firing seeker missiles if the owner switched to another gun
authorRudolf Polzer <divverent@alientrap.org>
Sat, 4 Dec 2010 11:14:30 +0000 (12:14 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 4 Dec 2010 11:14:30 +0000 (12:14 +0100)
qcsrc/server/w_seeker.qc

index 6ee8ff07d2d4318d865cfe132c103d357f1c99da..60c960d28a3649d4b211add1f198f9a7798df02c 100644 (file)
@@ -208,7 +208,7 @@ void Seeker_Vollycontroler_Think()
        entity oldself,oldenemy;
        self.cnt = self.cnt - 1;
 
-       if((!(self.owner.items & IT_UNLIMITED_AMMO) && self.owner.ammo_rockets < cvar("g_balance_seeker_missile_ammo")) || (self.cnt <= -1) || (self.owner.deadflag != DEAD_NO))
+       if((!(self.owner.items & IT_UNLIMITED_AMMO) && self.owner.ammo_rockets < cvar("g_balance_seeker_missile_ammo")) || (self.cnt <= -1) || (self.owner.deadflag != DEAD_NO) || (self.owner.switchweapon != WEP_SEEKER))
        {
                remove(self);
                return;