[saco] Implement/match CEntity::MakeNonCollidable()

This commit is contained in:
RD42 2024-11-03 23:27:15 +08:00
parent 51df0649e0
commit dc0f63e824
3 changed files with 18 additions and 3 deletions

View File

@ -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

View File

@ -586,6 +586,15 @@ void CEntity::SetApplySpeed(int iState)
//----------------------------------------------------------- //-----------------------------------------------------------
void CEntity::MakeNonCollidable()
{
if(m_pEntity) {
m_pEntity->dwPhysFlags &= 0xFFFFFFF7;
}
}
//-----------------------------------------------------------

View File

@ -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();