Closed pnill closed 4 years ago
https://github.com/PermaNulled/T4MP/commit/cc715d473127b5c3c667e512c850ae54aa9abfa8 introduced a hook that will allow the syncing of this, trying to determine how it will be implemented currently.
Thinking the best way to go about it is forcing the client to wait until the server tells them the switch happened on the server-end.
Partially fixed with https://github.com/PermaNulled/T4MP/commit/13ee7758622f2b744f61c22b792afcfcdd3e8347
Shotgun still having issues, and clients aren't syncing properly need to determine why.
As of https://github.com/PermaNulled/T4MP/commit/0e31717f9306ccc8e54c9575b26b494e1ee20a42 shotgun is still not working but some networking fixes were applied which made it so the other side was able to switch through the modifications.
Testing of this allowed for finding other bugs like the fact that the WeaponWheel would benefit from being entirely server controlled as currently there's a lot of issues with the client believing it has weapons or modifiers it does not, will probably look at that next as it will improve overall game-play.
The shot gun is calling the same function but for some reason does not apply the same result, I believe it may be another function which is being called on the release of the mouse click that causes the shotgun to load more shells, I haven't found any other weapons which are not controlled by this same function/hook.
As of https://github.com/PermaNulled/T4MP/commit/6b46a9ce1e8f0181c6daf2c357f723c16220d766 this appears to be completely resolved.
Weapon modifiers when right-clicking are not currently synced (Such as Spiked Mines, MiniGun, etc.)