CPed continues, including some fixes

This commit is contained in:
eray orçunus
2019-07-21 00:29:58 +03:00
parent 4c6d247b2a
commit 936acedcf0
6 changed files with 507 additions and 28 deletions

View File

@ -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");