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,14 +441,14 @@ 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) {
x450_bodyController->UnFreeze();
}
x400_25_alive = false;
SendScriptMsgs(state, mgr, EScriptObjectMessage::None);
} }
if (x450_bodyController->GetPercentageFrozen() > 0.f) {
x450_bodyController->UnFreeze();
}
x400_25_alive = false;
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,