mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 13:44:56 +00:00
Amuse API changes
This commit is contained in:
@@ -70,11 +70,11 @@ private:
|
||||
std::vector<zeus::CMatrix3f> x50_parentMatrices;
|
||||
std::vector<std::array<float, 8>> x60_advValues;
|
||||
|
||||
u32 x70_internalStartFrame = 0;
|
||||
u32 x74_curFrame = 0;
|
||||
int x70_internalStartFrame = 0;
|
||||
int x74_curFrame = 0;
|
||||
double x78_curSeconds = 0.f;
|
||||
float x80_timeDeltaScale;
|
||||
u32 x84_prevFrame = -1;
|
||||
int x84_prevFrame = -1;
|
||||
bool x88_particleEmission = true;
|
||||
float x8c_generatorRemainder = 0.f;
|
||||
int x90_MAXP = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@ bool CMVEImplosion::GetValue(int frame, zeus::CVector3f& pVel, zeus::CVector3f&
|
||||
float d;
|
||||
x10_minMag->GetValue(frame, d);
|
||||
if (x14_enableMinMag && dvm < d)
|
||||
return false;
|
||||
return true;
|
||||
|
||||
if (0.f == dvm)
|
||||
return false;
|
||||
@@ -51,7 +51,7 @@ bool CMVEExponentialImplosion::GetValue(int frame, zeus::CVector3f& pVel, zeus::
|
||||
float d;
|
||||
x10_minMag->GetValue(frame, d);
|
||||
if (x14_enableMinMag && dvm < d)
|
||||
return false;
|
||||
return true;
|
||||
|
||||
if (0.f == dvm)
|
||||
return false;
|
||||
@@ -78,7 +78,7 @@ bool CMVELinearImplosion::GetValue(int frame, zeus::CVector3f& pVel, zeus::CVect
|
||||
float d;
|
||||
x10_minMag->GetValue(frame, d);
|
||||
if (x14_enableMinMag && dvm < d)
|
||||
return false;
|
||||
return true;
|
||||
|
||||
if (0.f == dvm)
|
||||
return false;
|
||||
|
||||
@@ -37,8 +37,9 @@ public:
|
||||
{
|
||||
float lt = g_ParticleLifetime != 0.0f ? g_ParticleLifetime : 1.0f;
|
||||
g_ParticleLifetimePercentageReal = 100.0f * frame / lt;
|
||||
g_ParticleLifetimePercentage = g_ParticleLifetimePercentageReal;
|
||||
g_ParticleLifetimePercentage = int(g_ParticleLifetimePercentageReal);
|
||||
g_ParticleLifetimePercentageRemainder = g_ParticleLifetimePercentageReal - g_ParticleLifetimePercentage;
|
||||
g_ParticleLifetimePercentage = zeus::clamp(0, g_ParticleLifetimePercentage, 100);
|
||||
}
|
||||
|
||||
static const std::array<float, 8>* g_particleAccessParameters;
|
||||
|
||||
Reference in New Issue
Block a user