[fix] Troll Dead Fix
This commit is contained in:
@@ -73,8 +73,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
#endif //
|
||||
#ifdef 인혁
|
||||
m_isActiveEffectCreate = false;
|
||||
|
||||
@@ -160,11 +160,11 @@ void CTroll::Late_Update(_float fTimeDelta)
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
|
||||
}
|
||||
else {
|
||||
else if (true == m_pRigidBody->IsActive()) {
|
||||
m_pTransformCom->Set_WorldMatrix(m_pRigidBody->Get_Actor()->getGlobalPose());
|
||||
}
|
||||
|
||||
if (m_bLookAt) {
|
||||
if (true == m_bLookAt) {
|
||||
m_pTransformCom->LookAt_Lerp(XMLoadFloat4(&m_vTargetPos), fTimeDelta, 3.f);
|
||||
}
|
||||
|
||||
|
||||
@@ -846,6 +846,10 @@ void CTroll::Add_FSM()
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_DeadExit(); };
|
||||
Desc.funcLateUpdate = [this](_float fDeadRatio) {
|
||||
m_fDeadRatio = fDeadRatio;
|
||||
if (m_fDeadRatio > 1.f) {
|
||||
m_bDead = true;
|
||||
}
|
||||
};
|
||||
Desc.vDeadTimer.x = FLT_EPSILON5;
|
||||
Desc.vDeadTimer.y = 2.f;
|
||||
|
||||
Reference in New Issue
Block a user