Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weapon Switching does not work #7

Open
pnill opened this issue Oct 2, 2017 · 5 comments
Open

Weapon Switching does not work #7

pnill opened this issue Oct 2, 2017 · 5 comments

Comments

@pnill
Copy link
Owner

pnill commented Oct 2, 2017

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
Copy link
Owner Author

pnill commented Oct 2, 2017

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
Copy link
Owner Author

pnill commented Oct 3, 2017

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
Copy link
Owner Author

pnill commented Oct 7, 2017

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

@pnill pnill added the bug label Oct 8, 2017
@pnill
Copy link
Owner Author

pnill commented Apr 18, 2019

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

@pnill
Copy link
Owner Author

pnill commented Jan 13, 2020

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 pnill added this to the Network Reform milestone Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant