Merge branch 'master' into divVerent/weapons-field-rewrite
authorRudolf Polzer <divverent@alientrap.org>
Sat, 31 Mar 2012 16:36:38 +0000 (18:36 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 31 Mar 2012 16:36:38 +0000 (18:36 +0200)
Conflicts:
qcsrc/server/t_items.qc

1  2 
balanceXonotic.cfg
defaultXonotic.cfg
qcsrc/client/hud.qc
qcsrc/server/cl_player.qc
qcsrc/server/cl_weapons.qc
qcsrc/server/g_damage.qc
qcsrc/server/g_world.qc
qcsrc/server/miscfunctions.qc
qcsrc/server/t_items.qc

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -376,10 -377,8 +376,8 @@@ float Item_GiveTo(entity item, entity p
                        // else if(item.items == IT_CELLS)
                        //      AnnounceTo(player, "ammo");
  
 -                      if (item.weapons & WEPBIT_MINSTANEX)
 +                      if (WEPSET_CONTAINS_EW(item, WEP_MINSTANEX))
                                W_GiveWeapon (player, WEP_MINSTANEX, item.netname);
-                       if (item.ammo_cells)
-                               player.ammo_cells = bound(player.ammo_cells, 999, player.ammo_cells + autocvar_g_minstagib_ammo_drop);
                        player.health = 100;
                }
  
@@@ -1106,7 -1112,12 +1116,12 @@@ void weapon_defaultspawnfunc(float wpn
        if(self.team)
                f |= FL_NO_WEAPON_STAY;
  
 -      StartItem(e.model, "weapons/weaponpickup.wav", self.respawntime, self.respawntimejitter, e.message, 0, e.weapons, f, weapon_pickupevalfunc, e.bot_pickupbasevalue);
+       // stupid minstagib hack, don't ask
+       if(g_minstagib)
+               if(self.ammo_cells)
+                       self.ammo_cells = autocvar_g_minstagib_ammo_drop;
 +      StartItem(e.model, "weapons/weaponpickup.wav", self.respawntime, self.respawntimejitter, e.message, 0, e.weapon, f, weapon_pickupevalfunc, e.bot_pickupbasevalue);
        if (self.modelindex) // don't precache if self was removed
                weapon_action(e.weapon, WR_PRECACHE);
  }