mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 17:39:01 +00:00
the driver fix
This commit is contained in:
parent
63a27fbc5f
commit
370d693f9d
2 changed files with 3 additions and 3 deletions
|
@ -19094,7 +19094,7 @@ CPed::WarpPedIntoCar(CVehicle *car)
|
||||||
m_pMyVehicle->RegisterReference((CEntity **) &m_pMyVehicle);
|
m_pMyVehicle->RegisterReference((CEntity **) &m_pMyVehicle);
|
||||||
m_carInObjective = car;
|
m_carInObjective = car;
|
||||||
m_carInObjective->RegisterReference((CEntity **) &m_carInObjective);
|
m_carInObjective->RegisterReference((CEntity **) &m_carInObjective);
|
||||||
SetPedState(m_nPedState);
|
SetPedState(PED_DRIVING);
|
||||||
bUsesCollision = false;
|
bUsesCollision = false;
|
||||||
bIsInTheAir = false;
|
bIsInTheAir = false;
|
||||||
bVehExitWillBeInstant = true;
|
bVehExitWillBeInstant = true;
|
||||||
|
|
|
@ -1859,9 +1859,9 @@ CVehicle::SetDriver(CPed *driver)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(IsBike())
|
if(IsBike())
|
||||||
ApplyMoveForce(-0.2f*driver->m_fMass * GetUp());
|
ApplyMoveForce(-0.02f*driver->m_fMass * GetUp());
|
||||||
else
|
else
|
||||||
ApplyTurnForce(0.0f, 0.0f, -0.2f*driver->m_fMass,
|
ApplyTurnForce(0.0f, 0.0f, -0.02f*driver->m_fMass,
|
||||||
driver->GetPosition().x - GetPosition().x,
|
driver->GetPosition().x - GetPosition().x,
|
||||||
driver->GetPosition().y - GetPosition().y,
|
driver->GetPosition().y - GetPosition().y,
|
||||||
0.0f);
|
0.0f);
|
||||||
|
|
Loading…
Reference in a new issue