diff --git a/saco/game/entity.cpp b/saco/game/entity.cpp index 13c3fe1..5aded85 100644 --- a/saco/game/entity.cpp +++ b/saco/game/entity.cpp @@ -515,6 +515,20 @@ BOOL CEntity::IsCollisionCheckingEnabled() //----------------------------------------------------------- +void CEntity::SetGravityProcessing(int iState) +{ + if(!m_pEntity) return; + if(m_pEntity->vtable == 0x863C40) return; + + if(iState) { + m_pEntity->dwProcessingFlags &= 0x7FFFFFFD; + } else { + m_pEntity->dwProcessingFlags |= 0x80000002; + } +} + +//----------------------------------------------------------- + BOOL CEntity::IsStationary() { if (!IsAdded()) return FALSE; // movespeed vectors are invalid if its not added diff --git a/saco/game/entity.h b/saco/game/entity.h index 0f0aaca..dc50de7 100644 --- a/saco/game/entity.h +++ b/saco/game/entity.h @@ -37,6 +37,7 @@ public: void SetCollisionChecking(int iCheck); BOOL IsCollisionCheckingEnabled(); + void SetGravityProcessing(int iState); virtual void Add(); virtual void Remove(); BOOL IsAdded();