pnill / T4MP

T4MP (Turok 4 Multiplayer) is an modification to bring online play to Turok 4 Evolution for PC it's currently not any where near being actually useable for competitive or serious gameplay but it's getting there.
GNU Affero General Public License v3.0
16 stars 2 forks source link

Weapon Switching does not work #7

Open pnill opened 6 years ago

pnill commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

pnill commented 5 years ago

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

pnill commented 4 years ago

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.