30.10.2014, 23:21
Quote:
This happen because every client counts the ammo for other players itself, the ammo is not synced.
It might be able to fix that without much effort. Clients could just stop counting the ammo of every player for themselves / reset the ammo for them frequently, and instead just send the reloadanimation whenever they are reloading. Though im pretty sure clients cant report animations to other players, just the server can. Anyways, theres that WEAPONSTATE_RELOADING, so the server has to know when players are reloading, and could send the animation to all players then. Fixing this in the script alone is more difficult. Maybe it works to use SetPlayerArmedWeapon to change a players weapon every x shots for a minimal moment, and then change it back, the clients then restart counting the ammo for the player. |