From ac2249cef502b781b47d6e8bd043a6a4336feab7 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 23:26:33 +0000 Subject: [PATCH] Decompile fn_24284 (CGroundScope::Update) Batch #1905 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_24284 CGroundScope::Update: logic confirmed by peer review Reviewed-by: ragnarok-clanker Adds to the build: Source/Contents/Actors/GroundScope.cpp --- Source/Contents/Actors/GroundScope.cpp | 14 ++++++++++++++ Source/Contents/Actors/GroundScope.h | 20 ++++++++++++++++++++ data/compile.json | 1 + 3 files changed, 35 insertions(+) create mode 100644 Source/Contents/Actors/GroundScope.cpp create mode 100644 Source/Contents/Actors/GroundScope.h diff --git a/Source/Contents/Actors/GroundScope.cpp b/Source/Contents/Actors/GroundScope.cpp new file mode 100644 index 0000000..c284255 --- /dev/null +++ b/Source/Contents/Actors/GroundScope.cpp @@ -0,0 +1,14 @@ +#include "Contents/Actors/GroundScope.h" + +#include +#include + +// OFFSET: 0x00E4C2F0 +// FUNCTION: fn_24284 +bool CGroundScope::Update() { + if (this->m_lastingTime < timeGetTime()) { + return false; + } + + return true; +} diff --git a/Source/Contents/Actors/GroundScope.h b/Source/Contents/Actors/GroundScope.h new file mode 100644 index 0000000..8365eae --- /dev/null +++ b/Source/Contents/Actors/GroundScope.h @@ -0,0 +1,20 @@ +#ifndef RAGNAROK_SOURCE_CONTENTS_ACTORS_GROUNDSCOPE_H +#define RAGNAROK_SOURCE_CONTENTS_ACTORS_GROUNDSCOPE_H + +#include "Contents/Effects/EffectActor.h" + +#include + +class CGroundScope : public EffectActor { +public: + bool Update() override; + + /* 0158 */ unsigned char unknown_0158[0xC]; + /* 0164 */ unsigned long m_lastingTime; +}; + +#if defined(_WIN32) && !defined(_WIN64) +static_assert(offsetof(CGroundScope, m_lastingTime) == 0x164); +#endif + +#endif diff --git a/data/compile.json b/data/compile.json index 42062f2..76b3fc0 100644 --- a/data/compile.json +++ b/data/compile.json @@ -275,6 +275,7 @@ "Source/Contents/ActorNameRequests.cpp": 4, "Source/Contents/Actors/AttackMotion.cpp": 4, "Source/Contents/Actors/GameObject.cpp": 4, + "Source/Contents/Actors/GroundScope.cpp": 4, "Source/Contents/Actors/MercenaryAI.cpp": 4, "Source/Contents/Actors/Player.cpp": 4, "Source/Contents/Actors/RenderObject.cpp": 4,