mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match CEntity::SetClumpAlpha(...)
This commit is contained in:
parent
dc0f63e824
commit
0339744fdf
@ -595,6 +595,25 @@ void CEntity::MakeNonCollidable()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CEntity::SetClumpAlpha(int iAlpha)
|
||||
{
|
||||
if(!m_pEntity || !m_pEntity->pdwRenderWare || m_pEntity->vtable == 0x863C40)
|
||||
return;
|
||||
|
||||
DWORD dwEntity = (DWORD)m_pEntity;
|
||||
|
||||
_asm mov eax, dwEntity
|
||||
_asm mov edx, [eax+24]
|
||||
_asm push iAlpha
|
||||
_asm push edx
|
||||
_asm mov eax, 0x732B00
|
||||
_asm call eax
|
||||
_asm pop edx
|
||||
_asm pop edx
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "game.h"
|
||||
|
||||
//----------------------------------------------------------
|
||||
|
||||
class CEntity
|
||||
@ -43,6 +45,7 @@ public:
|
||||
void EnableTunnelTransition();
|
||||
void SetApplySpeed(int iState);
|
||||
void MakeNonCollidable();
|
||||
void SetClumpAlpha(int iAlpha);
|
||||
|
||||
virtual void Add();
|
||||
virtual void Remove();
|
||||
|
Loading…
Reference in New Issue
Block a user