diff options
author | aap <aap@papnet.eu> | 2019-06-21 11:15:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-21 11:15:08 +0200 |
commit | 3271467976b30edb0eba2bb0d43d47c0a7f38c86 (patch) | |
tree | 54ce20b6dbdb56a0c7fff067b93ae00278782dc4 /src/entities/PedIK.h | |
parent | added some World defines (diff) | |
parent | Fix throwable weapons (diff) | |
download | re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar.gz re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar.bz2 re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar.lz re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar.xz re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.tar.zst re3-3271467976b30edb0eba2bb0d43d47c0a7f38c86.zip |
Diffstat (limited to 'src/entities/PedIK.h')
-rw-r--r-- | src/entities/PedIK.h | 14 |
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"); |