Higgins boat - ramp functionality doesn't work in multi-player

Issue #155 resolved
Matt Hands created an issue

Higgins uses change in DriverPositions by mousewheel up/down to control the ramp.

Has some custom functionality to try and save current ramp position when player exits, so doesn't automatically get reset to raised if a new player gets in.

But the functionality only happens on the server, not clients, so it doesn't work properly. Net client can actually get stuck and any new player who gets in the boat may be unable to raise or lower the ramp.

Comments (3)

  1. Matt Hands reporter

    When a player exits, InitialPositionIndex gets set to match the current DriverPositionIndex, but only on server, so server & clients may have different values.

    When new player enters the boat, ClientKDriverEnter() sets the client's PendingPositionIndex to match its local value of InitialPositionIndex, which will always remain the default zero.

    Mismatch between client and server values of PendingPositionIndex means client cannot change positions, as Next/PreviousWeapon() thinks a transition is in progress and blocks the position change.

    Have fix that seems to work ok Will commit..

  2. Log in to comment