diff options
author | aap <aap@papnet.eu> | 2020-06-03 16:55:23 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-06-03 16:55:23 +0200 |
commit | e1201fc6e2756fe85083be009f87e79eb3f484d2 (patch) | |
tree | 0bf277f2b075bdcc4ea2c9d70f5c8c0e0e0bf6d5 | |
parent | Merge pull request #614 from erorcun/miami (diff) | |
download | re3-e1201fc6e2756fe85083be009f87e79eb3f484d2.tar re3-e1201fc6e2756fe85083be009f87e79eb3f484d2.tar.gz re3-e1201fc6e2756fe85083be009f87e79eb3f484d2.tar.bz2 re3-e1201fc6e2756fe85083be009f87e79eb3f484d2.tar.lz re3-e1201fc6e2756fe85083be009f87e79eb3f484d2.tar.xz re3-e1201fc6e2756fe85083be009f87e79eb3f484d2.tar.zst re3-e1201fc6e2756fe85083be009f87e79eb3f484d2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/Ped.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 61e52a0d..a48fc426 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -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(); } |