diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index c3d34fcb5..2b979e2aa 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -195,6 +195,7 @@ call Update_Resources.bat
+
@@ -457,6 +458,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 0c2e953a6..a89ce2d10 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -806,6 +806,9 @@
02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Charge
+
+ 04.Mechanic\State\Focus\Fear
+
@@ -1677,6 +1680,9 @@
{fd036f05-4c10-4322-b0c2-aac65e7011a1}
+
+ {99712e38-b76a-4c04-8ba3-16ddaac72679}
+
@@ -2430,6 +2436,9 @@
02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Charge
+
+ 04.Mechanic\State\Focus\Fear
+
diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
index f77bc4bcb..4b5808fdc 100644
--- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
@@ -405,55 +405,31 @@ HRESULT CBroomRaceManager::Load_RaceRing()
return S_OK;
}
- //for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
- //{
- // CRaceRing::RACERING_DESC Desc = {};
-
- // Desc.pBroomRaceManager = this;
-
- // /* Transform */
- // auto* Rotation = Object->FirstChildElement("Scale");
- // Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
- // Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
- // Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
-
- // auto* Scale = Object->FirstChildElement("Rotation");
- // Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
- // Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
- // Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
-
- // auto* Position = Object->FirstChildElement("Position");
- // Position->QueryFloatAttribute("x", &Desc.vPosition.x);
- // Position->QueryFloatAttribute("y", &Desc.vPosition.y);
- // Position->QueryFloatAttribute("z", &Desc.vPosition.z);
-
- // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RING, &Desc)))
- // return E_FAIL;
- //}
-
-
+ for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
+ {
CRaceRing::RACERING_DESC Desc = {};
- Desc.pBroomRaceManager = this;
+ Desc.pBroomRaceManager = this;
/* Transform */
- auto* Rotation = root->FirstChildElement("Object")->FirstChildElement("Scale");
+ auto* Rotation = Object->FirstChildElement("Scale");
Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
- auto* Scale = root->FirstChildElement("Object")->FirstChildElement("Rotation");
+ auto* Scale = Object->FirstChildElement("Rotation");
Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
- auto* Position = root->FirstChildElement("Object")->FirstChildElement("Position");
+ auto* Position = Object->FirstChildElement("Position");
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RING, &Desc)))
return E_FAIL;
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/CallBack_Playable_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_Playable_HitReport.cpp
index 3d49e310e..8df796a92 100644
--- a/Jusin154_Team3D/Client/Private/CallBack_Playable_HitReport.cpp
+++ b/Jusin154_Team3D/Client/Private/CallBack_Playable_HitReport.cpp
@@ -2,6 +2,7 @@
#include "CallBack_Playable_HitReport.h"
#include "GameInstance.h"
#include "GameObject.h"
+#include "Player.h"
CCallBack_Playable_HitReport::CCallBack_Playable_HitReport()
{
@@ -95,7 +96,7 @@ void CCallBack_Playable_HitReport::onShapeHit(const PSX::PxControllerShapeHit& h
float forceMagnitude = PSX::PxClamp(fLength * 600.f, 0.f, 2000.f);
PSX::PxRigidBodyExt::addForceAtPos(*pDynamic, vForceDir * forceMagnitude, { (_float)hit.worldPos.x, (_float)hit.worldPos.y, (_float)hit.worldPos.z }, PSX::PxForceMode::eFORCE);
pTargetActorData->pOwner->OnCollision();
-
+ dynamic_cast(m_pController->Get_Owner())->Set_OpenDoor(true);
} break;
default:
{
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index 203917fa7..3208820b7 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -760,6 +760,12 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_vector StartPos, _vector EndPo
m_bHit = true;
}
break;
+ case PXOBJECT::GOBLIN_ASSASSIN:
+ {
+ pUserData->pOwner->OnCollision(this, &tagCollInfo);
+ m_bHit = true;
+ }
+ break;
case PXOBJECT::TROLL:
{
pUserData->pOwner->OnCollision(this, &tagCollInfo);
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
index bcff1fb48..b57459365 100644
--- a/Jusin154_Team3D/Client/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -73,11 +73,26 @@ HRESULT CGoblin::Initialize(void* pArg)
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
SAFE_ADDREF(m_pEffectPool);
+ m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"),
+ [this](void* p)
+ {
+ CGameObject* pSender = static_cast(p);
+
+ if (pSender == this)
+ return;
+
+ m_pFSM->Change_State(FSMSTATE::FEAR);
+ });
+
+ m_pModelCom->Set_DisableRootMotionScale(true);
+
return S_OK;
}
void CGoblin::Priority_Update(_float fTimeDelta)
{
+ if (m_bVisible == false)
+ return;
__super::Priority_Update(fTimeDelta);
}
@@ -125,15 +140,7 @@ void CGoblin::Update(_float fTimeDelta)
//m_pDetection->Set_Active(m_bDetection);
-
- if (m_bDisolve) {
- m_fDisolveTime += fTimeDelta*0.8f;
- if (m_fDisolveTime >= 1.f)
- {
- m_fDisolveTime = 0.f;
- m_bDisolve = false;
- }
- }
+ Update_Disolve(fTimeDelta, 0.8f);
}
void CGoblin::Late_Update(_float fTimeDelta)
@@ -280,6 +287,74 @@ HRESULT CGoblin::Render_Shadow(SHADOW eType)
return S_OK;
}
+HRESULT CGoblin::Render_OutLine()
+{
+ m_bDrawOutLine = false;
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
+ return E_FAIL;
+ }
+
+ Compute_Depth();
+ _float fCamFar = *m_pGameInstance->Get_CurrentCameraFar();
+ _float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar)));
+ m_fOutLineThickness = CMyTools::Lerp_f1D(0.024f, 0.5f, fRatio);
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
+ return E_FAIL;
+ }
+ _uint iNumMeshes = m_pModelCom->Get_NumMeshes();
+
+ for (_uint i = 0; i < iNumMeshes; i++)
+ {
+ if (FAILED(m_pShaderCom->Bind_Matrices(
+ "g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size()
+ )))
+ {
+ return E_FAIL;
+ }
+
+
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_READ)))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+ return S_OK;
+}
+
_vector CGoblin::Get_LockOnPos()
{
if (nullptr != m_pCharacter_Controller && true == m_pCharacter_Controller->IsActive()) {
@@ -296,7 +371,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
if (true == m_bDead) {
return;
}
- if (m_pFSM->IsEnable(FSMSTATE::BLINK)) {
+ if (m_pFSM->IsEnable(FSMSTATE::BLINK | FSMSTATE::DEAD)) {
return;
}
m_DamageInfo.vTarget_Pos = m_pCharacter_Controller->Get_HeadPosition();
@@ -342,9 +417,11 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
break;
case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA);
+ m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
break;
case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC);
+ m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
break;
}
}
@@ -602,13 +679,6 @@ void CGoblin::Describe_Entity()
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
}
- XMFLOAT3 f3;
- XMStoreFloat3(&f3, m_vOriginPos);
-
- GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
-
- m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
-
GUI::Text("Length %.2f", m_fLength);
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
index f9823cc77..a72200751 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
@@ -64,6 +64,17 @@ HRESULT CGoblin_Assassin::Initialize(void* pArg)
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
SAFE_ADDREF(m_pEffectPool);
+ m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"),
+ [this](void* p)
+ {
+ CGameObject* pSender = static_cast(p);
+
+ if (pSender == this)
+ return;
+
+ m_pFSM->Change_State(FSMSTATE::FEAR);
+ });
+
m_pModelCom->Set_DisableRootMotionScale(true);
return S_OK;
@@ -115,18 +126,9 @@ void CGoblin_Assassin::Update(_float fTimeDelta)
for (_uint i = 0; i < ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::END); i++)
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
-
//m_pDetection->Set_Active(m_bDetection);
-
- if (m_bDisolve) {
- m_fDisolveTime += fTimeDelta*0.8f;
- if (m_fDisolveTime >= 1.f)
- {
- m_fDisolveTime = 0.f;
- m_bDisolve = false;
- }
- }
+ Update_Disolve(fTimeDelta, 0.8f);
}
void CGoblin_Assassin::Late_Update(_float fTimeDelta)
@@ -152,6 +154,9 @@ void CGoblin_Assassin::Late_Update(_float fTimeDelta)
HRESULT CGoblin_Assassin::Render()
{
+ if (m_bVisible == false)
+ return S_OK;
+
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
@@ -352,7 +357,7 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc)
if (true == m_bDead) {
return;
}
- if (m_pFSM->IsEnable(FSMSTATE::BLINK)) {
+ if (m_pFSM->IsEnable(FSMSTATE::BLINK | FSMSTATE::DEAD)) {
return;
}
m_DamageInfo.vTarget_Pos = m_pCharacter_Controller->Get_HeadPosition();
@@ -398,9 +403,11 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc)
break;
case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA);
+ m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
break;
case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC);
+ m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
break;
}
}
@@ -470,7 +477,7 @@ HRESULT CGoblin_Assassin::Ready_Components()
{ // CCT
CCharacter_Controller::Character_Controller_DESC Desc{};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_WARRIOR);
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_ASSASSIN);
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::CAPSULE;
Desc.fContactOffset = 0.001f;
@@ -490,7 +497,7 @@ HRESULT CGoblin_Assassin::Ready_Components()
m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
{ // DO
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_WARRIOR);
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_ASSASSIN);
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
@@ -683,13 +690,6 @@ void CGoblin_Assassin::Describe_Entity()
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
}
- XMFLOAT3 f3;
- XMStoreFloat3(&f3, m_vOriginPos);
-
- GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
-
- m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
-
GUI::Text("Length %.2f", m_fLength);
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp
index fb10625f5..95ae4f2d0 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp
@@ -23,6 +23,7 @@
#include "State_Hit.h"
#include "State_Dead.h"
#include "State_Shuffle.h"
+#include "State_Fear.h"
#pragma endregion
@@ -45,7 +46,6 @@ HRESULT CGoblin_Assassin::Behavior_IdleExitCheck()
}
if ((m_fTargetDistance <= 10.f && m_fTargetDistance != 0.f) /*|| m_pDetection->Get_Step() == true*/)
{
- m_vOriginPos = m_pTransformCom->Get_State(STATE::POSITION);
m_bLookAt = true;
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
@@ -119,12 +119,7 @@ void CGoblin_Assassin::Behavior_MoveEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::MOVE);
m_bLookAt = true;
- m_pFSM->Enable_State(FSMSTATE::JOG);
-
- if (!m_pFSM->IsEnable_Previous(FSMSTATE::COMBAT))
- {
- m_bFirstMove = false;
- }
+ m_bFirstMove = false;
}
HRESULT CGoblin_Assassin::Behavior_MoveExitCheck(_float fTimeDelta)
@@ -166,7 +161,7 @@ HRESULT CGoblin_Assassin::Behavior_MoveExitCheck(_float fTimeDelta)
}
break;
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.8f, true);
m_bFirstMove = true;
m_fMoveTime = 0.f;
return S_OK;
@@ -180,16 +175,19 @@ HRESULT CGoblin_Assassin::Behavior_MoveExitCheck(_float fTimeDelta)
}
}
-
- if (m_fTargetDistance <= 15.f && m_fTargetDistance >= 5.f && m_fTargetDistance != 0.f)
+ for (_uint i = 0; i < ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::END); i++)
{
- m_pFSM->Change_State(FSMSTATE::COMBAT);
- return E_FAIL;
+ if (m_fSkillCoolTime[i] == 0.f)
+ {
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
}
return S_OK;
}
+
void CGoblin_Assassin::Behavior_MoveExit()
{
m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK);
@@ -244,7 +242,7 @@ void CGoblin_Assassin::Behavior_SlashEnter()
m_pFSM->Enable_State(FSMSTATE::SLASH);
pairAnimInfo = m_Animation[STATEANIM::SLASH];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.3f,false,1.3f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.5f,false,1.3f);
Add_Event(pairAnimInfo.first,
[this]() {
@@ -268,8 +266,9 @@ void CGoblin_Assassin::Behavior_SlashEnter()
Add_Event(pairAnimInfo.first,
[this]() {
- m_bLookAt = false; },
- 0.3f);
+ m_bLookAt = true;
+ },
+ 0.7f);
Set_Easing(pairAnimInfo.first, 0.01f, 0.15f, 0.8f);
@@ -279,7 +278,7 @@ void CGoblin_Assassin::Behavior_SlashEnter()
HRESULT CGoblin_Assassin::Behavior_SlashExitCheck(_float fTimeDelta)
{
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
- if (fRatio >= 0.9f)
+ if (fRatio >= 0.8f)
{
Get_PartObject("Goblin_Sword_L")->Set_CanTakeDamage(false);
Get_PartObject("Goblin_Sword_R")->Set_CanTakeDamage(false);
@@ -302,13 +301,37 @@ void CGoblin_Assassin::Behavior_DashEnter()
m_pFSM->Enable_State(FSMSTATE::DASH);
pairAnimInfo = m_Animation[STATEANIM::DASH];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.f,false);
m_fSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::DASH)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::DASH)];
+
+ _float2 Dir8[5] =
+ {
+ { 0, 1 }, { 1, 1 }, { 1, 0 },
+ { -1, 0 }, { -1, 1 },
+ };
+
+ _int iIndex = m_pGameInstance->Real_Random_Int(0, 4);
+ _float2 dir = Dir8[iIndex];
+
+ _vector vRight = m_pTransformCom->Get_State(STATE::RIGHT);
+ _vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
+
+ _vector vDash =
+ XMVector3Normalize(
+ vRight * dir.x +
+ vLook * dir.y
+ );
+
+ XMStoreFloat4(&m_vDashDir, vDash);
}
HRESULT CGoblin_Assassin::Behavior_DashExitCheck(_float fTimeDelta)
{
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+ _vector RootDelta = m_pModelCom->Get_RootBoneMomentum();
+ _float dashDist = XMVectorGetX(XMVector3Length(RootDelta));
+ m_pTransformCom->AccumulateMomentum(XMLoadFloat4(&m_vDashDir) * dashDist * 1.5f);
+
if (fRatio >= 0.7f)
{
m_pFSM->Change_State(FSMSTATE::SLASH);
@@ -345,6 +368,8 @@ HRESULT CGoblin_Assassin::Behavior_BlinkExitCheck(_float fTimeDelta)
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
if (m_fDisolveTime >= 0.8f && iCurrAnimIndex != m_Animation[STATEANIM::BLINK].first)
{
+ m_bDisolve = false;
+ m_fDisolveTime = 0.f;
m_fSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::TP)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_ASSASSIN_SKILL::TP)];
_vector vPlayerPos = XMLoadFloat4(&m_vTargetPos);
_vector vPlayerLook = m_pTarget->Get_Component()->Get_State(STATE::LOOK);
@@ -425,6 +450,40 @@ void CGoblin_Assassin::Behavior_ShuffleExit()
m_pFSM->Disable_State(FSMSTATE::SHUFFLE);
}
+void CGoblin_Assassin::Behavior_FearEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ m_pFSM->Enable_State(FSMSTATE::FEAR);
+
+ _uint iRand = m_pGameInstance->Real_Random_Int(0, 1);
+ switch (iRand)
+ {
+ case 0:
+ pairAnimInfo = m_Animation[STATEANIM::FEAR_L];
+ break;
+ case 1:
+ pairAnimInfo = m_Animation[STATEANIM::FEAR_R];
+ break;
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+}
+
+HRESULT CGoblin_Assassin::Behavior_FearExitCheck(_float fTimeDelta)
+{
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CGoblin_Assassin::Behavior_FearExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::FEAR);
+}
+
void CGoblin_Assassin::Behavior_HitEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
@@ -903,6 +962,33 @@ void CGoblin_Assassin::Add_FSM()
m_States.emplace(FSMSTATE::SHUFFLE, CState_Shuffle::Create(&Desc));
}
#pragma endregion
+
+ {
+ CState_Fear::STATE_FEAR_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_FearEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_FearExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_FearExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::FEAR, CState_Fear::Create(&Desc));
+ }
+
+#pragma region Hit
+ {
+ CState_Hit::STATE_HIT_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_HitEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_HitExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_HitExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc));
+ }
+
+#pragma endregion
+
+
#pragma region Behavior_Combat_Focus
{
CState_Dead::STATE_DEAD_DESC Desc{};
@@ -927,19 +1013,5 @@ void CGoblin_Assassin::Add_FSM()
}
#pragma endregion
-#pragma region Hit
- {
- CState_Hit::STATE_HIT_DESC Desc{};
- Desc.pOwner = this;
- Desc.funcEnterEvent = [this]() { Behavior_HitEnter(); };
- Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_HitExitCheck(fTimedelta); };
- Desc.funcExitEvent = [this]() { Behavior_HitExit(); };
- Desc.funcPriorityUpdate = nullptr;
- Desc.funcLateUpdate = nullptr;
- m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc));
- }
-
-#pragma endregion
-
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
index 2c5ff339e..a3b7d00db 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
@@ -69,6 +69,17 @@ HRESULT CGoblin_Mage::Initialize(void* pArg)
m_pCharacter_Controller->Set_Position(XMVectorSet(-52.f, 0.f, -4.f, 1.f));
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-52.f, 0.f, -4.f, 1.f));
+ m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"),
+ [this](void* p)
+ {
+ CGameObject* pSender = static_cast(p);
+
+ if (pSender == this)
+ return;
+
+ m_pFSM->Change_State(FSMSTATE::FEAR);
+ });
+
#ifdef _DEBUG
#if 진우
m_isDebugMode = true;
@@ -79,11 +90,15 @@ HRESULT CGoblin_Mage::Initialize(void* pArg)
void CGoblin_Mage::Priority_Update(_float fTimeDelta)
{
+ if (m_bVisible == false)
+ return;
__super::Priority_Update(fTimeDelta);
}
void CGoblin_Mage::Update(_float fTimeDelta)
{
+ if (m_bVisible == false)
+ return;
m_pFSM->Update_State(fTimeDelta);
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
@@ -121,6 +136,8 @@ void CGoblin_Mage::Update(_float fTimeDelta)
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
}
+ Update_Disolve(fTimeDelta, 0.8f);
+
}
@@ -286,7 +303,7 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
if (true == m_bDead) {
return;
}
- if (m_pFSM->IsEnable(FSMSTATE::BLINK)) {
+ if (m_pFSM->IsEnable(FSMSTATE::BLINK | FSMSTATE::DEAD)) {
return;
}
_vector Head = (XMLoadFloat4x4(Get_HeadMatrix()) * m_pTransformCom->Get_XMWorldMatrix()).r[3];
@@ -331,9 +348,11 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
break;
case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA);
+ m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
break;
case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC);
+ m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
break;
}
}
@@ -541,13 +560,6 @@ void CGoblin_Mage::Describe_Entity()
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
}
- XMFLOAT3 f3;
- XMStoreFloat3(&f3, m_vOriginPos);
-
- GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
-
- m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
-
GUI::Text("Length %.2f", m_fLength);
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
index 45ed9e02a..6a8c5e19f 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
@@ -17,6 +17,7 @@
#include "State_Sustain.h"
#include "State_Blink.h"
#include "State_Hit.h"
+#include "State_Fear.h"
#pragma endregion
@@ -33,7 +34,6 @@ HRESULT CGoblin_Mage::Behavior_IdleExitCheck()
m_bLookAt = false;
if (m_fTargetDistance <= 20.f && m_fTargetDistance != 0.f)
{
- m_vOriginPos = m_pTransformCom->Get_State(STATE::POSITION);
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBLIN_PROTEGO, this);
m_bLookAt = true;
m_pFSM->Change_State(FSMSTATE::MOVE);
@@ -301,36 +301,12 @@ void CGoblin_Mage::Behavior_SustainExit()
void CGoblin_Mage::Behavior_BlinkEnter()
{
-
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::BLINK);
pairAnimInfo = m_Animation[STATEANIM::BLINK_START];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
-
- Add_Event(pairAnimInfo.first,
- [this]() {
- m_bVisible = false;
- m_pGoblin_Orb->Set_Visible(false);
- m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::TP)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::TP)];
- _vector vPos = Get_WorldPostion();
- _vector vLook =m_pTransformCom->Get_State(STATE::LOOK);
- vLook = XMVectorSetY(vLook, 0.f);
- vLook = XMVector3Normalize(vLook);
-
- _float randAngleDeg = m_pGameInstance->Real_Random_Float(-60.f, 60.f);
- _float randAngleRad = XMConvertToRadians(randAngleDeg);
-
- _matrix rot = XMMatrixRotationY(randAngleRad);
- _vector offsetDir = XMVector3TransformNormal(vLook, rot);
-
- _float randDist = m_pGameInstance->Real_Random_Float(-5.f, -3.f);
-
- _vector vFinalPos = vPos + offsetDir * randDist;
- vFinalPos = XMVectorSetY(vFinalPos, XMVectorGetY(vPos) + 1.f);
-
- m_pCharacter_Controller->Set_Position(vFinalPos); }
- , 0.95f);
+ m_bDisolve = true;
Add_Event(pairAnimInfo.first,
[this]() {
@@ -342,12 +318,29 @@ HRESULT CGoblin_Mage::Behavior_BlinkExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
- m_fTpTime += fTimeDelta;
- if (m_fTpTime >= 1.5f)
+ if (m_fDisolveTime >= 0.8f && iCurrAnimIndex != m_Animation[STATEANIM::BLINK].first)
{
- m_bVisible = true;
- m_pGoblin_Orb->Set_Visible(true);
- m_fTpTime = 0.f;
+ m_bDisolve = false;
+ m_fDisolveTime = 0.f;
+ m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::TP)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::TP)];
+ _vector vPlayerPos = XMLoadFloat4(&m_vTargetPos);
+ _vector vPlayerLook = m_pTarget->Get_Component()->Get_State(STATE::LOOK);
+ vPlayerLook = XMVectorSetY(vPlayerLook, 0.f);
+ vPlayerLook = XMVector3Normalize(vPlayerLook);
+
+ _float randAngleDeg = m_pGameInstance->Real_Random_Float(-60.f, 60.f);
+ _float randAngleRad = XMConvertToRadians(randAngleDeg);
+
+ _matrix rot = XMMatrixRotationY(randAngleRad);
+ _vector offsetDir = XMVector3TransformNormal(vPlayerLook, rot);
+
+ _float randDist = m_pGameInstance->Real_Random_Float(-5.f, -3.f);
+
+ _vector vFinalPos = vPlayerPos + offsetDir * randDist;
+ vFinalPos = XMVectorSetY(vFinalPos, XMVectorGetY(vPlayerPos) + 1.5f);
+
+ m_pCharacter_Controller->Set_Position(vFinalPos);
+
pairAnimInfo = m_Animation[STATEANIM::BLINK];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
@@ -367,6 +360,39 @@ void CGoblin_Mage::Behavior_BlinkExit()
{
m_pFSM->Disable_State(FSMSTATE::BLINK);
}
+void CGoblin_Mage::Behavior_FearEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ m_pFSM->Enable_State(FSMSTATE::FEAR);
+
+ _uint iRand = m_pGameInstance->Real_Random_Int(0, 1);
+ switch (iRand)
+ {
+ case 0:
+ pairAnimInfo = m_Animation[STATEANIM::FEAR_L];
+ break;
+ case 1:
+ pairAnimInfo = m_Animation[STATEANIM::FEAR_R];
+ break;
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+}
+
+HRESULT CGoblin_Mage::Behavior_FearExitCheck(_float fTimeDelta)
+{
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CGoblin_Mage::Behavior_FearExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::FEAR);
+}
void CGoblin_Mage::Behavior_HitEnter()
{
@@ -850,6 +876,33 @@ void CGoblin_Mage::Add_FSM()
}
#pragma endregion
+
+ {
+ CState_Fear::STATE_FEAR_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_FearEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_FearExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_FearExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::FEAR, CState_Fear::Create(&Desc));
+ }
+
+
+#pragma region Hit
+ {
+ CState_Hit::STATE_HIT_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_HitEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_HitExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_HitExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc));
+ }
+
+#pragma endregion
+
#pragma region Behavior_Combat_Focus
{
CState_Dead::STATE_DEAD_DESC Desc{};
@@ -873,19 +926,5 @@ void CGoblin_Mage::Add_FSM()
m_States.emplace(FSMSTATE::DEAD, CState_Dead::Create(&Desc));
}
#pragma endregion
-
-#pragma region Hit
- {
- CState_Hit::STATE_HIT_DESC Desc{};
- Desc.pOwner = this;
- Desc.funcEnterEvent = [this]() { Behavior_HitEnter(); };
- Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_HitExitCheck(fTimedelta); };
- Desc.funcExitEvent = [this]() { Behavior_HitExit(); };
- Desc.funcPriorityUpdate = nullptr;
- Desc.funcLateUpdate = nullptr;
- m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc));
- }
-
-#pragma endregion
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
index c1fab98b3..f5de06199 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
@@ -3,6 +3,7 @@
#include "GameInstance.h"
#include "EffectParts.h"
+#include "MapElement_Interactable.h"
CGoblin_Protego::CGoblin_Protego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -176,9 +177,62 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
{
if (!m_bVisible)
return;
- //CTransform* pOtherTransform = p
+
ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+ CEffect_Container* pEffect_Container = dynamic_cast(pOther);
+
+ pair<_float, _float> damagePair = {};
+
+ if (pEffect_Container != nullptr)
+ {
+ _uint iSkillType = pEffect_Container->Get_SkillType();
+
+ switch (iSkillType)
+ {
+ case ENUM_CLASS(SKILL_TYPE::DESCENDO):
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::BOMBARDA);
+ m_pOwner->OnCollision(pOther, CollisionDesc);
+ m_bVisible = false;
+ break;
+ case ENUM_CLASS(SKILL_TYPE::JAP):
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::ACCIO):
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ACCIO);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::STUPEFY):
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::STUPEFY);
+ break;
+ case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA);
+ m_pOwner->OnCollision(pOther, CollisionDesc);
+ m_bVisible = false;
+ break;
+ case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC):
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC);
+ m_pOwner->OnCollision(pOther, CollisionDesc);
+ m_bVisible = false;
+ break;
+ }
+ }
+ else
+ {
+ CMapElement_Interactable* pProps = dynamic_cast(pOther);
+ if (pProps != nullptr)
+ {
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC_THROW);
+ m_pOwner->OnCollision(pOther, CollisionDesc);
+ m_bVisible = false;
+ }
+ }
+
}
void CGoblin_Protego::Free()
diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
index 96fb97fc8..217c75f62 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
@@ -24,6 +24,7 @@
#include "State_Hit.h"
#include "State_Dead.h"
#include "State_Shuffle.h"
+#include "State_Fear.h"
#pragma endregion
@@ -46,7 +47,6 @@ HRESULT CGoblin::Behavior_IdleExitCheck()
}
if ((m_fTargetDistance <= 10.f && m_fTargetDistance != 0.f) /*|| m_pDetection->Get_Step() == true*/)
{
- m_vOriginPos = m_pTransformCom->Get_State(STATE::POSITION);
m_bLookAt = true;
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
@@ -120,12 +120,7 @@ void CGoblin::Behavior_MoveEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::MOVE);
m_bLookAt = true;
- m_pFSM->Enable_State(FSMSTATE::JOG);
-
- if (!m_pFSM->IsEnable_Previous(FSMSTATE::COMBAT))
- {
- m_bFirstMove = false;
- }
+ m_bFirstMove = false;
}
HRESULT CGoblin::Behavior_MoveExitCheck(_float fTimeDelta)
@@ -133,7 +128,7 @@ HRESULT CGoblin::Behavior_MoveExitCheck(_float fTimeDelta)
pair<_uint, _bool> pairAnimInfo = {};
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
- if (m_fTargetDistance >= 6.f)
+ if (m_fTargetDistance >= 7.f)
{
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -142,7 +137,6 @@ HRESULT CGoblin::Behavior_MoveExitCheck(_float fTimeDelta)
if (!m_bFirstMove)
{
_uint Rand = m_pGameInstance->Real_Random_Int(0, 3);
-
switch (Rand)
{
case 0:
@@ -168,8 +162,7 @@ HRESULT CGoblin::Behavior_MoveExitCheck(_float fTimeDelta)
}
break;
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
-
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.8f, true);
m_bFirstMove = true;
m_fMoveTime = 0.f;
return S_OK;
@@ -183,11 +176,13 @@ HRESULT CGoblin::Behavior_MoveExitCheck(_float fTimeDelta)
}
}
-
- if (m_fTargetDistance <= 15.f && m_fTargetDistance >= 4.f && m_fTargetDistance != 0.f)
+ for (_uint i = 0; i < ENUM_CLASS(GOBLIN_SKILL::END); i++)
{
- m_pFSM->Change_State(FSMSTATE::COMBAT);
- return E_FAIL;
+ if (m_fSkillCoolTime[i] == 0.f)
+ {
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
}
return S_OK;
@@ -371,6 +366,8 @@ HRESULT CGoblin::Behavior_BlinkExitCheck(_float fTimeDelta)
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
if (m_fDisolveTime >= 0.8f && iCurrAnimIndex != m_Animation[STATEANIM::BLINK].first)
{
+ m_bDisolve = false;
+ m_fDisolveTime = 0.f;
m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::TP)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::TP)];
_vector vPlayerPos = XMLoadFloat4(&m_vTargetPos);
_vector vPlayerLook = m_pTarget->Get_Component()->Get_State(STATE::LOOK);
@@ -451,6 +448,40 @@ void CGoblin::Behavior_ShuffleExit()
m_pFSM->Disable_State(FSMSTATE::SHUFFLE);
}
+void CGoblin::Behavior_FearEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ m_pFSM->Enable_State(FSMSTATE::FEAR);
+
+ _uint iRand = m_pGameInstance->Real_Random_Int(0, 1);
+ switch (iRand)
+ {
+ case 0:
+ pairAnimInfo = m_Animation[STATEANIM::FEAR_L];
+ break;
+ case 1:
+ pairAnimInfo = m_Animation[STATEANIM::FEAR_R];
+ break;
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+}
+
+HRESULT CGoblin::Behavior_FearExitCheck(_float fTimeDelta)
+{
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CGoblin::Behavior_FearExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::FEAR);
+}
+
void CGoblin::Behavior_HitEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
@@ -929,6 +960,31 @@ void CGoblin::Add_FSM()
m_States.emplace(FSMSTATE::SHUFFLE, CState_Shuffle::Create(&Desc));
}
#pragma endregion
+ {
+ CState_Fear::STATE_FEAR_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_FearEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_FearExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_FearExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::FEAR, CState_Fear::Create(&Desc));
+ }
+
+#pragma region Hit
+ {
+ CState_Hit::STATE_HIT_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_HitEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_HitExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_HitExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc));
+ }
+
+#pragma endregion
+
#pragma region Behavior_Combat_Focus
{
CState_Dead::STATE_DEAD_DESC Desc{};
@@ -953,19 +1009,4 @@ void CGoblin::Add_FSM()
}
#pragma endregion
-#pragma region Hit
- {
- CState_Hit::STATE_HIT_DESC Desc{};
- Desc.pOwner = this;
- Desc.funcEnterEvent = [this]() { Behavior_HitEnter(); };
- Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_HitExitCheck(fTimedelta); };
- Desc.funcExitEvent = [this]() { Behavior_HitExit(); };
- Desc.funcPriorityUpdate = nullptr;
- Desc.funcLateUpdate = nullptr;
- m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc));
- }
-
-#pragma endregion
-
-
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Sword.cpp b/Jusin154_Team3D/Client/Private/Goblin_Sword.cpp
index 8ba90ac83..04566bd26 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Sword.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Sword.cpp
@@ -39,7 +39,7 @@ HRESULT CGoblin_Sword::Initialize(void* pArg)
void CGoblin_Sword::Priority_Update(_float fTimeDelta)
{
-
+ XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION));
#ifdef _DEBUG
@@ -63,7 +63,7 @@ void CGoblin_Sword::Update(_float fTimeDelta)
void CGoblin_Sword::Late_Update(_float fTimeDelta)
{
- XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION));
+
_matrix socketMatrix = {};
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index a029d75bb..0993811a4 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -325,9 +325,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
isReady_Hogwart = true;
#endif // gimch
#ifdef Bin
- isReady_Background = false;
- isReady_Hogsmeade = false;
- isReady_Hogwart = false;
+ isReady_Background = true;
+ isReady_Hogsmeade = true;
+ isReady_Hogwart = true;
#endif //
#ifdef 진우
isReady_Background = false;
@@ -686,7 +686,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
#endif //
#ifdef Bin
- isLoad_NPC = false;
+ isLoad_NPC = true;
#endif // Bin
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 4de85f7c0..c42e4d2e3 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -399,9 +399,9 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_UI_SEQUANTIAL = false;
#endif //
#ifdef Bin
- isLoad_Background = false;
- isLoad_Hogwart = false;
- isLoad_UI_SEQUANTIAL = false;
+ isLoad_Background = true;
+ isLoad_Hogwart = true;
+ isLoad_UI_SEQUANTIAL = true;
#endif // Bin
#endif // _DEBUG
@@ -2002,11 +2002,16 @@ HRESULT CLoader::Loading_For_GamePlay()
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
+ return E_FAIL;
+ }
}
if (true == isLoad_Monster) {
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
+ CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
@@ -2020,31 +2025,16 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GerboldOlivander_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Professor_EleazarFig_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
return E_FAIL;
}
-
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
- return E_FAIL;
- }
}
#pragma endregion
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
index ac6a3296c..99b509f2e 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
@@ -168,6 +168,9 @@ void CMapElement_Interactable::GrapToPlayer(_fvector vPos, _float fRatio)
void CMapElement_Interactable::OnCollision(CGameObject* pOther, void* pDesc)
{
+ if (m_bThrow == false)
+ return;
+
if (m_bHit == false)
return;
@@ -275,12 +278,12 @@ HRESULT CMapElement_Interactable::Render_OutLine()
Compute_Depth();
_float fCamFar = *m_pGameInstance->Get_CurrentCameraFar();
_float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar)));
- m_fOutLineThickness = CMyTools::Lerp_f1D(1.5f, 2.f, fRatio);
- if (m_fOutLineThickness > 0.15f) {
- m_fOutLineThickness = 0.15f;
+ m_fOutLineThickness = CMyTools::Lerp_f1D(0.8f, 1.2f, fRatio);
+ if (m_fOutLineThickness > 0.023f) {
+ m_fOutLineThickness = 0.023f;
}
- else if (m_fOutLineThickness < 0.07f) {
- m_fOutLineThickness = 0.07f;
+ else if (m_fOutLineThickness < 0.013f) {
+ m_fOutLineThickness = 0.013f;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) {
return E_FAIL;
@@ -390,6 +393,12 @@ ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _f
m_bHit = true;
}
break;
+ case PXOBJECT::RANROK:
+ {
+ pUserData->pOwner->OnCollision(this, &tagCollInfo);
+ m_bHit = true;
+ }
+ break;
}
}
}
diff --git a/Jusin154_Team3D/Client/Private/Monster.cpp b/Jusin154_Team3D/Client/Private/Monster.cpp
index ee678db8b..9a2862c09 100644
--- a/Jusin154_Team3D/Client/Private/Monster.cpp
+++ b/Jusin154_Team3D/Client/Private/Monster.cpp
@@ -284,6 +284,33 @@ void CMonster::Set_Easing(_uint iAnimIndex,_float fEasingStartRatio,_float fEasi
}
+void CMonster::Update_Disolve(_float fTimeDelta,_float fRatio)
+{
+ if (!m_bDisolve)
+ return;
+
+ if (!m_bDisolveReverse)
+ {
+ m_fDisolveTime += fTimeDelta * fRatio;
+
+ if (m_fDisolveTime >= 1.f)
+ {
+ m_fDisolveTime = 1.f;
+ }
+ }
+ else
+ {
+ m_fDisolveTime -= fTimeDelta * fRatio;
+
+ if (m_fDisolveTime <= 0.f)
+ {
+ m_fDisolveTime = 0.f;
+ m_bDisolve = false;
+ m_bDisolveReverse = false;
+ }
+ }
+}
+
void CMonster::Free()
{
__super::Free();
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 4e044dd1f..2e90bf471 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -152,14 +152,7 @@ void CPlayer::Update(_float fTimeDelta)
m_pCallBack_HitReport->Set_CurrentSlop();
}
- if (m_pGameInstance->Mouse_Down(DIM_RBUTTON)){
- m_pInfoInstance->Mouse_Input(ENUM_CLASS(KEYINPUT::DIM_RBUTTON_DOWN));
- }
- if (m_pGameInstance->Mouse_Up(DIM_RBUTTON))
- {
- m_pInfoInstance->Mouse_Input(ENUM_CLASS(KEYINPUT::DIM_RBUTTON_UP));
- m_bAim = false;
- }
+ CheckMouseInput();
m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION));
@@ -378,7 +371,8 @@ void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
if (m_pFSM->IsEnable(FSMSTATE::DODGE | FSMSTATE::BLINK) ||
m_bShield ||
iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first||
- iCurrAnim == m_Animation[STATEANIM::ANCIENT_LIGHTNING].first)
+ iCurrAnim == m_Animation[STATEANIM::ANCIENT_LIGHTNING].first ||
+ iCurrAnim == m_Animation[STATEANIM::ANCIENT_THROW].first)
return;
#ifdef _DEBUG
@@ -690,6 +684,18 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
return S_OK;
}
+void CPlayer::CheckMouseInput()
+{
+ if (m_pGameInstance->Mouse_Down(DIM_RBUTTON)) {
+ m_pInfoInstance->Mouse_Input(ENUM_CLASS(KEYINPUT::DIM_RBUTTON_DOWN));
+ }
+ if (m_pGameInstance->Mouse_Up(DIM_RBUTTON))
+ {
+ m_pInfoInstance->Mouse_Input(ENUM_CLASS(KEYINPUT::DIM_RBUTTON_UP));
+ m_bAim = false;
+ }
+}
+
void CPlayer::ReLockOnTarget()
{
m_pInfoInstance->Get_LockOnInfo(m_LockOnInfo);
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index e403871dc..09296635f 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -523,7 +523,20 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
return E_FAIL;
}
- if (SUCCEEDED(InputMove())) {
+ if (m_bOpenDoor)
+ {
+ if (iCurrentAnimIndex != m_Animation[STATEANIM::OPEN_DOOR_R].first) {
+ pairAnimInfo = m_Animation[STATEANIM::OPEN_DOOR_R];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_bOpenDoor = false; },
+ 0.95f);
+ }
+ _vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
+ vLook = XMVector3Normalize(vLook);
+ m_pTransformCom->AccumulateMomentum(vLook *fTimeDelta *0.8f);
+ }
+ else if (SUCCEEDED(InputMove())) {
m_fMoveTime += fTimeDelta;
_vector xmvInputDir = XMVectorZero();
@@ -561,19 +574,10 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
_float degree = XMConvertToDegrees(angle);
_bool bSkipAngleCheck = { false };
if (m_pFSM->IsEnable(FSMSTATE::JOG | FSMSTATE::WALK| FSMSTATE::SPRINT)) {
- /* if (iCurrentAnimIndex != m_Animation[STATEANIM::JOG_FWD].first &&
- iCurrentAnimIndex != m_Animation[STATEANIM::WALK_FWD].first&&
- iCurrentAnimIndex != m_Animation[STATEANIM::SPRINT].first&&
- iCurrentAnimIndex != m_Animation[STATEANIM::JOG_AIM_LEFT].first&&
- iCurrentAnimIndex != m_Animation[STATEANIM::JOG_AIM_RIGHT].first&&
- iCurrentAnimIndex != m_Animation[STATEANIM::JOG_AIM_BWD].first) {
- bSkipAngleCheck = true;
-*/
if (m_pModelCom->IsFinishedAnim() || m_pFSM->IsEnable(FSMSTATE::STOP) || SUCCEEDED(InputAim())) {
m_pFSM->Disable_State(FSMSTATE::STOP);
bSkipAngleCheck = false;
}
- //}
if (!bSkipAngleCheck) {
_float absDir = fabsf(vDir);
if (absDir < XMConvertToRadians(80.f)) {
@@ -593,108 +597,18 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
else if (absDir < XMConvertToRadians(160.f)) {
if (m_fCross > 0)
{
- /*if (SUCCEEDED(InputAim()))
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_AIM_LEFT];
- }*/
- /*else if (m_pFSM->IsEnable(FSMSTATE::JOG) && !m_pFSM->IsEnable(FSMSTATE::SPRINT))
- {
- if (degree > 35.f && degree < 55.f)
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
- else if (degree < -125.f && degree > -145.f)
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
- else {
- if (m_pModelCom->IsFinishedAnim() && iCurrentAnimIndex == m_Animation[STATEANIM::JOG_LEFT].first)
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::JOG_LEFT];
- Add_Event(pairAnimInfo.first,
- [&]() {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount, m_bRatio, m_fAnimSpeed);
- }, 0.5f);
- m_fAnimSpeed = 1.2f;
- }
- }
- }*/
- /*else {*/
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- //}
-
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
m_fAmount = 1.f;
m_bRatio = true;
}
else {
- /*if (SUCCEEDED(InputAim()))
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_AIM_RIGHT];
- }*/
- /*else if (m_pFSM->IsEnable(FSMSTATE::JOG) && !m_pFSM->IsEnable(FSMSTATE::SPRINT))
- {
- if (degree < -35.f && degree > -55.f)
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
- else if (degree > 125.f && degree < 145.f)
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
- else {
- if (m_pModelCom->IsFinishedAnim() && iCurrentAnimIndex == m_Animation[STATEANIM::JOG_RIGHT].first)
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::JOG_RIGHT];
- Add_Event(pairAnimInfo.first,
- [&]() {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount, m_bRatio, m_fAnimSpeed);
- }, 0.5f);
- m_fAnimSpeed = 1.2f;
- }
- }
- }*/
- //else {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- //}
-
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
m_fAmount = 1.f;
m_bRatio = true;
}
}
else {
- /*if (SUCCEEDED(InputAim()))
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_AIM_BWD];
- }*/
- /*else if (m_pFSM->IsEnable(FSMSTATE::JOG) && !m_pFSM->IsEnable(FSMSTATE::SPRINT))
- {
- if (m_pModelCom->IsFinishedAnim() && iCurrentAnimIndex == m_Animation[STATEANIM::JOG_BWD].first)
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- }
- else
- {
- pairAnimInfo = m_Animation[STATEANIM::JOG_BWD];
- m_fAnimSpeed = 1.2f;
- }
-
- }
- else if (m_pFSM->IsEnable(FSMSTATE::WALK))
- {
- pairAnimInfo = m_Animation[STATEANIM::WALK_BWD];
- */
- //else {
- pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
- //}
-
+ pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
m_fAmount = 1.f;
m_bRatio = true;
}
@@ -1130,7 +1044,9 @@ void CPlayer::Behavior_CombatEnter()
0.12f);
Add_Event(pairAnimInfo.first,
- [this]() { Throwing_Interactive(); },
+ [this]() {
+ Throwing_Interactive();
+ },
0.2f);
Add_Event(pairAnimInfo.first,
@@ -1196,7 +1112,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
if (m_pFSM->IsEnable(FSMSTATE::ANCIENT_THROW))
{
- if (SUCCEEDED(InputMove()) && fRatio>=0.4f) {
+ if (SUCCEEDED(InputMove()) && fRatio >= 0.4f) {
m_pFSM->Change_State(FSMSTATE::MOVE);
m_bLookAt = false;
return E_FAIL;
@@ -1691,13 +1607,13 @@ HRESULT CPlayer::Behavior_AncientSpellExitCheck()
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
- if (iCurrAnim == m_Animation[STATEANIM::ANCIENT_LIGHTNING].first)
- {
- if (SUCCEEDED(InputMove()) && fRatio >= 0.3f) {
- m_pFSM->Change_State(FSMSTATE::MOVE);
- return E_FAIL;
- }
- }
+ //if (iCurrAnim == m_Animation[STATEANIM::ANCIENT_LIGHTNING].first)
+ //{
+ // if (SUCCEEDED(InputMove()) && fRatio >= 0.3f) {
+ // m_pFSM->Change_State(FSMSTATE::MOVE);
+ // return E_FAIL;
+ // }
+ //}
if (m_pModelCom->IsFinishedAnim()) {
@@ -2653,6 +2569,7 @@ void CPlayer::Throwing_Interactive()
if (nullptr == m_pGrapInteractive) {
return;
} _vector vDir = {}; _float vDistance = 100.f;
+ m_pGrapInteractive->Set_Throw(true);
CRigidBody_Dynamic* pBody = m_pGrapInteractive->Get_Component();
if (nullptr != m_LockOnInfo.pUnit) {
vDir = XMVector3Normalize(m_LockOnInfo.pUnit->Get_LockOnPos() - m_pGrapInteractive->Get_LockOnPos());
@@ -2663,6 +2580,7 @@ void CPlayer::Throwing_Interactive()
m_pGrapInteractive->Set_KinematicFlag(false);
pBody->Add_Force(pBody->Get_Mass() * vDir * (vDistance / 1.5f), PSX::PxForceMode::eIMPULSE);
+
SAFE_RELEASE(m_pGrapInteractive);
}
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index 6a6f92aed..45f878a55 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp
@@ -50,6 +50,8 @@ HRESULT CRanrok::Initialize(void* pArg)
Load_AnimXML("../Bin/Resources/Data/AnimList/Ranrok.xml");
+
+ Load_RanrokPos("../Bin/Resources/Data/RanrokPos/RanrokPos.xml");
{
CFSM::FSM_DESC FSMDesc{};
FSMDesc.pStates = &m_States;
@@ -76,7 +78,8 @@ HRESULT CRanrok::Initialize(void* pArg)
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-44.704f, 6.860f, 16.071f, 1.f));
}
- Load_RanrokPos("../Bin/Resources/Data/RanrokPos/RanrokPos.xml");
+ m_pModelCom->Set_DisableRootMotionScale(true);
+
return S_OK;
}
@@ -148,7 +151,8 @@ void CRanrok::Update(_float fTimeDelta)
}
- Update_Disolve(fTimeDelta);
+ Update_Disolve(fTimeDelta,0.8f);
+
}
void CRanrok::Late_Update(_float fTimeDelta)
@@ -653,7 +657,15 @@ void CRanrok::MoveTo(_float fTimeDelta)
if (m_iCurrentFlow >= m_Points.size())
m_iCurrentFlow = 0;
- _vector Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
+ if (m_iCurrentFlow == m_Points.size() - 1)
+ {
+ if (m_iCurrentPoint >= m_Points[m_iCurrentFlow].size() * 0.3f)
+ {
+ m_fTuckedSpeed = 55.f;
+ }
+ }
+
+ _vector Target = XMLoadFloat4(&m_Points[m_iCurrentFlow][m_iCurrentPoint]);
_vector NextTarget;
_vector CurPos = m_pCharacter_Controller->Get_Position();
@@ -665,7 +677,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
if (m_iCurrentPoint + 1 < m_Points[m_iCurrentFlow].size() && fDist < 15.f)
{
- NextTarget = m_Points[m_iCurrentFlow][m_iCurrentPoint + 1];
+ NextTarget = XMLoadFloat4(&m_Points[m_iCurrentFlow][m_iCurrentPoint + 1]);
}
else {
NextTarget = Target;
@@ -729,7 +741,7 @@ HRESULT CRanrok::Load_RanrokPos(const _char* pFilePath)
pPos->QueryFloatAttribute("x", &px);
pPos->QueryFloatAttribute("y", &py);
pPos->QueryFloatAttribute("z", &pz);
- m_Points[iCurrentFlow].emplace_back(XMVectorSet(px, py, pz, 1.f));
+ m_Points[iCurrentFlow].emplace_back(px, py, pz, 1.f);
}
pPosition = pPosition->NextSiblingElement("Position");
}
@@ -739,33 +751,6 @@ HRESULT CRanrok::Load_RanrokPos(const _char* pFilePath)
return S_OK;
}
-void CRanrok::Update_Disolve(_float fTimeDelta)
-{
- if (!m_bDisolve)
- return;
-
- if (!m_bDisolveReverse)
- {
- m_fDisolveTime += fTimeDelta * 0.8f;
-
- if (m_fDisolveTime >= 1.f)
- {
- m_fDisolveTime = 1.f;
- }
- }
- else
- {
- m_fDisolveTime -= fTimeDelta * 0.8f;
-
- if (m_fDisolveTime <= 0.f)
- {
- m_fDisolveTime = 0.f;
- m_bDisolve = false;
- m_bDisolveReverse = false;
- }
- }
-}
-
CRanrok* CRanrok::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
@@ -853,15 +838,15 @@ void CRanrok::Describe_Entity()
GUI::SetClipboardText(buf);
- m_Points[i].push_back(XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f));
+ _float4 vPos = { Pos.x, Pos.y, Pos.z, 1.f };
+ m_Points[i].push_back(vPos);
}
GUI::Text("Points[%d] Count : %d", i, (_int)m_Points[i].size());
for (_uint j = 0; j < m_Points[i].size(); )
{
- _float3 p;
- XMStoreFloat3(&p, m_Points[i][j]);
+ _float3 p = { m_Points[i][j].x,m_Points[i][j].y,m_Points[i][j].z };
GUI::PushID((int)(i * 10000 + j));
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
index 13e53d5de..9eb964fbb 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
@@ -185,7 +185,7 @@ HRESULT CRanrok::Behavior_CombatExitCheck(_float fTimeDelta)
m_pFSM->Change_State(FSMSTATE::RUSH);
return E_FAIL;
}
- else if (m_fTargetDistance <= 100.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] <= 0.f && m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
+ else if (m_fTargetDistance <= 15.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] <= 0.f && m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
{
m_pFSM->Change_State(FSMSTATE::SWIPE);
return E_FAIL;
@@ -363,20 +363,20 @@ void CRanrok::Behavior_FireBreathEnter()
}
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
{
-
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_G];
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
Add_Event(pairAnimInfo.first,
[this]() {
- m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
+ _float fBreathTime = 5.f;
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
m_bLookAt = false;
- }, 0.1f);
+ }, 0.2f);
Add_Event(pairAnimInfo.first,
[this]() {
m_pModelCom->Play_HeadBone(true);
- }, 0.2f);
+ }, 0.3f);
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
@@ -474,7 +474,8 @@ void CRanrok::Behavior_FireSweepEnter()
Add_Event(m_Animation[STATEANIM::FIRESWEEP_G].first,
[this]() {
- m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
+ _float fBreathTime = 5.f;
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
m_bLookAt = false;
}, 0.2f);
@@ -699,8 +700,43 @@ HRESULT CRanrok::Behavior_RushExitCheck(_float fTimeDelta)
m_fRushTime += fTimeDelta;
if (m_fRushTime >= 2.5f && iCurrAnimIndex == m_Animation[STATEANIM::RUSH_LOOP].first)
{
- m_pFSM->Change_State(FSMSTATE::SWIPE);
- return E_FAIL;
+ if (m_fDegree < 30.f)
+ {
+ m_pFSM->Change_State(FSMSTATE::GROUND);
+ return E_FAIL;
+ }
+ else if (m_fDegree < 80.f)
+ {
+ if (m_fCross < 0.f)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_45_L];
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_45_R];
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f);
+ }
+ else if (m_fDegree < 150.f)
+ {
+ if (m_fCross < 0.f)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_90_L];
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_90_R];
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f);
+ }
+ else {
+ if (m_fCross < 0.f)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_180_L];
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_180_R];
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f);
+ }
}
else if (iCurrAnimIndex == m_Animation[STATEANIM::RUSH_LOOP].first)
@@ -709,7 +745,7 @@ HRESULT CRanrok::Behavior_RushExitCheck(_float fTimeDelta)
vLook = XMVectorSetY(vLook, 0.f);
vLook = XMVector3Normalize(vLook);
_vector vPos = m_pCharacter_Controller->Get_Position();
- _vector vNextPos = vPos + vLook * 8.f * fTimeDelta;
+ _vector vNextPos = vPos + vLook * 10.f * fTimeDelta;
m_pCharacter_Controller->Set_Position(vNextPos);
return S_OK;
}
@@ -796,7 +832,7 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
- if (m_fDisolveTime >= 0.3f) {
+ if (m_fDisolveTime >= 0.1f) {
MoveTo(fTimeDelta);
}
diff --git a/Jusin154_Team3D/Client/Private/State_Fear.cpp b/Jusin154_Team3D/Client/Private/State_Fear.cpp
new file mode 100644
index 000000000..81bc54231
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/State_Fear.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_Fear.h"
+#include "Unit.h"
+
+
+CState_Fear::CState_Fear()
+ :CState_Root()
+{
+}
+
+void CState_Fear::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Fear::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (FAILED(__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_Fear::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Fear::Initialize(STATE_FEAR_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Fear* CState_Fear::Create(STATE_FEAR_DESC* pDesc)
+{
+ CState_Fear* pInstance = new CState_Fear;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Fear::Free()
+{
+ __super::Free();
+}
+
+void CState_Fear::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Transformation.cpp b/Jusin154_Team3D/Client/Private/Transformation.cpp
index e36f77300..a96b2e1e5 100644
--- a/Jusin154_Team3D/Client/Private/Transformation.cpp
+++ b/Jusin154_Team3D/Client/Private/Transformation.cpp
@@ -206,6 +206,10 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc)
CCharacter_Controller* pCCT = CollisionDesc.pObject->Get_Component();
+ if (pCCT == nullptr) {
+ return;
+ }
+
_vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
_vector vFootPos = pCCT->Get_FootPosition();
diff --git a/Jusin154_Team3D/Client/Public/Goblin.h b/Jusin154_Team3D/Client/Public/Goblin.h
index ba61eb0d6..2d3fdd991 100644
--- a/Jusin154_Team3D/Client/Public/Goblin.h
+++ b/Jusin154_Team3D/Client/Public/Goblin.h
@@ -28,6 +28,7 @@ class CGoblin final : public CMonster
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
virtual HRESULT Render_Shadow(SHADOW eType) override;
+ virtual HRESULT Render_OutLine() override;
virtual _vector Get_LockOnPos() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
@@ -79,7 +80,6 @@ class CGoblin final : public CMonster
_bool m_bStep = { true };
_float m_fTpTime = {};
_float m_fAirTime = {};
- _vector m_vOriginPos = {};
_float m_fLength = {};
_float m_fMoveTime = {};
_bool m_bFirstMove = {};
@@ -108,7 +108,6 @@ class CGoblin final : public CMonster
HRESULT Behavior_CombatExitCheck(_float fTimeDelta);
void Behavior_CombatExit();
-
void Behavior_SwingEnter();
HRESULT Behavior_SwingExitCheck(_float fTimeDelta);
void Behavior_SwingExit();
@@ -125,6 +124,10 @@ class CGoblin final : public CMonster
HRESULT Behavior_ShuffleExitCheck(_float fTimeDelta);
void Behavior_ShuffleExit();
+ void Behavior_FearEnter();
+ HRESULT Behavior_FearExitCheck(_float fTimeDelta);
+ void Behavior_FearExit();
+
void Behavior_HitEnter();
HRESULT Behavior_HitExitCheck(_float fTimeDelta);
void Behavior_HitExit();
diff --git a/Jusin154_Team3D/Client/Public/Goblin_Assassin.h b/Jusin154_Team3D/Client/Public/Goblin_Assassin.h
index c83e5ce4a..d1f2cd41e 100644
--- a/Jusin154_Team3D/Client/Public/Goblin_Assassin.h
+++ b/Jusin154_Team3D/Client/Public/Goblin_Assassin.h
@@ -10,13 +10,6 @@ NS_BEGIN(Client)
class CGoblin_Assassin final : public CMonster
{
- enum class STRAFE_DIR
- {
- LEFT,
- RIGHT,
- NONE
- };
-
enum class GOBLIN_ASSASSIN_SKILL
{
DASH,
@@ -86,7 +79,6 @@ class CGoblin_Assassin final : public CMonster
_bool m_bStep = { true };
_float m_fTpTime = {};
_float m_fAirTime = {};
- _vector m_vOriginPos = {};
_float m_fLength = {};
_float m_fMoveTime = {};
_bool m_bFirstMove = {};
@@ -99,12 +91,10 @@ class CGoblin_Assassin final : public CMonster
_float m_fHitTimer = {};
_float m_fTumbleTimer = {};
+ _float m_fMoveDecisionTime = 0.f;
+ _float m_fMoveDecisionLimit = 1.2f;
- STRAFE_DIR m_eStrafeDir = STRAFE_DIR::NONE;
- STRAFE_DIR m_ePrevStrafeDir = STRAFE_DIR::NONE;
-
- _float m_fDecisionTimer = 0.f;
- _float m_fDecisionInterval = 2.f;
+ _float4 m_vDashDir = {};
void Behavior_IdleEnter();
@@ -139,6 +129,10 @@ class CGoblin_Assassin final : public CMonster
HRESULT Behavior_ShuffleExitCheck(_float fTimeDelta);
void Behavior_ShuffleExit();
+ void Behavior_FearEnter();
+ HRESULT Behavior_FearExitCheck(_float fTimeDelta);
+ void Behavior_FearExit();
+
void Behavior_HitEnter();
HRESULT Behavior_HitExitCheck(_float fTimeDelta);
void Behavior_HitExit();
diff --git a/Jusin154_Team3D/Client/Public/Goblin_Assassin_Spector.h b/Jusin154_Team3D/Client/Public/Goblin_Assassin_Spector.h
index 079a9de14..b2e8ffa7e 100644
--- a/Jusin154_Team3D/Client/Public/Goblin_Assassin_Spector.h
+++ b/Jusin154_Team3D/Client/Public/Goblin_Assassin_Spector.h
@@ -71,7 +71,6 @@ class CGoblin_Assassin_Spector final : public CMonster
_bool m_bStep = { false };
_float m_fTpTime = {};
_float m_fAirTime = {};
- _vector m_vOriginPos = {};
_float m_fLength = {};
};
diff --git a/Jusin154_Team3D/Client/Public/Goblin_Mage.h b/Jusin154_Team3D/Client/Public/Goblin_Mage.h
index a00971ec4..0586c25e9 100644
--- a/Jusin154_Team3D/Client/Public/Goblin_Mage.h
+++ b/Jusin154_Team3D/Client/Public/Goblin_Mage.h
@@ -84,7 +84,6 @@ class CGoblin_Mage final : public CMonster
_bool m_bStep = { false };
_float m_fTpTime = {};
_float m_fAirTime = {};
- _vector m_vOriginPos = {};
_float m_fLength = {};
_bool m_bShield = { false };
_bool m_bPos = {};
@@ -132,6 +131,10 @@ class CGoblin_Mage final : public CMonster
HRESULT Behavior_BlinkExitCheck(_float fTimeDelta);
void Behavior_BlinkExit();
+ void Behavior_FearEnter();
+ HRESULT Behavior_FearExitCheck(_float fTimeDelta);
+ void Behavior_FearExit();
+
void Behavior_HitEnter();
HRESULT Behavior_HitExitCheck(_float fTimeDelta);
void Behavior_HitExit();
diff --git a/Jusin154_Team3D/Client/Public/Goblin_Protego.h b/Jusin154_Team3D/Client/Public/Goblin_Protego.h
index 9de274855..f03cee411 100644
--- a/Jusin154_Team3D/Client/Public/Goblin_Protego.h
+++ b/Jusin154_Team3D/Client/Public/Goblin_Protego.h
@@ -40,7 +40,7 @@ class CGoblin_Protego final : public CEffect_Container
_float m_fSizeAccTime = {};
_float m_fAmountSize = {};
_float m_fSpeed = {};
-
+ _int m_eHitSpell = { ENUM_CLASS(SKILL_TYPE::END) };
public:
static CGoblin_Protego* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Client/Public/Goblin_Spector.h b/Jusin154_Team3D/Client/Public/Goblin_Spector.h
index b4581e012..872e35a74 100644
--- a/Jusin154_Team3D/Client/Public/Goblin_Spector.h
+++ b/Jusin154_Team3D/Client/Public/Goblin_Spector.h
@@ -71,7 +71,6 @@ class CGoblin_Spector final : public CMonster
_bool m_bStep = { false };
_float m_fTpTime = {};
_float m_fAirTime = {};
- _vector m_vOriginPos = {};
_float m_fLength = {};
};
diff --git a/Jusin154_Team3D/Client/Public/MapElement_Interactable.h b/Jusin154_Team3D/Client/Public/MapElement_Interactable.h
index 37c0820dc..9a8b9982f 100644
--- a/Jusin154_Team3D/Client/Public/MapElement_Interactable.h
+++ b/Jusin154_Team3D/Client/Public/MapElement_Interactable.h
@@ -35,6 +35,7 @@ class CMapElement_Interactable final : public CMapElement
virtual HRESULT Render_OutLine() override;
void Set_KinematicFlag(_bool bFlag);
void ActivateAt(_fvector vPos); // 풀링 꺼내기, 위치 지정
+ void Set_Throw(_bool bThrow) { m_bThrow = bThrow; }
private:
ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END };
@@ -53,6 +54,7 @@ class CMapElement_Interactable final : public CMapElement
/* 충돌을 위한 변수*/
_bool m_isGraped = { false };
_bool m_bHit = { false };
+ _bool m_bThrow = { false };
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
class CEffectPool* m_pEffectPool = { nullptr };
private:
diff --git a/Jusin154_Team3D/Client/Public/Monster.h b/Jusin154_Team3D/Client/Public/Monster.h
index 504e7bf8f..b8ab166f5 100644
--- a/Jusin154_Team3D/Client/Public/Monster.h
+++ b/Jusin154_Team3D/Client/Public/Monster.h
@@ -57,6 +57,8 @@ class CMonster abstract : public CUnit
_float m_fCross = {};
_float m_fEasing = { 1.f };
_int m_eHitState = { ENUM_CLASS(HIT_STATE::END) };
+ _bool m_bDisolveReverse = { false };
+ _float m_fDisolveDelay = 0.f;
protected:
virtual HRESULT Initialize_Prototype() override;
@@ -67,6 +69,7 @@ class CMonster abstract : public CUnit
void Set_Easing(_uint iAnimIndex, _float fEasingStartRatio, _float fEasingEndRatio, _float fEasingTime);
public:
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE;
+ void Update_Disolve(_float fTimeDelta,_float fRatio);
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index 71b3f16a1..e9e0f2f7e 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -37,6 +37,7 @@ class CPlayer final : public CUnit
void Set_RaceInfo();
_bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; }
_matrix Get_WandPos();
+ void Set_OpenDoor(_bool bOpen) { m_bOpenDoor = bOpen; }
void UpdateGrapInteractive(_float fTimeDelta);
void Update_CameraShake(_float fTimeDelta);
HRESULT Update_RaycastElements();
@@ -93,6 +94,7 @@ class CPlayer final : public CUnit
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
HRESULT Bind_ShaderParameters(_uint iMeshOrder);
+ void CheckMouseInput();
void ReLockOnTarget();
void SetGravity();
void Add_SpellEvent(_uint AnimIndex, _float fRatio);
@@ -160,6 +162,7 @@ class CPlayer final : public CUnit
_float m_fCross = 0.f;
_float m_fabsDir = 0.f;
array<_float4x4, 256> SkinMatrices;
+ _bool m_bOpenDoor = { false };
/* 무적 불 변수*/
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h
index 441a88b35..74271330b 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok.h
@@ -77,7 +77,6 @@ class CRanrok final : public CMonster
HRESULT Render_Nonblend();
HRESULT Render_Blend();
void MoveTo(_float fTimeDelta);
- void Update_Disolve(_float fTimeDelta);
HRESULT Load_RanrokPos(const _char* pFilePath);
public:
static CRanrok* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -100,13 +99,8 @@ class CRanrok final : public CMonster
_bool m_bFireBurst = { false };
_bool m_bTucked = {false};
_bool m_bHoverDash = { false };
- _vector m_vMoveDir = XMVectorZero();
- _bool m_bDisolveReverse = { false };
- _float m_fDisolveDelay = 0.f;
-
-
- vector> m_Points;
+ vector> m_Points;
_int m_iCurrentPoint = 0;
_int m_iCurrentFlow = 0;
@@ -117,10 +111,10 @@ class CRanrok final : public CMonster
_float m_fRushTime = {};
_float m_fHeadAimWeight = {};
_float m_fPrevHpRatio = {};
- _int m_iBreathRand = {};
+ _int m_iBreathRand = {};
class CEffect_Container* m_pRanrok_Point = { nullptr };
- _float m_fTuckedSpeed = { 50.f };
+ _float m_fTuckedSpeed = { 90.f };
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
diff --git a/Jusin154_Team3D/Client/Public/State_Fear.h b/Jusin154_Team3D/Client/Public/State_Fear.h
new file mode 100644
index 000000000..3dd3316fa
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/State_Fear.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Client_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Client)
+
+class CState_Fear final : public CState_Root
+{
+public:
+ typedef struct tagFear : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_FEAR_DESC;
+public:
+ CState_Fear();
+ virtual ~CState_Fear() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_FEAR_DESC* pDesc);
+
+public:
+ static CState_Fear* Create(STATE_FEAR_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Assassin.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Assassin.xml
index f5b58b93d..29df5ca3e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Assassin.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Assassin.xml
@@ -93,6 +93,10 @@
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Mage.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Mage.xml
index 5416fb013..3a07123a1 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Mage.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Mage.xml
@@ -95,6 +95,10 @@
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Warrior.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Warrior.xml
index 4d2a0fc5d..ade66d31d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Warrior.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Goblin_Warrior.xml
@@ -95,6 +95,10 @@
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
index 6ba6fe37d..65be7dcca 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
@@ -103,24 +103,24 @@
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
+
+
@@ -153,11 +153,16 @@
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/RanrokPos/RanrokPos.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/RanrokPos/RanrokPos.xml
index f906f74c0..78dd72e0f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/RanrokPos/RanrokPos.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/RanrokPos/RanrokPos.xml
@@ -29,7 +29,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml
index 15ee1aa16..9abcc8552 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml
@@ -3,6 +3,6 @@
-
-
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin
new file mode 100644
index 000000000..48ab10d3d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ff865f8dceb4baf57465631ea28be92f8729068435d4eec8acef1b74968d1b21
+size 10798323
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx
new file mode 100644
index 000000000..d1fcd8c1b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7d57c7dd2a5a50ab101b390c05715319737e5fff3548684d7c652556e12be1e4
+size 7602204
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon.bin
deleted file mode 100644
index 0b29a6ca9..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon.bin and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon.fbx
deleted file mode 100644
index 711c86923..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:32b6b5101a39633cf35d7ebcf5711940a0cea66b3164290113e775c5c96ba86f
-size 61962812
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon_Anim.bin
deleted file mode 100644
index b764e9693..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon_Anim.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:81dff2d21b987eba50c06ab48989cfbf213754b48a997b82096dfde5b5a63127
-size 153894241
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon_Anim.fbx
deleted file mode 100644
index 7955864a8..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/Dragon_Anim.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:55f6d6df42fe0b86146d377af09e8fc5b1530d2e714c988f44053de5a0588192
-size 234407740
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Body_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Body_D.png
deleted file mode 100644
index bb962c0a0..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Body_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Body_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Body_N.png
deleted file mode 100644
index f76d5553e..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Body_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Wings_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Wings_D.png
deleted file mode 100644
index b2ce38a89..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Wings_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Wings_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Wings_N.png
deleted file mode 100644
index 8e8b5c6c1..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_ConjuredDragon_Wings_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_DragonEye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_DragonEye_Iris_D.png
deleted file mode 100644
index 059dcf656..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_DragonEye_Iris_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_HebrideanBlack_Body_Harness_Corruption_A.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_HebrideanBlack_Body_Harness_Corruption_A.png
deleted file mode 100644
index 3e1189762..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_HebrideanBlack_Body_Harness_Corruption_A.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_HebrideanBlack_Wing_Harness_Corruption_A.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_HebrideanBlack_Wing_Harness_Corruption_A.png
deleted file mode 100644
index 380d236c9..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Dragon/T_HebrideanBlack_Wing_Harness_Corruption_A.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.bin
deleted file mode 100644
index dce35ef43..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:c15a2e341dedd612d964382a7917faf2c5907111c6420f55858b8ff7ab6aa3d5
-size 1458037
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.fbx
deleted file mode 100644
index 6d114cc35..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:ae71d14a3a11c4744bca0d9abcfb19615befad7ab3570497d439f0b3dc962d9f
-size 525932
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin
deleted file mode 100644
index 0677063a7..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:c3c63077144d6eaaf7689bfe372f1533c51f3fa70f34deff1f356827172f4269
-size 19831079
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_ReverseTumble.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_ReverseTumble.bin
deleted file mode 100644
index 8b70a0c6c..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_ReverseTumble.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:d921ec2c3793c7a2dddb1fd545528056f0f03990840291f219b778ba8210263b
-size 1526804
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_ReverseTumble.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_ReverseTumble.fbx
deleted file mode 100644
index c0cc57958..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_ReverseTumble.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:c44df93610ac70f78e85c1bb114c3c8a6d2eee8a2dc33a32b0d8d26b1e0f39e9
-size 816844
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin
new file mode 100644
index 000000000..8ff2fc162
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:49b976dd98fe22034467f72ffec676355d0cd44a19960024030439c98e7649e2
+size 1458642
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master_Anim.bin
new file mode 100644
index 000000000..8d05ccbee
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master_Anim.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9b3ed905ec912f6233ec72c3a9efbf3df49ad6a369303ae49a29701ff408df4f
+size 32004502
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master_ReverseTumble.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master_ReverseTumble.bin
new file mode 100644
index 000000000..8b54404e8
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master_ReverseTumble.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cd86b830d738afb3aba1e078309a40c33b1fbe0ac89a961e2e00d8191c941d38
+size 1527418
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png
deleted file mode 100644
index 7bb19943d..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png
deleted file mode 100644
index 2ed79b910..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png
deleted file mode 100644
index 61cd321c0..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png
deleted file mode 100644
index 80bd10c56..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/TombProtector_Axe.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/TombProtector_Axe.fbx
deleted file mode 100644
index 23cb9ce13..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Axe/TombProtector_Axe.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:ad2af72637b47daf2d6a4b3a132414054d7f7d4e059bea47257b1ccc2e880a2f
-size 91468
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png
deleted file mode 100644
index 2c9dc117f..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png
deleted file mode 100644
index 6c4acfba4..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png
deleted file mode 100644
index 774ea3db2..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png
deleted file mode 100644
index 181d60492..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/TombProtector_Mace.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/TombProtector_Mace.fbx
deleted file mode 100644
index 75e5c1155..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/Mace/TombProtector_Mace.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:9b726eb9e224d98be73a9089bdc3375c962c79d909af1154bb2d0614499a3034
-size 95900
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_D.png
deleted file mode 100644
index fc0fbca3d..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_E.png
deleted file mode 100644
index f8a7c9c89..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_E.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_MROA.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_MROA.png
deleted file mode 100644
index e16ba8af8..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_MROA.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_N.png
deleted file mode 100644
index 6ac83780f..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector01_Upper_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_E.png
deleted file mode 100644
index 1d7adae32..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_E.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_MRO.png
deleted file mode 100644
index ccb0bca48..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_MRO.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_N.png
deleted file mode 100644
index 8bbbb218a..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1001_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_E.png
deleted file mode 100644
index 85f9805c2..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_E.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_MRO.png
deleted file mode 100644
index 98d5357db..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_MRO.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_N.png
deleted file mode 100644
index 4ebccf04d..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1002_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1_D.png
deleted file mode 100644
index b39df1bfb..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_1_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_2_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_2_D.png
deleted file mode 100644
index e0bd0250f..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_GOL_TombProtector_2_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_Spline_clouds_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_Spline_clouds_D.png
deleted file mode 100644
index 508965f7a..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_Spline_clouds_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_A_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_A_D.png
deleted file mode 100644
index cdfe02952..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_A_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_B_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_B_D.png
deleted file mode 100644
index ff8a490c8..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/T_TombProtector_DistortionPattern_B_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.bin
deleted file mode 100644
index 81facc280..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.bin and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.fbx
deleted file mode 100644
index 28a4cecb1..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/TombProtector/TombProtector.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:8e8ab9ac98cc040e967bfae8c42e2d57be4957844399b245973f08c7eda6c82d
-size 48326476
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/KeyFrame.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/KeyFrame.bin
deleted file mode 100644
index 318ab4761..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/KeyFrame.bin and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Body_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Body_D.png
deleted file mode 100644
index a6bedaa46..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Body_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Leather_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Leather_D.png
deleted file mode 100644
index 4514a7fd2..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Leather_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Leather_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Leather_N.png
deleted file mode 100644
index 18f4af2b1..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Leather_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_D.png
deleted file mode 100644
index 24d592444..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_E.png
deleted file mode 100644
index 276b69373..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_E.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_N.png
deleted file mode 100644
index 0c732e895..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_ArmoredTroll_Metal_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Eye_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Eye_D.png
deleted file mode 100644
index aa18900c0..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Eye_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Head_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Head_D.png
deleted file mode 100644
index 9ed84c8fd..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Head_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Head_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Head_N.png
deleted file mode 100644
index b7f71ce79..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Head_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Skirt_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Skirt_D.png
deleted file mode 100644
index ad2dad5cb..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Skirt_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Skirt_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Skirt_N.png
deleted file mode 100644
index e4a9470b6..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Mountain01_Skirt_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Teeth_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Teeth_D.png
deleted file mode 100644
index a14c27d13..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Teeth_D.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Teeth_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Teeth_N.png
deleted file mode 100644
index 20cb63373..000000000
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/T_Troll_Teeth_N.png and /dev/null differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.bin
deleted file mode 100644
index 228c6d8d9..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:5587ab5b17463de9880007f15e6fca26bafe10af95965e6b80955238581fc6f3
-size 43888305
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.fbx
deleted file mode 100644
index 9ec0c7b92..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Troll/Troll.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:092ae597606b094aa0d59593aaa7a842faf9ea8dd2c685b9e225d53b4c07e31d
-size 135574332
diff --git a/Jusin154_Team3D/Editor/Private/Goblin.cpp b/Jusin154_Team3D/Editor/Private/Goblin.cpp
index afdef5cbc..af9e9e6c5 100644
--- a/Jusin154_Team3D/Editor/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Editor/Private/Goblin.cpp
@@ -487,13 +487,6 @@ void CGoblin::Describe_Entity()
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
}
- XMFLOAT3 f3;
- XMStoreFloat3(&f3, m_vOriginPos);
-
- GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
-
- m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
-
GUI::Text("Length %.2f", m_fLength);
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
diff --git a/Jusin154_Team3D/Editor/Private/Goblin_States.cpp b/Jusin154_Team3D/Editor/Private/Goblin_States.cpp
index 05c26ac00..b784bbf3a 100644
--- a/Jusin154_Team3D/Editor/Private/Goblin_States.cpp
+++ b/Jusin154_Team3D/Editor/Private/Goblin_States.cpp
@@ -34,7 +34,6 @@ HRESULT CGoblin::Behavior_IdleExitCheck()
{
if (m_fTargetDistance <= 20.f && m_fTargetDistance != 0.f)
{
- m_vOriginPos = m_pTransformCom->Get_State(STATE::POSITION);
m_pFSM->Change_State(FSMSTATE::MOVE);
}
diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
index cf04a01cb..7c2d32df5 100644
--- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
@@ -418,6 +418,12 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
pModel->Set_PlayAnim(bPlayAnim);
}
+ _int iIndex = pModel->Get_AnimIndex();
+ if (GUI::InputInt("Anim Index", &iIndex))
+ {
+ pModel->Set_AnimationIndex(iIndex);
+ }
+
if (GUI::Button("Load KeyFrame"))
{
_char szName[MAX_PATH] = {};
@@ -760,7 +766,7 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag)
{
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Z_Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
{
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
index 8c26560ec..122667f6f 100644
--- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
@@ -74,11 +74,16 @@ HRESULT CLoader::Loading_For_ObjectViewer()
}
vector*>> futures = {};
+ /*futures.emplace_back(Deferred_ModelLoad(
+ MODEL::ANIM, "C:/MeshTable\\Game\\RiggedObjects\\Characters\\Creatures\\Goblins\\OneOff\\T4Goblin_Melee_INST_A\\SK_GOB_M_T4Melee_INST_A_Master_ReverseTumble.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
+ ));*/
+
#pragma region MONSTER
futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
- TEXT("Prototype_Component_Goblin_Model")
+ MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
));
futures.emplace_back(Deferred_ModelLoad(
@@ -91,32 +96,15 @@ HRESULT CLoader::Loading_For_ObjectViewer()
TEXT("Prototype_Component_SK_GOB_M_Assassin_Master_Model")
));
- futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master_Tumble.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
- TEXT("Prototype_Component_SK_GOB_M_Assassin_Master_Model")
- ));
-
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
- //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
- // CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
- // return E_FAIL;
-
- futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Monster/TombProtector/TombProtector.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
- TEXT("Prototype_Component_TombProtector_Model")
- ));
futures.emplace_back(Deferred_ModelLoad(
MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixIdentity(),
TEXT("Prototype_Component_troll_Model")
));
- futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
- TEXT("Prototype_Component_Dragon_Model")
- ));
futures.emplace_back(Deferred_ModelLoad(
MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
diff --git a/Jusin154_Team3D/Editor/Public/Goblin.h b/Jusin154_Team3D/Editor/Public/Goblin.h
index dac602cf6..cd9dc97cf 100644
--- a/Jusin154_Team3D/Editor/Public/Goblin.h
+++ b/Jusin154_Team3D/Editor/Public/Goblin.h
@@ -72,7 +72,6 @@ class CGoblin final : public CMonster
_bool m_bStep = { false };
_float m_fTpTime = {};
_float m_fAirTime = {};
- _vector m_vOriginPos = {};
_float m_fLength = {};
_bool m_bSwing = { false };
_float m_fMoveTime = {};
diff --git a/Jusin154_Team3D/Editor/Public/Goblin_Spector.h b/Jusin154_Team3D/Editor/Public/Goblin_Spector.h
index 49b995dad..2e46556ac 100644
--- a/Jusin154_Team3D/Editor/Public/Goblin_Spector.h
+++ b/Jusin154_Team3D/Editor/Public/Goblin_Spector.h
@@ -69,7 +69,6 @@ class CGoblin_Spector final : public CMonster
_bool m_bStep = { false };
_float m_fTpTime = {};
_float m_fAirTime = {};
- _vector m_vOriginPos = {};
_float m_fLength = {};
};
diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp
index d491281dc..f19ce5f71 100644
--- a/Jusin154_Team3D/Engine/Private/Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Model.cpp
@@ -505,6 +505,9 @@ void CModel::Update_RootBone(_float Amount)
if (m_bRootBone) {
m_pTransform->AccumulateMomentum(vDeltaWorld);
}
+ else {
+ m_RootBoneMomentum = vDeltaWorld;
+ }
m_vPrevRootPos = vCurRootPos;
diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp
index ef0e4abc1..aa34430ac 100644
--- a/Jusin154_Team3D/Engine/Private/Unit.cpp
+++ b/Jusin154_Team3D/Engine/Private/Unit.cpp
@@ -467,6 +467,13 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
{ "FIREBURST_REEL", FIREBURST_REEL },
+ { "OPEN_DOOR", OPEN_DOOR },
+ { "OPEN_DOOR_L", OPEN_DOOR_L },
+ { "OPEN_DOOR_R", OPEN_DOOR_R },
+
+ { "FEAR_L", FEAR_L },
+ { "FEAR_R", FEAR_R },
+
// SPELL LEARNING
{ "SPELL_LEARNING_FAIL", SPELL_LEARNING_FAIL },
{ "SPELL_LEARNING_LOOP", SPELL_LEARNING_LOOP },
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
index 1d2b86cca..7cb16c21e 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
@@ -138,7 +138,7 @@ enum class PXOBJECT : _uint {
MONSTER = 30,
GOBLIN_WARRIOR, // 31
GOBLIN_MAGICIAN,
- GOBLIN_THEIF,
+ GOBLIN_ASSASSIN,
TROLL,
PENSIVE_GUARDIAN,
RANROK,
diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h
index d9f1b646b..fe2857c28 100644
--- a/Jusin154_Team3D/Engine/Public/FSM.h
+++ b/Jusin154_Team3D/Engine/Public/FSM.h
@@ -55,6 +55,7 @@ enum ESTATE : _u64Flag
FALL = 1ULL << 48,
SLASH = 1ULL << 49,
DASH = 1ULL << 50,
+ FEAR = 1ULL << 51,
END
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h
index 501e18d52..b10b928fa 100644
--- a/Jusin154_Team3D/Engine/Public/Model.h
+++ b/Jusin154_Team3D/Engine/Public/Model.h
@@ -95,6 +95,8 @@ class ENGINE_DLL CModel final : public CComponent
HRESULT Anim_Event(_float fRatio, _uint AnimIndex, function Event);
void Set_BlendDuration(_float Duration) { m_fBlendDuration = Duration; }
+
+ _vector Get_RootBoneMomentum() { return m_RootBoneMomentum; }
#pragma endregion
#pragma region Mesh
const _char* Get_MeshName(_uint iIndex);
@@ -108,7 +110,7 @@ class ENGINE_DLL CModel final : public CComponent
void Apply_CPU_HeadAim();
void Apply_CPUMask_ToBones();
void Mark_CPUChain(_int boneIdx);
- class CMesh* Get_Mesh(_uint iIndex) { return m_Meshes[iIndex]; }
+ class CMesh* Get_Mesh(_uint iIndex) { return m_Meshes[iIndex]; }
#pragma endregion
#pragma region Bone
const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName);
@@ -239,6 +241,7 @@ class ENGINE_DLL CModel final : public CComponent
_int m_iQueuedAnimIndex = -1;
_bool m_bQueuedLoop = false;
_bool m_bQueuedAnim = { false };
+ _vector m_RootBoneMomentum = {};
private:
diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h
index b6752fccc..4a1ba0ce6 100644
--- a/Jusin154_Team3D/Engine/Public/State.h
+++ b/Jusin154_Team3D/Engine/Public/State.h
@@ -47,6 +47,8 @@ enum ESTATE
TUCKED,FLY_TO_HOVER,FLY,
FIREBURST_REEL,
SPELL_LEARNING_FAIL, SPELL_LEARNING_LOOP, SPELL_LEARNING_START, SPELL_LEARNING_SUCCESS, SPELL_LEARNING_WANDWAVE,
+ OPEN_DOOR,OPEN_DOOR_L,OPEN_DOOR_R,
+ FEAR_L,FEAR_R,
////////////////////////// 빗자루
BROOM_MOUNT_B, BROOM_HOVER_IDLE_B, BROOM_HOVER_STOP_B,BROOM_HOVER_DOWN_B,BROOM_HOVER_UP_B,BROOM_HOVER_LEFT_B,BROOM_HOVER_RIGHT_B,BROOM_FLY_DOWN_B, BROOM_FLY_LEFT_B, BROOM_FLY_RIGHT_B, BROOM_FLY_UP_B,BROOM_FLY_B,BROOM_ADD,
/// ////////////////////////////