diff --git a/saco/game/entity.cpp b/saco/game/entity.cpp index f97f686..7231fb1 100644 --- a/saco/game/entity.cpp +++ b/saco/game/entity.cpp @@ -490,7 +490,19 @@ BOOL CEntity::HasExceededWorldBoundries(float fPX, float fZX, float fPY, float f //----------------------------------------------------------- +void CEntity::SetCollisionChecking(int iCheck) +{ + if(!m_pEntity) return; + if(m_pEntity->vtable == 0x863C40) return; + + if(iCheck) { + m_pEntity->dwProcessingFlags |= 1; + } else { + m_pEntity->dwProcessingFlags &= 0xFFFFFFFE; + } +} +//----------------------------------------------------------- //----------------------------------------------------------- diff --git a/saco/game/entity.h b/saco/game/entity.h index f4f0ec9..5652954 100644 --- a/saco/game/entity.h +++ b/saco/game/entity.h @@ -35,6 +35,7 @@ public: BOOL EnforceWorldBoundries(float fPX, float fZX, float fPY, float fNY); BOOL HasExceededWorldBoundries(float fPX, float fZX, float fPY, float fNY); + void SetCollisionChecking(int iCheck); virtual void Add(); virtual void Remove(); BOOL IsAdded();