2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 19:07:44 +00:00

Finish CParticleElectric

This commit is contained in:
Jack Andersen
2017-06-10 16:57:35 -10:00
parent 92122a9b31
commit f8f3bf407a
8 changed files with 826 additions and 119 deletions

View File

@@ -159,6 +159,25 @@ public:
void DestroyParticles();
void Reset() {}
FourCC Get4CharId() const { return FOURCC('SWHC'); }
void DoElectricWarmup()
{
for (int i=0 ; i<x15c_swooshes.size() ; ++i)
{
x1d0_26_disableUpdate = true;
Update(0.0);
}
}
void DoElectricCreate(const std::vector<zeus::CVector3f>& offsets)
{
int curIdx = x158_curParticle;
for (int i=0 ; i<x15c_swooshes.size() ; ++i)
{
curIdx = (curIdx + 1) % x15c_swooshes.size();
x15c_swooshes[curIdx].xc_translation = offsets[i];
}
}
};
}