DarkestHour icon indicating copy to clipboard operation
DarkestHour copied to clipboard

[Bug] Weapons with a bipod fire blanks when deployed

Open shiftycats opened this issue 2 years ago • 0 comments

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.

  1. 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
  1. Acquire a machine gun or any weapon with a bipod.
  2. Walk to the radio table on Target Range and crouch (you should be able to deploy the weapon from this position).
  3. Stand up and quickly deploy the weapon while bipod deployment icon is still visible.
  4. 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 bipod-bug-320

shiftycats avatar Dec 20 '21 18:12 shiftycats