From 8e54aeae75c12611c546f2921d6d42da05a5fe79 Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Fri, 19 Dec 2025 16:28:31 +0900 Subject: [PATCH] commit --- Jusin154_Team3D/Client/Private/Accio.cpp | 2 +- Jusin154_Team3D/Client/Private/Lightning.cpp | 12 ++++++++++++ Jusin154_Team3D/Client/Private/Player_States.cpp | 1 + Jusin154_Team3D/Client/Public/Lightning.h | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Jusin154_Team3D/Client/Private/Accio.cpp b/Jusin154_Team3D/Client/Private/Accio.cpp index 8622c012a..2e1355d8e 100644 --- a/Jusin154_Team3D/Client/Private/Accio.cpp +++ b/Jusin154_Team3D/Client/Private/Accio.cpp @@ -113,7 +113,7 @@ void CAccio::Update(_float fTimeDelta) m_pRotate0->Get_Component()->Set_State(STATE::POSITION, vPos); m_pRotate1->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pAccio_PT->Get_Component()->Set_State(STATE::POSITION, vPos); + m_pAccio_PT->Get_Component()->Set_State(STATE::POSITION, m_pEnemyCCT->Get_Position()); m_pAccio_Distortion->Get_Component()->Set_State(STATE::POSITION, vPos); } diff --git a/Jusin154_Team3D/Client/Private/Lightning.cpp b/Jusin154_Team3D/Client/Private/Lightning.cpp index 6a4890b09..7e7c3f780 100644 --- a/Jusin154_Team3D/Client/Private/Lightning.cpp +++ b/Jusin154_Team3D/Client/Private/Lightning.cpp @@ -43,6 +43,13 @@ HRESULT CLightning::Initialize(void* pArg) m_wstrEffectName = L"Lightning"; + m_Events.emplace(0.5f, [&]() { + + _float fShakeValue = clamp(15.f / m_fDistance, 2.f, 5.f); + + static_cast(m_pOwner->Get_Owner())->Start_CameraShake(0.5f, fShakeValue); + + }); m_fDuration = 5.5f; @@ -141,6 +148,11 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg) pStart_Line->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pStraight_Lightning->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); + + m_fDistance = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); + + + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index acb9a80cb..34d67ceb9 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -1548,6 +1548,7 @@ void CPlayer::Behavior_AncientSpellEnter() }, 0.15f); + Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::LIGHTNING_SIDE, Get_PartObject()); diff --git a/Jusin154_Team3D/Client/Public/Lightning.h b/Jusin154_Team3D/Client/Public/Lightning.h index 5b0c20a9c..6a835f482 100644 --- a/Jusin154_Team3D/Client/Public/Lightning.h +++ b/Jusin154_Team3D/Client/Public/Lightning.h @@ -40,6 +40,7 @@ class CLightning final : public CEffect_Container _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 _float m_fLinearSpeed = 5.f; _float3 m_vCameraLook = {}; + _float m_fDistance = {}; public: static CLightning* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);