Skip to content

Player / vehicle desync after car jacking, if jacker die #908

@StifflersMom

Description

@StifflersMom

Describe the bug
If player A drives a car and player B starts jacking the car and player B dies at the moment, where he starts to pull player A out of the vehicle, player A become desynced:
From sight of player A: He is on foot, near the car.
From sight of player B and all others: Player a is stuck in the middle of vehicle.

Clientside player A:
getPedOccupiedVehicle(localPlayer) results to his vehicle
isPedInVehicle(localPlayer) results to false (!!!)

Serverside player A and all other clients:
getPedOccupiedVehicle(Player A) results to his vehicle
isPedInVehicle(Player A) results to true

While player A is on foot, he can run out of the streamig range. This results to being immortal for other player, while they see him in his car.

To reproduce
You need 2 players.

  • start play
  • as player A get in a vehicle as driver.
  • as player B press F near the vehicle
  • at the moment, where B opens the door, kill B

Expected behaviour
No desync. If A performs the vehicle exit animation, he should be on foot for all :)

Screenshots
Player A before jacked
grafik
Player A after jacked
grafik
Player B before jacking
grafik

Player B after killed respawned while jacking
grafik

Version
MTA:SA Server v1.5.6-release-16612 , Client v1.5.6-release-16705

Additional context
In case this is being used for fun to "ruin" players game, this should be fixed with priority, I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions