From a7465dda93b0cebd176b3f5d005d760f83286d42 Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Sat, 10 Jan 2026 10:00:40 +0900 Subject: [PATCH 1/6] commit --- .../Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin index 8802f26a9..8c3f0423a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0a6eab9501cc6388353ca7157bcf14d74f946a410376d11bd58b9efda9079d7d -size 1196 +oid sha256:df7e96bdbafaf0dab026f4b8eb6a79db940502ee7abc5562d113f4de198b3ab6 +size 1191 From e19c98468f9f0c5076eddc64577c8b9874e98e25 Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Sat, 10 Jan 2026 10:52:16 +0900 Subject: [PATCH 2/6] commit --- Jusin154_Team3D/Client/Private/Stupefy.cpp | 45 ++++--------------- Jusin154_Team3D/Client/Public/Stupefy.h | 3 +- .../Resources/Data/Effect/Package/Stupefy.bin | 4 +- .../Data/Effect/Stupefy/Stupefy_Circle0.bin | 4 +- .../Data/Effect/Stupefy/Stupefy_Hit_PT.bin | 2 +- .../Data/Effect/Stupefy/Stupefy_PJ.bin | 3 ++ .../Data/Effect/Stupefy/Stupefy_PJ0.bin | 3 -- .../Data/Effect/Stupefy/Stupefy_PJ1.bin | 3 -- .../Data/Effect/Stupefy/Stupefy_PJ_PT.bin | 2 +- 9 files changed, 18 insertions(+), 51 deletions(-) create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin delete mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin delete mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp index e8e7656b8..225c76bce 100644 --- a/Jusin154_Team3D/Client/Private/Stupefy.cpp +++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp @@ -43,11 +43,9 @@ HRESULT CStupefy::Initialize(void* pArg) m_wstrEffectName = L"Stupefy"; - m_pProjectile0 = Get_PartObject("Stupefy_PJ0"); - SAFE_ADDREF(m_pProjectile0); + m_pProjectile = Get_PartObject("Stupefy_PJ"); + SAFE_ADDREF(m_pProjectile); - m_pProjectile1 = Get_PartObject("Stupefy_PJ1"); - SAFE_ADDREF(m_pProjectile1); m_pStupefy_PJ_PT = Get_PartObject("Stupefy_PJ_PT"); SAFE_ADDREF(m_pStupefy_PJ_PT); @@ -74,7 +72,7 @@ void CStupefy::Update(_float fTimeDelta) Update_Event(fTimeDelta); m_pStupefy_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - + m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -112,9 +110,6 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) - - CEffectParts* pStupefy_PJ0 = Get_PartObject("Stupefy_PJ0"); - CEffectParts* pStupefy_PJ1 = Get_PartObject("Stupefy_PJ1"); CEffectParts* pWand_Distortion = Get_PartObject("Wand_Distortion"); CEffectParts* pStupefy_Light_Long = Get_PartObject("Stupefy_Light_Long"); @@ -122,13 +117,12 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) CEffectParts* pStupefy_Smoke = Get_PartObject("Stupefy_Smoke"); - pStupefy_PJ0->Set_Visible(true); - pStupefy_PJ1->Set_Visible(true); pWand_Distortion->Set_Visible(true); pStupefy_Light_Long->Set_Visible(true); pBodyFlare->Set_Visible(true); pStupefy_Smoke->Set_Visible(true); m_pStupefy_PJ_PT->Set_Visible(true); + m_pProjectile->Set_Visible(true); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); @@ -136,10 +130,9 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) _vector vWandPos = pWand->Get_WorldPostion(); - pStupefy_PJ0->Get_Component()->Set_State(STATE::POSITION, vWandPos); - pStupefy_PJ1->Get_Component()->Set_State(STATE::POSITION, vWandPos); m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vWandPos); pStupefy_Light_Long->Get_Component()->Set_State(STATE::POSITION, vWandPos); pBodyFlare->Get_Component()->Set_State(STATE::POSITION, vWandPos); @@ -178,24 +171,6 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) } } - - /* PJ 월드 구성하기 */ - - _float fLength = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - vPlayerPos)); - - CTransform* pPJ0_Transform = pStupefy_PJ0->Get_Component(); - CTransform* pPJ1_Transform = pStupefy_PJ1->Get_Component(); - - _vector vUp = XMVector3Normalize(vDirection) * fLength; - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 0.f, 1.f, 0.f) , vUp)); - _vector vLook = XMVector3Normalize(XMVector3Cross(vUp, vRight)); - _vector vPos = vPlayerPos; - - _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; - - pPJ0_Transform->Set_WorldMatrix(PJ_WorldMat); - pPJ1_Transform->Set_WorldMatrix(PJ_WorldMat); - return S_OK; } @@ -263,11 +238,8 @@ void CStupefy::OnCollision(CGameObject* pOther, void* pDesc) - m_pProjectile0->Set_Visible(false); - m_pProjectile1->Set_Visible(false); - - /*맞는순간 위로 올리기*/ - m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 500.f, 0.f, 1.f)); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); + m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); } @@ -276,8 +248,7 @@ void CStupefy::Free() { __super::Free(); - SAFE_RELEASE(m_pProjectile0); - SAFE_RELEASE(m_pProjectile1); + SAFE_RELEASE(m_pProjectile); SAFE_RELEASE(m_pStupefy_PJ_PT); } diff --git a/Jusin154_Team3D/Client/Public/Stupefy.h b/Jusin154_Team3D/Client/Public/Stupefy.h index e2b3fd52c..742b052f6 100644 --- a/Jusin154_Team3D/Client/Public/Stupefy.h +++ b/Jusin154_Team3D/Client/Public/Stupefy.h @@ -35,8 +35,7 @@ class CStupefy final : public CEffect_Container class CInfoInstance* m_pInfoInstance = { nullptr }; private: _wstring m_wstrEffectName = {}; - class CEffectParts* m_pProjectile0 = {}; - class CEffectParts* m_pProjectile1 = {}; + class CEffectParts* m_pProjectile = {}; class CEffectParts* m_pStupefy_PJ_PT = {}; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin index 58a1dac3c..f792201cf 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dd7aa69103b5f95090b66b0d3327b62f6a57155b24c8a6ab3fd38a613955933c -size 631 +oid sha256:9a44d912916265038d3a540f9c56d29defc3179288360f9082edfc62140fdbb5 +size 569 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin index 867903a1c..7edd74e3d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a53855eb8aca50722e420c0036a2e83bababc5e73e9c86c5062265c78a232b2f -size 1247 +oid sha256:58a884e377b191ef0d355a15006c1d8b2117b7c1cdfe18ebde58e44850793bdc +size 1249 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin index 42d73f8f6..bfc5e4cfa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8a9c812466b7c10bbf7b4fba98d34eb918ecba87e5390f176d261ee0494f9294 +oid sha256:e2e47b6f35517f2a08d2103abff1e250e91891bec50e42244ed76b47183e01bf size 1175 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin new file mode 100644 index 000000000..f48f7dbd3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6d1a2aade06b4925d5193932755bef7f2c66f0723bd53d24f9593214a66616e +size 1251 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin deleted file mode 100644 index e9a34808f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6ee4b8b35fa425653e6e70f228d9bdffb3988ff9f4d1edac1176d5a9bae821e -size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin deleted file mode 100644 index 39d8afaf6..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e1f2980c52690ed8519c6cbfdf399f6d00b9fa1ec45a68621a9f55ecc653107e -size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin index aba1f8d09..1a4bc4c66 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b4991be0d9220894a36fcada332cc7a34b24d927f772b025c26c3102fd8d9d32 +oid sha256:d877fd0d02ffc922d6deddfa918b4ca989c2e57c7060d70c627e95b292a99254 size 1177 From 68e2bd686acf2d728e5cd55863607a0a20d7f9d9 Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Sat, 10 Jan 2026 10:59:51 +0900 Subject: [PATCH 3/6] commit --- Jusin154_Team3D/Client/Private/Loader.cpp | 30 +++++++++++++---------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 584b8b796..74cdcb6c6 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -3728,22 +3728,10 @@ HRESULT CLoader::Loading_For_GamePlay() } -#pragma region RECEIVE_THREAD - { - m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); - _uint iIndex = 0; - for (auto& JobMapShader : jobMapShaders) - { - pair<_wstring, CShader*>* pOut = JobMapShader.get(); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) { - return E_FAIL; - } - Safe_Delete(pOut); - } - } /* 쉐이더 로딩 종료 이후 로딩*/ +#pragma region RECEIVE_THREAD { // MapModels m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); @@ -3768,7 +3756,23 @@ HRESULT CLoader::Loading_For_GamePlay() Safe_Delete(pOut); } } + + + { + m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); + _uint iIndex = 0; + for (auto& JobMapShader : jobMapShaders) + { + pair<_wstring, CShader*>* pOut = JobMapShader.get(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) { + return E_FAIL; + } + Safe_Delete(pOut); + } + } + #pragma endregion + m_strMessage = TEXT("정보를 불러오는 중입니다."); m_strMessage = TEXT("모델을 다시 불러오는 중입니다. "); From 447dea5e5438b0aa854f0f165d86762694392db5 Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Sun, 11 Jan 2026 10:31:26 +0900 Subject: [PATCH 4/6] commit --- Jusin154_Team3D/Client/Default/Client.vcxproj | 2 + .../Client/Default/Client.vcxproj.filters | 11 +- .../Client/Private/BombardSide.cpp | 2 +- .../Client/Private/Duelist_Levioso.cpp | 145 +++------ .../Client/Private/EffectObject.cpp | 34 ++- Jusin154_Team3D/Client/Private/EffectPool.cpp | 11 +- Jusin154_Team3D/Client/Private/Levioso.cpp | 127 +++----- .../Client/Private/LeviosoSide.cpp | 9 +- Jusin154_Team3D/Client/Private/Loader.cpp | 60 ++++ .../Client/Private/Player_States.cpp | 2 +- .../Client/Private/Protego_Hit.cpp | 3 +- Jusin154_Team3D/Client/Private/Stupefy.cpp | 23 +- .../Client/Private/StupefySide.cpp | 223 ++++++++++++++ Jusin154_Team3D/Client/Public/Client_Enum.h | 2 +- Jusin154_Team3D/Client/Public/Client_Struct.h | 20 +- .../Client/Public/Duelist_Levioso.h | 20 +- Jusin154_Team3D/Client/Public/EffectObject.h | 5 +- Jusin154_Team3D/Client/Public/Levioso.h | 16 +- Jusin154_Team3D/Client/Public/Stupefy.h | 4 +- Jusin154_Team3D/Client/Public/StupefySide.h | 53 ++++ .../Data/Effect/Levioso/Levioso_Bottom_PT.bin | 2 +- .../Effect/Levioso/Levioso_Bottom_Wind.bin | 3 - .../Data/Effect/Levioso/Levioso_Hit.bin | 3 - .../Data/Effect/Levioso/Levioso_Hit0.bin | 3 + .../Data/Effect/Levioso/Levioso_PJ.bin | 3 + .../Data/Effect/Levioso/Levioso_PJ0.bin | 3 - .../Data/Effect/Levioso/Levioso_Rotate0.bin | 4 +- .../Data/Effect/Levioso/Levioso_Rotate1.bin | 4 +- .../Data/Effect/Levioso/Levioso_Spline.bin | 3 + .../Data/Effect/Levioso/Levioso_Tornado.bin | 4 +- .../Data/Effect/Levioso/Levioso_Trail.trail | Bin 427 -> 305 bytes .../Data/Effect/Levioso/Levioso_Wand0.bin | 3 - .../Effect/Levioso/Levioso_Wand_Light.bin | 3 - .../Data/Effect/Levioso/Spread_Circle.bin | 3 + .../Data/Effect/Levioso/Trail_PT0.bin | 3 - .../Data/Effect/Levioso/Wand_Light_P.bin | 3 + .../Data/Effect/Levioso/Wand_Smoke.bin | 3 + .../Data/Effect/LeviosoSide/Trail_P.trail | Bin 335 -> 352 bytes .../Data/Effect/LeviosoSide/Wand_Light_P.bin | 4 +- .../Data/Effect/MapEffect/Ranrok_Goo0.bin | 2 +- .../Data/Effect/MapEffect/Ranrok_Goo1.bin | 2 +- .../Data/Effect/MapEffect/Ranrok_Goo2.bin | 2 +- .../Data/Effect/MapEffect/Ranrok_Goo3.bin | 2 +- .../Data/Effect/MapEffect/Ranrok_Goo4.bin | 2 +- .../Effect/MapEffect/Ranrok_Particle_Red1.bin | 3 + .../Resources/Data/Effect/Package/Levioso.bin | 4 +- .../Data/Effect/Package/ProtegoHit.bin | 4 +- .../Resources/Data/Effect/Package/Stupefy.bin | 4 +- .../Data/Effect/Package/StupefySide.bin | 3 + .../Data/Effect/ProtegoHit/ScreenFX_Hit.bin | 3 + .../Data/Effect/Stupefy/Stupefy_Hit_PT.bin | 2 +- .../Data/Effect/Stupefy/Stupefy_PJ.bin | 4 +- .../Data/Effect/Stupefy/Stupefy_PJ2.bin | 3 + .../Data/Effect/Stupefy/Stupefy_PJ_PT.bin | 2 +- .../Data/Effect/Stupefy/Stupefy_Smoke.bin | 2 +- .../Data/Effect/StupefySide/Trail_B.trail | Bin 0 -> 352 bytes .../Data/Effect/StupefySide/Wand_Light_B.bin | 3 + .../Effect/StupefySide/Wand_Particle_B.bin | 3 + .../ParticleMesh/fm_c_screwup_002.002.bin | 3 + .../ParticleMesh/fm_c_screwup_002.002.fbx | 3 + .../ParticleMesh/fm_c_screwup_003.002.bin | 3 + .../ParticleMesh/fm_c_screwup_003.002.fbx | 3 + .../ParticleMesh/fm_d_screw_004.002.bin | 3 + .../ParticleMesh/fm_d_screw_004.002.fbx | 3 + .../ParticleMesh/fm_e_screw_008.002.bin | 3 + .../ParticleMesh/fm_e_screw_008.002.fbx | 3 + .../ParticleMesh/fm_e_screw_010_1.002.bin | 3 + .../ParticleMesh/fm_e_screw_010_1.002.fbx | 3 + .../ParticleMesh/fm_h_tornado_03_1.001.bin | 3 + .../ParticleMesh/fm_h_tornado_03_1.001.fbx | 3 + .../ParticleMesh/fm_h_tornado_04_1.001.bin | 3 + .../ParticleMesh/fm_h_tornado_04_1.001.fbx | 3 + .../ParticleMesh/fm_h_tornado_08_1.001.bin | 3 + .../ParticleMesh/fm_h_tornado_08_1.001.fbx | 3 + .../ParticleMesh/fm_h_tornado_08_2.001.bin | 3 + .../ParticleMesh/fm_h_tornado_08_2.001.fbx | 3 + .../ParticleMesh/fm_o_tornado_01.001.bin | 3 + .../ParticleMesh/fm_o_tornado_01.001.fbx | 3 + .../ParticleMesh/fn_m_screw_001.002.bin | 3 + .../ParticleMesh/fn_m_screw_001.002.fbx | 3 + .../Effect/ParticleMesh/thunder_01.001.bin | 3 + .../Effect/ParticleMesh/thunder_01.001.fbx | 3 + .../Effect/ParticleMesh/thunder_02.002.bin | 3 + .../Effect/ParticleMesh/thunder_02.002.fbx | 3 + .../ShaderFiles/Shader_VtxModelInstance.hlsl | 2 +- Jusin154_Team3D/Editor/Default/Editor.vcxproj | 4 + .../Editor/Default/Editor.vcxproj.filters | 18 ++ Jusin154_Team3D/Editor/Private/EditEffect.cpp | 7 +- .../Editor/Private/EffectObject.cpp | 38 ++- Jusin154_Team3D/Editor/Private/EffectPool.cpp | 20 ++ .../Editor/Private/Level_EffectViewer.cpp | 4 +- Jusin154_Team3D/Editor/Private/Levioso.cpp | 109 +++---- .../Editor/Private/LeviosoSide.cpp | 9 +- Jusin154_Team3D/Editor/Private/Loader.cpp | 10 + .../Editor/Private/Player_States.cpp | 16 +- .../Editor/Private/Protego_Hit.cpp | 4 + Jusin154_Team3D/Editor/Private/Stupefy.cpp | 284 ++++++++++++++++++ .../Editor/Private/StupefySide.cpp | 221 ++++++++++++++ Jusin154_Team3D/Editor/Public/EditEffect.h | 2 + Jusin154_Team3D/Editor/Public/Editor_Define.h | 2 +- Jusin154_Team3D/Editor/Public/EffectObject.h | 11 +- Jusin154_Team3D/Editor/Public/Levioso.h | 16 +- Jusin154_Team3D/Editor/Public/Stupefy.h | 54 ++++ Jusin154_Team3D/Editor/Public/StupefySide.h | 53 ++++ Jusin154_Team3D/Engine/Private/UIObject.cpp | 1 + 105 files changed, 1452 insertions(+), 387 deletions(-) create mode 100644 Jusin154_Team3D/Client/Private/StupefySide.cpp create mode 100644 Jusin154_Team3D/Client/Public/StupefySide.h delete mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_Wind.bin delete mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit0.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ.bin delete mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin delete mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin delete mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Spread_Circle.bin delete mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Smoke.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red1.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ2.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Trail_B.trail create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Light_B.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Particle_B.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.fbx create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.bin create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.fbx create mode 100644 Jusin154_Team3D/Editor/Private/Stupefy.cpp create mode 100644 Jusin154_Team3D/Editor/Private/StupefySide.cpp create mode 100644 Jusin154_Team3D/Editor/Public/Stupefy.h create mode 100644 Jusin154_Team3D/Editor/Public/StupefySide.h diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index 987c96c90..29b14f3ef 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -163,6 +163,7 @@ call Update_Resources.bat + @@ -462,6 +463,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 50d52b126..558272c0c 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -913,13 +913,16 @@ 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit - + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop 04.Mechanic\State\State_Combat\State_Block + + 02.GameObjects\Effect\Effects\Stupefy\StupefySide + @@ -1905,6 +1908,9 @@ {c0fdb122-503b-47f0-a544-90d153464c9a} + + {b38bbd65-c266-4117-9a36-a0ec4a8377ca} + @@ -2775,6 +2781,9 @@ 04.Mechanic\State\State_Combat\State_Block + + 02.GameObjects\Effect\Effects\Stupefy\StupefySide + diff --git a/Jusin154_Team3D/Client/Private/BombardSide.cpp b/Jusin154_Team3D/Client/Private/BombardSide.cpp index 9e44140a2..70a4b8841 100644 --- a/Jusin154_Team3D/Client/Private/BombardSide.cpp +++ b/Jusin154_Team3D/Client/Private/BombardSide.cpp @@ -50,7 +50,7 @@ HRESULT CBombardSide::Initialize(void* pArg) SAFE_ADDREF(m_pWandTrail); SAFE_ADDREF(m_pWandParticle); - m_fDuration = 2.f; + m_fDuration = 3.f; m_Events.emplace(0.6f, [&]() { m_isParticleEnd = true; diff --git a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp index 5b9021d6e..336f165c2 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp @@ -3,7 +3,7 @@ #include "GameInstance.h" #include "EffectParts.h" -#include "Human_Duelist.h" +#include "Player.h" #include "TrailObject.h" #include "Wand.h" #include "InfoInstance.h" @@ -27,6 +27,7 @@ HRESULT CDuelist_Levioso::Initialize_Prototype() return E_FAIL; return S_OK; + } HRESULT CDuelist_Levioso::Initialize(void* pArg) @@ -40,26 +41,16 @@ HRESULT CDuelist_Levioso::Initialize(void* pArg) if (FAILED(Create_Effect())) return E_FAIL; - m_iSkillType = ENUM_CLASS(SKILL_TYPE::DUELIST_LEVIOSO); + m_iSkillType = ENUM_CLASS(SKILL_TYPE::LEVIOSO); - m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); + m_pLeviosoPJ = Get_PartObject("Levioso_PJ"); - m_pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); - m_pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); - - SAFE_ADDREF(m_pLevioso_Rotate0); - SAFE_ADDREF(m_pLevioso_Rotate1); - - SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pTrail_PT_0); + SAFE_ADDREF(m_pLeviosoPJ); m_wstrEffectName = L"Levioso"; - m_fTurnSpeed = 10.f; - m_fRange = 1.f; - m_fDuration = 2.f; + m_fDuration = 6.f; @@ -70,7 +61,7 @@ void CDuelist_Levioso::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ->Get_WorldPostion()); } @@ -83,19 +74,8 @@ void CDuelist_Levioso::Update(_float fTimeDelta) Update_Event(fTimeDelta); - m_pLeviosoPJ_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - m_pTrail_PT_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix(); - - if (m_bHit == true && m_pEnemyTransform != nullptr) - { - _vector vPos = m_pEnemyTransform->Get_State(STATE::POSITION); - - m_pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vPos); - } + m_pLeviosoPJ->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -104,20 +84,15 @@ void CDuelist_Levioso::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); - if (true == m_pGameInstance->SphereCast(0.25f, XMLoadFloat4(&m_vStartPos), XMVector3Normalize(vDir), XMVectorGetX(XMVector3Length(vDir)) - , PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eSTATIC, m_Hitbuffer)) - { - - } - if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f); + ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.002f); OnCollision(this, &CollisionInfo); } @@ -131,28 +106,30 @@ HRESULT CDuelist_Levioso::Pre_Setting(CGameObject* pObject, void* pArg) if (FAILED(__super::Pre_Setting(pObject, nullptr))) return E_FAIL; - CHuman_Duelist* pDuelist = static_cast(m_pOwner); + CPlayer* pPlayer = static_cast(m_pOwner); - if (pDuelist == nullptr) + if (pPlayer == nullptr) return E_FAIL; - _vector WandPos = pDuelist->Get_WandPos().r[3]; + _vector WandPos = pPlayer->Get_WandPos().r[3]; - CEffectParts* pWandSmoke = Get_PartObject("Levioso_Wand0"); - CEffectParts* pWandLight = Get_PartObject("Levioso_Wand_Light"); + CEffectParts* pWandSmoke = Get_PartObject("Wand_Smoke"); + CEffectParts* pWandLight = Get_PartObject("Wand_Light_P"); + CEffectParts* pSpread_Circle = Get_PartObject("Spread_Circle"); - m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pDuelist->Get_PartObject()->Get_WorldPostion()); - pWandLight->Get_Component()->Set_State(STATE::POSITION, pDuelist->Get_PartObject()->Get_WorldPostion()); - m_pLeviosoPJ_0->Set_Visible(true); - m_pTrail_PT_0->Set_Visible(true); + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, WandPos); + + pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pSpread_Circle->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + + m_pLeviosoPJ->Set_Visible(true); pWandSmoke->Set_Visible(true); pWandLight->Set_Visible(true); + pSpread_Circle->Set_Visible(true); - - m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK))); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); XMStoreFloat3(&m_vCameraLook, vDirection); @@ -162,16 +139,11 @@ HRESULT CDuelist_Levioso::Pre_Setting(CGameObject* pObject, void* pArg) { /* 대상 위치 지정 */ - CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first; + m_pInfoInstance->Get_LockOnInfo(m_Info); - if (pPlayer == nullptr) - return E_FAIL; + if (nullptr != m_Info.pUnit) { - _vector vPlayerPos = pPlayer->Get_Component()->Get_Position(); - - if (nullptr != pPlayer) { - - XMStoreFloat4(&m_vTargetPos, vPlayerPos); + XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos()); XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); } @@ -182,15 +154,6 @@ HRESULT CDuelist_Levioso::Pre_Setting(CGameObject* pObject, void* pArg) } - _vector vDir = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); - - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir)); - - _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vDir)); - - _matrix ProjMat = _matrix(vRight, vUp, vDir, vStartPos); - - m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(ProjMat); return S_OK; } @@ -246,17 +209,19 @@ void CDuelist_Levioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - m_fAccTime = 0.f; m_fDuration = 3.5f; //적중하면 지속시간 3초 + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + CEffectParts* pLevioso_Spline = Get_PartObject("Levioso_Spline"); + CEffectParts* pLevioso_Hit0 = Get_PartObject("Levioso_Hit0"); + + pLevioso_Hit0->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pLevioso_Spline->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + pLevioso_Hit0->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); /* 바람과 파티클은 풋포지션 */ CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); @@ -265,50 +230,38 @@ void CDuelist_Levioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vFootPos = pHitCCT->Get_FootPosition(); CEffectParts* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + CEffectParts* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + CEffectParts* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); CEffectParts* pLevioso_Bottom_PT = Get_PartObject("Levioso_Bottom_PT"); + CEffectParts* pLevioso_Spline = Get_PartObject("Levioso_Spline"); - m_pEnemyTransform = CollisionDesc.pObject->Get_Component(); pLevioso_Tornado->Get_Component()->Set_State(STATE::POSITION, vFootPos); - pLevioso_Bottom_Wind->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vFootPos); pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Tornado->Set_Visible(true); + pLevioso_Rotate0->Set_Visible(true); + pLevioso_Rotate1->Set_Visible(true); + pLevioso_Bottom_PT->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); } - //Get_PartObject("Levioso_Tornado") - //CEffectParts* pLevioso_Hit = Get_PartObject("Levioso_Hit"); - //CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); - - - - m_pLeviosoPJ_0->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - //m_pLeviosoTrail->Set_Visible(false); } void CDuelist_Levioso::Free() { __super::Free(); - SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pTrail_PT_0); - - SAFE_RELEASE(m_pLevioso_Rotate0); - SAFE_RELEASE(m_pLevioso_Rotate1); + SAFE_RELEASE(m_pLeviosoPJ); } #ifdef _DEBUG void CDuelist_Levioso::Describe_Entity() { - GUI::Begin("LEVIOSO", 0, IMGUI_GLOBAL_BEGIN_FLAG); - - GUI::DragFloat("TURN SPEED", &m_fTurnSpeed); - GUI::DragFloat("RANGE", &m_fRange); - GUI::End(); - } #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp index 02553833d..416db96f1 100644 --- a/Jusin154_Team3D/Client/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp @@ -395,6 +395,12 @@ HRESULT CEffectObject::Load(CEffect_Container::EFFECT_SAVE_INFO EffectSaveInfo, m_pInstance_ModelCom->Load_InstanceModel(EffectSaveInfo.InstanceModelInfo); + if (m_EffectInfo.isScreenFX == true) + { + XMStoreFloat4x4(&m_ScreenViewMatrix, XMMatrixIdentity()); + XMStoreFloat4x4(&m_OrthographicMatrix, XMMatrixOrthographicLH(g_iWinSizeX, g_iWinSizeY, 0.f, 1.f)); + } + return S_OK; } @@ -769,11 +775,31 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { - return E_FAIL; + if (m_EffectInfo.isScreenFX == false) + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { + return E_FAIL; + } } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { - return E_FAIL; + else + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_OrthographicMatrix))) { + return E_FAIL; + } } if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 62ae635e2..99c5308b9 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -18,6 +18,7 @@ #include "LeviosoSide.h" #include "DecendoSide.h" #include "AvadakedavraSide.h" +#include "StupefySide.h" #include "TransformationSide.h" #include "NomalJapSide.h" @@ -511,7 +512,15 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; - + if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY_SIDE, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CStupefySide* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp index 4119b3388..5275d1121 100644 --- a/Jusin154_Team3D/Client/Private/Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Levioso.cpp @@ -27,6 +27,7 @@ HRESULT CLevioso::Initialize_Prototype() return E_FAIL; return S_OK; + } HRESULT CLevioso::Initialize(void* pArg) @@ -42,24 +43,14 @@ HRESULT CLevioso::Initialize(void* pArg) m_iSkillType = ENUM_CLASS(SKILL_TYPE::LEVIOSO); - m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); + m_pLeviosoPJ = Get_PartObject("Levioso_PJ"); - m_pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); - m_pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); - - SAFE_ADDREF(m_pLevioso_Rotate0); - SAFE_ADDREF(m_pLevioso_Rotate1); - - SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pTrail_PT_0); + SAFE_ADDREF(m_pLeviosoPJ); m_wstrEffectName = L"Levioso"; - m_fTurnSpeed = 10.f; - m_fRange = 1.f; - m_fDuration = 2.f; + m_fDuration = 6.f; @@ -70,7 +61,7 @@ void CLevioso::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ->Get_WorldPostion()); } @@ -83,19 +74,8 @@ void CLevioso::Update(_float fTimeDelta) Update_Event(fTimeDelta); - m_pLeviosoPJ_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - m_pTrail_PT_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix(); - - if (m_bHit == true && m_pEnemyTransform != nullptr) - { - _vector vPos = m_pEnemyTransform->Get_State(STATE::POSITION); - - m_pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vPos); - } + m_pLeviosoPJ->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -104,17 +84,17 @@ void CLevioso::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); - if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); - OnCollision(this , &CollisionInfo); + OnCollision(this, &CollisionInfo); } __super::Late_Update(fTimeDelta); @@ -133,21 +113,23 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) _vector WandPos = pPlayer->Get_WandPos().r[3]; - CEffectParts* pWandSmoke = Get_PartObject("Levioso_Wand0"); - CEffectParts* pWandLight = Get_PartObject("Levioso_Wand_Light"); + CEffectParts* pWandSmoke = Get_PartObject("Wand_Smoke"); + CEffectParts* pWandLight = Get_PartObject("Wand_Light_P"); + CEffectParts* pSpread_Circle = Get_PartObject("Spread_Circle"); + + + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pSpread_Circle->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); - m_pLeviosoPJ_0->Set_Visible(true); - m_pTrail_PT_0->Set_Visible(true); + m_pLeviosoPJ->Set_Visible(true); pWandSmoke->Set_Visible(true); pWandLight->Set_Visible(true); + pSpread_Circle->Set_Visible(true); - - m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + XMStoreFloat3(&m_vCameraLook , XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK))); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); XMStoreFloat3(&m_vCameraLook, vDirection); @@ -159,9 +141,9 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) m_pInfoInstance->Get_LockOnInfo(m_Info); - if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) { + if (nullptr != m_Info.pUnit) { - XMStoreFloat4(&m_vTargetPos, Get_LockOnPos(m_Info)); + XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos()); XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); } @@ -172,15 +154,6 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) } - _vector vDir = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); - - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir)); - - _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vDir)); - - _matrix ProjMat = _matrix(vRight, vUp, vDir, vStartPos); - - m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(ProjMat); return S_OK; } @@ -236,69 +209,59 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - m_fAccTime = 0.f; m_fDuration = 3.5f; //적중하면 지속시간 3초 + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - /* 바람과 파티클은 풋포지션 */ CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); if (pHitCCT != nullptr) { - _vector vFootPos = pHitCCT->Get_FootPosition(); + + CEffectParts* pLevioso_Spline = Get_PartObject("Levioso_Spline"); + CEffectParts* pLevioso_Hit0 = Get_PartObject("Levioso_Hit0"); + + pLevioso_Hit0->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pLevioso_Spline->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + pLevioso_Hit0->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); + + /* 바람과 파티클은 풋포지션 */ + + _vector vFootPos = pHitCCT->Get_FootPosition(); CEffectParts* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + CEffectParts* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + CEffectParts* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); CEffectParts* pLevioso_Bottom_PT = Get_PartObject("Levioso_Bottom_PT"); - m_pEnemyTransform = CollisionDesc.pObject->Get_Component(); - pLevioso_Tornado->Get_Component()->Set_State(STATE::POSITION, vFootPos); - pLevioso_Bottom_Wind->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vFootPos); pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Tornado->Set_Visible(true); + pLevioso_Rotate0->Set_Visible(true); + pLevioso_Rotate1->Set_Visible(true); + pLevioso_Bottom_PT->Set_Visible(true); } + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); - - //Get_PartObject("Levioso_Tornado") - //CEffectParts* pLevioso_Hit = Get_PartObject("Levioso_Hit"); - //CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); - - - - m_pLeviosoPJ_0->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - //m_pLeviosoTrail->Set_Visible(false); } void CLevioso::Free() { __super::Free(); - SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pTrail_PT_0); - - SAFE_RELEASE(m_pLevioso_Rotate0); - SAFE_RELEASE(m_pLevioso_Rotate1); + SAFE_RELEASE(m_pLeviosoPJ); } #ifdef _DEBUG void CLevioso::Describe_Entity() { - GUI::Begin("LEVIOSO", 0, IMGUI_GLOBAL_BEGIN_FLAG); - - GUI::DragFloat("TURN SPEED", &m_fTurnSpeed); - GUI::DragFloat("RANGE", &m_fRange); - GUI::End(); - } #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/LeviosoSide.cpp b/Jusin154_Team3D/Client/Private/LeviosoSide.cpp index 77f3a1dc6..9c0bbddcf 100644 --- a/Jusin154_Team3D/Client/Private/LeviosoSide.cpp +++ b/Jusin154_Team3D/Client/Private/LeviosoSide.cpp @@ -47,7 +47,12 @@ HRESULT CLeviosoSide::Initialize(void* pArg) SAFE_ADDREF(m_pWandLight); SAFE_ADDREF(m_pWandTrail); - m_fDuration = 1.f; + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); return S_OK; } @@ -75,7 +80,7 @@ void CLeviosoSide::Update(_float fTimeDelta) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - m_pWandTrail->Get_Component()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix()); + m_pWandTrail->Oneside_Rope_Trail_Update(pWand->Get_WorldMatrix() , fTimeDelta); } diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 5b63f1f5c..6ec6fa357 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -244,6 +244,7 @@ #include "Barral_Splesh.h" #include "Screen_Wind.h" #include "Stupefy.h" +#include "StupefySide.h" #include "Lightning.h" #include "LightningSide.h" #include "Transformation.h" @@ -373,6 +374,55 @@ HRESULT CLoader::Loading_For_Logo() m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); +#if 진우 +#pragma region SHADER + vector*>> jobMapShaders; + + { + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_UIEDITOR, + TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_UIINSTANCE, + TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_INSTANCE_MODEL, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_INSTANCE_PROP_MODEL, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_NPC_PBR_ANIM, + TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_ANIMMESH, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_POSTEX, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_NORTEX, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"), VTXNORTEX::Elements, VTXNORTEX::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_MESH, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), VTXMESH::Elements, VTXMESH::iNumElements)); + jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext, + FX_VTXPOS, + TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements)); + } + + for (auto& JobMapShader : jobMapShaders) + { + pair<_wstring, CShader*>* pOut = JobMapShader.get(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) { + return E_FAIL; + } + Safe_Delete(pOut); + } + +#endif + +#pragma endregion m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다."); @@ -396,6 +446,8 @@ HRESULT CLoader::Loading_For_Logo() return E_FAIL; } + + m_strMessage = TEXT("로딩이 완료되었습니다.."); m_isFinished = true; @@ -1083,6 +1135,7 @@ HRESULT CLoader::Loading_For_GamePlay() } } +#ifndef 진우 #pragma region SHADER { @@ -1119,6 +1172,7 @@ HRESULT CLoader::Loading_For_GamePlay() } #pragma endregion +#endif /* LAND_MODEL */ { /* For.Prototype_Component_South_Hogwart_Land_LOD1 */ @@ -2521,13 +2575,19 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLeviosoSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBombardSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDecendoSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CStupefySide::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTransformationSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index d129a51c6..66cfd614d 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -1848,7 +1848,7 @@ HRESULT CPlayer::Behavior_BlockExitCheck(_float fTimeDelta) } Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); }, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY_SIDE, Get_PartObject()); }, 0.01f); diff --git a/Jusin154_Team3D/Client/Private/Protego_Hit.cpp b/Jusin154_Team3D/Client/Private/Protego_Hit.cpp index 6edfd4e37..78fb49871 100644 --- a/Jusin154_Team3D/Client/Private/Protego_Hit.cpp +++ b/Jusin154_Team3D/Client/Private/Protego_Hit.cpp @@ -94,6 +94,7 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) CEffectParts* pProtego_HitPT = Get_PartObject("Protego_HitPT"); CEffectParts* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line"); CEffectParts* pProtegoHit = Get_PartObject("ProtegoHit"); + CEffectParts* pScreenFX_Hit = Get_PartObject("ScreenFX_Hit"); m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); @@ -109,7 +110,7 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) pProtego_HitPT->Set_Visible(true); pProtego_HitPT_Line->Set_Visible(true); pProtegoHit->Set_Visible(true); - + pScreenFX_Hit->Set_Visible(true); diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp index 225c76bce..400a2ee64 100644 --- a/Jusin154_Team3D/Client/Private/Stupefy.cpp +++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp @@ -46,6 +46,9 @@ HRESULT CStupefy::Initialize(void* pArg) m_pProjectile = Get_PartObject("Stupefy_PJ"); SAFE_ADDREF(m_pProjectile); + m_pProjectile2 = Get_PartObject("Stupefy_PJ2"); + SAFE_ADDREF(m_pProjectile2); + m_pStupefy_PJ_PT = Get_PartObject("Stupefy_PJ_PT"); SAFE_ADDREF(m_pStupefy_PJ_PT); @@ -73,7 +76,7 @@ void CStupefy::Update(_float fTimeDelta) m_pStupefy_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - + m_pProjectile2->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } void CStupefy::Late_Update(_float fTimeDelta) @@ -121,8 +124,9 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) pStupefy_Light_Long->Set_Visible(true); pBodyFlare->Set_Visible(true); pStupefy_Smoke->Set_Visible(true); - m_pStupefy_PJ_PT->Set_Visible(true); + //m_pStupefy_PJ_PT->Set_Visible(true); m_pProjectile->Set_Visible(true); + m_pProjectile2->Set_Visible(true); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); @@ -133,6 +137,7 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, vWandPos); m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile2->Get_Component()->Set_State(STATE::POSITION, vWandPos); pStupefy_Light_Long->Get_Component()->Set_State(STATE::POSITION, vWandPos); pBodyFlare->Get_Component()->Set_State(STATE::POSITION, vWandPos); @@ -146,7 +151,7 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) _vector vPlayerFootPos = m_pOwner->Get_Component()->Get_FootPosition(); - pStupefy_Smoke->Get_Component()->Set_State(STATE::POSITION, vPlayerFootPos + XMVectorSet(0.f ,1.f ,0.f ,0.f)); + pStupefy_Smoke->Get_Component()->Set_State(STATE::POSITION, vPlayerFootPos); @@ -171,6 +176,16 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) } } + + _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); + _vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook)); + _vector vPos = pWand->Get_WorldPostion(); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pProjectile2->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + return S_OK; } @@ -249,7 +264,9 @@ void CStupefy::Free() __super::Free(); SAFE_RELEASE(m_pProjectile); + SAFE_RELEASE(m_pProjectile2); SAFE_RELEASE(m_pStupefy_PJ_PT); + } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/StupefySide.cpp b/Jusin154_Team3D/Client/Private/StupefySide.cpp new file mode 100644 index 000000000..550b84866 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/StupefySide.cpp @@ -0,0 +1,223 @@ +#include "pch.h" +#include "StupefySide.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Player.h" +#include "Wand.h" +#include "TrailObject.h" + + +CStupefySide::CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CStupefySide::CStupefySide(const CStupefySide& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CStupefySide::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/StupefySide"))) + return E_FAIL; + + + return S_OK; + +} + +HRESULT CStupefySide::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"BombardSide"; + + + m_pWandParticle = Get_PartObject("Wand_Particle_B"); + m_pWandLight = Get_PartObject("Wand_Light_B"); + m_pWandTrail = Get_PartObject(); + + SAFE_ADDREF(m_pWandLight); + SAFE_ADDREF(m_pWandTrail); + SAFE_ADDREF(m_pWandParticle); + + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + //m_isTrailEnd = true; + + XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + }); + + m_Events.emplace(1.3f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); + + + return S_OK; +} + +void CStupefySide::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CStupefySide::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + // 파티클생성이 막히면 실행되지 않음 + if (m_isParticleEnd == false) + m_pWandParticle->Get_Component()->Set_WorldMatrix(pWand->Get_WorldMatrix()); + + // 트레일이 종료되면 위치를 고정함 + _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); + +} + +void CStupefySide::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return E_FAIL; + + m_pWandParticle->Set_Visible(true); + m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고 + + m_pWandLight->Set_Visible(true); + + /*트레일 초기화 */ + m_pWandTrail->Set_Visible(true); + m_isTrailEnd = false; + m_pWandTrail->Get_Component()->Reset_Trail(); + + /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + m_pWandTrail->SetDissolve(false); + + return S_OK; +} + +HRESULT CStupefySide::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CStupefySide::Ready_Child() +{ + return S_OK; +} + +CStupefySide* CStupefySide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CStupefySide* pInstance = new CStupefySide(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CStupefySide::Clone(void* pArg, CGameObject* pOwner) +{ + CStupefySide* pInstance = new CStupefySide(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CStupefySide::OnCollision(CGameObject* pOther, void* pDesc) +{ + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CStupefySide::Free() +{ + __super::Free(); + + + Safe_Release(m_pWandLight); + Safe_Release(m_pWandTrail); + Safe_Release(m_pWandParticle); +} +#ifdef _DEBUG + +void CStupefySide::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CStupefySide::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 8d4265ceb..d9091ade9 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -72,7 +72,7 @@ namespace Client PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT, /*사이드*/ - JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, + JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, STUPEFY_SIDE, /*트롤*/ TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO, diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h index 976bf729e..ee4e0a5aa 100644 --- a/Jusin154_Team3D/Client/Public/Client_Struct.h +++ b/Jusin154_Team3D/Client/Public/Client_Struct.h @@ -279,19 +279,25 @@ typedef struct tagEffectInfo _bool isNonSoftEffect = {}; _float2 vDissolveSmoothRange = { 0.1f , 0.1f }; - _float2 vPadding0 = {}; + + _float fPadding1 = {}; + + _bool isScreenFX = {}; + _bool isPadding0 = {}; + _bool isPadding1 = {}; + _bool isPadding2 = {}; _bool isRimLight = {}; _bool isMask_G = {}; _bool isMask_B = {}; _bool isDissolve_B = {}; - _float4 vPadding1 = {}; - _float4 vPadding2 = {}; - _float4 vPadding3 = {}; - _float4 vPadding4 = {}; - _float4 vPadding5 = {}; - _float4 vPadding6 = {}; + _float4 vPadding1 = {}; + _float4 vPadding2 = {}; + _float4 vPadding3 = {}; + _float4 vPadding4 = {}; + _float4 vPadding5 = {}; + _float4 vPadding6 = {}; }EFFECT_INFO; typedef struct tagTrailInfo diff --git a/Jusin154_Team3D/Client/Public/Duelist_Levioso.h b/Jusin154_Team3D/Client/Public/Duelist_Levioso.h index 8b28a3824..01e917975 100644 --- a/Jusin154_Team3D/Client/Public/Duelist_Levioso.h +++ b/Jusin154_Team3D/Client/Public/Duelist_Levioso.h @@ -34,26 +34,14 @@ class CDuelist_Levioso final : public CEffect_Container private: class CInfoInstance* m_pInfoInstance = { nullptr }; private: - _wstring m_wstrEffectName = {}; - class CPlayer* m_pPlayer = {}; + _wstring m_wstrEffectName = {}; + class CPlayer* m_pPlayer = {}; - class CEffectParts* m_pLeviosoPJ_0 = { nullptr }; - class CEffectParts* m_pLeviosoPJ_1 = { nullptr }; - class CEffectParts* m_pTrail_PT_0 = { nullptr }; - - class CEffectParts* m_pLevioso_Rotate0 = { nullptr }; - class CEffectParts* m_pLevioso_Rotate1 = { nullptr }; - - class CTransform* m_pEnemyTransform = { nullptr }; - - _vector m_vOwnerLook = {}; - _float m_fAccRotateTime = {}; - _float m_fTurnSpeed = {}; - _float m_fRange = {}; + class CEffectParts* m_pLeviosoPJ = { nullptr }; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.25f; + _float m_fLinearSpeed = 0.75f; _float3 m_vCameraLook = {}; public: static CDuelist_Levioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/EffectObject.h b/Jusin154_Team3D/Client/Public/EffectObject.h index b4032a504..effac5751 100644 --- a/Jusin154_Team3D/Client/Public/EffectObject.h +++ b/Jusin154_Team3D/Client/Public/EffectObject.h @@ -57,7 +57,10 @@ class CEffectObject abstract : public CPartObject CInstance_Model* m_pInstance_ModelCom = { nullptr }; const _float4x4* m_pParentMatrix = { nullptr }; - _float4x4 m_FinalParentMatrix; + + _float4x4 m_ScreenViewMatrix = {}; + _float4x4 m_OrthographicMatrix = {}; + _float4x4 m_FinalParentMatrix; protected: EFFECT_INFO m_EffectInfo = {}; diff --git a/Jusin154_Team3D/Client/Public/Levioso.h b/Jusin154_Team3D/Client/Public/Levioso.h index 0e0bf441d..e0fdd493b 100644 --- a/Jusin154_Team3D/Client/Public/Levioso.h +++ b/Jusin154_Team3D/Client/Public/Levioso.h @@ -37,23 +37,11 @@ class CLevioso final : public CEffect_Container _wstring m_wstrEffectName = {}; class CPlayer* m_pPlayer = {}; - class CEffectParts* m_pLeviosoPJ_0 = { nullptr }; - class CEffectParts* m_pLeviosoPJ_1 = { nullptr }; - class CEffectParts* m_pTrail_PT_0 = { nullptr }; - - class CEffectParts* m_pLevioso_Rotate0 = { nullptr }; - class CEffectParts* m_pLevioso_Rotate1 = { nullptr }; - - class CTransform* m_pEnemyTransform = { nullptr }; - - _vector m_vOwnerLook = {}; - _float m_fAccRotateTime = {}; - _float m_fTurnSpeed = {}; - _float m_fRange = {}; + class CEffectParts* m_pLeviosoPJ = { nullptr }; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.25f; + _float m_fLinearSpeed = 0.75f; _float3 m_vCameraLook = {}; public: static CLevioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Stupefy.h b/Jusin154_Team3D/Client/Public/Stupefy.h index 742b052f6..5b1313303 100644 --- a/Jusin154_Team3D/Client/Public/Stupefy.h +++ b/Jusin154_Team3D/Client/Public/Stupefy.h @@ -37,10 +37,10 @@ class CStupefy final : public CEffect_Container _wstring m_wstrEffectName = {}; class CEffectParts* m_pProjectile = {}; class CEffectParts* m_pStupefy_PJ_PT = {}; - + class CEffectParts* m_pProjectile2 = {}; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.7f; + _float m_fLinearSpeed = 1.f; _float3 m_vCameraLook = {}; public: static CStupefy* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/StupefySide.h b/Jusin154_Team3D/Client/Public/StupefySide.h new file mode 100644 index 000000000..e98a245ec --- /dev/null +++ b/Jusin154_Team3D/Client/Public/StupefySide.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CStupefySide final : public CEffect_Container +{ +private: + CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CStupefySide(const CStupefySide& rhs); + virtual ~CStupefySide() = 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 = {}; + + _bool m_isParticleEnd = {}; + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + + class CEffectParts* m_pWandLight = { nullptr }; + class CTrailObject* m_pWandTrail = { nullptr }; + class CEffectParts* m_pWandParticle = { nullptr }; + +public: + static CStupefySide* 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/Levioso/Levioso_Bottom_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin index cc4462588..1e1ffa5cf 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87dc61563f7386bdd600d7da84ab8f4b358e05ddafaffa62db29236333378755 +oid sha256:2ef6ed200f4e9ab5ee03e05cb96692f5a854c222b75116f9a044e4a49afb7e06 size 1165 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_Wind.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_Wind.bin deleted file mode 100644 index 20e29962f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_Wind.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2aad5dff0889db1d7985349f737a7c96722b79f155576a9ab5c072cf1493158b -size 1204 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit.bin deleted file mode 100644 index a62774e61..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:095e59e449f59358f23ca6bdacb586ee2a540885011318b374633cc3cc3f606a -size 1251 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit0.bin new file mode 100644 index 000000000..b15d91405 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a05561f06e3503b1f0cc9f4a1b64bf42de75c383ed1865b073303dc616b6ad35 +size 1253 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ.bin new file mode 100644 index 000000000..1a673fe5b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:829af44b129883d9ad6988a32b0a4b32d2dd6a47f5724bbcb1a6351e96dcfc1b +size 1250 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin deleted file mode 100644 index b9248ccd2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0bdf0bfea70a3d7fe55ac923f99742c48fe5478b5e87e68243a22c95d6235ab7 -size 1165 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin index 0eaa8dc74..d2369a17f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:43c4e97125ff00a6b01ec5dca8fd388d016873526865f7d9ae84fa6c1f9f83c6 -size 1158 +oid sha256:cd88edc0d87bd99f12d7750d45df7bfe07a15688378148d2c8c7db6ec326d96b +size 1205 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin index f7dd40d6d..549ff0172 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e03dc212166ae87ff83375abfd1901fa8656de70a3a2fb3aa1c7873ea84f5eaa -size 1158 +oid sha256:33f44b325c6d9dad348fe07a6c9ee332140e90567e8ad4ced6fdac278a040c45 +size 1205 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin new file mode 100644 index 000000000..03a4350b6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf6b3f407ea87c520d579d7af98ecc12836682dd6a700091951afd81f751b3b8 +size 1211 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin index 124d7d888..1dcb3d954 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0a7aba137c53306c7451b760eb809e8bc6fe0c8379c766976465b677232a6024 -size 1220 +oid sha256:6d30a41bf07e1367520482cf73b0ffeaf325acdd0e6a71f851c98616a9df892b +size 1219 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail index f83c08f6366bf508a954e67310ee39f97d87d2ea..f314332fa98d8e8a24f6a64930ae982d07a5d307 100644 GIT binary patch literal 305 zcmZQzKm{sLZa`6fNq$LXL27(RYDGzDQEGgcTSRO>*Ft-UWCI4x2(%DnA5=5MTx64gj$#M$S%Ek$EzKU}P7sDFae&gesIvgu5;si% literal 427 zcmY#qfPjFa{F3~V%7WDRkkpEj(jp)o?-mj7mI-9J7bT`-rskCx#k(-b<5V98R2~u^ zlvr783{#i{Ym`8oMTK&@xb zoUwuG2C?_R*o+{?*|TTYxj(d>e3H-p&A${o28IUvpFe)sF#^S7`kn0h4~04~Ffg74 ziG#%M-HipSftdjk2jcy$uP;Ky!F>Da)20FWn1B&zAw&;Y?rgQlI$I`WWk5%<1Np4T JV#Kr00sw|OYHt7l diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin deleted file mode 100644 index 09ee5477a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b5486e56e36e161b996225ede86832abf1db6e3e1239021e0e33c1d7aab22fcf -size 1197 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin deleted file mode 100644 index 5eae80ac7..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d86b77b6ac7dda9b3dc2028af8b11b705dd76271879ed35f25dda7602aa958c2 -size 1334 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Spread_Circle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Spread_Circle.bin new file mode 100644 index 000000000..0e8cfb3e1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Spread_Circle.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4397ec9a2372621b95584fb5c639e4c1373385077d66d3844e733cbc492553a +size 1244 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin deleted file mode 100644 index 25b037b0f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3d22785083a70649bc4da5760e998517b9530fe3e45149aa9a949216738862c1 -size 1179 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin new file mode 100644 index 000000000..810d67d4f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b258f9b40f22c59db9e936497e79f846c9f8b2a338d59a443589edee594f6ef +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Smoke.bin new file mode 100644 index 000000000..b44562941 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e6a6b8e0a807c1dc028102c4cc240df07b973c9f29a2e80c639fa2ea234717b +size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Trail_P.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Trail_P.trail index 7a7aaf91a952060c7ac224c7617ec6e513c82cd7..85574a1485192908eed1325f97e186033814da2d 100644 GIT binary patch literal 352 zcmZQzfB-cp9Z-~Cl3!9;kQyJ7T2WG3lo}uA77-s3?_QLcl9`%U;*^@08}GuPLqNG> zUNT6vZ(@38a&SpeYGQW0D^v@FI(x>)7A62>?**|LLB!d!XBik8?A1Rp*)7SKVH0&Q z(H_KS1d4NASGJ4kXR>Ex0P@bXI6%~bG+_rSk2UQtl}Um1LsT@_r==}J;WGja(Tw2- mih%*pZdA|!>awL?Lb@*`}VC{c8oxAuItKn*B2K!00qHnKw_O89YA#r_8^rI0AU~g`T{Br;v;bX cp;G%Hf&c&j diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin index 39c7f067c..61bfacecf 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c91832482aec9e9008a23900a48ed91867c91f964406108325e5eb606ddc2cf3 -size 1200 +oid sha256:ca923ddbb840314fbab63149019fa8078a5d53b2b9c3ef926a3345ebff72bcc3 +size 1145 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin index c59807f34..563cf2020 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b599b9606464cc8a8a0d753b09a8626823c97bab27709007a6bf4782861ec13d +oid sha256:9e5cc31e2aab8ed53c1da2bae9a267e2ede7ec59e2837e0b845e1ab136e23a29 size 1229 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin index 838d1e157..d04d6215f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4895e8e3d74d359a3f24354c809953d67032f5fdc68ac865e2815a2bbe45e74b +oid sha256:c910f305f1540af566b0306b497d6447a098f3123728f695656b32710c276738 size 1229 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin index 64a94d8e7..19b881d54 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a23d45392df0be03277cf46c58d3c0a0b9945f0fed8a48b90e73869fde5375e8 +oid sha256:6430c4b06a14b73b1115f234c7e13c54b3c27760ab31f7f945ce32c93a9e82a9 size 1231 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin index 0313ac077..2a7f0e923 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6f5b24c71bd7515777821be62cbcfb0e602e795cf5cac7ea117a8f81edae71a8 +oid sha256:09584e7e4ea78c06785371fd359f09d5b256ce6a9419d9a6d81a46992594e44d size 1231 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin index bdd39a614..3f3845faa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3d83b19cdaa30e7a5e8d3e564939973d1d0a5b8947caacd2dcc6b9ffab7c2048 +oid sha256:d3802b7e833701e65a5e93b6bb80bc0158926b15bc233ca3fb6cbb9d68feedfa size 1214 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red1.bin new file mode 100644 index 000000000..957a93373 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70e327c3b8af9cdd5a8a809c3fc68e8465105a5a6d012724a0a09b366f52d707 +size 1294 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin index 24957383b..f66063e5d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e7392a101f23639921ab9f6c35f1dfdd767d491f94df486b9f07af294447e880 -size 712 +oid sha256:c3f23491a4cf021055b8a80968779ddf3fd29e074a6202413031ca4de0b0015c +size 702 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin index 02021ee18..da222fe2b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e9d05e13a9fff7a12d10a9c4237cca60f82d7ecc50167aa7b3ac1851e1429b46 -size 333 +oid sha256:2329ed39038a9b733a32c8a6bd004b1d774b3bd8e85b0fef9d09d6d892931391 +size 398 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin index f792201cf..bc9c3873b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9a44d912916265038d3a540f9c56d29defc3179288360f9082edfc62140fdbb5 -size 569 +oid sha256:aea4f8f9c4b314cdf077e969b416eddc5b792ea0b3e5cbeb4dafb5b45989afda +size 630 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin new file mode 100644 index 000000000..c5ffa3902 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb0d150bb6e87ae13f391e22f1e29a1757113db0ae89ea77cd55e5a60b80ea31 +size 202 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin new file mode 100644 index 000000000..f829c835c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8c9bcf30d20800a50aec55d63608b8e78b920a28cb4d748c88d85d6c33b8d9c +size 1169 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin index bfc5e4cfa..cd2584bb0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e2e47b6f35517f2a08d2103abff1e250e91891bec50e42244ed76b47183e01bf +oid sha256:23b18c353afee35d4db439e8078af06c09812786e5ce6b782a43ebceb25c9a3e size 1175 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin index f48f7dbd3..b66edb0ea 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d6d1a2aade06b4925d5193932755bef7f2c66f0723bd53d24f9593214a66616e -size 1251 +oid sha256:264978b7dcde1ac9015818f70f0e500fc72df11a5837a6ee51b01b5df447d601 +size 1239 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ2.bin new file mode 100644 index 000000000..63ce95576 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3abd55a1ceae62c6c9afe8063d9ced6796be2c250a5d1e4a566f5e153c857989 +size 1185 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin index 1a4bc4c66..5cd7f2af2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d877fd0d02ffc922d6deddfa918b4ca989c2e57c7060d70c627e95b292a99254 +oid sha256:f1d764f094e11048ce8bfe3cb26eda1f44fb52e9e5c8ee44acbd3b4b1fed244b size 1177 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin index 8c3f0423a..663a8339e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:df7e96bdbafaf0dab026f4b8eb6a79db940502ee7abc5562d113f4de198b3ab6 +oid sha256:2e193683c2e5717020523aab587f765f7ca93678aac0e57cab703d3fa227f40c size 1191 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Trail_B.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Trail_B.trail new file mode 100644 index 0000000000000000000000000000000000000000..b920a9502d9f030cb05428eee737ebc217cc48fe GIT binary patch literal 352 zcmZQzfB-cp9Z-~Cl3!9;kQyJ7T2WG3lo}uA77-s3?_QLcl9`%U;*^@08}GuPLqNG> zUNT6vZ(@38a&SpeYGQW0D^v@FI(x>)7A62>?**|LLB!d!XBik8?2Fk1?dCt7ZdYrQ zVGrUn0>!zmE8E5NGubmT0C{Ix93W~zny`aQWm5K=r#pl7LsT@_r==}J;WGja(Tw2- mih%*pZdA|! + + @@ -556,6 +558,8 @@ call Update_Shaders.bat + + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index ca3a9b068..44488d32c 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -784,6 +784,12 @@ {b8e8e46c-ec9f-4a89-a970-c9de2ac3f521} + + {546b1677-5dbb-45dd-a152-5b216655e51f} + + + {d84324ea-6303-442d-8f00-ed6555e6b02b} + @@ -1587,6 +1593,12 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\08.Protego\Protego_Hit + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy\StupefySide + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy + @@ -2398,6 +2410,12 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\08.Protego\Protego_Hit + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy\StupefySide + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy + diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index 73d961baa..cc77abdbe 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -32,6 +32,11 @@ HRESULT CEditEffect::Initialize(void* pArg) m_bVisible = false; + + XMStoreFloat4x4(&m_ScreenViewMatrix, XMMatrixIdentity()); + XMStoreFloat4x4(&m_OrthographicMatrix, XMMatrixOrthographicLH(g_iWinSizeX, g_iWinSizeY, 0.f, 1.f)); + + return S_OK; } @@ -524,7 +529,7 @@ void CEditEffect::Describe_Entity() GUI::Checkbox("NonSoftEffect", &m_EffectInfo.isNonSoftEffect); - + GUI::Checkbox("ScreenFX", &m_EffectInfo.isScreenFX); GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp index d974af399..7bb4a11fe 100644 --- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp @@ -867,19 +867,31 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { - return E_FAIL; - } + if (m_EffectInfo.isScreenFX == false) + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { - return E_FAIL; - } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { + return E_FAIL; + } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { - return E_FAIL; + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { + return E_FAIL; + } + } + else + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_OrthographicMatrix))) { + return E_FAIL; + } } _float4x4 WorldInv = {}; @@ -1205,9 +1217,11 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_RawValue("g_isScreenFX", &m_EffectInfo.isScreenFX, sizeof(_bool)))) { + return E_FAIL; + } - if (m_pDiffuse_TextureCom != nullptr) { if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DiffuseTexture", 0))) { diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index a2de42e80..1b9428398 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -16,6 +16,8 @@ #include "LeviosoSide.h" #include "DecendoSide.h" #include "NomalJapSide.h" +#include "Stupefy.h" +#include "StupefySide.h" #include "Troll_Rush_Hit.h" @@ -307,6 +309,24 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CStupefy* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CStupefySide* 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 9c5261843..4105053ce 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -88,8 +88,8 @@ HRESULT CLevel_EffectViewer::Initialize() // return E_FAIL; //} - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) - // return E_FAIL; +/* if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) + return E_FAIL;*/ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) // return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/Levioso.cpp b/Jusin154_Team3D/Editor/Private/Levioso.cpp index e415244e8..a46f0840b 100644 --- a/Jusin154_Team3D/Editor/Private/Levioso.cpp +++ b/Jusin154_Team3D/Editor/Private/Levioso.cpp @@ -41,24 +41,14 @@ HRESULT CLevioso::Initialize(void* pArg) if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso"))) return E_FAIL; - m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); + m_pLeviosoPJ = Get_PartObject("Levioso_PJ"); - m_pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); - m_pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); - - SAFE_ADDREF(m_pLevioso_Rotate0); - SAFE_ADDREF(m_pLevioso_Rotate1); - - SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pTrail_PT_0); + SAFE_ADDREF(m_pLeviosoPJ); m_wstrEffectName = L"Levioso"; - m_fTurnSpeed = 10.f; - m_fRange = 1.f; - m_fDuration = 2.f; + m_fDuration = 6.f; @@ -69,7 +59,7 @@ void CLevioso::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ->Get_WorldPostion()); } @@ -82,19 +72,8 @@ void CLevioso::Update(_float fTimeDelta) Update_Event(fTimeDelta); - m_pLeviosoPJ_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - m_pTrail_PT_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix(); - - if (m_bHit == true && m_pEnemyTransform != nullptr) - { - _vector vPos = m_pEnemyTransform->Get_State(STATE::POSITION); - - m_pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vPos); - } + m_pLeviosoPJ->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -103,11 +82,12 @@ void CLevioso::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); @@ -131,19 +111,21 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) _vector WandPos = pPlayer->Get_WandPos().r[3]; - CEditEffect* pWandSmoke = Get_PartObject("Levioso_Wand0"); - CEditEffect* pWandLight = Get_PartObject("Levioso_Wand_Light"); + CEditEffect* pWandSmoke = Get_PartObject("Wand_Smoke"); + CEditEffect* pWandLight = Get_PartObject("Wand_Light_P"); + CEditEffect* pSpread_Circle = Get_PartObject("Spread_Circle"); + + + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pSpread_Circle->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); - m_pLeviosoPJ_0->Set_Visible(true); - m_pTrail_PT_0->Set_Visible(true); + m_pLeviosoPJ->Set_Visible(true); pWandSmoke->Set_Visible(true); pWandLight->Set_Visible(true); - + pSpread_Circle->Set_Visible(true); m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); @@ -170,15 +152,6 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) } - _vector vDir = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); - - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir)); - - _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vDir)); - - _matrix ProjMat = _matrix(vRight, vUp, vDir, vStartPos); - - m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(ProjMat); return S_OK; } @@ -234,17 +207,19 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - m_fAccTime = 0.f; m_fDuration = 3.5f; //적중하면 지속시간 3초 + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + CEditEffect* pLevioso_Spline = Get_PartObject("Levioso_Spline"); + CEditEffect* pLevioso_Hit0 = Get_PartObject("Levioso_Hit0"); + + pLevioso_Hit0->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pLevioso_Spline->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + pLevioso_Hit0->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); /* 바람과 파티클은 풋포지션 */ CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); @@ -253,50 +228,38 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vFootPos = pHitCCT->Get_FootPosition(); CEditEffect* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - CEditEffect* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + CEditEffect* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + CEditEffect* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); CEditEffect* pLevioso_Bottom_PT = Get_PartObject("Levioso_Bottom_PT"); + CEditEffect* pLevioso_Spline = Get_PartObject("Levioso_Spline"); - m_pEnemyTransform = CollisionDesc.pObject->Get_Component(); pLevioso_Tornado->Get_Component()->Set_State(STATE::POSITION, vFootPos); - pLevioso_Bottom_Wind->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vFootPos); pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Tornado->Set_Visible(true); + pLevioso_Rotate0->Set_Visible(true); + pLevioso_Rotate1->Set_Visible(true); + pLevioso_Bottom_PT->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); } - //Get_PartObject("Levioso_Tornado") - //CEditEffect* pLevioso_Hit = Get_PartObject("Levioso_Hit"); - //CEditEffect* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); - - - - m_pLeviosoPJ_0->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - //m_pLeviosoTrail->Set_Visible(false); } void CLevioso::Free() { __super::Free(); - SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pTrail_PT_0); - - SAFE_RELEASE(m_pLevioso_Rotate0); - SAFE_RELEASE(m_pLevioso_Rotate1); + SAFE_RELEASE(m_pLeviosoPJ); } #ifdef _DEBUG void CLevioso::Describe_Entity() { - GUI::Begin("LEVIOSO"); - - GUI::DragFloat("TURN SPEED", &m_fTurnSpeed); - GUI::DragFloat("RANGE", &m_fRange); - GUI::End(); - } #endif // _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp b/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp index aa618c7d4..c6f5a29f3 100644 --- a/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp +++ b/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp @@ -46,7 +46,12 @@ HRESULT CLeviosoSide::Initialize(void* pArg) SAFE_ADDREF(m_pWandLight); SAFE_ADDREF(m_pWandTrail); - m_fDuration = 1.f; + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); return S_OK; } @@ -74,7 +79,7 @@ void CLeviosoSide::Update(_float fTimeDelta) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - m_pWandTrail->Get_Component()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix()); + m_pWandTrail->Oneside_Rope_Trail_Update(pWand->Get_WorldMatrix() , fTimeDelta); } diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 7d9670f4d..cb3bdf6c3 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -206,6 +206,8 @@ #include "LeviosoSide.h" #include "DecendoSide.h" #include "NomalJapSide.h" +#include "Stupefy.h" +#include "StupefySide.h" #include "TrollSwing.h" #include "Troll_Nomal_Smoke.h" @@ -1980,6 +1982,14 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CStupefy::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CStupefySide::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_FireBall::Create(m_pDevice, m_pContext)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Player_States.cpp b/Jusin154_Team3D/Editor/Private/Player_States.cpp index c850f6412..edb06a43c 100644 --- a/Jusin154_Team3D/Editor/Private/Player_States.cpp +++ b/Jusin154_Team3D/Editor/Private/Player_States.cpp @@ -832,19 +832,25 @@ void CPlayer::Behavior_CombatEnter() Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); }, 0.0f); } else if (SUCCEEDED(InputSpell())) { + m_pFSM->Enable_State(FSMSTATE::SPELL); + _float fEventRatio = 0.2f; + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END)) { - pairAnimInfo = m_Animation[STATEANIM::SPELL]; switch (m_eSpell) { case ENUM_CLASS(SKILL_TYPE::BOMBARDA): Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); }, - 0.2f); + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); }, + 0.01f); + + Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); }, - 0.f); + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); }, + 0.2f); + break; case ENUM_CLASS(SKILL_TYPE::DESCENDO): Add_Event(pairAnimInfo.first, diff --git a/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp b/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp index 0cc850a06..4e8e8c4c9 100644 --- a/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp +++ b/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp @@ -86,6 +86,8 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) CEditEffect* pProtego_HitPT = Get_PartObject("Protego_HitPT"); CEditEffect* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line"); CEditEffect* pProtegoHit = Get_PartObject("Protego_HitPT_Line"); + CEditEffect* pScreenFX_Hit = Get_PartObject("ScreenFX_Hit"); + m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); @@ -100,6 +102,8 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) pProtego_HitPT_Line->Set_Visible(true); pProtegoHit->Set_Visible(true); + pScreenFX_Hit->Set_Visible(true); + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Stupefy.cpp b/Jusin154_Team3D/Editor/Private/Stupefy.cpp new file mode 100644 index 000000000..22e3dbf11 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Stupefy.cpp @@ -0,0 +1,284 @@ +#include "pch.h" +#include "Stupefy.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CStupefy::CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CStupefy::CStupefy(const CStupefy& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ +} + +HRESULT CStupefy::Initialize_Prototype() +{ + + + return S_OK; + +} + +HRESULT CStupefy::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/Package/Stupefy"))) + return E_FAIL; + m_iSkillType = ENUM_CLASS(SKILL_TYPE::STUPEFY); + + m_wstrEffectName = L"Stupefy"; + + m_pProjectile = Get_PartObject("Stupefy_PJ"); + SAFE_ADDREF(m_pProjectile); + + m_pProjectile2 = Get_PartObject("Stupefy_PJ2"); + SAFE_ADDREF(m_pProjectile2); + + + m_pStupefy_PJ_PT = Get_PartObject("Stupefy_PJ_PT"); + SAFE_ADDREF(m_pStupefy_PJ_PT); + + m_fDuration = 4.5f; + + return S_OK; +} + +void CStupefy::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + + XMStoreFloat4(&m_vStartPos, m_pStupefy_PJ_PT->Get_WorldPostion()); +} + +void CStupefy::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + m_pStupefy_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); + m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); + m_pProjectile2->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); +} + +void CStupefy::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + XMStoreFloat4(&m_vEndPos, m_pStupefy_PJ_PT->Get_WorldPostion()); + + _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); + + + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); + + OnCollision(this, &CollisionInfo); + } + +} + +HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); + + if (pWand == nullptr) + return E_FAIL; + + + + CEditEffect* pWand_Distortion = Get_PartObject("Wand_Distortion"); + + CEditEffect* pStupefy_Light_Long = Get_PartObject("Stupefy_Light_Long"); + CEditEffect* pBodyFlare = Get_PartObject("BodyFlare"); + + CEditEffect* pStupefy_Smoke = Get_PartObject("Stupefy_Smoke"); + + pWand_Distortion->Set_Visible(true); + pStupefy_Light_Long->Set_Visible(true); + pBodyFlare->Set_Visible(true); + pStupefy_Smoke->Set_Visible(true); + //m_pStupefy_PJ_PT->Set_Visible(true); + m_pProjectile->Set_Visible(true); + m_pProjectile2->Set_Visible(true); + + _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + /*완드 포지션*/ + + _vector vWandPos = pWand->Get_WorldPostion(); + + + m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile2->Get_Component()->Set_State(STATE::POSITION, vWandPos); + + pStupefy_Light_Long->Get_Component()->Set_State(STATE::POSITION, vWandPos); + pBodyFlare->Get_Component()->Set_State(STATE::POSITION, vWandPos); + // + /*몸통 포지션*/ + + _vector vPlayerPos = m_pOwner->Get_Component()->Get_Position() + vDirection * -0.1f; + + pWand_Distortion->Get_Component()->Set_State(STATE::POSITION, vPlayerPos); + + /*발 포지션*/ + + _vector vPlayerFootPos = m_pOwner->Get_Component()->Get_FootPosition(); + + pStupefy_Smoke->Get_Component()->Set_State(STATE::POSITION, vPlayerFootPos); + + + + + XMStoreFloat3(&m_vCameraLook, vDirection); + + _vector vStartPos = vWandPos; + XMStoreFloat4(&m_vStartPos, vStartPos); + + { /* 대상 위치 지정 */ + // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정 + XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f); + + m_pInfoInstance->Get_LockOnInfo(m_Info); + //if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) { + + // //XMStoreFloat4(&m_vTargetPos,Get_LockOnPos(m_Info)); + + // //XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); + //} + //else { + + //} + } + + + _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); + _vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook)); + _vector vPos = pWand->Get_WorldPostion(); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pProjectile2->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + + return S_OK; +} + +HRESULT CStupefy::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CStupefy::Ready_Child() +{ + return S_OK; +} + +CStupefy* CStupefy::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CStupefy* pInstance = new CStupefy(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CStupefy"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CStupefy::Clone(void* pArg, CGameObject* pOwner) +{ + CStupefy* pInstance = new CStupefy(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CStupefy"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CStupefy::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + CEditEffect* pStupefy_Hit_PT = Get_PartObject("Stupefy_Hit_PT"); + CEditEffect* pStupefy_Circle0 = Get_PartObject("Stupefy_Circle0"); + CEditEffect* pHitFlare = Get_PartObject("HitFlare"); + + + pStupefy_Hit_PT->Set_Visible(true); + pStupefy_Hit_PT->Get_Component()->Set_State(STATE::POSITION, vPos); + pStupefy_Circle0->Set_Visible(true); + pStupefy_Circle0->Get_Component()->Set_State(STATE::POSITION, vPos); + pHitFlare->Set_Visible(true); + pHitFlare->Get_Component()->Set_State(STATE::POSITION, vPos); + + + + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); + m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); + + +} + +void CStupefy::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pProjectile); + SAFE_RELEASE(m_pProjectile2); + SAFE_RELEASE(m_pStupefy_PJ_PT); + +} + +#ifdef _DEBUG +void CStupefy::Describe_Entity() +{ + +} +#endif + +HRESULT CStupefy::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/StupefySide.cpp b/Jusin154_Team3D/Editor/Private/StupefySide.cpp new file mode 100644 index 000000000..dc821f5c6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/StupefySide.cpp @@ -0,0 +1,221 @@ +#include "pch.h" +#include "StupefySide.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Player.h" +#include "Wand.h" +#include "TrailObject.h" + + +CStupefySide::CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CStupefySide::CStupefySide(const CStupefySide& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CStupefySide::Initialize_Prototype() +{ + + + + + return S_OK; + +} + +HRESULT CStupefySide::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/Package/StupefySide"))) + return E_FAIL; + + m_wstrEffectName = L"BombardSide"; + + + m_pWandParticle = Get_PartObject("Wand_Particle_B"); + m_pWandLight = Get_PartObject("Wand_Light_B"); + m_pWandTrail = Get_PartObject(); + + SAFE_ADDREF(m_pWandLight); + SAFE_ADDREF(m_pWandTrail); + SAFE_ADDREF(m_pWandParticle); + + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + //m_isTrailEnd = true; + + XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + }); + + m_Events.emplace(1.3f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); + + + return S_OK; +} + +void CStupefySide::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CStupefySide::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + // 파티클생성이 막히면 실행되지 않음 + if (m_isParticleEnd == false) + m_pWandParticle->Get_Component()->Set_WorldMatrix(pWand->Get_WorldMatrix()); + + // 트레일이 종료되면 위치를 고정함 + _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); + +} + +void CStupefySide::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return E_FAIL; + + m_pWandParticle->Set_Visible(true); + m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고 + + m_pWandLight->Set_Visible(true); + + /*트레일 초기화 */ + m_pWandTrail->Set_Visible(true); + m_isTrailEnd = false; + m_pWandTrail->Get_Component()->Reset_Trail(); + + /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + m_pWandTrail->SetDissolve(false); + + return S_OK; +} + +HRESULT CStupefySide::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CStupefySide::Ready_Child() +{ + return S_OK; +} + +CStupefySide* CStupefySide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CStupefySide* pInstance = new CStupefySide(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CStupefySide::Clone(void* pArg, CGameObject* pOwner) +{ + CStupefySide* pInstance = new CStupefySide(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CStupefySide::OnCollision(CGameObject* pOther, void* pDesc) +{ + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CStupefySide::Free() +{ + __super::Free(); + + + Safe_Release(m_pWandLight); + Safe_Release(m_pWandTrail); + Safe_Release(m_pWandParticle); +} +#ifdef _DEBUG + +void CStupefySide::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CStupefySide::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Public/EditEffect.h b/Jusin154_Team3D/Editor/Public/EditEffect.h index ce5229d00..085f07847 100644 --- a/Jusin154_Team3D/Editor/Public/EditEffect.h +++ b/Jusin154_Team3D/Editor/Public/EditEffect.h @@ -44,6 +44,8 @@ class CEditEffect final : public CEffectObject _bool m_isCamPos = {}; _float4 m_vCamOffset = {}; + + public: static CEditEffect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index ea107c526..ada767a10 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -64,7 +64,7 @@ namespace Editor BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색 JAP, REVELIO, PROTEGO, STUPEFY, PROTEGO_HIT, // 검은색 ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, - JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, + JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, STUPEFY_SIDE, 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, diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h index 5e0a21900..25bb4d1d8 100644 --- a/Jusin154_Team3D/Editor/Public/EffectObject.h +++ b/Jusin154_Team3D/Editor/Public/EffectObject.h @@ -143,7 +143,13 @@ class CEffectObject abstract : public CPartObject _bool isNonSoftEffect = {}; _float2 vDissolveSmoothRange = {0.1f , 0.1f}; - _float2 vPadding0 = {}; + + _float fPadding1 = {}; + + _bool isScreenFX = {}; + _bool isPadding0 = {}; + _bool isPadding1 = {}; + _bool isPadding2 = {}; _bool isRimLight = {}; _bool isMask_G = {}; @@ -339,6 +345,9 @@ class CEffectObject abstract : public CPartObject CInstance_Model* m_pInstance_ModelCom = { nullptr }; const _float4x4* m_pPerentMatrix = { nullptr }; + + _float4x4 m_ScreenViewMatrix = {}; + _float4x4 m_OrthographicMatrix = {}; protected: EFFECT_INFO m_EffectInfo = {}; _string m_strDiffuseName = {}; diff --git a/Jusin154_Team3D/Editor/Public/Levioso.h b/Jusin154_Team3D/Editor/Public/Levioso.h index fa2c831e9..f01ee45b9 100644 --- a/Jusin154_Team3D/Editor/Public/Levioso.h +++ b/Jusin154_Team3D/Editor/Public/Levioso.h @@ -35,25 +35,15 @@ class CLevioso final : public CEffect_Container class CInfoInstance* m_pInfoInstance = { nullptr }; private: _wstring m_wstrEffectName = {}; - class CPlayer* m_pPlayer = {}; + class CPlayer* m_pPlayer = {}; - class CEditEffect* m_pLeviosoPJ_0 = { nullptr }; - class CEditEffect* m_pLeviosoPJ_1 = { nullptr }; - class CEditEffect* m_pTrail_PT_0 = { nullptr }; - - class CEditEffect* m_pLevioso_Rotate0 = { nullptr }; - class CEditEffect* m_pLevioso_Rotate1 = { nullptr }; - - class CTransform* m_pEnemyTransform = { nullptr }; + class CEditEffect* m_pLeviosoPJ = { nullptr }; _vector m_vOwnerLook = {}; - _float m_fAccRotateTime = {}; - _float m_fTurnSpeed = {}; - _float m_fRange = {}; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.25f; + _float m_fLinearSpeed = 0.75f; _float3 m_vCameraLook = {}; public: static CLevioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/Stupefy.h b/Jusin154_Team3D/Editor/Public/Stupefy.h new file mode 100644 index 000000000..89127e603 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Stupefy.h @@ -0,0 +1,54 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CStupefy final : public CEffect_Container +{ +private: + CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CStupefy(const CStupefy& rhs); + virtual ~CStupefy() = 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: + class CInfoInstance* m_pInfoInstance = { nullptr }; +private: + _wstring m_wstrEffectName = {}; + class CEditEffect* m_pProjectile = {}; + class CEditEffect* m_pStupefy_PJ_PT = {}; + class CEditEffect* m_pProjectile2 = {}; + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 + _float m_fLinearSpeed = 1.f; + _float3 m_vCameraLook = {}; +public: + static CStupefy* 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/StupefySide.h b/Jusin154_Team3D/Editor/Public/StupefySide.h new file mode 100644 index 000000000..5f4fefdc0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/StupefySide.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CStupefySide final : public CEffect_Container +{ +private: + CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CStupefySide(const CStupefySide& rhs); + virtual ~CStupefySide() = 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 = {}; + + _bool m_isParticleEnd = {}; + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + + class CEditEffect* m_pWandLight = { nullptr }; + class CTrailObject* m_pWandTrail = { nullptr }; + class CEditEffect* m_pWandParticle = { nullptr }; + +public: + static CStupefySide* 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/UIObject.cpp b/Jusin154_Team3D/Engine/Private/UIObject.cpp index a57ffec1f..a37199ed4 100644 --- a/Jusin154_Team3D/Engine/Private/UIObject.cpp +++ b/Jusin154_Team3D/Engine/Private/UIObject.cpp @@ -35,6 +35,7 @@ HRESULT CUIObject::Initialize(void* pArg) // 이제 뷰포트의 개수랑 정보를 저장할 포인터를 넣어준다. m_pContext->RSGetViewports(&iNumViewports, &ViewportDesc); + // 이제 받아온 fX,fY,fSizeX,fSizeY를 다 저장 해 놓는다. UIOBJECT_DESC* pDesc = static_cast(pArg); From 56bf0b50196c72080a66a09120e4587159d3d1ad Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Sun, 11 Jan 2026 10:52:34 +0900 Subject: [PATCH 5/6] commit --- Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp | 10 ++++++++-- Jusin154_Team3D/Client/Private/Player.cpp | 4 +--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp index ad7fe907b..9c4ad71b2 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp @@ -164,18 +164,24 @@ void CDialogue_Panel::Change_Map() - CLayer* pNpcLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_NPC); + /*CLayer* pNpcLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_NPC); if (nullptr != pNpcLayer) { for (auto& pNpc : *pNpcLayer->Get_Objects()) { pNpc->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1016.f, 1.f)); } - } + }*/ + } void CDialogue_Panel::Priority_Update(_float fTimeDelta) { + if (m_pGameInstance->Key_Down(DIK_J)) + { + Change_Map(); + } + if (!__super::Chack_Visible()) { return; diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index d30294c62..f31eb87af 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -208,9 +208,6 @@ void CPlayer::Late_Update(_float fTimeDelta) m_pTransformCom->LookAt_Horizontal_Lerp(m_LockOnInfo.pUnit->Get_WorldPostion(), fTimeDelta, 5.f); } - if (m_pGameInstance->Key_Up(DIK_J)) { - m_bDuel_ZOnlyMove = true; - } Player_PixRot(); @@ -1131,6 +1128,7 @@ void CPlayer::Describe_Entity() GUI::Text("dot RU %.4f | UL %.4f | LR %.4f\n", dotRU, dotUL, dotLR); + m_pLightCom->Describe_Entity(); for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++) { From 195465e4ec2a42e9074537307c4b1f6a3d9f9bdb Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Sun, 11 Jan 2026 11:24:15 +0900 Subject: [PATCH 6/6] commit --- .../Client/Private/Effect_Container.cpp | 2 ++ Jusin154_Team3D/Client/Private/Levioso.cpp | 29 ++++++++++++++++++- .../Data/Effect/Levioso/Levioso_Spline.bin | 2 +- Jusin154_Team3D/Engine/Public/Engine_Struct.h | 1 + 4 files changed, 32 insertions(+), 2 deletions(-) diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp index 54c84ba80..89f5f376a 100644 --- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp +++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp @@ -730,6 +730,8 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End PHYSX_USERDATA* pUserData = static_cast(pActor->userData); tagCollInfo.pObject = pUserData->pOwner; + tagCollInfo.eCollisionType = ENUM_CLASS(PXOBJECT(pUserData->iSubKind)); + switch (pUserData->eKind) { case PHYSX_KIND::BODY_DYNAMIC: diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp index 5275d1121..63af4dc63 100644 --- a/Jusin154_Team3D/Client/Private/Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Levioso.cpp @@ -216,9 +216,10 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); + + if (pHitCCT != nullptr) { - CEffectParts* pLevioso_Spline = Get_PartObject("Levioso_Spline"); CEffectParts* pLevioso_Hit0 = Get_PartObject("Levioso_Hit0"); @@ -230,6 +231,7 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) /* 바람과 파티클은 풋포지션 */ + _vector vFootPos = pHitCCT->Get_FootPosition(); CEffectParts* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); @@ -242,6 +244,31 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vFootPos); pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + _float3 vScale = _float3(1.f, 1.f, 1.f); + pLevioso_Tornado->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate0->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate1->Get_Component()->Set_Scale(vScale); + pLevioso_Bottom_PT->Get_Component()->Set_Scale(vScale); + + switch (static_cast(CollisionDesc.eCollisionType)) + { + case PXOBJECT::GOBLIN_MAGICIAN: + case PXOBJECT::GOBLIN_ASSASSIN: + case PXOBJECT::GOBLIN_WARRIOR: + { + _float3 vScale = _float3(0.7f, 0.7f, 0.7f); + pLevioso_Tornado->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate0->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate1->Get_Component()->Set_Scale(vScale); + pLevioso_Bottom_PT->Get_Component()->Set_Scale(vScale); + break; + } + + default: + break; + } + pLevioso_Tornado->Set_Visible(true); pLevioso_Rotate0->Set_Visible(true); pLevioso_Rotate1->Set_Visible(true); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin index 03a4350b6..cf7e4756c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cf6b3f407ea87c520d579d7af98ecc12836682dd6a700091951afd81f751b3b8 +oid sha256:15191901df0a291039dc63271d4c0d3526e3a39db8f33608a835f1725b47c3d0 size 1211 diff --git a/Jusin154_Team3D/Engine/Public/Engine_Struct.h b/Jusin154_Team3D/Engine/Public/Engine_Struct.h index 7933e1aa1..bb94f853f 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Struct.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Struct.h @@ -577,6 +577,7 @@ typedef struct tagOnCollsionInfo _float4 vHitDir = {}; // 시도한 move 방향 _float fLength = {}; // 작용된 힘 _int eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE); // 발사체/적당한 공격/강공격 + _int eCollisionType = {}; _float fDamage = {}; // 데미지 class CGameObject* pObject = { nullptr }; // 시전자 }ON_COLLISION_INFO;