diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index eff1f8ff6..fb7b8052c 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -183,6 +183,8 @@ call Update_Resources.bat
+
+
@@ -199,6 +201,7 @@ call Update_Resources.bat
+
@@ -462,6 +465,8 @@ call Update_Resources.bat
+
+
@@ -477,6 +482,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 875c77186..9cc25103f 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -854,6 +854,15 @@
02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash
+
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe
+
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact
+
@@ -1773,6 +1782,15 @@
{eb8e52f5-0283-4acf-8fbb-0e734b7580e9}
+
+ {a7aeb7ef-a180-49ba-81f6-c8a47dcb941d}
+
+
+ {7a994c53-e406-485e-82c2-6a116b6b23e5}
+
+
+ {e1fcb75d-6e7a-4adb-9835-6913ac6f44b6}
+
@@ -2574,6 +2592,15 @@
02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash
+
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact
+
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe
+
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 025be182d..1c6df1d9b 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -52,6 +52,9 @@
#include "Ranrok_Land.h"
#include "Ranrok_GroundPulse.h"
#include "Ranrok_Rush_Bottom.h"
+#include "Ranrok_Swipe.h"
+#include "Ranrok_DeadSplash.h"
+#include "Ranrok_DeadImpact.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -668,6 +671,33 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_SWIPE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_Swipe* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_SPLASH, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_DeadSplash* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_IMPACT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_DeadImpact* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
return S_OK;
}
@@ -686,6 +716,7 @@ HRESULT CEffectPool::Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPr
}
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp
index 34abda90b..a671a89cc 100644
--- a/Jusin154_Team3D/Client/Private/Level_Field.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp
@@ -147,6 +147,13 @@ HRESULT CLevel_Field::Ready_Lights()
Desc.vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f);
}
+#if 진우
+ Desc.vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f);
+ Desc.vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
+ Desc.vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
+
+#endif
+
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &pLight))) {
return E_FAIL;
@@ -162,6 +169,9 @@ HRESULT CLevel_Field::Ready_Lights()
vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
#endif // gimch
+ vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f);
+ vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f);
+ vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular);
@@ -174,6 +184,7 @@ HRESULT CLevel_Field::Ready_Volumetric()
{
m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f);
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 5bcca63b5..2aa1ec1c5 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -218,6 +218,9 @@
#include "Ranrok_Land.h"
#include "Ranrok_GroundPulse.h"
#include "Ranrok_Rush_Bottom.h"
+#include "Ranrok_Swipe.h"
+#include "Ranrok_DeadSplash.h"
+#include "Ranrok_DeadImpact.h"
#include "StunEffect.h"
#include "Box_Splesh.h"
@@ -2414,6 +2417,18 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_Swipe::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_DeadSplash::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_DeadImpact::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index 3d178c82b..2618065d2 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp
@@ -326,8 +326,9 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
-
+#ifndef 진우
XMStoreFloat4(&m_DamageInfo.vTarget_Pos, m_pCharacter_Controller->Get_HeadPosition());
+#endif
CEffect_Container* pEffect_Container = dynamic_cast(pOther);
@@ -382,7 +383,9 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
m_DamageInfo.fDamage = damagePair.first;
+#ifndef 진우
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
+#endif
if (0 == damagePair.second) {
m_pFSM->Change_State(FSMSTATE::DEAD);
return;
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp
index 40b798602..9108e575d 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp
@@ -79,7 +79,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
Update_Event(fTimeDelta);
- _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("jaw"));
+ _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("tongue_01"));
for (int i = 0; i < 3; ++i) {
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_DeadImpact.cpp b/Jusin154_Team3D/Client/Private/Ranrok_DeadImpact.cpp
new file mode 100644
index 000000000..cfa541b50
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Ranrok_DeadImpact.cpp
@@ -0,0 +1,202 @@
+#include "pch.h"
+#include "Ranrok_DeadImpact.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_DeadImpact::CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_DeadImpact::CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_DeadImpact::Initialize_Prototype()
+{
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_DeadImpact::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+ m_wstrEffectName = L"RanrokDeadImpact";
+
+
+
+ m_fDuration = 5.f;
+
+
+ return S_OK;
+}
+
+void CRanrok_DeadImpact::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_DeadImpact::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+
+
+
+}
+
+void CRanrok_DeadImpact::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_DeadImpact::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+ /* 초기 객체 비지블*/
+
+ CEffectParts* pDistortion = Get_PartObject("Distortion");
+ CEffectParts* pDistortion_Small = Get_PartObject("Distortion_Small");
+ CEffectParts* pPulse_White = Get_PartObject("Pulse_White");
+ CEffectParts* pSplash_Black = Get_PartObject("Splash_Black");
+ CEffectParts* pSplash_Red = Get_PartObject("Splash_Red");
+ CEffectParts* pSpline0 = Get_PartObject("Spline0");
+ CEffectParts* pSpline1 = Get_PartObject("Spline1");
+ CEffectParts* pSide_Pt = Get_PartObject("Side_Pt");
+ CEffectParts* pCircle_0 = Get_PartObject("Circle_0");
+
+ pDistortion->Set_Visible(true);
+ pDistortion_Small->Set_Visible(true);
+ pPulse_White->Set_Visible(true);
+ pSplash_Black->Set_Visible(true);
+ pSplash_Red->Set_Visible(true);
+ pSpline0->Set_Visible(true);
+ pSpline1->Set_Visible(true);
+ pSide_Pt->Set_Visible(true);
+ pCircle_0->Set_Visible(true);
+ /* 초기 객체 위치 초기화*/
+
+ _vector vPos = m_pOwner->Get_Component()->Get_HeadPosition();
+
+
+ pDistortion->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pDistortion_Small->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pPulse_White->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pSplash_Black->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pSplash_Red->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pSpline0->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pSpline1->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pSide_Pt->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pCircle_0->Get_Component()->Set_State(STATE::POSITION, vPos);
+
+ return S_OK;
+}
+
+HRESULT CRanrok_DeadImpact::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_DeadImpact::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_DeadImpact* CRanrok_DeadImpact::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_DeadImpact");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_DeadImpact::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_DeadImpact");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_DeadImpact::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+}
+
+void CRanrok_DeadImpact::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+
+}
+#ifdef _DEBUG
+void CRanrok_DeadImpact::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_DeadImpact::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_DeadSplash.cpp b/Jusin154_Team3D/Client/Private/Ranrok_DeadSplash.cpp
new file mode 100644
index 000000000..63162ab15
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Ranrok_DeadSplash.cpp
@@ -0,0 +1,203 @@
+#include "pch.h"
+#include "Ranrok_DeadSplash.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_DeadSplash::CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_DeadSplash::CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_DeadSplash::Initialize_Prototype()
+{
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash")))
+ return E_FAIL;
+
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_DeadSplash::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+ m_wstrEffectName = L"RanrokDeadSplash";
+
+
+
+ m_fDuration = 5.f;
+
+
+ return S_OK;
+}
+
+void CRanrok_DeadSplash::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_DeadSplash::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+
+
+
+}
+
+void CRanrok_DeadSplash::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_DeadSplash::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ _float4 vPos = *static_cast<_float4*>(pArg);
+ _vector vPosition = XMLoadFloat4(&vPos);
+ /* 초기 객체 비지블*/
+
+ CEffectParts* pDead_Decal = Get_PartObject("Dead_Decal");
+ CEffectParts* pRock_PT = Get_PartObject("Rock_PT");
+ CEffectParts* pRock_Splash = Get_PartObject("Rock_Splash");
+ CEffectParts* pSplash = Get_PartObject("Splash");
+
+ pDead_Decal->Set_Visible(true);
+ pRock_PT->Set_Visible(true);
+
+ pRock_Splash->Set_Visible(true);
+ pSplash->Set_Visible(true);
+
+ /* 초기 객체 위치 초기화*/
+
+ pRock_PT->Get_Component()->Set_State(STATE::POSITION, vPosition);
+ pSplash->Get_Component()->Set_State(STATE::POSITION, vPosition);
+
+ CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
+
+ if (pPlayer == nullptr)
+ return E_FAIL;
+
+ _vector vPlayer_FootPos = pPlayer->Get_Component()->Get_FootPosition();
+
+
+ _vector vCompute_Pos = XMVectorSetY(vPosition, XMVectorGetY(vPlayer_FootPos));
+ pRock_Splash->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+
+ vCompute_Pos = XMVectorSetY(m_pOwner->Get_WorldPostion(), XMVectorGetY(vPlayer_FootPos));
+
+ pDead_Decal->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+
+ return S_OK;
+}
+
+HRESULT CRanrok_DeadSplash::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_DeadSplash::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_DeadSplash* CRanrok_DeadSplash::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_DeadSplash");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_DeadSplash::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_DeadSplash");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_DeadSplash::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+}
+
+void CRanrok_DeadSplash::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+
+}
+#ifdef _DEBUG
+void CRanrok_DeadSplash::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_DeadSplash::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
index c47802e5f..740c03c9e 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
@@ -660,8 +660,12 @@ void CRanrok::Behavior_SwipeEnter()
}
Add_Event(pairAnimInfo.first,
- [this]() {m_bMotionTrail = true; },
+ [this]() {
+ m_bMotionTrail = true;
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_SWIPE , this);
+ },
0.3f);
+
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
@@ -1030,20 +1034,95 @@ void CRanrok::Behavior_DeadEnter()
m_bLookAt = false;
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::DEAD);
- PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
- PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
- m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
- m_pRigidBody->SetActive(false);
- m_pCharacter_Controller->SetActive(false);
+
pairAnimInfo = m_Animation[STATEANIM::DEAD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+
+
+ m_pBottomSmoke->Set_Visible(false);
+ m_pLeftSmoke->Set_Visible(false);
+ m_pRightSmoke->Set_Visible(false);
+ m_pLeftPt->Set_Visible(false);
+ m_pRightPt->Set_Visible(false);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ _vector vPos = m_pCharacter_Controller->Get_Position();
+ _float4 vPosFloat4 = {};
+ XMStoreFloat4(&vPosFloat4, vPos);
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &vPosFloat4);
+
+ }, 0.f);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("pinky_06_right")) * m_pTransformCom->Get_XMWorldMatrix();
+
+ _vector vPos = BoneMat.r[3];
+ _float4 vPosFloat4 = {};
+ XMStoreFloat4(&vPosFloat4, vPos);
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
+
+ }, 0.2f);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("elbow_left")) * m_pTransformCom->Get_XMWorldMatrix();
+
+ _vector vPos = BoneMat.r[3];
+ _float4 vPosFloat4 = {};
+ XMStoreFloat4(&vPosFloat4, vPos);
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
+
+ }, 0.34f);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix();
+
+ _vector vPos = BoneMat.r[3];
+ _float4 vPosFloat4 = {};
+ XMStoreFloat4(&vPosFloat4, vPos);
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
+
+ }, 0.44f);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix();
+
+ _vector vPos = BoneMat.r[3];
+ _float4 vPosFloat4 = {};
+ XMStoreFloat4(&vPosFloat4, vPos);
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
+
+ }, 0.6f);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_IMPACT, this);
+
+ }, 0.8f);
+
}
HRESULT CRanrok::Behavior_DeadExitCheck(_float fTimeDelta)
{
- if (FLT_EPSILON > m_pModelCom->Get_CurrentTrackProgressRatio()) {
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+ m_fDeadRatio = CMyTools::Saturate((fRatio - 0.8f) / 0.2f);
+ if (FLT_EPSILON > fRatio) {
return E_PENDING;
}
return S_OK;
@@ -1285,8 +1364,15 @@ void CRanrok::Add_FSM()
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); };
Desc.funcExitEvent = [this]() { Behavior_DeadExit(); };
Desc.funcLateUpdate = [this](_float fDeadRatio) {
- m_fDeadRatio = fDeadRatio;
- if (m_fDeadRatio > 1.f) {
+ // m_fDeadRatio = fDeadRatio;
+ if (m_fDeadRatio >= 1.f) {
+
+ PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
+ PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
+ m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
+ m_pRigidBody->SetActive(false);
+ m_pCharacter_Controller->SetActive(false);
+
m_bDead = true;
}
};
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Swipe.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Swipe.cpp
new file mode 100644
index 000000000..20aac0de7
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Ranrok_Swipe.cpp
@@ -0,0 +1,229 @@
+#include "pch.h"
+#include "Ranrok_Swipe.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_Swipe::CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_Swipe::CRanrok_Swipe(const CRanrok_Swipe& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_Swipe::Initialize_Prototype()
+{
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_Swipe::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+ m_wstrEffectName = L"RanrokSwipe";
+
+ m_pRock_PT = Get_PartObject("Rock_PT");
+ SAFE_ADDREF(m_pRock_PT);
+
+ m_fDuration = 5.f;
+
+
+ m_Events.emplace(0.4f, [&]() {
+
+ CEffectParts* pClawDecal = Get_PartObject("ClawDecal");
+ pClawDecal->Set_Visible(true);
+
+ CEffectParts* pSmoke = Get_PartObject("Swipe_Smoke");
+ pSmoke->Set_Visible(true);
+
+ _vector vComputePos = Compute_Pos();
+
+ pSmoke->Get_Component()->Set_State(STATE::POSITION, vComputePos);
+
+ _vector vLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+ _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f) , vLook));
+ _vector vUp = XMVector3Normalize(XMVector3Cross(vLook , vRight));
+ _vector vPos = vComputePos;
+
+ _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
+
+ pClawDecal->Get_Component()->Set_WorldMatrix(PJ_WorldMat);
+ });
+
+ m_Events.emplace(0.8f, [&]() {
+ m_isParticleEnd = true;
+ m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f));
+ });
+
+ return S_OK;
+}
+
+void CRanrok_Swipe::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_Swipe::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+ if (m_isParticleEnd == false)
+ {
+ _vector vComputePos = Compute_Pos();
+ m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, vComputePos);
+
+ }
+
+
+}
+
+void CRanrok_Swipe::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_Swipe::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ /* 초기 객체 비지블*/
+ m_pRock_PT->Set_Visible(true);
+
+
+ /* 초기 객체 위치 초기화*/
+ _vector vComputePos = Compute_Pos();
+ m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, vComputePos);
+
+ m_isParticleEnd = false;
+ return S_OK;
+}
+
+HRESULT CRanrok_Swipe::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Swipe::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_Swipe* CRanrok_Swipe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_Swipe* pInstance = new CRanrok_Swipe(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_Swipe");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_Swipe::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_Swipe* pInstance = new CRanrok_Swipe(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_Swipe");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_Swipe::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+}
+
+_fvector CRanrok_Swipe::Compute_Pos()
+{
+ _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("wrist_left_target")) * m_pOwner->Get_Component()->Get_XMWorldMatrix();
+
+ _vector vBonePos = BoneMat.r[3];
+
+
+ CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
+
+
+
+ _vector vPlayer_FootPos = pPlayer->Get_Component()->Get_FootPosition();
+
+ XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
+
+ _vector vCompute_Pos = XMVectorSetY(vBonePos, XMVectorGetY(vPlayer_FootPos));
+
+ return vCompute_Pos;
+}
+
+void CRanrok_Swipe::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+ SAFE_RELEASE(m_pRock_PT);
+
+}
+#ifdef _DEBUG
+void CRanrok_Swipe::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_Swipe::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index ad94ebfee..8fb567dea 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -79,7 +79,7 @@ namespace Client
/*란록*/
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT, RANROK_LAND, RANROK_RUSH_BOTTOM,
- RANROK_GROUNDPULSE,
+ RANROK_GROUNDPULSE, RANROK_SWIPE , RANROK_DEAD_SPLASH, RANROK_DEAD_IMPACT,
END
};
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_DeadImpact.h b/Jusin154_Team3D/Client/Public/Ranrok_DeadImpact.h
new file mode 100644
index 000000000..88c96c39b
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Ranrok_DeadImpact.h
@@ -0,0 +1,58 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CRanrok_DeadImpact final : public CEffect_Container
+{
+private:
+ CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs);
+ virtual ~CRanrok_DeadImpact() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CEffectParts* m_pGooRod_0 = { nullptr };
+ class CEffectParts* m_pSmoke = { nullptr };
+ class CEffectParts* m_pSpread_PT = { nullptr };
+
+ _float3 m_vLook = {};
+ _float m_fLinearSpeed = 0.8f;
+
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
+private:
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+public:
+ static CRanrok_DeadImpact* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // DEBUG
+
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_DeadSplash.h b/Jusin154_Team3D/Client/Public/Ranrok_DeadSplash.h
new file mode 100644
index 000000000..20d2b71de
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Ranrok_DeadSplash.h
@@ -0,0 +1,58 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CRanrok_DeadSplash final : public CEffect_Container
+{
+private:
+ CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs);
+ virtual ~CRanrok_DeadSplash() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CEffectParts* m_pGooRod_0 = { nullptr };
+ class CEffectParts* m_pSmoke = { nullptr };
+ class CEffectParts* m_pSpread_PT = { nullptr };
+
+ _float3 m_vLook = {};
+ _float m_fLinearSpeed = 0.8f;
+
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
+private:
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+public:
+ static CRanrok_DeadSplash* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // DEBUG
+
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_Swipe.h b/Jusin154_Team3D/Client/Public/Ranrok_Swipe.h
new file mode 100644
index 000000000..db10922bf
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Ranrok_Swipe.h
@@ -0,0 +1,59 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CRanrok_Swipe final : public CEffect_Container
+{
+private:
+ CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_Swipe(const CRanrok_Swipe& rhs);
+ virtual ~CRanrok_Swipe() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+ _fvector Compute_Pos();
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CEffectParts* m_pRock_PT = { nullptr };
+
+ _float3 m_vLook = {};
+ _float m_fLinearSpeed = 0.8f;
+
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
+
+ _bool m_isParticleEnd = {};
+private:
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+public:
+ static CRanrok_Swipe* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // DEBUG
+
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact.bin
new file mode 100644
index 000000000..e6d8175e2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:51cc1bb6a302145f34e05434ccf197ed9b3ea8a28cebc021eb0421d09349465e
+size 686
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash.bin
new file mode 100644
index 000000000..f5a9e6305
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4be0a80f9d4ae20191e2e888290125c5f9d69a52df9a61d3f6bf39e537b2d79b
+size 302
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe.bin
new file mode 100644
index 000000000..330efd160
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:957fc82f3c06e2f35fa438dc7057595e9198199f4b76c9273cbcb35e35474526
+size 214
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Land_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Land_Decal.bin
index b087125e6..249c027c0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Land_Decal.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Land_Decal.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f712cfafff85e820710e7fc754155933446134584ba231f732032b258815bb88
+oid sha256:08898353679d17f5226cf98645b24448d3b8668f45793809dc781c5ca89afab1
size 1271
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin
index 52017be31..af007b08e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1d9bcc72418ae124b879e0bdf7437fd373316f7cf177f5fa813bf7ce1844ac01
+oid sha256:331e1f821f1a3e2e2946e4518fb522e1fbc458a63eae997aa3df038c7df2e068
size 1186
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Circle_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Circle_0.bin
new file mode 100644
index 000000000..9daefdb93
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Circle_0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8d19bb92b6278fd51e235b33b617f2696921c088f84068bae34942cec6f8db3e
+size 1208
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion.bin
new file mode 100644
index 000000000..d500e2b8d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6dbcf1ffc0e76b901553015a6b4faab5a3bc8b23cf97289f547c9fad32667359
+size 1255
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion_Small.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion_Small.bin
new file mode 100644
index 000000000..71e8fee17
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion_Small.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3643ab359a86b6f40a25b52d8671f3694b60c142c523eb0a58eecdab36619b94
+size 1198
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Pulse_White.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Pulse_White.bin
new file mode 100644
index 000000000..56e26b4df
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Pulse_White.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e42bdf0cd58115ec59427a6fb2fa98fa273030fa367dfaf9ec76e1feb4744d3b
+size 1216
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Side_Pt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Side_Pt.bin
new file mode 100644
index 000000000..223764a73
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Side_Pt.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de79b263864b298f0fb3a1a3faef732e32fe2beaa8db74a85f0aec51369371f4
+size 1294
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Black.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Black.bin
new file mode 100644
index 000000000..ff3ad0e2f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Black.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:57d1456fc05e70e5a9d7a06036bfb54d51a707874636aca664a9f65a4aa42fd3
+size 1288
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Red.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Red.bin
new file mode 100644
index 000000000..b1d109927
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Red.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aab2ee8208c8319b26262ba84516fd36b87f551879309b7753a963b7a9f82d86
+size 1241
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline0.bin
new file mode 100644
index 000000000..0dc8b71c5
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b7387965307cadf937dd03c9df30adf029837be3b29505341e408bf73d933ea9
+size 1213
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline1.bin
new file mode 100644
index 000000000..4a82b4d82
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline1.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ae89ac75513faffcbc5a2d2edaf3a01a07211a99224e9bfc042a9c0fb67401ac
+size 1208
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Dead_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Dead_Decal.bin
new file mode 100644
index 000000000..42f4c5212
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Dead_Decal.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eddbc56e70f7a2c6f93a45d0971613ad985c4e7a7f6aa58e7ef8f35dea07085e
+size 1264
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_PT.bin
new file mode 100644
index 000000000..d5586c0e4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_PT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9fbc4fd5debcbba25e049c8ab7e5e009245c819a0fd8f287ef8ff4af34ab309e
+size 1194
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_Splash.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_Splash.bin
new file mode 100644
index 000000000..0005fe2f2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_Splash.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:518c77b817b93675aba995494add459674c94ba3ece2d8d9de31daf06ab88b72
+size 1194
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Splash.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Splash.bin
new file mode 100644
index 000000000..bd8c92ccc
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Splash.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c0fa7964c6eaecffe859da4c54680bbe930cffb72ee1b73a7feda50c277b60f2
+size 1295
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin
index 8e83ae77d..f056eac09 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:eff64f0aec70177895feddc841d6adde1bd1c7f028149a544082712d3c57d5b4
+oid sha256:39f6dceca76fb1f83e238efa1336f37cf4f8d7d28aa7502396625211158901d5
size 1210
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin
index c853d1ba6..467d74cef 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4a9533f4fe3f556901a3b7db30c9e4fb19ae943a60bf99402e73f3eeaf3ca394
+oid sha256:f0e730f326463918e9c7eda06d8d06cff6e4097e9ad032d0b57eae953945db1d
size 1217
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Rock_PT.bin
index 8f5432e80..631c5d65e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Rock_PT.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Rock_PT.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:23cf3d5bec2be4b13b8bd36a67126d5918e93a36b3cf2f8bb30b1c78bc8648dd
+oid sha256:4f806c466b4daac7716d146fc441222906abc18d222b290e5e7064599be81bd6
size 1194
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokLand/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokLand/Bottom_Decal.bin
index 59ca1dda6..032431f32 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokLand/Bottom_Decal.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokLand/Bottom_Decal.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:95907d7f9ad9ad332ad87df576b43ac08ce4b9de03e9b265dc379c2e2ae6091b
+oid sha256:56f3760dd872cd0a2b7eb1c2cb0fc9b829a8308309098ae4685327164a2778cc
size 1202
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokRushBottom/Rush_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokRushBottom/Rush_Decal.bin
index f88dc97ba..e16280cda 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokRushBottom/Rush_Decal.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokRushBottom/Rush_Decal.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3eb3759fc7d8e9f7362cab51e8b4e1eba42a58fc54e91b8e408a35e2a2fc49fc
+oid sha256:86cf2f5a666efcb033d5bab267f798c59ada8caa95633758150da2b4efd03dc3
size 1261
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/ClawDecal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/ClawDecal.bin
new file mode 100644
index 000000000..1f8e25928
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/ClawDecal.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ddc63f2fa3e728246110650cc1a11e621c6b61943a5e241b879df1da50874d6c
+size 1310
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Rock_PT.bin
new file mode 100644
index 000000000..65a5f64a2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Rock_PT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:edbc64ea785c00472314bd2ace35e7e964ed88dcedf2de521f3902f25abab6ad
+size 1186
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Swipe_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Swipe_Smoke.bin
new file mode 100644
index 000000000..829137b36
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Swipe_Smoke.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d7925f18d62413a1c8d3e6e7231275118a0111054bbe8e65fcb79cf64903b364
+size 1191
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
index b27062221..025e3f529 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
@@ -439,7 +439,7 @@ PS_OUT PS_MAIN(PS_IN In)
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
fSurfaceParam, // 서페이스 파라미터
- 1.f);
+ (2.f / 255.f));
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = vSurface;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index 3185f6d30..ad0d75979 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -964,6 +964,9 @@ float2 ComputeDecal(float4 vPosition , float4x4 LocalMatrixInv)
vDepthUV.y = vPosition.y / g_fWinSizeY;
float4 vDepthDesc = g_DepthTexture.Sample(PointSampler, vDepthUV);
+
+ clip(0.5f - vDepthDesc.w); /* 지형과 메쉬에게서만 수행할 것 */
+
float3 vNormalDesc = g_NormalMapTexture.Sample(PointSampler, vDepthUV).xyz;
vNormalDesc = normalize(vNormalDesc * 2.f - 1.f);
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index a9194344d..c981dabb1 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -215,7 +215,10 @@ call Update_Shaders.bat
+
+
+
@@ -491,7 +494,10 @@ call Update_Shaders.bat
+
+
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 3ddda3ce4..2c0845dcb 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -760,6 +760,15 @@
{614e67ae-6df9-4826-adbe-6be96f54041d}
+
+ {1893fa7b-b08f-4362-a212-7751614d4922}
+
+
+ {8172dd50-d631-4fa8-8d09-e459600365fa}
+
+
+ {7a345ef7-8e16-45df-9bc3-e8fc665f729f}
+
@@ -1539,6 +1548,15 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\GroundPulse
+
+ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Swipe
+
+
+ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadSplash
+
+
+ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadImpact
+
@@ -2326,6 +2344,15 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\GroundPulse
+
+ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Swipe
+
+
+ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadSplash
+
+
+ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadImpact
+
diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
index 33517ec77..e676c4afe 100644
--- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
@@ -31,6 +31,9 @@
#include "Ranrok_Land.h"
#include "Ranrok_Rush_Bottom.h"
#include "Ranrok_GroundPulse.h"
+#include "Ranrok_Swipe.h"
+#include "Ranrok_DeadSplash.h"
+#include "Ranrok_DeadImpact.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -406,7 +409,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
- if (FAILED(Create_Effect(SKILL_TYPE::RANROK_GROUNDPULSE, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_GROUNDPULSE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_GroundPulse* pEffect = nullptr;
@@ -415,6 +418,32 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_SWIPE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_Swipe* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_SPLASH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_DeadSplash* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_IMPACT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_DeadImpact* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 267bc85b0..d5567f098 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -224,6 +224,10 @@
#include "Ranrok_Land.h"
#include "Ranrok_Rush_Bottom.h"
#include "Ranrok_GroundPulse.h"
+#include "Ranrok_Swipe.h"
+#include "Ranrok_DeadSplash.h"
+#include "Ranrok_DeadImpact.h"
+
#pragma endregion
#pragma region PHYSX_HEADER
@@ -1977,6 +1981,18 @@ HRESULT CLoader::Loading_For_Effect()
if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_GroundPulse::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
+
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_Swipe::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_DeadSplash::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_DeadImpact::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
/* For.Prototype_GameObject_Wand */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_DeadImpact.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_DeadImpact.cpp
new file mode 100644
index 000000000..eb6667c72
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_DeadImpact.cpp
@@ -0,0 +1,200 @@
+#include "pch.h"
+#include "Ranrok_DeadImpact.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_DeadImpact::CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_DeadImpact::CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_DeadImpact::Initialize_Prototype()
+{
+
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_DeadImpact::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact")))
+ return E_FAIL;
+
+ m_wstrEffectName = L"RanrokDeadImpact";
+
+
+
+ m_fDuration = 5.f;
+
+
+ return S_OK;
+}
+
+void CRanrok_DeadImpact::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_DeadImpact::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+
+
+
+}
+
+void CRanrok_DeadImpact::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_DeadImpact::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+ /* 초기 객체 비지블*/
+
+ CEditEffect* pDistortion = Get_PartObject("Distortion");
+ CEditEffect* pDistortion_Small = Get_PartObject("Distortion_Small");
+ CEditEffect* pPulse_White = Get_PartObject("Pulse_White");
+ CEditEffect* pSplash_Black = Get_PartObject("Splash_Black");
+ CEditEffect* pSplash_Red = Get_PartObject("Splash_Red");
+ CEditEffect* pSpline0 = Get_PartObject("Spline0");
+ CEditEffect* pSpline1 = Get_PartObject("Spline1");
+ CEditEffect* pSide_Pt = Get_PartObject("Side_Pt");
+ CEditEffect* pCircle_0 = Get_PartObject("Circle_0");
+
+ pDistortion->Set_Visible(true);
+ pDistortion_Small->Set_Visible(true);
+ pPulse_White->Set_Visible(true);
+ pSplash_Black->Set_Visible(true);
+ pSplash_Red->Set_Visible(true);
+ pSpline0->Set_Visible(true);
+ pSpline1->Set_Visible(true);
+ pSide_Pt->Set_Visible(true);
+ pCircle_0->Set_Visible(true);
+ /* 초기 객체 위치 초기화*/
+
+ _vector vPos = m_pOwner->Get_Component()->Get_HeadPosition();
+
+
+ pDistortion->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pDistortion_Small->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pPulse_White->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pSplash_Black->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pSplash_Red->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pSpline0->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pSpline1->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pSide_Pt->Get_Component()->Set_State(STATE::POSITION, vPos);
+ pCircle_0->Get_Component()->Set_State(STATE::POSITION, vPos);
+
+ return S_OK;
+}
+
+HRESULT CRanrok_DeadImpact::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_DeadImpact::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_DeadImpact* CRanrok_DeadImpact::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_DeadImpact");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_DeadImpact::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_DeadImpact");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_DeadImpact::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+}
+
+void CRanrok_DeadImpact::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+
+}
+#ifdef _DEBUG
+void CRanrok_DeadImpact::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_DeadImpact::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_DeadSplash.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_DeadSplash.cpp
new file mode 100644
index 000000000..55d952db1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_DeadSplash.cpp
@@ -0,0 +1,200 @@
+#include "pch.h"
+#include "Ranrok_DeadSplash.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_DeadSplash::CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_DeadSplash::CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_DeadSplash::Initialize_Prototype()
+{
+
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_DeadSplash::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash")))
+ return E_FAIL;
+
+ m_wstrEffectName = L"RanrokDeadSplash";
+
+
+
+ m_fDuration = 5.f;
+
+
+ return S_OK;
+}
+
+void CRanrok_DeadSplash::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_DeadSplash::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+
+
+
+}
+
+void CRanrok_DeadSplash::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_DeadSplash::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ _float4 vPos = *static_cast<_float4*>(pArg);
+ _vector vPosition = XMLoadFloat4(&vPos);
+ /* 초기 객체 비지블*/
+
+ CEditEffect* pDead_Decal = Get_PartObject("Dead_Decal");
+ CEditEffect* pRock_PT = Get_PartObject("Rock_PT");
+ CEditEffect* pRock_Splash = Get_PartObject("Rock_Splash");
+ CEditEffect* pSplash = Get_PartObject("Splash");
+
+ pDead_Decal->Set_Visible(true);
+ pRock_PT->Set_Visible(true);
+
+ pRock_Splash->Set_Visible(true);
+ pSplash->Set_Visible(true);
+
+ /* 초기 객체 위치 초기화*/
+
+ pRock_PT->Get_Component()->Set_State(STATE::POSITION, vPosition);
+ pSplash->Get_Component()->Set_State(STATE::POSITION, vPosition);
+
+ CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
+
+ if (pPlayer == nullptr)
+ return E_FAIL;
+
+ _vector vPlayer_FootPos = pPlayer->Get_Component()->Get_FootPosition();
+
+
+ _vector vCompute_Pos = XMVectorSetY(vPosition, XMVectorGetY(vPlayer_FootPos));
+ pRock_Splash->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+
+ vCompute_Pos = XMVectorSetY(m_pOwner->Get_WorldPostion(), XMVectorGetY(vPlayer_FootPos));
+
+ pDead_Decal->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+
+ return S_OK;
+}
+
+HRESULT CRanrok_DeadSplash::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_DeadSplash::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_DeadSplash* CRanrok_DeadSplash::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_DeadSplash");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_DeadSplash::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_DeadSplash");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_DeadSplash::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+}
+
+void CRanrok_DeadSplash::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+
+}
+#ifdef _DEBUG
+void CRanrok_DeadSplash::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_DeadSplash::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
index 35c0a2743..be4965f97 100644
--- a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
@@ -564,6 +564,12 @@ void CRanrok::Behavior_SwipeEnter()
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_SWIPE , this);
+ }, 0.3f);
+
}
HRESULT CRanrok::Behavior_SwipeExitCheck(_float fTimeDelta)
@@ -888,12 +894,90 @@ void CRanrok::Behavior_DeadEnter()
m_bLookAt = false;
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::DEAD);
+ m_fDeadRatio = 0.f;
+
+ pairAnimInfo = m_Animation[STATEANIM::DEAD];
+ m_pBottomSmoke->Set_Visible(false);
+ m_pLeftSmoke->Set_Visible(false);
+ m_pRightSmoke->Set_Visible(false);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ _vector vPos = m_pCharacter_Controller->Get_Position();
+ _float4 vPosFloat4 = {};
+ XMStoreFloat4(&vPosFloat4, vPos);
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &vPosFloat4);
+
+ }, 0.f);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("pinky_06_right")) * m_pTransformCom->Get_XMWorldMatrix();
+
+ _vector vPos = BoneMat.r[3];
+ _float4 vPosFloat4 = {};
+ XMStoreFloat4(&vPosFloat4, vPos);
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
+
+ }, 0.2f);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("elbow_left")) * m_pTransformCom->Get_XMWorldMatrix();
+
+ _vector vPos = BoneMat.r[3];
+ _float4 vPosFloat4 = {};
+ XMStoreFloat4(&vPosFloat4, vPos);
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
+
+ }, 0.34f);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix();
+
+ _vector vPos = BoneMat.r[3];
+ _float4 vPosFloat4 = {};
+ XMStoreFloat4(&vPosFloat4, vPos);
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
+
+ }, 0.44f);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix();
+
+ _vector vPos = BoneMat.r[3];
+ _float4 vPosFloat4 = {};
+ XMStoreFloat4(&vPosFloat4, vPos);
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
+
+ }, 0.6f);
+
+ Add_Event(pairAnimInfo.first,
+ [&]() {
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_IMPACT, this);
+
+ }, 0.8f);
+
+
+#ifndef 진우
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
m_pRigidBody->SetActive(false);
m_pCharacter_Controller->SetActive(false);
-
+#endif
pairAnimInfo = m_Animation[STATEANIM::DEAD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -901,15 +985,36 @@ void CRanrok::Behavior_DeadEnter()
HRESULT CRanrok::Behavior_DeadExitCheck(_float fTimeDelta)
{
+
+
+#ifdef 진우
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ m_pFSM->Disable_State(FSMSTATE::DEAD);
+ return S_OK;
+ }
+#endif
+
if (FLT_EPSILON > m_pModelCom->Get_CurrentTrackProgressRatio()) {
return E_PENDING;
}
+
+
return S_OK;
}
void CRanrok::Behavior_DeadExit()
{
+
+#ifndef 진우
m_bDead = true;
+#else
+
+ m_pFSM->Disable_State(FSMSTATE::DEAD);
+
+#endif
+
}
@@ -1129,7 +1234,9 @@ void CRanrok::Add_FSM()
Desc.funcLateUpdate = [this](_float fDeadRatio) {
m_fDeadRatio = fDeadRatio;
if (m_fDeadRatio > 1.f) {
+#ifndef 진우
m_bDead = true;
+#endif
}
};
Desc.vDeadTimer.x = FLT_EPSILON5;
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Swipe.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Swipe.cpp
new file mode 100644
index 000000000..04c44afd9
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_Swipe.cpp
@@ -0,0 +1,227 @@
+#include "pch.h"
+#include "Ranrok_Swipe.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_Swipe::CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_Swipe::CRanrok_Swipe(const CRanrok_Swipe& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_Swipe::Initialize_Prototype()
+{
+
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_Swipe::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe")))
+ return E_FAIL;
+
+ m_wstrEffectName = L"RanrokSwipe";
+
+ m_pRock_PT = Get_PartObject("Rock_PT");
+ SAFE_ADDREF(m_pRock_PT);
+
+ m_fDuration = 5.f;
+
+
+ m_Events.emplace(0.4f, [&]() {
+
+ CEditEffect* pClawDecal = Get_PartObject("ClawDecal");
+ pClawDecal->Set_Visible(true);
+
+ CEditEffect* pSmoke = Get_PartObject("Swipe_Smoke");
+ pSmoke->Set_Visible(true);
+
+ _vector vComputePos = Compute_Pos();
+
+ pSmoke->Get_Component()->Set_State(STATE::POSITION, vComputePos);
+
+ _vector vLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK));
+ _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f) , vLook));
+ _vector vUp = XMVector3Normalize(XMVector3Cross(vLook , vRight));
+ _vector vPos = vComputePos;
+
+ _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
+
+ pClawDecal->Get_Component()->Set_WorldMatrix(PJ_WorldMat);
+ });
+
+ m_Events.emplace(0.8f, [&]() {
+ m_isParticleEnd = true;
+ m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f));
+ });
+
+ return S_OK;
+}
+
+void CRanrok_Swipe::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_Swipe::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+ if (m_isParticleEnd == false)
+ {
+ _vector vComputePos = Compute_Pos();
+ m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, vComputePos);
+
+ }
+
+
+}
+
+void CRanrok_Swipe::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_Swipe::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ /* 초기 객체 비지블*/
+ m_pRock_PT->Set_Visible(true);
+
+
+ /* 초기 객체 위치 초기화*/
+ _vector vComputePos = Compute_Pos();
+ m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, vComputePos);
+
+ m_isParticleEnd = false;
+ return S_OK;
+}
+
+HRESULT CRanrok_Swipe::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Swipe::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_Swipe* CRanrok_Swipe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_Swipe* pInstance = new CRanrok_Swipe(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_Swipe");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_Swipe::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_Swipe* pInstance = new CRanrok_Swipe(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_Swipe");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_Swipe::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+}
+
+_fvector CRanrok_Swipe::Compute_Pos()
+{
+ _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("wrist_left_target")) * m_pOwner->Get_Component()->Get_XMWorldMatrix();
+
+ _vector vBonePos = BoneMat.r[3];
+
+
+ CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
+
+
+
+ _vector vPlayer_FootPos = pPlayer->Get_Component()->Get_FootPosition();
+
+ XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
+
+ _vector vCompute_Pos = XMVectorSetY(vBonePos, XMVectorGetY(vPlayer_FootPos));
+
+ return vCompute_Pos;
+}
+
+void CRanrok_Swipe::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+ SAFE_RELEASE(m_pRock_PT);
+
+}
+#ifdef _DEBUG
+void CRanrok_Swipe::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_Swipe::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index f6d3488ab..5001520c7 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -68,7 +68,7 @@ namespace Editor
STUN,
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_IMPACT , RANROK_HIT, RANROK_LAND, RANROK_RUSH_BOTTOM,
- RANROK_GROUNDPULSE,
+ RANROK_GROUNDPULSE, RANROK_SWIPE, RANROK_DEAD_SPLASH , RANROK_DEAD_IMPACT,
END
};
diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_DeadImpact.h b/Jusin154_Team3D/Editor/Public/Ranrok_DeadImpact.h
new file mode 100644
index 000000000..2999b3613
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Ranrok_DeadImpact.h
@@ -0,0 +1,58 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CRanrok_DeadImpact final : public CEffect_Container
+{
+private:
+ CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs);
+ virtual ~CRanrok_DeadImpact() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CEditEffect* m_pGooRod_0 = { nullptr };
+ class CEditEffect* m_pSmoke = { nullptr };
+ class CEditEffect* m_pSpread_PT = { nullptr };
+
+ _float3 m_vLook = {};
+ _float m_fLinearSpeed = 0.8f;
+
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
+private:
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+public:
+ static CRanrok_DeadImpact* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // DEBUG
+
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_DeadSplash.h b/Jusin154_Team3D/Editor/Public/Ranrok_DeadSplash.h
new file mode 100644
index 000000000..fdd470ab6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Ranrok_DeadSplash.h
@@ -0,0 +1,58 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CRanrok_DeadSplash final : public CEffect_Container
+{
+private:
+ CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs);
+ virtual ~CRanrok_DeadSplash() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CEditEffect* m_pGooRod_0 = { nullptr };
+ class CEditEffect* m_pSmoke = { nullptr };
+ class CEditEffect* m_pSpread_PT = { nullptr };
+
+ _float3 m_vLook = {};
+ _float m_fLinearSpeed = 0.8f;
+
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
+private:
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+public:
+ static CRanrok_DeadSplash* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // DEBUG
+
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_Swipe.h b/Jusin154_Team3D/Editor/Public/Ranrok_Swipe.h
new file mode 100644
index 000000000..6745abad3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Ranrok_Swipe.h
@@ -0,0 +1,59 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CRanrok_Swipe final : public CEffect_Container
+{
+private:
+ CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_Swipe(const CRanrok_Swipe& rhs);
+ virtual ~CRanrok_Swipe() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+ _fvector Compute_Pos();
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CEditEffect* m_pRock_PT = { nullptr };
+
+ _float3 m_vLook = {};
+ _float m_fLinearSpeed = 0.8f;
+
+ _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
+ _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
+
+ _bool m_isParticleEnd = {};
+private:
+ class CInfoInstance* m_pInfoInstance = { nullptr };
+public:
+ static CRanrok_Swipe* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // DEBUG
+
+
+};
+
+NS_END