diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 334bdabf2..c63e31d27 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -190,6 +190,7 @@ call Update_Resources.bat
+
@@ -486,6 +487,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 1788f20e6..7df46f555 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -902,6 +902,9 @@
03.InfoInstance\05.EffectInfo
+
+ 02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide
+
@@ -2730,6 +2733,9 @@
03.InfoInstance\05.EffectInfo
+
+ 02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide
+
diff --git a/Jusin154_Team3D/Client/Private/Duelist_JapSide.cpp b/Jusin154_Team3D/Client/Private/Duelist_JapSide.cpp
new file mode 100644
index 000000000..db4ac2f7b
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Duelist_JapSide.cpp
@@ -0,0 +1,224 @@
+#include "pch.h"
+#include "Duelist_JapSide.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Player.h"
+#include "Wand.h"
+#include "TrailObject.h"
+
+
+CDuelist_JapSide::CDuelist_JapSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CDuelist_JapSide::CDuelist_JapSide(const CDuelist_JapSide& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CDuelist_JapSide::Initialize_Prototype()
+{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/NPCJapSide")))
+ return E_FAIL;
+
+ return S_OK;
+}
+
+HRESULT CDuelist_JapSide::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"NPCJapSide";
+
+
+ m_pWandParticle = Get_PartObject("WandParticle1");
+ m_pWandLight = Get_PartObject("Wand_Yellow_Long");
+ m_pWandLight_R = Get_PartObject("Wand_Light_Y");
+ m_pWandTrail = Get_PartObject();
+
+ SAFE_ADDREF(m_pWandLight);
+ SAFE_ADDREF(m_pWandTrail);
+ SAFE_ADDREF(m_pWandParticle);
+ SAFE_ADDREF(m_pWandLight_R);
+
+ m_Events.emplace(0.6f, [&]() {
+
+ // 파티클 제어
+ 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_pWandLight_R->Set_Visible(false);
+
+ });
+
+ m_fDuration = 2.f;
+
+ return S_OK;
+}
+
+void CDuelist_JapSide::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CDuelist_JapSide::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());
+ m_pWandLight_R->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->Trail_Update(TrailMat, fTimeDelta);
+
+}
+
+void CDuelist_JapSide::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CDuelist_JapSide::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_pWandLight_R->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_pWandLight_R->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
+ return S_OK;
+}
+
+HRESULT CDuelist_JapSide::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CDuelist_JapSide::Ready_Child()
+{
+ return S_OK;
+}
+
+CDuelist_JapSide* CDuelist_JapSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CDuelist_JapSide* pInstance = new CDuelist_JapSide(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CDuelist_JapSide");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CDuelist_JapSide::Clone(void* pArg, CGameObject* pOwner)
+{
+ CDuelist_JapSide* pInstance = new CDuelist_JapSide(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CDuelist_JapSide");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CDuelist_JapSide::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CDuelist_JapSide::Free()
+{
+ __super::Free();
+
+
+ Safe_Release(m_pWandLight);
+ Safe_Release(m_pWandTrail);
+ Safe_Release(m_pWandParticle);
+ Safe_Release(m_pWandLight_R);
+
+}
+#ifdef _DEBUG
+
+void CDuelist_JapSide::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CDuelist_JapSide::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp
index 676f43382..876011eb1 100644
--- a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp
@@ -147,7 +147,7 @@ void CHuman_Duelist::Behavior_LightAttackEnter()
fRatio);
Add_Event(pairAnimInfo.first,
- [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); },
+ [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAPSIDE, Get_PartObject()); },
0.0f);
m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)];
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 5a7b55d47..01de241cd 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -199,6 +199,7 @@
#include "EffectPool.h"
#include "Levioso.h"
#include "Duelist_Levioso.h"
+#include "Duelist_JapSide.h"
#include "Lumos.h"
#include "Accio.h"
#include "Blink.h"
@@ -2527,6 +2528,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDuelist_JapSide::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLumos::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index d6dbb1711..7052c1074 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -105,6 +105,7 @@ HRESULT CPlayer::Initialize(void* pArg)
}
#ifdef _DEBUG
+
m_BasicEffect = make_unique(m_pDevice);
m_BasicEffect->SetVertexColorEnabled(true);
m_BasicEffect->SetView(m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW));
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 06d0ae797..a17d5ea5b 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -86,7 +86,7 @@ namespace Client
RANROK_GROUNDPULSE, RANROK_SWIPE , RANROK_DEAD_SPLASH, RANROK_DEAD_IMPACT, RANROK_PROP,
/*듀얼리스트*/
- DUELIST_JAP, DUELIST_LEVIOSO, DUELIST_PROTEGO,
+ DUELIST_JAP, DUELIST_JAPSIDE , DUELIST_LEVIOSO, DUELIST_PROTEGO,
END
};
diff --git a/Jusin154_Team3D/Client/Public/Duelist_JapSide.h b/Jusin154_Team3D/Client/Public/Duelist_JapSide.h
new file mode 100644
index 000000000..47d15d1f3
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Duelist_JapSide.h
@@ -0,0 +1,54 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CDuelist_JapSide final : public CEffect_Container
+{
+private:
+ CDuelist_JapSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CDuelist_JapSide(const CDuelist_JapSide& rhs);
+ virtual ~CDuelist_JapSide() = 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_R = { nullptr };
+ class CEffectParts* m_pWandLight = { nullptr };
+ class CTrailObject* m_pWandTrail = { nullptr };
+ class CEffectParts* m_pWandParticle = { nullptr };
+
+public:
+ static CDuelist_JapSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin
index 0ba78626b..327dbedf2 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ba19724cd428b4806e260d20154e6c2d72ae57c848160cc73c501562ed762902
+oid sha256:a35312dd934635834bb771836a539b7952bc761950ca653efee45683530962ff
size 1300