diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-05-16 14:07:09 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-05-16 14:07:09 +0200 |
commit | 40ee29fb99cc82c720ece4eab0e06855a161d12a (patch) | |
tree | 4a345e53af2bd41fa11b869d3cb40fa220166652 /src/peds/Ped.h | |
parent | bla (diff) | |
download | re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar.gz re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar.bz2 re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar.lz re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar.xz re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.tar.zst re3-40ee29fb99cc82c720ece4eab0e06855a161d12a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/Ped.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h index f86f23d3..32557cb6 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -704,6 +704,7 @@ public: void RemoveWeaponAnims(int, float); void CreateDeadPedMoney(void); void CreateDeadPedWeaponPickups(void); +// void CreateDeadPedPickupCoors(float *x, float *y, float *z); void SetAttackTimer(uint32); void SetBeingDraggedFromCar(CVehicle*, uint32, bool); void SetRadioStation(void); @@ -899,7 +900,7 @@ public: if (m_nPedType == PEDTYPE_COP && !!weapon->m_bCop3rd) return ANIM_WEAPON_FIRE_3RD; else - return weapon->m_bAnimDetonate ? ANIM_BOMBER : ANIM_WEAPON_FIRE; + return GetPrimaryFireAnim(weapon); } static AnimationId GetFireAnimGround(CWeaponInfo* weapon, bool kickFloorIfNone = true) { @@ -916,6 +917,17 @@ public: else return (AnimationId)0; } + + static AnimationId GetPrimaryFireAnim(CWeaponInfo* weapon) { + // TODO(Miami): Revert that when weapons got ported + if (weapon->m_AnimToPlay == ASSOCGRP_STD) + return ANIM_FIGHT_PPUNCH; + + if (weapon->m_bAnimDetonate) + return ANIM_BOMBER; + else + return ANIM_WEAPON_FIRE; + } // -- // My additions, because there were many, many instances of that. |