From dace31e6044bbe72ca4ef54758be65886d1acb91 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 00:32:07 +0000 Subject: [PATCH] Decompile 3 functions in Source/Contents/Effects/BindTrapEffect.cpp, Source/Contents/Effects/BindTrapEffect.h Batch #4023 by kyoshi: 0 byte-identical, 3 confirmed by peer review. - fn_06903 CBindTrapEffect::CBindTrapEffect: logic confirmed by peer review - fn_06906 CBindTrapEffect::AddParticle: logic confirmed by peer review - fn_06907 CBindTrapEffect::Close: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/BindTrapEffect.cpp | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Source/Contents/Effects/BindTrapEffect.cpp b/Source/Contents/Effects/BindTrapEffect.cpp index 2b203d3dc..921ef82bc 100644 --- a/Source/Contents/Effects/BindTrapEffect.cpp +++ b/Source/Contents/Effects/BindTrapEffect.cpp @@ -10,10 +10,41 @@ #include // OFFSET: 0x006FB2F0 +// FUNCTION: fn_06903 +CBindTrapEffect::CBindTrapEffect() : CEffect(-1), particles() { + this->unknown_002C = 8000; +} // OFFSET: 0x006FB4E0 +// FUNCTION: fn_06906 +void CBindTrapEffect::AddParticle(int index) { + CParticle* particle = CreateParticle(reinterpret_cast(this->position), 5); + if (!particle) { + return; + } + + particle->SetTexture("effect\\hero_011.tga"); + particle->unknown_0004 = this->id; + particle->unknown_000C = 0; + particle->unknown_0010 = 0; + particle->unknown_0008 = 1; + particle->alpha = 255; + particle->unknown_00C4 = 0; + particle->unknown_004C = 0; + particle->scale = static_cast(index) * 6.0f + 9.0f; + InitParticleQuad(particle->vertices); + this->particles.push_back(particle); +} // OFFSET: 0x006FB5B0 +// FUNCTION: fn_06907 +void CBindTrapEffect::Close() { + for (CParticle* particle : this->particles) { + FreeParticle(particle); + } + + this->particles.clear(); +} // OFFSET: 0x006FB5F0 // FUNCTION: fn_06908