mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 04:36:01 +08:00
[saco] Implement CEntity Set/GetTurnSpeedVector
This commit is contained in:
@ -49,6 +49,7 @@ typedef struct _ENTITY_TYPE
|
|||||||
char _gap1C[40];
|
char _gap1C[40];
|
||||||
|
|
||||||
VECTOR vecMoveSpeed; // 68-80
|
VECTOR vecMoveSpeed; // 68-80
|
||||||
|
VECTOR vecTurnSpeed; // 80-92
|
||||||
|
|
||||||
} ENTITY_TYPE;
|
} ENTITY_TYPE;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@ public:
|
|||||||
void GetMoveSpeedVector(PVECTOR Vector);
|
void GetMoveSpeedVector(PVECTOR Vector);
|
||||||
void SetMoveSpeedVector(VECTOR Vector);
|
void SetMoveSpeedVector(VECTOR Vector);
|
||||||
void sub_1009ED40(float fX, float fY, float fZ); // unused
|
void sub_1009ED40(float fX, float fY, float fZ); // unused
|
||||||
|
void GetTurnSpeedVector(PVECTOR Vector);
|
||||||
|
void SetTurnSpeedVector(VECTOR Vector);
|
||||||
|
|
||||||
VECTOR field_4[5];
|
VECTOR field_4[5];
|
||||||
ENTITY_TYPE *m_pEntity;
|
ENTITY_TYPE *m_pEntity;
|
||||||
|
Reference in New Issue
Block a user