mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-23 22:39:39 +00:00
[saco] Implement CEntity Set/GetTurnSpeedVector
This commit is contained in:
parent
73935d422a
commit
6d31d17632
@ -49,6 +49,7 @@ typedef struct _ENTITY_TYPE
|
||||
char _gap1C[40];
|
||||
|
||||
VECTOR vecMoveSpeed; // 68-80
|
||||
VECTOR vecTurnSpeed; // 80-92
|
||||
|
||||
} 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 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;
|
||||
|
Loading…
Reference in New Issue
Block a user