diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-05-17 23:26:44 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-05-17 23:27:04 +0200 |
commit | 96151ec0f09d25d8bffe6a1f46c9c20610469e56 (patch) | |
tree | 6e6c8aa75a935aef0a3214ddc0a741c9716fe86e /src | |
parent | just in case (diff) | |
download | re3-96151ec0f09d25d8bffe6a1f46c9c20610469e56.tar re3-96151ec0f09d25d8bffe6a1f46c9c20610469e56.tar.gz re3-96151ec0f09d25d8bffe6a1f46c9c20610469e56.tar.bz2 re3-96151ec0f09d25d8bffe6a1f46c9c20610469e56.tar.lz re3-96151ec0f09d25d8bffe6a1f46c9c20610469e56.tar.xz re3-96151ec0f09d25d8bffe6a1f46c9c20610469e56.tar.zst re3-96151ec0f09d25d8bffe6a1f46c9c20610469e56.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/peds/Ped.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 6514dda5..0eb85f34 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -2677,6 +2677,7 @@ CPed::SetPedStats(ePedStats pedStat) m_pedStats = CPedStats::ms_apPedStats[pedStat]; } +// --MIAMI: Done void CPed::SetModelIndex(uint32 mi) { @@ -2689,12 +2690,24 @@ CPed::SetModelIndex(uint32 mi) m_animGroup = (AssocGroupId) modelInfo->m_animGroup; CAnimManager::AddAnimation(GetClump(), m_animGroup, ANIM_IDLE_STANCE); + // TODO(Miami): This is something inlined for sure + bool canUseMyBody = false; + if (m_nPedState != PED_DRIVING && m_nPedState != PED_DRAG_FROM_CAR && !bIsDucking) { + if (m_animGroup != ASSOCGRP_SEXYWOMAN && m_animGroup != ASSOCGRP_WOMAN) + canUseMyBody = true; + } + if (!canUseMyBody) + m_pedIK.m_flags |= CPedIK::LOOKAROUND_HEAD_ONLY; + // This is a mistake by R*, velocity is CVector, whereas m_vecAnimMoveDelta is CVector2D. (*RPANIMBLENDCLUMPDATA(m_rwObject))->velocity = (CVector*) &m_vecAnimMoveDelta; #ifdef PED_SKIN if(modelInfo->GetHitColModel() == nil) modelInfo->CreateHitColModelSkinned(GetClump()); + + if (IsClumpSkinned(GetClump())) // condition isn't there in VC + UpdateRpHAnim(); #endif } |