Bug Tracker – Bug 1099

Weapon switch desync

Last modified: 2014-07-10 21:43:18 CDT
Bug 1099 - (ARRAY(0x652a928)) Weapon switch desync
(ARRAY(0x652a928))
Weapon switch desync
Status: NEW
Product: Odamex
Classification: Unclassified
Component: Client
0.7.x
x86 (Windows, Linux, etc) Windows 2000/XP/Vista/7
: P1 major
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2014-07-08 08:30:26 CDT by Soul Sucka
Modified: 2014-07-10 21:43 CDT (History)
1 user (show)

See Also:


Attachments
Multiplayer Weapon Desync Demo (4.36 MB, application/zip)
2014-07-10 21:43:18 CDT, Soul Sucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Soul Sucka 2014-07-08 08:30:26 CDT
A common trick in Doom is to switch to a weapon (usually the fist) right before picking up a stronger weapon, in a way that the said weapon is loaded up and ready to fire in much less time. The issue starts when one switches weapons and picks up the weapon at roughly the same time (the weapon switching occurring right after the weapon pickup, I believe). The client performs the trick nonetheless, however, this trick did not happen server-side, so as soon as one shoots the weapon, the server will forcefully snap the client's weapon to the fist, as it has always been in the server. Here is another description of what happens:

<HeX9109-> the server thinks the fist is out because the signal to switch to fist got to the server as zakken was picking up the ssg
<HeX9109-> so the client switches to the ssg, but the server is in the middle of "switching the weapon" and puts up the fist
<HeX9109-> so client gets ssg and server gets fist, but when zakken fires the server is like WOAH I THOUGHT YOU HAD THE FIST OUT WHAT THE FUK

The attached demo showcases the bug quite a few times. This may not happen to players with low ping, seeing as I haven't noticed any others actively pointing this bug out.
Comment 1 capo 2014-07-08 19:25:06 CDT
Happens to me always with high ping. This probably never happens to me with low ping. So there must be some packet loss issue or something. Also when i play with high ping this happens to me really very rarely. I use this method all time but i dont change on fist i use next weapon on my mouse3.
Comment 2 Soul Sucka 2014-07-08 22:21:14 CDT
I did mention the fist, but the bug happens with any other weapon: for example, if one switches to the pistol while picking up a strong weapon, they end up firing the pistol instead of a fist, and so on.
Comment 3 Soul Sucka 2014-07-10 21:43:18 CDT
Created ﷒0﷓
Multiplayer Weapon Desync Demo