HOS Energy Shotgun Doesn't Fully Recharge

Description

The HoS energy shotgun recently got a recharge added to it. However, there is a minor issue with it

Reproduction

Switch the shotgun to disabler mode and fire all 10 charges.

Wait several minutes. The shotgun will still not be fully charged, despite it being several minutes since the last shot fired.

This is an issue that sometimes (can theoretically) happen with all other self-recharging guns (effectively: the antique laser pistol) too, due to what I assume is a rounding error. The battery sometimes stops at, for examle 99.9996 instead of 100

I will look into it more this week if I can

Edit Its possible that the antique laser pistil cannot actually dusplay his issue because its recharge rate al

1 Like

Okay so this happens on any kind of rechargeable battery, though it’s only visible on energy weapons due to the last shot missing when the battery is missing ~0.0003 energy for the final shot, and won’t recharge it no matter what. I have a PR up that will fix this, but until then, you can use this workaround:

If the gun fails to charge the final shot, fire it once. This will essentially let you “roll the dice again” when you try to charge it. The issue happens quite rarely, so this next attempt should work.

1 Like