diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-07-20 23:29:58 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-07-20 23:32:16 +0200 |
commit | 936acedcf045208afca770082771dd7e52d0c235 (patch) | |
tree | ef52d8a5888e1b922b6a0e354eb3a4337568d7f7 /src/peds/PedIK.h | |
parent | Merge pull request #158 from Nick007J/master (diff) | |
download | re3-936acedcf045208afca770082771dd7e52d0c235.tar re3-936acedcf045208afca770082771dd7e52d0c235.tar.gz re3-936acedcf045208afca770082771dd7e52d0c235.tar.bz2 re3-936acedcf045208afca770082771dd7e52d0c235.tar.lz re3-936acedcf045208afca770082771dd7e52d0c235.tar.xz re3-936acedcf045208afca770082771dd7e52d0c235.tar.zst re3-936acedcf045208afca770082771dd7e52d0c235.zip |
Diffstat (limited to '')
-rw-r--r-- | src/peds/PedIK.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/peds/PedIK.h b/src/peds/PedIK.h index e17d52eb..5f321280 100644 --- a/src/peds/PedIK.h +++ b/src/peds/PedIK.h @@ -9,6 +9,15 @@ struct LimbOrientation float theta; }; +struct LimbMovementInfo { + float maxYaw; + float minYaw; + float yawD; + float maxPitch; + float minPitch; + float pitchD; +}; + class CPed; class CPedIK @@ -28,6 +37,8 @@ public: LimbOrientation m_lowerArmOrient; int32 m_flags; + static LimbMovementInfo &ms_torsoInfo; + CPedIK(CPed *ped); bool PointGunInDirection(float phi, float theta); bool PointGunAtPosition(CVector *position); @@ -36,5 +47,7 @@ public: void RotateTorso(AnimBlendFrameData* animBlend, LimbOrientation* limb, bool changeRoll); void ExtractYawAndPitchLocal(RwMatrixTag*, float*, float*); void ExtractYawAndPitchWorld(RwMatrixTag*, float*, float*); + int8 MoveLimb(LimbOrientation &a1, float a2, float a3, LimbMovementInfo &a4); + bool RestoreGunPosn(void); }; static_assert(sizeof(CPedIK) == 0x28, "CPedIK: error"); |