From 7cfff963f792d37692c7c5355bffbe776dcd3639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Thu, 20 Jun 2019 14:22:44 +0300 Subject: Big CPed update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: eray orçunus --- src/entities/PedIK.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/entities/PedIK.h') diff --git a/src/entities/PedIK.h b/src/entities/PedIK.h index 266372c4..68e4014a 100644 --- a/src/entities/PedIK.h +++ b/src/entities/PedIK.h @@ -1,5 +1,6 @@ #pragma once #include "common.h" +#include "PedModelInfo.h" struct LimbOrientation { @@ -14,20 +15,21 @@ class CPedIK public: // TODO enum { - FLAG_1, - FLAG_2, - FLAG_4, // aims with arm + FLAG_1 = 1, + FLAG_2 = 2, // related to looking somewhere + FLAG_4 = 4, // aims with arm }; - CPed* m_ped; + CPed *m_ped; LimbOrientation m_headOrient; LimbOrientation m_torsoOrient; LimbOrientation m_upperArmOrient; LimbOrientation m_lowerArmOrient; int32 m_flags; - void GetComponentPosition(RwV3d* pos, int id); bool PointGunInDirection(float phi, float theta); - bool PointGunAtPosition(CVector* position); + bool PointGunAtPosition(CVector *position); + void GetComponentPosition(RwV3d *pos, PedNode node); + static RwMatrix *GetWorldMatrix(RwFrame *source, RwMatrix *destination); }; static_assert(sizeof(CPedIK) == 0x28, "CPedIK: error"); -- cgit v1.2.3