[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

+2
View File
@@ -49,6 +49,8 @@ public:
DWORD GetWorldBoundRadius();
void SetEulerAngles(float fX, float fY, float fZ);
void FUNC_100A7E20(); // .text:100A7E20
virtual void Add();
virtual void Remove();
BOOL IsAdded();
+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
}}
//-----------------------------------------------------------
+2
View File
@@ -8,6 +8,8 @@ private:
int field_4[MAX_OBJECTS];
int field_FA4[MAX_OBJECTS];
public:
CEntity * FUNC_100129D0(ENTITY_TYPE *pEntity); // .text:100129D0
CObjectPool();
void FUNC_10012B90(); // .text:10012B90