2024-02-07 23:40:39 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
//----------------------------------------------------------
|
|
|
|
|
|
|
|
class CEntity
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CEntity() {
|
|
|
|
memset(field_4, 0, sizeof(field_4));
|
|
|
|
};
|
|
|
|
virtual ~CEntity() {};
|
|
|
|
|
2024-02-10 22:48:48 +08:00
|
|
|
void GetMatrix(PMATRIX4X4 Matrix);
|
|
|
|
void SetMatrix(MATRIX4X4 Matrix);
|
2024-07-24 17:01:39 +08:00
|
|
|
void FUNC_1009EC80();
|
2024-02-18 22:43:14 +08:00
|
|
|
void GetMoveSpeedVector(PVECTOR Vector);
|
|
|
|
void SetMoveSpeedVector(VECTOR Vector);
|
2024-07-24 17:01:39 +08:00
|
|
|
void FUNC_1009ED40(float fX, float fY, float fZ); // unused
|
2024-02-19 21:10:50 +08:00
|
|
|
void GetTurnSpeedVector(PVECTOR Vector);
|
|
|
|
void SetTurnSpeedVector(VECTOR Vector);
|
2024-08-06 18:54:08 +08:00
|
|
|
void ApplyTurnSpeed(); // unused
|
2024-08-06 18:55:23 +08:00
|
|
|
float GetDistanceFromCentreOfMassToBaseOfModel(); // unused
|
2024-08-06 18:56:37 +08:00
|
|
|
void GetBoundCentre(PVECTOR Vector);
|
2024-08-06 18:57:57 +08:00
|
|
|
void GetBoundRect(PFRECT Rect); // unused
|
2024-02-27 21:25:04 +08:00
|
|
|
UINT GetModelIndex();
|
|
|
|
void TeleportTo(float x, float y, float z);
|
2024-08-07 19:01:32 +08:00
|
|
|
float GetDistanceFromLocalPlayerPed();
|
2024-08-07 19:02:25 +08:00
|
|
|
float GetDistanceFromCamera();
|
2024-08-07 19:03:03 +08:00
|
|
|
float Get2DDistanceFromLocalPlayerPed(); // unused
|
2024-02-27 21:25:04 +08:00
|
|
|
|
2024-08-06 19:03:32 +08:00
|
|
|
float GetDistanceFromPoint(float X, float Y, float Z);
|
2024-08-07 18:50:46 +08:00
|
|
|
BOOL IsStationary();
|
2024-02-16 22:27:57 +08:00
|
|
|
|
2024-08-07 18:54:50 +08:00
|
|
|
BOOL EnforceWorldBoundries(float fPX, float fZX, float fPY, float fNY);
|
2024-08-07 18:56:03 +08:00
|
|
|
BOOL HasExceededWorldBoundries(float fPX, float fZX, float fPY, float fNY);
|
2024-08-07 18:54:50 +08:00
|
|
|
|
2024-08-07 19:03:47 +08:00
|
|
|
void SetCollisionChecking(int iCheck);
|
2024-08-07 19:04:19 +08:00
|
|
|
BOOL IsCollisionCheckingEnabled();
|
2024-08-07 19:04:51 +08:00
|
|
|
void SetGravityProcessing(int iState);
|
2024-08-07 19:05:28 +08:00
|
|
|
void SetWaitingForCollision(int iState);
|
2024-08-07 19:06:05 +08:00
|
|
|
void DisableStreaming();
|
2024-08-06 19:06:50 +08:00
|
|
|
virtual void Add();
|
2024-08-06 19:08:47 +08:00
|
|
|
virtual void Remove();
|
2024-08-06 19:05:29 +08:00
|
|
|
BOOL IsAdded();
|
|
|
|
|
2024-02-18 22:44:02 +08:00
|
|
|
VECTOR field_4[5];
|
2024-02-10 22:48:48 +08:00
|
|
|
ENTITY_TYPE *m_pEntity;
|
2024-02-15 22:23:36 +08:00
|
|
|
DWORD m_dwGTAId;
|
2024-02-07 23:40:39 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
//----------------------------------------------------------
|