1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-11 23:57:59 -05:00

Mule Kick: wait until weapon change complete to start refill ammo

This commit is contained in:
Jbleezy
2022-01-23 04:02:14 -08:00
parent dceaf7d6eb
commit c119d66ef2

View File

@ -4331,7 +4331,7 @@ additionalprimaryweapon_stowed_weapon_refill()
while (1)
{
self waittill_any("weapon_change", "specialty_additionalprimaryweapon_stop", "spawned_player");
string = self waittill_any_return("weapon_change", "weapon_change_complete", "specialty_additionalprimaryweapon_stop", "spawned_player");
if(self hasPerk("specialty_additionalprimaryweapon"))
{
@ -4345,9 +4345,12 @@ additionalprimaryweapon_stowed_weapon_refill()
foreach(primary in primaries)
{
if(primary != maps/mp/zombies/_zm_weapons::get_nonalternate_weapon(curr_wep))
{
if(string != "weapon_change")
{
self thread refill_after_time(primary);
}
}
else
{
self notify(primary + "_reload_stop");