From: Rudolf Polzer Date: Sat, 4 Dec 2010 11:14:30 +0000 (+0100) Subject: stop firing seeker missiles if the owner switched to another gun X-Git-Tag: xonotic-v0.1.0preview~65^2~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=451c31e6913702d4105ec2e6dedf51972e86b999;p=xonotic%2Fxonotic-data.pk3dir.git stop firing seeker missiles if the owner switched to another gun --- diff --git a/qcsrc/server/w_seeker.qc b/qcsrc/server/w_seeker.qc index 6ee8ff07d..60c960d28 100644 --- a/qcsrc/server/w_seeker.qc +++ b/qcsrc/server/w_seeker.qc @@ -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;