mirror of https://github.com/AxioDL/metaforce.git
CChozoGhost: Add missing call to SetAnimationStateRange
This commit is contained in:
parent
eddaa24b1e
commit
8f56219900
|
@ -299,13 +299,15 @@ void CChozoGhost::DoUserAnimEvent(CStateManager& mgr, const CInt32POINode& node,
|
||||||
|
|
||||||
void CChozoGhost::KnockBack(const zeus::CVector3f& dir, CStateManager& mgr, const CDamageInfo& info,
|
void CChozoGhost::KnockBack(const zeus::CVector3f& dir, CStateManager& mgr, const CDamageInfo& info,
|
||||||
EKnockBackType type, bool inDeferred, float magnitude) {
|
EKnockBackType type, bool inDeferred, float magnitude) {
|
||||||
if (!IsAlive())
|
if (!IsAlive()) {
|
||||||
x460_knockBackController.SetAvailableState(EKnockBackAnimationState::Hurled, false);
|
x460_knockBackController.SetAvailableState(EKnockBackAnimationState::Hurled, false);
|
||||||
else if (!x460_knockBackController.TestAvailableState(EKnockBackAnimationState::KnockBack) &&
|
} else if (!x460_knockBackController.TestAvailableState(EKnockBackAnimationState::KnockBack) &&
|
||||||
info.GetWeaponMode().IsCharged())
|
info.GetWeaponMode().IsCharged()) {
|
||||||
x460_knockBackController.SetAnimationStateRange(EKnockBackAnimationState::Hurled, EKnockBackAnimationState::Fall);
|
x460_knockBackController.SetAnimationStateRange(EKnockBackAnimationState::Hurled, EKnockBackAnimationState::Fall);
|
||||||
|
}
|
||||||
|
|
||||||
CPatterned::KnockBack(dir, mgr, info, type, inDeferred, magnitude);
|
CPatterned::KnockBack(dir, mgr, info, type, inDeferred, magnitude);
|
||||||
|
x460_knockBackController.SetAnimationStateRange(EKnockBackAnimationState::Flinch, EKnockBackAnimationState::Fall);
|
||||||
if (!IsAlive()) {
|
if (!IsAlive()) {
|
||||||
Stop();
|
Stop();
|
||||||
x150_momentum.zeroOut();
|
x150_momentum.zeroOut();
|
||||||
|
|
Loading…
Reference in New Issue