[saco] Implement/match CWorld__ProcessAttachedEntities__PositionAttachedEntity_Hook

This commit is contained in:
ricardoofnl committed 2026-08-30 13:06:25 +07:00
1 parent 08c601b194
commit 6632d8ece4
3 files changed
+36 -2

No files matched your search

+32 -2
View File
@@ -1050,10 +1050,40 @@ NUDE CAutomobile__BreakTowLink_Hook()
//-----------------------------------------------------------
ENTITY_TYPE *_pAttachedEntity;
CEntity *_pAttachedObject;
DWORD _dwAttachedEntityEsp;
DWORD _dwAttachedEntityResult;
NUDE CWorld__ProcessAttachedEntities__PositionAttachedEntity_Hook()
{
// TODO: CWorld__ProcessAttachedEntities__PositionAttachedEntity_Hook
}
__asm
{
mov _dwAttachedEntityEsp, esp
mov _pAttachedEntity, ecx
pushad
// call original CEntity::PositionAttachedEntity
mov ecx, _pAttachedEntity
mov ebx, 0x546FF0
call ebx
mov _dwAttachedEntityResult, eax
}
if (pNetGame && pNetGame->GetObjectPool())
{
_pAttachedObject = pNetGame->GetObjectPool()->FUNC_100129D0(_pAttachedEntity);
if (_pAttachedObject) _pAttachedObject->FUNC_100A7E20();
}
__asm
{
popad
mov eax, _dwAttachedEntityResult
retn
}}
//-----------------------------------------------------------