summaryrefslogtreecommitdiffstats
path: root/src/entities/PedIK.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-06-20 13:22:44 +0200
committereray orçunus <erayorcunus@gmail.com>2019-06-20 16:31:14 +0200
commit7cfff963f792d37692c7c5355bffbe776dcd3639 (patch)
tree56c846811df4b118fe3246db09b5848b451af297 /src/entities/PedIK.h
parentMerge pull request #25 from gennariarmando/master (diff)
downloadre3-7cfff963f792d37692c7c5355bffbe776dcd3639.tar
re3-7cfff963f792d37692c7c5355bffbe776dcd3639.tar.gz
re3-7cfff963f792d37692c7c5355bffbe776dcd3639.tar.bz2
re3-7cfff963f792d37692c7c5355bffbe776dcd3639.tar.lz
re3-7cfff963f792d37692c7c5355bffbe776dcd3639.tar.xz
re3-7cfff963f792d37692c7c5355bffbe776dcd3639.tar.zst
re3-7cfff963f792d37692c7c5355bffbe776dcd3639.zip
Diffstat (limited to '')
-rw-r--r--src/entities/PedIK.h14
1 files changed, 8 insertions, 6 deletions
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");