mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CEntity::SetGravityProcessing(...)
This commit is contained in:
parent
4000169a88
commit
3f5038c55e
@ -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
|
||||
|
@ -37,6 +37,7 @@ public:
|
||||
|
||||
void SetCollisionChecking(int iCheck);
|
||||
BOOL IsCollisionCheckingEnabled();
|
||||
void SetGravityProcessing(int iState);
|
||||
virtual void Add();
|
||||
virtual void Remove();
|
||||
BOOL IsAdded();
|
||||
|
Loading…
Reference in New Issue
Block a user