Skip to content

Commit 9a9fcdf

Browse files
committed
Mule Kick: fix stowed weapon reload not starting when enemy team grabs Max Ammo powerup
1 parent 488cab7 commit 9a9fcdf

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

scripts/zm/_zm_reimagined.gsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3338,7 +3338,7 @@ additionalprimaryweapon_stowed_weapon_refill()
33383338

33393339
while (1)
33403340
{
3341-
result = self waittill_any_return("weapon_change", "perk_additionalprimaryweapon_activated", "specialty_additionalprimaryweapon_stop", "spawned_player");
3341+
result = self waittill_any_return("weapon_change", "specialty_additionalprimaryweapon_start", "specialty_additionalprimaryweapon_stop", "zmb_empty_clip", "spawned_player");
33423342

33433343
if (self hasPerk("specialty_additionalprimaryweapon"))
33443344
{

scripts/zm/replaced/_zm_perks.gsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,6 @@ give_perk(perk, bought)
16871687
{
16881688
switch_to_additional_primary_weapon = is_true(bought);
16891689
self scripts\zm\replaced\_zm::restore_additionalprimaryweapon(switch_to_additional_primary_weapon);
1690-
self notify("perk_additionalprimaryweapon_activated");
16911690
}
16921691

16931692
if (isDefined(level._custom_perks[perk]) && isDefined(level._custom_perks[perk].player_thread_give))
@@ -1724,6 +1723,7 @@ give_perk(perk, bought)
17241723

17251724
self.perks_active[self.perks_active.size] = perk;
17261725
self notify("perk_acquired");
1726+
self notify(perk + "_start");
17271727
self thread perk_think(perk);
17281728
}
17291729

scripts/zm/replaced/_zm_powerups.gsc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,8 @@ empty_clip_powerup(drop_item, player)
724724
continue;
725725
}
726726

727+
players[i] notify("zmb_empty_clip");
728+
727729
primaries = players[i] getweaponslist();
728730

729731
foreach (weapon in primaries)

0 commit comments

Comments
 (0)