Closed koen24 closed 9 years ago
Duplicate of #472
It isn't the same issue. #472 only regards the first clip of ammo (the amount that's already loaded into the gun) Imagine I have a revolver. I load a box of 12 rounds and load my gun. The revolver would have 6 rounds in it and 6 extra rounds. With this issue, it's the extra rounds that disappear, not the rounds that have already been loaded into the gun. Besides, #472 occurs when the player respawns, or the character is reloaded. This bug only occurs whenever the server is restarted.
Well if the issue is when the server is restarted, it seems like it is not a clean restart as the CharacterPreSave hook is not being ran.
Just repeated my steps on a clean install of both nutscript and the hl2rp schema and made sure I shut down the server properly by typing 'quit' in the console, but the issue persists.
Confirming.
Steps to reproduce:
quit
the serverWhen restarting the server and going in, only first clip is full, the extra ammo is gone.
So I got that fixed, but for some reason the remaining ammo won't save. For some reason, setting the ammo count won't stay.
Whenever ammo is loaded (and not in a gun's first clip), it will dissappear when the server restarts.