mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-08 06:12:17 -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");
|
self endon("disconnect");
|
||||||
|
|
||||||
|
ammo = self getammocount(weapname);
|
||||||
fire_time = 0.8;
|
fire_time = 0.8;
|
||||||
|
|
||||||
if (self hasperk("specialty_rof"))
|
if (self hasperk("specialty_rof"))
|
||||||
@ -193,14 +194,15 @@ betty_last_shot_switch(weapname)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self getammocount(weapname) != 0)
|
if (ammo != 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ammo = self getammocount(weapname);
|
||||||
self takeweapon(weapname);
|
self takeweapon(weapname);
|
||||||
self giveweapon(weapname);
|
self giveweapon(weapname);
|
||||||
self setweaponammoclip(weapname, 0);
|
self setweaponammoclip(weapname, ammo);
|
||||||
}
|
}
|
||||||
|
|
||||||
betty_setup()
|
betty_setup()
|
||||||
|
@ -139,6 +139,7 @@ claymore_last_shot_switch(weapname)
|
|||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
|
|
||||||
|
ammo = self getammocount(weapname);
|
||||||
fire_time = 0.8;
|
fire_time = 0.8;
|
||||||
|
|
||||||
if (self hasperk("specialty_rof"))
|
if (self hasperk("specialty_rof"))
|
||||||
@ -158,14 +159,15 @@ claymore_last_shot_switch(weapname)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self getammocount(weapname) != 0)
|
if (ammo != 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ammo = self getammocount(weapname);
|
||||||
self takeweapon(weapname);
|
self takeweapon(weapname);
|
||||||
self giveweapon(weapname);
|
self giveweapon(weapname);
|
||||||
self setweaponammoclip(weapname, 0);
|
self setweaponammoclip(weapname, ammo);
|
||||||
}
|
}
|
||||||
|
|
||||||
claymore_detonation()
|
claymore_detonation()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user