mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-09-20 06:11:54 +00:00
Fix sending submit button event
This commit is contained in:
parent
a7e0c91f31
commit
e99839de0a
4 changed files with 18 additions and 5 deletions
|
@ -492,7 +492,10 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
{
|
||||
|
||||
// try to enter vehicle
|
||||
m_ped.TryEnterVehicleInRange ();
|
||||
if (m_isServer)
|
||||
m_ped.TryEnterVehicleInRange ();
|
||||
else
|
||||
base.OnSubmitPressed();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,10 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
public override void OnSubmitPressed() {
|
||||
|
||||
// try to enter vehicle
|
||||
m_ped.TryEnterVehicleInRange ();
|
||||
if (m_isServer)
|
||||
m_ped.TryEnterVehicleInRange ();
|
||||
else
|
||||
base.OnSubmitPressed();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,10 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
|
||||
public override void OnSubmitPressed ()
|
||||
{
|
||||
m_ped.TryEnterVehicleInRange ();
|
||||
if (m_isServer)
|
||||
m_ped.TryEnterVehicleInRange ();
|
||||
else
|
||||
base.OnSubmitPressed();
|
||||
}
|
||||
|
||||
public override void OnJumpPressed ()
|
||||
|
|
|
@ -8,9 +8,13 @@
|
|||
|
||||
- adapt states:
|
||||
|
||||
- send button input events to server:
|
||||
- send button input events to server: submit,
|
||||
|
||||
- When ped enters vehicle, he changes parent. Is this allowed in Mirror ? Possible solution would be to only change parent of ped model.
|
||||
- When ped enters vehicle, he changes parent. Is this allowed in Mirror ? Possible solution would be to only change parent of ped model. Also, while ped is in vehicle, network transform should not sync.
|
||||
|
||||
- disable vehicle's rigid body on clients ; apply linear and angular velocity manually ? ;
|
||||
|
||||
- sync car color
|
||||
|
||||
- stats window
|
||||
|
||||
|
|
Loading…
Reference in a new issue