[saco] Implement/match CEntity::SetGravityProcessing(...)

This commit is contained in:
RD42 2024-08-07 19:04:51 +08:00
parent 4000169a88
commit 3f5038c55e
2 changed files with 15 additions and 0 deletions

View File

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

View File

@ -37,6 +37,7 @@ public:
void SetCollisionChecking(int iCheck);
BOOL IsCollisionCheckingEnabled();
void SetGravityProcessing(int iState);
virtual void Add();
virtual void Remove();
BOOL IsAdded();