T4MP icon indicating copy to clipboard operation
T4MP copied to clipboard

Weapon Switching does not work

Open pnill opened this issue 8 years ago • 5 comments

Weapon switching isn't working, requires additional investigation as far as I could tell the client didn't even update when the host switched weapons but this could be the result of desync.

Currently there's no real way to update the weapon held besides switching to it, it may be worth forcing the player to switch weapons until the slot is the same as the one delivered if it's determined things are out of sync.

pnill avatar Oct 02 '17 09:10 pnill

Tried it again and ended up getting a crash not sure what caused it but both clients were paused momentarily just before it happened my current setup for testing is not ideal, I'll probably need to run it on a second real machine to truly be able to discover anything worth while.

pnill avatar Oct 02 '17 09:10 pnill

After speaking with Djdduty it turns out the numeric keys also handle what weapon you have selected this may mean it's possible to force the game to select a weapon based on ID rather than trying to force it to iterate through the weapon wheel.

Will be doing some additional debugging to determine how this occurs so that weapon updates are able to be pushed directly instead of relying on weapon switching. Even with this being done there needs to be some system in place to acknowledge the receiving of this packet due to the possibility of it being dropped.

pnill avatar Oct 03 '17 18:10 pnill

Weapon switching now works, but is still buggy when rotating weapons normally.

pnill avatar Oct 07 '17 07:10 pnill

In the long run may disable rotating weapons normally and only allow weapon switching via numeric keys.

pnill avatar Apr 18 '19 05:04 pnill

As of the latest testing the weapon wheel using the standard keys is in sync but appears to take time, the numeric switching still seems to be the best way of handling this.

pnill avatar Jan 13 '20 17:01 pnill