]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Force switch to another weapon when out of ammo (needs to be done separately here)
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Apr 2011 15:34:04 +0000 (18:34 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Apr 2011 15:34:04 +0000 (18:34 +0300)
qcsrc/server/w_hagar.qc

index f6b5a61e4dc5d35018604c66740ec0d3aca1e862..711afe9d05ff903af016ae6ff857f21f77b9c826 100644 (file)
@@ -119,6 +119,11 @@ void W_Hagar_Attack2 (void)
 
 void W_Hagar_Attack2_Load (void)
 {
+       if not(weapon_action(self.weapon, WR_CHECKAMMO2))
+       {
+               W_SwitchToOtherWeapon(self);
+               return;
+       }
        if not(autocvar_g_balance_hagar_secondary)
                return;