summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.h
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-12-02 12:35:06 +0100
committerGitHub <noreply@github.com>2020-12-02 12:35:06 +0100
commit774aa1570fc4985b1a713b5979ffe16719a991c0 (patch)
treecd49718c4ab2a9f3c899b7e6627055faa4b14406 /src/peds/Ped.h
parentcam lod dist fix (diff)
parentPlayerPed and "Redefine controls" menu done, fixes (diff)
downloadre3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar
re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar.gz
re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar.bz2
re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar.lz
re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar.xz
re3-774aa1570fc4985b1a713b5979ffe16719a991c0.tar.zst
re3-774aa1570fc4985b1a713b5979ffe16719a991c0.zip
Diffstat (limited to 'src/peds/Ped.h')
-rw-r--r--src/peds/Ped.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h
index c6c4fcee..2af6dccd 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -866,6 +866,7 @@ public:
void PositionAttachedPed();
bool CanUseTorsoWhenLooking();
void ScanForDelayedResponseThreats();
+ void SetWeaponLockOnTarget(CEntity*);
// Static methods
static CVector GetLocalPositionToOpenCarDoor(CVehicle *veh, uint32 component, float offset);
@@ -1067,6 +1068,13 @@ public:
else
return (AnimationId)0;
}
+
+ static AnimationId GetMeleeStartAnim(CWeaponInfo* weapon) {
+ if (!!weapon->m_bPartialAttack)
+ return ANIM_MELEE_ATTACK_START;
+ else
+ return (AnimationId)0;
+ }
// --
// My additions, because there were many, many instances of that.