DarkestHour
DarkestHour copied to clipboard
[Bug] Weapons with a bipod fire blanks when deployed
Describe the bug When deployed, any weapon with a bipod can play firing first-person animations without spawning any projectiles. The player won't appear firing to other players.
This bug occurs in multiplayer only.
To Reproduce A player needs to deploy his weapon shortly after moving from a valid resting spot. Since weapon resting is handled server-side (natively), clients can drag behind and allow weapon deployment for a brief time after it was prohibited by the server.
- Launch a server and a client with simulated lag. You can do this by openning dhdev_server_with_clients.bat and adding
?PktLoss=800
to the final line so it looks like this:
python ..\tools\test_multiplayer.py DarkestHourDev DH-Target_Range?Game=DH_Engine.DarkestHourGame?PktLag=800
- Acquire a machine gun or any weapon with a bipod.
- Walk to the radio table on Target Range and crouch (you should be able to deploy the weapon from this position).
- Stand up and quickly deploy the weapon while bipod deployment icon is still visible.
- Fire the weapon (no projectiles will appear).
Expected behavior Once the weapon has been deployed, the server should let it fire regardless of where it's deployed.
Screenshots/Footage