mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match CEntity::MakeNonCollidable()
This commit is contained in:
parent
51df0649e0
commit
dc0f63e824
@ -106,14 +106,18 @@ typedef struct _ENTITY_TYPE
|
|||||||
MATRIX4X4 *mat; // 20-24
|
MATRIX4X4 *mat; // 20-24
|
||||||
DWORD *pdwRenderWare; // 24-28
|
DWORD *pdwRenderWare; // 24-28
|
||||||
DWORD dwProcessingFlags; // 28-32
|
DWORD dwProcessingFlags; // 28-32
|
||||||
|
|
||||||
char _gap20[2];
|
char _gap20[2];
|
||||||
|
|
||||||
WORD nModelIndex; // 34-36
|
WORD nModelIndex; // 34-36
|
||||||
|
|
||||||
char _gap24[18];
|
char _gap24[18];
|
||||||
|
|
||||||
BYTE nControlFlags; // 54-55
|
BYTE nControlFlags; // 54-55
|
||||||
char _gap37[11];
|
|
||||||
BYTE byteImmunities; // 66-67
|
char _gap37[9];
|
||||||
BYTE byteUnkEntFlags; // 67-68
|
|
||||||
|
DWORD dwPhysFlags; // 64-68
|
||||||
VECTOR vecMoveSpeed; // 68-80
|
VECTOR vecMoveSpeed; // 68-80
|
||||||
VECTOR vecTurnSpeed; // 80-92
|
VECTOR vecTurnSpeed; // 80-92
|
||||||
|
|
||||||
@ -136,6 +140,7 @@ typedef struct _PED_TYPE
|
|||||||
|
|
||||||
PED_TASKS_TYPE *Tasks; // 1148-1152
|
PED_TASKS_TYPE *Tasks; // 1148-1152
|
||||||
DWORD dwPlayerInfoOffset; // 1152-1156
|
DWORD dwPlayerInfoOffset; // 1152-1156
|
||||||
|
|
||||||
char _gap484[124];
|
char _gap484[124];
|
||||||
|
|
||||||
DWORD dwActiveVision; // 1280-1284
|
DWORD dwActiveVision; // 1280-1284
|
||||||
|
@ -586,6 +586,15 @@ void CEntity::SetApplySpeed(int iState)
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
void CEntity::MakeNonCollidable()
|
||||||
|
{
|
||||||
|
if(m_pEntity) {
|
||||||
|
m_pEntity->dwPhysFlags &= 0xFFFFFFF7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ public:
|
|||||||
void DisableStreaming();
|
void DisableStreaming();
|
||||||
void EnableTunnelTransition();
|
void EnableTunnelTransition();
|
||||||
void SetApplySpeed(int iState);
|
void SetApplySpeed(int iState);
|
||||||
|
void MakeNonCollidable();
|
||||||
|
|
||||||
virtual void Add();
|
virtual void Add();
|
||||||
virtual void Remove();
|
virtual void Remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user