From ddbda01200b361658c1dbde9c12f5eb65596bc42 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sun, 3 Nov 2024 23:29:33 +0800 Subject: [PATCH] [saco] Implement/match `CEntity::GetWorldBoundRadius()` --- saco/game/entity.cpp | 8 ++++++++ saco/game/entity.h | 1 + 2 files changed, 9 insertions(+) diff --git a/saco/game/entity.cpp b/saco/game/entity.cpp index 3d47a5b..919f379 100644 --- a/saco/game/entity.cpp +++ b/saco/game/entity.cpp @@ -614,6 +614,14 @@ void CEntity::SetClumpAlpha(int iAlpha) //----------------------------------------------------------- +DWORD CEntity::GetWorldBoundRadius() +{ + if(m_pEntity && m_pEntity->pdwRenderWare && m_pEntity->vtable != 0x863C40) + { + return m_pEntity->pdwRenderWare[14]; + } + return 0; +} diff --git a/saco/game/entity.h b/saco/game/entity.h index 293e53b..d3018e8 100644 --- a/saco/game/entity.h +++ b/saco/game/entity.h @@ -46,6 +46,7 @@ public: void SetApplySpeed(int iState); void MakeNonCollidable(); void SetClumpAlpha(int iAlpha); + DWORD GetWorldBoundRadius(); virtual void Add(); virtual void Remove();