Batch #4453 by eAthena: 0 byte-identical, 3 confirmed by peer review. - fn_06890 CAnimatedEmitterEffect::Slot01: logic confirmed by peer review - fn_06891 CAnimatedEmitterEffect::InitParticle: logic confirmed by peer review - fn_06892 CAnimatedEmitterEffect::UpdateParticle: logic confirmed by peer review Peer-reviewed-by: willerthal, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). Adds to the build: Source/Contents/Effects/AnimatedEmitterEffect.cpp
35 lines
1.4 KiB
C++
35 lines
1.4 KiB
C++
#include "Contents/Effects/AnimatedEmitterEffect.h"
|
|
|
|
#include "Contents/Effects/Particle.h"
|
|
|
|
#include <cstdlib>
|
|
|
|
// OFFSET: 0x006FA0F0
|
|
// FUNCTION: fn_06890
|
|
void CAnimatedEmitterEffect::Slot01() {
|
|
this->frames[0].push_back(std::string("EFFECT\\shockwave_a.bmp"));
|
|
this->frames[0].push_back(std::string("EFFECT\\shockwave_b.bmp"));
|
|
this->frames[0].push_back(std::string("EFFECT\\shockwave_c.bmp"));
|
|
this->frames[0].push_back(std::string("EFFECT\\shockwave_d.bmp"));
|
|
this->frames[0].push_back(std::string("EFFECT\\shockwave_e.bmp"));
|
|
this->frames[1].push_back(std::string("EFFECT\\plazma_a.bmp"));
|
|
this->frames[1].push_back(std::string("EFFECT\\plazma_b.bmp"));
|
|
this->frames[1].push_back(std::string("EFFECT\\plazma_c.bmp"));
|
|
this->frames[1].push_back(std::string("EFFECT\\plazma_a.bmp"));
|
|
this->frames[1].push_back(std::string("EFFECT\\plazma_b.bmp"));
|
|
CEmitterEffect::Slot01();
|
|
}
|
|
|
|
// OFFSET: 0x006FA7C0
|
|
// FUNCTION: fn_06891
|
|
void CAnimatedEmitterEffect::InitParticle(CParticle* particle) {
|
|
particle->unknown_0054 = static_cast<float>(rand() % 2);
|
|
CEmitterEffect::InitParticle(particle);
|
|
}
|
|
|
|
// OFFSET: 0x006FA800
|
|
// FUNCTION: fn_06892
|
|
void CAnimatedEmitterEffect::UpdateParticle(CParticle* particle) {
|
|
particle->SetTexture(this->frames[static_cast<int>(particle->unknown_0054)][particle->unknown_00E8 / 8 % 5]);
|
|
CEmitterEffect::UpdateParticle(particle);
|
|
}
|