mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
Implement CPatterned::KnockBack
This commit is contained in:
@@ -333,4 +333,21 @@ bool CBodyController::HasIceBreakoutState() const
|
||||
return best.first > 0.f;
|
||||
}
|
||||
|
||||
void CBodyController::StopElectrocution()
|
||||
{
|
||||
x324_electrocutionDur = 0.f;
|
||||
x32c_timeElectrocuting = 0.f;
|
||||
x4_cmdMgr.DeliverCmd(CBodyStateCmd(EBodyStateCmd::StopReaction));
|
||||
}
|
||||
|
||||
void CBodyController::FrozenBreakout()
|
||||
{
|
||||
if (x300_26_frozen)
|
||||
{
|
||||
float timeToBreakout = x304_intoFreezeDur + x308_frozenDur;
|
||||
if (x310_timeFrozen < timeToBreakout)
|
||||
x310_timeFrozen = timeToBreakout;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user