mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
More bug fixes
This commit is contained in:
@@ -212,18 +212,17 @@ void CScriptDamageableTrigger::Think(float dt, CStateManager& mgr)
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (x16c_hInfo.GetHP() <= 0.f && x30_24_active)
|
||||
{
|
||||
if (x16c_hInfo.GetHP() <= 0.f && x30_24_active)
|
||||
{
|
||||
SendScriptMsgs(EScriptObjectState::Dead, mgr, EScriptObjectMessage::None);
|
||||
RemoveMaterial(EMaterialTypes::Orbit, mgr);
|
||||
x300_25_alphaOut = true;
|
||||
x250_alphaTimer = 0.f;
|
||||
}
|
||||
if (x250_alphaTimer <= 0.75f)
|
||||
x250_alphaTimer += dt;
|
||||
SendScriptMsgs(EScriptObjectState::Dead, mgr, EScriptObjectMessage::None);
|
||||
RemoveMaterial(EMaterialTypes::Orbit, mgr);
|
||||
x300_25_alphaOut = true;
|
||||
x250_alphaTimer = 0.f;
|
||||
}
|
||||
|
||||
if (x250_alphaTimer <= 0.75f)
|
||||
x250_alphaTimer += dt;
|
||||
|
||||
float objAlpha = GetPuddleAlphaScale();
|
||||
x1e0_alpha = 0.2f * objAlpha;
|
||||
SetLinkedObjectAlpha(objAlpha, mgr);
|
||||
|
||||
Reference in New Issue
Block a user