mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement/match CEntity::SetWaitingForCollision(...)
This commit is contained in:
parent
3f5038c55e
commit
7653b3648e
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user