CDrone: Death fixes

This commit is contained in:
Luke Street 2020-09-19 12:12:49 -04:00
parent 8e18904442
commit 995f3bb356
1 changed files with 7 additions and 7 deletions

View File

@ -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) {