[saco] Implement CEntity Set/GetTurnSpeedVector

This commit is contained in:
RD42 2024-02-19 21:10:50 +08:00
parent 73935d422a
commit 6d31d17632
3 changed files with 20 additions and 0 deletions

View File

@ -49,6 +49,7 @@ typedef struct _ENTITY_TYPE
char _gap1C[40];
VECTOR vecMoveSpeed; // 68-80
VECTOR vecTurnSpeed; // 80-92
} ENTITY_TYPE;

View File

@ -119,3 +119,20 @@ void CEntity::sub_1009ED40(float fX, float fY, float fZ)
//-----------------------------------------------------------
void CEntity::GetTurnSpeedVector(PVECTOR Vector)
{
Vector->X = m_pEntity->vecTurnSpeed.X;
Vector->Y = m_pEntity->vecTurnSpeed.Y;
Vector->Z = m_pEntity->vecTurnSpeed.Z;
}
//-----------------------------------------------------------
void CEntity::SetTurnSpeedVector(VECTOR Vector)
{
m_pEntity->vecTurnSpeed.X = Vector.X;
m_pEntity->vecTurnSpeed.Y = Vector.Y;
m_pEntity->vecTurnSpeed.Z = Vector.Z;
}
//-----------------------------------------------------------

View File

@ -17,6 +17,8 @@ public:
void GetMoveSpeedVector(PVECTOR Vector);
void SetMoveSpeedVector(VECTOR Vector);
void sub_1009ED40(float fX, float fY, float fZ); // unused
void GetTurnSpeedVector(PVECTOR Vector);
void SetTurnSpeedVector(VECTOR Vector);
VECTOR field_4[5];
ENTITY_TYPE *m_pEntity;