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).
This commit is contained in:
parent
49d55296fd
commit
dace31e604
1 changed files with 31 additions and 0 deletions
|
|
@ -10,10 +10,41 @@
|
|||
#include <cstring>
|
||||
|
||||
// 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<const vector3d*>(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<float>(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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue