mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 16:21:50 +01:00
CPed cleanup
This commit is contained in:
parent
5350574b6d
commit
8510792256
@ -1076,23 +1076,19 @@ CPed::PedSetDraggedOutCarCB(CAnimBlendAssociation *dragAssoc, void *arg)
|
|||||||
ped->m_pSeekTarget = nil;
|
ped->m_pSeekTarget = nil;
|
||||||
vehicle = ped->m_pMyVehicle;
|
vehicle = ped->m_pMyVehicle;
|
||||||
|
|
||||||
if (ped->m_vehEnterType <= VEHICLE_ENTER_REAR_LEFT) {
|
switch (ped->m_vehEnterType) {
|
||||||
switch (ped->m_vehEnterType) {
|
case VEHICLE_ENTER_FRONT_RIGHT:
|
||||||
case VEHICLE_ENTER_FRONT_RIGHT:
|
vehicle->m_nGettingOutFlags &= ~GETTING_IN_OUT_FR;
|
||||||
vehicle->m_nGettingOutFlags &= ~GETTING_IN_OUT_FR;
|
break;
|
||||||
break;
|
case VEHICLE_ENTER_REAR_RIGHT:
|
||||||
case VEHICLE_ENTER_REAR_RIGHT:
|
vehicle->m_nGettingOutFlags &= ~GETTING_IN_OUT_RR;
|
||||||
vehicle->m_nGettingOutFlags &= ~GETTING_IN_OUT_RR;
|
break;
|
||||||
break;
|
case VEHICLE_ENTER_FRONT_LEFT:
|
||||||
case VEHICLE_ENTER_FRONT_LEFT:
|
vehicle->m_nGettingOutFlags &= ~GETTING_IN_OUT_FL;
|
||||||
vehicle->m_nGettingOutFlags &= ~GETTING_IN_OUT_FL;
|
break;
|
||||||
break;
|
case VEHICLE_ENTER_REAR_LEFT:
|
||||||
case VEHICLE_ENTER_REAR_LEFT:
|
vehicle->m_nGettingOutFlags &= ~GETTING_IN_OUT_RL;
|
||||||
vehicle->m_nGettingOutFlags &= ~GETTING_IN_OUT_RL;
|
break;
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vehicle->pDriver == ped) {
|
if (vehicle->pDriver == ped) {
|
||||||
@ -1431,7 +1427,7 @@ CPed::LineUpPedWithCar(PedLineUpPhase phase)
|
|||||||
m_fRotationCur = m_fRotationDest;
|
m_fRotationCur = m_fRotationDest;
|
||||||
} else {
|
} else {
|
||||||
float limitedAngle = CGeneral::LimitRadianAngle(m_fRotationDest);
|
float limitedAngle = CGeneral::LimitRadianAngle(m_fRotationDest);
|
||||||
float timeUntilStateChange = (m_nPedStateTimer - CTimer::GetTimeInMilliseconds()) * 0.0016666667f; // changing this to 0.002 causes wrong rotation
|
float timeUntilStateChange = (m_nPedStateTimer - CTimer::GetTimeInMilliseconds())/600.0f;
|
||||||
|
|
||||||
m_vecOffsetSeek.z = 0.0;
|
m_vecOffsetSeek.z = 0.0;
|
||||||
if (timeUntilStateChange <= 0.0f) {
|
if (timeUntilStateChange <= 0.0f) {
|
||||||
|
Loading…
Reference in New Issue
Block a user