mirror of
https://github.com/GTAmodding/re3.git
synced 2021-02-19 17:49:54 +01:00
cranes fix
This commit is contained in:
parent
3c3b1aadc0
commit
15a99da50e
@ -243,8 +243,11 @@ void CCrane::Update(void)
|
|||||||
Abs(m_pVehiclePickedUp->GetMoveSpeed().x) > CAR_MOVING_SPEED_THRESHOLD ||
|
Abs(m_pVehiclePickedUp->GetMoveSpeed().x) > CAR_MOVING_SPEED_THRESHOLD ||
|
||||||
Abs(m_pVehiclePickedUp->GetMoveSpeed().y) > CAR_MOVING_SPEED_THRESHOLD ||
|
Abs(m_pVehiclePickedUp->GetMoveSpeed().y) > CAR_MOVING_SPEED_THRESHOLD ||
|
||||||
Abs(m_pVehiclePickedUp->GetMoveSpeed().z) > CAR_MOVING_SPEED_THRESHOLD ||
|
Abs(m_pVehiclePickedUp->GetMoveSpeed().z) > CAR_MOVING_SPEED_THRESHOLD ||
|
||||||
FindPlayerPed()->GetPedState() == PED_ENTER_CAR && // TODO: fix carjack bug
|
(FindPlayerPed()->GetPedState() == PED_ENTER_CAR
|
||||||
FindPlayerPed()->m_pSeekTarget == m_pVehiclePickedUp) {
|
#ifdef FIX_BUGS
|
||||||
|
|| FindPlayerPed()->GetPedState() == PED_CARJACK
|
||||||
|
#endif
|
||||||
|
) && FindPlayerPed()->m_pSeekTarget == m_pVehiclePickedUp) {
|
||||||
m_pVehiclePickedUp = nil;
|
m_pVehiclePickedUp = nil;
|
||||||
m_nCraneState = IDLE;
|
m_nCraneState = IDLE;
|
||||||
}
|
}
|
||||||
@ -395,7 +398,7 @@ bool CCrane::RotateCarriedCarProperly()
|
|||||||
float fDeltaThisFrame = CAR_ROTATION_SPEED * CTimer::GetTimeStep();
|
float fDeltaThisFrame = CAR_ROTATION_SPEED * CTimer::GetTimeStep();
|
||||||
if (Abs(fAngleDelta) <= fDeltaThisFrame) // no rotation is actually applied?
|
if (Abs(fAngleDelta) <= fDeltaThisFrame) // no rotation is actually applied?
|
||||||
return true;
|
return true;
|
||||||
m_pVehiclePickedUp->GetMatrix().RotateZ(Abs(fDeltaThisFrame));
|
m_pVehiclePickedUp->GetMatrix().RotateZ(fAngleDelta < 0 ? -fDeltaThisFrame : fDeltaThisFrame);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user