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:
parent
978321347c
commit
5aac53334f
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user