mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CEntity::SetApplySpeed(...)
This commit is contained in:
parent
9c46d72f9e
commit
98ef9925ce
@ -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()
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user