Player can spawn with 255 magazines of ammunition
This appears to only happen upon connecting and only selecting a spawn point and then hitting deploy. As soon as you change your spawn point or your role this will correct itself.
Comments (8)
-
-
DHP.SpawnAmmoAmount = int(nu_PrimaryAmmoMags.Value);
in DHRoleSelectPanel is not working as the variable is server to client replicated -
DHP.SpawnAmmoAmount = 0;
is also an illegal set of the value -
DHP.SpawnAmmoAmount = byte(nu_PrimaryAmmoMags.Value);
and this also -
The server was also never setting the value in
ServerSetPlayerInfo
-
It seems you removed my checks to make sure it doesn't exceed the weapon's
MaxNumPrimaryMags
GetSpawnTime
does the check andServerSetPlayerInfo
calls it, so I can just set the value there -
Okay I just tested in MP it should be fixed. I made it so the server sets the value and removed those client sets.
-
- changed status to resolved
Fixed in 0d79863
- Log in to comment
This happens every time in MP environment, it's because the server thinks the value is 0. So it's not being set properly.