mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[saco] Implement CEntity Set/GetMoveSpeedVector
This commit is contained in:
parent
ff4a8795f2
commit
17dcdb62f0
@ -45,6 +45,10 @@ typedef struct _ENTITY_TYPE
|
|||||||
MATRIX4X4 *mat; // 20-24
|
MATRIX4X4 *mat; // 20-24
|
||||||
DWORD *pdwRenderWare; // 24-28
|
DWORD *pdwRenderWare; // 24-28
|
||||||
|
|
||||||
|
char _gap1C[40];
|
||||||
|
|
||||||
|
VECTOR vecMoveSpeed; // 68-80
|
||||||
|
|
||||||
} ENTITY_TYPE;
|
} ENTITY_TYPE;
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
@ -77,3 +77,21 @@ void CEntity::sub_1009EC80()
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
void CEntity::GetMoveSpeedVector(PVECTOR Vector)
|
||||||
|
{
|
||||||
|
Vector->X = m_pEntity->vecMoveSpeed.X;
|
||||||
|
Vector->Y = m_pEntity->vecMoveSpeed.Y;
|
||||||
|
Vector->Z = m_pEntity->vecMoveSpeed.Z;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
void CEntity::SetMoveSpeedVector(VECTOR Vector)
|
||||||
|
{
|
||||||
|
m_pEntity->vecMoveSpeed.X = Vector.X;
|
||||||
|
m_pEntity->vecMoveSpeed.Y = Vector.Y;
|
||||||
|
m_pEntity->vecMoveSpeed.Z = Vector.Z;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@ public:
|
|||||||
void GetMatrix(PMATRIX4X4 Matrix);
|
void GetMatrix(PMATRIX4X4 Matrix);
|
||||||
void SetMatrix(MATRIX4X4 Matrix);
|
void SetMatrix(MATRIX4X4 Matrix);
|
||||||
void sub_1009EC80();
|
void sub_1009EC80();
|
||||||
|
void GetMoveSpeedVector(PVECTOR Vector);
|
||||||
|
void SetMoveSpeedVector(VECTOR Vector);
|
||||||
|
|
||||||
char field_4[60];
|
char field_4[60];
|
||||||
ENTITY_TYPE *m_pEntity;
|
ENTITY_TYPE *m_pEntity;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user