1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-24 02:10:01 +00:00

fixed CPed::AddInCarAnims

This commit is contained in:
aap 2020-06-03 16:55:23 +02:00
parent 1e2b087601
commit e1201fc6e2

View file

@ -18606,15 +18606,12 @@ CPed::ClearFollowPath()
void
CPed::AddInCarAnims(CVehicle* car, bool isDriver)
{
AnimationId anim;
AssocGroupId group;
if (car->IsBoat()) {
if (car->pHandling->Flags & HANDLING_SIT_IN_BOAT) {
anim = ANIM_CAR_SIT;
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_CAR_SIT, 100.0f);
} else {
anim = ANIM_DRIVE_BOAT;
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_DRIVE_BOAT, 100.0f);
}
group = ASSOCGRP_STD;
} else if (car->IsBike()) {
if (isDriver) {
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ((CBike*)car)->m_bikeAnimType, ANIM_BIKE_RIDE, 100.0f);
@ -18626,20 +18623,18 @@ CPed::AddInCarAnims(CVehicle* car, bool isDriver)
} else {
if (isDriver) {
if (car->bLowVehicle) {
anim = ANIM_CAR_LSIT;
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_CAR_LSIT, 100.0f);
} else {
anim = ANIM_CAR_SIT;
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_CAR_SIT, 100.0f);
}
} else {
if (car->bLowVehicle) {
anim = ANIM_CAR_SITPLO;
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_CAR_SITPLO, 100.0f);
} else {
anim = ANIM_CAR_SITP;
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_CAR_SITP, 100.0f);
}
}
group = ASSOCGRP_STD;
}
m_pVehicleAnim = CAnimManager::BlendAnimation(GetClump(), group, anim, 100.0f);
StopNonPartialAnims();
}