mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-15 00:37:09 +00:00
Working on vehicle sync 4
This commit is contained in:
parent
f3eff67bdf
commit
63491e76ea
1 changed files with 12 additions and 4 deletions
|
@ -10,9 +10,11 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
{
|
||||
|
||||
|
||||
public override void OnBecameActive() {
|
||||
public override void OnBecameInactive()
|
||||
{
|
||||
|
||||
|
||||
base.OnBecameInactive();
|
||||
}
|
||||
|
||||
public void EnterVehicle(Vehicle vehicle, Vehicle.Seat seat)
|
||||
|
@ -35,10 +37,14 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
}
|
||||
|
||||
|
||||
public override void OnSubmitPressed() {
|
||||
|
||||
public override void OnSubmitPressed()
|
||||
{
|
||||
// exit the vehicle
|
||||
m_ped.ExitVehicle();
|
||||
|
||||
if (m_isServer)
|
||||
m_ped.ExitVehicle();
|
||||
else
|
||||
base.OnSubmitPressed();
|
||||
|
||||
}
|
||||
|
||||
|
@ -46,6 +52,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
|
||||
base.UpdateState();
|
||||
|
||||
// check if this is still active state ?
|
||||
|
||||
if (m_ped.IsDrivingVehicle)
|
||||
this.UpdateWheelTurning ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue