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

This commit is contained in:
RD42 2024-08-07 19:08:55 +08:00
parent 9c46d72f9e
commit 98ef9925ce
2 changed files with 31 additions and 0 deletions

View File

@ -562,6 +562,35 @@ void CEntity::EnableTunnelTransition()
m_pEntity->dwProcessingFlags |= 0x80000000;
}
//-----------------------------------------------------------
void CEntity::SetApplySpeed(int iState)
{
if(!m_pEntity) return;
if(m_pEntity->vtable == 0x863C40) return;
DWORD dwEnt = (DWORD)m_pEntity;
if(!iState) {
_asm mov edx, dwEnt
_asm mov eax, [edx+0x40]
_asm or ah, 0x20
_asm mov [edx+0x40], eax
} else {
_asm mov edx, dwEnt
_asm mov eax, [edx+0x40]
_asm and ah, 0xDF
_asm mov [edx+0x40], eax
}
}
//-----------------------------------------------------------
//-----------------------------------------------------------
BOOL CEntity::IsStationary()

View File

@ -41,6 +41,8 @@ public:
void SetWaitingForCollision(int iState);
void DisableStreaming();
void EnableTunnelTransition();
void SetApplySpeed(int iState);
virtual void Add();
virtual void Remove();
BOOL IsAdded();