diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index efcc46742..b2b060724 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -184,6 +184,8 @@ call Update_Resources.bat + + @@ -200,6 +202,7 @@ call Update_Resources.bat + @@ -466,6 +469,8 @@ call Update_Resources.bat + + @@ -481,6 +486,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 0ebb2982f..13af0b1dc 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 + 02.GameObjects\NPC\Hostile\Human_Duelist @@ -1779,6 +1788,15 @@ {8b69e309-b90b-47f6-8f2d-3dd778b468fe} + + {a7aeb7ef-a180-49ba-81f6-c8a47dcb941d} + + + {7a994c53-e406-485e-82c2-6a116b6b23e5} + + + {e1fcb75d-6e7a-4adb-9835-6913ac6f44b6} + @@ -2589,6 +2607,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 fcb69dc65..4820a3961 100644 --- a/Jusin154_Team3D/Client/Private/Level_Field.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp @@ -159,12 +159,13 @@ HRESULT CLevel_Field::Ready_Lights() _float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f); _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); -#ifdef gimch +#if 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); #endif // gimch + pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); @@ -177,6 +178,7 @@ HRESULT CLevel_Field::Ready_Volumetric() { m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + return S_OK; } @@ -223,12 +225,10 @@ HRESULT CLevel_Field::Ready_Layer_SkyBox() HRESULT CLevel_Field::Ready_Background() { - _float4 vColor = _float4(0.2f, 0.246f, 0.253f, 1.f); - m_pGameInstance->Set_FogColor(vColor); - m_pGameInstance->Set_Fog(10.f, 8.f); - m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + + CInfoInstance::GetInstance()->Load_MapObjects("Dungeon_Map_Data", LAYER_BACKGROUND); CInfoInstance::GetInstance()->Load_WorldDecal("Duengon_Decal_Data", LAYER_BACKGROUND); CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data", LAYER_BACKGROUND); diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 99fd6b626..610d68505 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -325,18 +325,20 @@ HRESULT CLevel_GamePlay::Ready_Background() #if 진우 #else - if(isReady_Hogsmeade) + +#endif + + if (isReady_Hogsmeade) { if (FAILED(Ready_Layer_Hogsmeade())) return E_FAIL; } - if(isReady_Hogwart) + if (isReady_Hogwart) { if (FAILED(Ready_Layer_Hogwart())) return E_FAIL; } -#endif if (FAILED(Ready_IntstanceProp())) return E_FAIL; @@ -804,7 +806,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) isLoad_RandomNPC = true; #endif // gimch #ifdef 진우 - isLoad_RandomNPC = true; + isLoad_RandomNPC = false; + isLoad_NPC = false; #endif // #ifdef 기무리 isLoad_NPC = false; @@ -903,7 +906,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster() #endif // gimch #ifdef 진우 - isLoad_Monster = true; + isLoad_Monster = false; #endif // #ifdef 기무리 isLoad_Monster = true; diff --git a/Jusin154_Team3D/Client/Private/Level_Logo.cpp b/Jusin154_Team3D/Client/Private/Level_Logo.cpp index 0dbf4fd1d..abbf41173 100644 --- a/Jusin154_Team3D/Client/Private/Level_Logo.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Logo.cpp @@ -46,6 +46,9 @@ void CLevel_Logo::Update(_float fTimeDelta) return; } } + + + } HRESULT CLevel_Logo::Render() diff --git a/Jusin154_Team3D/Client/Private/Light_Main.cpp b/Jusin154_Team3D/Client/Private/Light_Main.cpp index 235ee5384..86b3fa2c6 100644 --- a/Jusin154_Team3D/Client/Private/Light_Main.cpp +++ b/Jusin154_Team3D/Client/Private/Light_Main.cpp @@ -98,12 +98,21 @@ HRESULT CLight_Main::Ready_Components(void* pArg) { __super::Ready_Components(nullptr); - _matrix LIGHT_WorldMatrixDoNotModify = - _matrix(0.819145918f, 0.f, -0.573572040f, 0.f, + + if (NEXT_LEVEL == ENUM_CLASS(LEVEL::GAMEPLAY)) + { + _matrix LIGHT_WorldMatrixDoNotModify = + _matrix(0.819145918f, 0.f, -0.573572040f, 0.f, 0.553958654f, 0.258784860f, 0.791134834f, 0.f , 0.148416296f, -0.965690017f, 0.211960629f, 0.f , 0.f, 0.f, 0.f, 1.f); - m_pTransformCom->Set_WorldMatrix(LIGHT_WorldMatrixDoNotModify); + m_pTransformCom->Set_WorldMatrix(LIGHT_WorldMatrixDoNotModify); + } + else if (NEXT_LEVEL == ENUM_CLASS(LEVEL::FIELD)) + { + m_pTransformCom->Rotation(XMConvertToRadians(-4.f), XMConvertToRadians(271.f), 0.f); + + } LIGHT_DESC* pLightDescArg = static_cast(pArg); diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 24cee374b..9ec6a961e 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -219,6 +219,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" @@ -2604,6 +2607,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/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 6f6c040d6..e6125ee4a 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -525,6 +525,8 @@ HRESULT CPlayer::Ready_Components() } m_pStat = m_pInfoInstance->Get_PlayerStatPtr(); + SAFE_ADDREF(m_pStat); + m_Components.push_back(m_pStat); SAFE_ADDREF(m_pStat); diff --git a/Jusin154_Team3D/Client/Private/PlayerInfo.cpp b/Jusin154_Team3D/Client/Private/PlayerInfo.cpp index e7cc16ab6..d999af9db 100644 --- a/Jusin154_Team3D/Client/Private/PlayerInfo.cpp +++ b/Jusin154_Team3D/Client/Private/PlayerInfo.cpp @@ -10,6 +10,9 @@ CPlayerInfo::CPlayerInfo() CStat* CPlayerInfo::Get_PlayerStatPtr() { + if (m_pStat == nullptr) + return nullptr; + return m_pStat; } diff --git a/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp b/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp index 23fd682c4..314330ffe 100644 --- a/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp +++ b/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp @@ -537,6 +537,7 @@ void CPlayerRobe::Free() for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) { SAFE_RELEASE(m_pRobeJointAnchor[i]); } +#ifdef _Debug if (nullptr != m_pMainShape) { m_pMainShape.release(); m_pMainShape = nullptr; @@ -545,4 +546,5 @@ void CPlayerRobe::Free() m_pSubShape.release(); m_pSubShape = nullptr; } +#endif // _DEBUG } diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index 4e8d24960..610a11ed5 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; @@ -399,10 +402,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) Add_Event(pairAnimInfo.first, [&]() {m_bDisolve = true; }, - 0.15f); + 0.25f); Add_Event(pairAnimInfo.first, [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, - 0.5f); + 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; } @@ -415,10 +418,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) Add_Event(pairAnimInfo.first, [&]() {m_bDisolve = true; }, - 0.15f); + 0.25f); Add_Event(pairAnimInfo.first, [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, - 0.5f); + 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; } @@ -432,10 +435,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) Add_Event(pairAnimInfo.first, [&]() {m_bDisolve = true; }, - 0.15f); + 0.25f); Add_Event(pairAnimInfo.first, [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, - 0.5f); + 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); 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 49bb289da..13022cbcc 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/Avadakedavra/Circle_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Circle_1.bin index 8fea3892c..0d476871e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Circle_1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Circle_1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f4b4b0ad3a97cf97ef143611c6079d6f4325be0d228683999cea32b3881ee336 +oid sha256:4d431eeeb354c31cb1a24071130e036b91accfb9dfe8728b823b4dc3d784d878 size 1231 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/RanrokPoint/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Smoke.bin index e4dac9e45..22e865634 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:836e5bd978a28877d58a2a04f35ae7b1c12d1e0695e031fe6bf6ead309ef52a2 -size 1296 +oid sha256:d132ae5f2687479c0f1c6d6d8191cd98ce497906c5fc265bf6f65590e807a7c9 +size 1287 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin index a869f6c71..e66c6a2c6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d83905230177e85d8af39235b52b489e709d575eda2da53523c7fe18c07db9d7 +oid sha256:3a885f02b56b66f32883ad4f0386c6c511df511c5d172390a06c0625c18123cd size 1210 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin index 3dafdea5c..c1152e0ad 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3498ce843154813d20f8b9633b88bf5e8f8f2f1b4a6bf05d99322abab81bc8ba +oid sha256:7a7b5c89cb56630436e52f4df48192e2aad373626eea2a4b735d1f443d91eab3 size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin index 206c6b0d8..e7a680fe3 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3cde890983244a19238162ac3badf4877057dda1dd83ae95d87ed3dbd72d6df9 +oid sha256:c6ba6509f7cff453fb884036d0ce5676f79c979c25687528ae65d048e067a7b4 size 1194 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 e289bf2d4..199fea1ea 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl @@ -444,7 +444,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 024daad13..2b600576c 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 5de131f8a..3f81afff4 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -760,6 +760,15 @@ {12d83369-3413-478f-920e-c3c0ddeabfe8} + + {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/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index e3518b164..9c5261843 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -111,6 +111,7 @@ HRESULT CLevel_EffectViewer::Initialize() m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + return S_OK; } @@ -164,8 +165,12 @@ HRESULT CLevel_EffectViewer::Ready_Layer_Light() return E_FAIL; } - _float4 vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f); - _float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f); + //_float4 vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f); + //_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f); + //_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); + + _float4 vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f); + _float4 vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f); _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); @@ -228,6 +233,8 @@ HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag) m_pGameInstance->Set_Fog(10.f, 5.f); m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data"); + CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data"); + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index e21dfd444..7cfaf1ce4 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 @@ -1918,6 +1922,9 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLightSpawner::Create(m_pDevice, m_pContext)))) + return E_FAIL; + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Dagger::Create(m_pDevice, m_pContext)))) { return E_FAIL; @@ -1977,6 +1984,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 diff --git a/Jusin154_Team3D/Engine/Private/Mesh.cpp b/Jusin154_Team3D/Engine/Private/Mesh.cpp index 8efa6d820..f8df543d1 100644 --- a/Jusin154_Team3D/Engine/Private/Mesh.cpp +++ b/Jusin154_Team3D/Engine/Private/Mesh.cpp @@ -280,9 +280,12 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr m_pVertexPositions = new _float3[m_iNumVertices]; ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices); - +#ifdef DEBUG m_VertexTexcoords = new _float2[m_iNumVertices]; ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices); +#endif // DEBUG + + for (_uint i = 0; i < m_iNumVertices; ++i) { @@ -303,8 +306,12 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr XMStoreFloat3(&pVertices[i].vBinormal, XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix))); + pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV; +#ifdef DEBUG memcpy(&m_VertexTexcoords[i], &pVertices[i].vTexcoord, sizeof(_float2)); +#endif + } D3D11_SUBRESOURCE_DATA InitialVBData{};