1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

Mule Kick: move weapon slot update into separate function

Mule Kick: update weapon slots right before taking additional weapon
Mule Kick: update weapon slots if player does not have Mule Kick
Mule Kick: don't update weapon slots if player is spectating
This commit is contained in:
Jbleezy
2024-01-27 15:56:32 -08:00
parent 82b4d369b0
commit d04d6277af
2 changed files with 100 additions and 62 deletions

View File

@ -1217,6 +1217,8 @@ take_additionalprimaryweapon()
if (isdefined(self._retain_perks) && self._retain_perks || isdefined(self._retain_perks_array) && (isdefined(self._retain_perks_array["specialty_additionalprimaryweapon"]) && self._retain_perks_array["specialty_additionalprimaryweapon"]))
return undefined;
self scripts\zm\_zm_reimagined::additionalprimaryweapon_update_weapon_slots();
weapon_to_take = self.weapon_to_take_by_losing_specialty_additionalprimaryweapon;
if (!isDefined(weapon_to_take) || !self hasWeapon(weapon_to_take))