foam bug fixes

This commit is contained in:
landgreen
2021-04-25 04:41:30 -07:00
parent f6d02d579f
commit 07a78743be
5 changed files with 27 additions and 51 deletions

View File

@@ -355,6 +355,7 @@ const simulation = {
switchGun() {
if (tech.isCrouchAmmo) tech.isCrouchAmmo = 1 //this prevents hacking the tech by switching guns
b.activeGun = b.inventory[b.inventoryGun];
if (b.guns[b.activeGun].charge) b.guns[b.activeGun].charge = 0; //if switching into foam set charge to 0
simulation.updateGunHUD();
simulation.boldActiveGunHUD();
},