mirror of https://github.com/AxioDL/metaforce.git
CDrone: Death fixes
This commit is contained in:
parent
8e18904442
commit
995f3bb356
|
@ -441,6 +441,7 @@ void CDrone::Death(CStateManager& mgr, const zeus::CVector3f& direction, EScript
|
||||||
SetTransform(zeus::lookAt(GetTranslation(), GetTranslation() - direction) *
|
SetTransform(zeus::lookAt(GetTranslation(), GetTranslation() - direction) *
|
||||||
zeus::CTransform::RotateX(zeus::degToRad(45.f)));
|
zeus::CTransform::RotateX(zeus::degToRad(45.f)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (x450_bodyController->GetPercentageFrozen() > 0.f) {
|
if (x450_bodyController->GetPercentageFrozen() > 0.f) {
|
||||||
x450_bodyController->UnFreeze();
|
x450_bodyController->UnFreeze();
|
||||||
|
@ -449,7 +450,6 @@ void CDrone::Death(CStateManager& mgr, const zeus::CVector3f& direction, EScript
|
||||||
x400_25_alive = false;
|
x400_25_alive = false;
|
||||||
SendScriptMsgs(state, mgr, EScriptObjectMessage::None);
|
SendScriptMsgs(state, mgr, EScriptObjectMessage::None);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void CDrone::KnockBack(const zeus::CVector3f& backVec, CStateManager& mgr, const CDamageInfo& info, EKnockBackType type,
|
void CDrone::KnockBack(const zeus::CVector3f& backVec, CStateManager& mgr, const CDamageInfo& info, EKnockBackType type,
|
||||||
bool inDeferred, float magnitude) {
|
bool inDeferred, float magnitude) {
|
||||||
|
|
Loading…
Reference in New Issue