]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Apply a bad hack to give flak rockets on pickup
authorMario <zacjardine@y7mail.com>
Fri, 13 Feb 2015 19:39:39 +0000 (06:39 +1100)
committerMario <zacjardine@y7mail.com>
Fri, 13 Feb 2015 19:39:39 +0000 (06:39 +1100)
qcsrc/server/weapons/spawning.qc

index ea62fcf19eba9c05d08169e827357b879ef3ba9a..618b92e8322d1dc6c48ca6569f814f2a40b990d9 100644 (file)
@@ -159,6 +159,9 @@ void weapon_defaultspawnfunc(float wpn)
                }
        }
 
+       if(self.weapon == WEP_FLAK)
+               self.ammo_rockets = cvar("g_pickup_rockets_weapon"); // special case
+
        #if 0 // WEAPONTODO
        if(e.items)
        {