From 70c3ee44a4d7e874532bb2e71610898949376f7e Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 19:58:21 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Effects/SpriteParticle.cpp Batch #6197 by eAthena: 1 byte-identical, 1 confirmed by peer review. - fn_18861 CSpriteParticle::CSpriteParticle: logic confirmed by peer review - fn_18863 CSpriteParticle::Reset: byte-identical Peer-reviewed-by: ragnarok-clanker, gordaoprogramas, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/SpriteParticle.cpp | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Source/Contents/Effects/SpriteParticle.cpp b/Source/Contents/Effects/SpriteParticle.cpp index f11e3623..8c7c98a6 100644 --- a/Source/Contents/Effects/SpriteParticle.cpp +++ b/Source/Contents/Effects/SpriteParticle.cpp @@ -27,6 +27,34 @@ static __forceinline float ToRadians(float degrees) { return (degrees / 180.0f) * 3.141592f; } +// OFFSET: 0x00B40B60 +// FUNCTION: fn_18861 +CSpriteParticle::CSpriteParticle(vector3d position, int flags) + : CParticle(position, flags), unknown_02BC(0), unknown_02BD(0), velocity(), sprite(nullptr), action(nullptr) { + this->Reset(); +} + +// OFFSET: 0x00B40D90 +// FUNCTION: fn_18863 +void CSpriteParticle::Reset() { + CParticle::Reset(); + this->sprite = nullptr; + this->action = nullptr; + this->frameDelay = 0; + this->unknown_02D4 = 0; + this->velocity.x = 0; + this->velocity.y = 0; + this->velocity.z = 0; + this->animation = 0; + this->frame = 0; + this->loopMode = 0; + this->unknown_02BC = 0; + this->unknown_02BD = 0; + this->unknown_02C0 = 0; + this->unknown_02C4 = 0; + this->unknown_02F4 = 0; +} + // OFFSET: 0x00B40E30 // FUNCTION: fn_18864 void CSpriteParticle::UpdateFrame() {