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