1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Placeable mines: fix last shot switch when ammo is given during last shot fire time

This commit is contained in:
Jbleezy 2024-04-05 12:06:22 -07:00
parent 978321347c
commit 5aac53334f
2 changed files with 8 additions and 4 deletions

View File

@ -174,6 +174,7 @@ betty_last_shot_switch(weapname)
{
self endon("disconnect");
ammo = self getammocount(weapname);
fire_time = 0.8;
if (self hasperk("specialty_rof"))
@ -193,14 +194,15 @@ betty_last_shot_switch(weapname)
return;
}
if (self getammocount(weapname) != 0)
if (ammo != 0)
{
return;
}
ammo = self getammocount(weapname);
self takeweapon(weapname);
self giveweapon(weapname);
self setweaponammoclip(weapname, 0);
self setweaponammoclip(weapname, ammo);
}
betty_setup()

View File

@ -139,6 +139,7 @@ claymore_last_shot_switch(weapname)
{
self endon("disconnect");
ammo = self getammocount(weapname);
fire_time = 0.8;
if (self hasperk("specialty_rof"))
@ -158,14 +159,15 @@ claymore_last_shot_switch(weapname)
return;
}
if (self getammocount(weapname) != 0)
if (ammo != 0)
{
return;
}
ammo = self getammocount(weapname);
self takeweapon(weapname);
self giveweapon(weapname);
self setweaponammoclip(weapname, 0);
self setweaponammoclip(weapname, ammo);
}
claymore_detonation()