1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 07:08:06 -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"))
{
@ -4346,7 +4346,10 @@ additionalprimaryweapon_stowed_weapon_refill()
{
if(primary != maps/mp/zombies/_zm_weapons::get_nonalternate_weapon(curr_wep))
{
self thread refill_after_time(primary);
if(string != "weapon_change")
{
self thread refill_after_time(primary);
}
}
else
{