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

This commit is contained in:
RD42 2024-08-07 19:05:28 +08:00
parent 3f5038c55e
commit 7653b3648e
2 changed files with 16 additions and 0 deletions

View File

@ -529,6 +529,21 @@ void CEntity::SetGravityProcessing(int iState)
//-----------------------------------------------------------
void CEntity::SetWaitingForCollision(int iState)
{
if(!m_pEntity) return;
if(m_pEntity->vtable == 0x863C40) return;
if(iState) {
m_pEntity->dwProcessingFlags |= 0x40000;
} else {
m_pEntity->dwProcessingFlags &= 0xFFFBFFFF;
Add();
}
}
//-----------------------------------------------------------
BOOL CEntity::IsStationary()
{
if (!IsAdded()) return FALSE; // movespeed vectors are invalid if its not added

View File

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