mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 17:49:16 +01:00
fix
This commit is contained in:
parent
601f77b5c8
commit
6fa081e004
@ -1142,6 +1142,7 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
|
||||
pPed->SetPosition(pVehicle->GetPosition());
|
||||
pPed->SetOrientation(0.0f, 0.0f, 0.0f);
|
||||
CPopulation::ms_nTotalMissionPeds++;
|
||||
CWorld::Add(pPed);
|
||||
if (ScriptParams[3] >= 0)
|
||||
pVehicle->AddPassenger(pPed, ScriptParams[3]);
|
||||
else
|
||||
@ -1149,12 +1150,10 @@ int8 CRunningScript::ProcessCommands400To499(int32 command)
|
||||
pPed->m_pMyVehicle = pVehicle;
|
||||
pPed->m_pMyVehicle->RegisterReference((CEntity**)&pPed->m_pMyVehicle);
|
||||
pPed->bInVehicle = true;
|
||||
pVehicle->SetStatus(STATUS_PHYSICS);
|
||||
pPed->SetPedState(PED_DRIVING);
|
||||
pPed->bUsesCollision = false;
|
||||
pPed->AddInCarAnims(pVehicle, false);
|
||||
pPed->m_nZoneLevel = CTheZones::GetLevelFromPosition(&pPed->GetPosition());
|
||||
CWorld::Add(pPed);
|
||||
ScriptParams[0] = CPools::GetPedPool()->GetIndex(pPed);
|
||||
StoreParameters(&m_nIp, 1);
|
||||
if (m_bIsMissionScript)
|
||||
|
@ -1876,7 +1876,7 @@ CVehicle::AddPassenger(CPed *passenger)
|
||||
int i;
|
||||
|
||||
if(IsBike())
|
||||
ApplyTurnForce(-0.2f*passenger->m_fMass * GetUp(), -0.1f*GetForward());
|
||||
ApplyTurnForce(-0.02f*passenger->m_fMass * GetUp(), -0.1f*GetForward());
|
||||
else
|
||||
ApplyTurnForce(0.0f, 0.0f, -0.2f*passenger->m_fMass,
|
||||
passenger->GetPosition().x - GetPosition().x,
|
||||
@ -1899,7 +1899,7 @@ CVehicle::AddPassenger(CPed *passenger, uint8 n)
|
||||
return AddPassenger(passenger);
|
||||
|
||||
if(IsBike())
|
||||
ApplyTurnForce(-0.2f*passenger->m_fMass * GetUp(), -0.1f*GetForward());
|
||||
ApplyTurnForce(-0.02f*passenger->m_fMass * GetUp(), -0.1f*GetForward());
|
||||
else
|
||||
ApplyTurnForce(0.0f, 0.0f, -0.2f*passenger->m_fMass,
|
||||
passenger->GetPosition().x - GetPosition().x,
|
||||
|
Loading…
Reference in New Issue
Block a user