commit
This commit is contained in:
@@ -237,6 +237,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\State_Parry.h" />
|
||||
<ClInclude Include="..\Public\State_Slash.h" />
|
||||
<ClInclude Include="..\Public\ThestralCarriage.h" />
|
||||
<ClInclude Include="..\Public\AccioSide.h" />
|
||||
<ClInclude Include="..\Public\TransformationSide.h" />
|
||||
<ClInclude Include="..\Public\Transformation.h" />
|
||||
<ClInclude Include="..\Public\LightningSide.h" />
|
||||
@@ -540,6 +541,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\State_Parry.cpp" />
|
||||
<ClCompile Include="..\Private\State_Slash.cpp" />
|
||||
<ClCompile Include="..\Private\ThestralCarriage.cpp" />
|
||||
<ClCompile Include="..\Private\AccioSide.cpp" />
|
||||
<ClCompile Include="..\Private\TransformationSide.cpp" />
|
||||
<ClCompile Include="..\Private\Transformation.cpp" />
|
||||
<ClCompile Include="..\Private\LightningSide.cpp" />
|
||||
|
||||
@@ -922,7 +922,7 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\StupefySide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Stupefy\StupefySide</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_ENUM.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Ranrok</Filter>
|
||||
</ClInclude>
|
||||
@@ -930,6 +930,9 @@
|
||||
<ClInclude Include="..\Public\State_Parry.h">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Parry</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\AccioSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Accio\AccioSide</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1917,10 +1920,13 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Stupefy\StupefySide">
|
||||
<UniqueIdentifier>{b38bbd65-c266-4117-9a36-a0ec4a8377ca}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\State_Combat\State_Parry">
|
||||
<UniqueIdentifier>{b57b393b-0e6f-47ad-9301-46b8f725a452}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Accio\AccioSide">
|
||||
<UniqueIdentifier>{0e6d6920-c33c-4202-a2a5-3c883e1d4597}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2793,11 +2799,14 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\StupefySide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Stupefy\StupefySide</Filter>
|
||||
</ClCompile>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp" />
|
||||
<ClCompile Include="..\Private\State_Parry.cpp">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Parry</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\AccioSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Accio\AccioSide</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -66,7 +66,18 @@ HRESULT CAccio::Initialize(void* pArg)
|
||||
|
||||
XMStoreFloat4x4(&m_TrailWorld, XMMatrixIdentity());
|
||||
|
||||
m_fDuration = 6.f;
|
||||
m_fDuration = 4.f;
|
||||
|
||||
m_Events.emplace(2.f, [&]() {
|
||||
|
||||
m_pRope_Trail->Get_Component<CTrail>()->Rope_Fix(true);
|
||||
|
||||
if (m_isDissolve)
|
||||
m_pRope_Trail->SetDissolve(true);
|
||||
|
||||
m_pRope_Trail->Get_TrailInfo()->fMass = 0.1f;
|
||||
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -180,8 +191,6 @@ HRESULT CAccio::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
pCircle->Set_Visible(true);
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
m_pWandLight->Get_Effect_Info()->isDissolve = false;
|
||||
m_pWandLight->Get_Effect_Info()->isLightDissolve = false;
|
||||
|
||||
pSpread_Circle->Set_Visible(true);
|
||||
|
||||
@@ -304,8 +313,6 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
pCircle->Set_Visible(false);
|
||||
pSpread_Circle->Set_Visible(false);
|
||||
|
||||
m_pWandLight->Get_Effect_Info()->isDissolve = true;
|
||||
m_pWandLight->Get_Effect_Info()->isLightDissolve = true;
|
||||
|
||||
m_pRotate0->Set_Visible(true);
|
||||
m_pRotate1->Set_Visible(true);
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
#include "pch.h"
|
||||
#include "AccioSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CAccioSide::CAccioSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CAccioSide::CAccioSide(const CAccioSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CAccioSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/AccioSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CAccioSide::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"AccioSide";
|
||||
|
||||
|
||||
//m_pWandParticle = Get_PartObject<CEffectParts>("Wand_PT");
|
||||
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_B");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
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_pWandTrail->SetDissolve(true);
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CAccioSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CAccioSide::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
// 파티클생성이 막히면 실행되지 않음
|
||||
//if (m_isParticleEnd == false)
|
||||
// m_pWandParticle->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
|
||||
|
||||
// 트레일이 종료되면 위치를 고정함
|
||||
_matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix();
|
||||
m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CAccioSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CAccioSide::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(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<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CAccioSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CAccioSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CAccioSide* CAccioSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CAccioSide* pInstance = new CAccioSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CAccioSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CAccioSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CAccioSide* pInstance = new CAccioSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CAccioSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CAccioSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CAccioSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
//Safe_Release(m_pWandParticle);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CAccioSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CAccioSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ CDecendo::CDecendo(const CDecendo& rhs)
|
||||
|
||||
HRESULT CDecendo::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo")))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -40,11 +39,11 @@ HRESULT CDecendo::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
|
||||
m_wstrEffectName = L"Decendo";
|
||||
|
||||
m_pProjectile_Blur = Get_PartObject<CEffectParts>("Decendo_Proj_Blur");
|
||||
@@ -90,7 +89,6 @@ void CDecendo::Update(_float fTimeDelta)
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CDecendo::Late_Update(_float fTimeDelta)
|
||||
@@ -98,13 +96,12 @@ void CDecendo::Late_Update(_float fTimeDelta)
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
Get_PartObject<CTrailObject>()->Oneside_Rope_Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion());
|
||||
|
||||
_vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos);
|
||||
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
@@ -129,12 +126,15 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEffectParts>();
|
||||
CPartObject* pWandLight = Get_PartObject<CEffectParts>("Decendo_Wand_Light");
|
||||
CPartObject* pDecendo_Wand_Line = Get_PartObject<CEffectParts>("Decendo_Wand_Line");
|
||||
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pDecendo_Wand_Line->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
pCircle0->Set_Visible(true);
|
||||
pWandLight->Set_Visible(true);
|
||||
pDecendo_Wand_Line->Set_Visible(true);
|
||||
|
||||
/* 초기 위치 저장 */
|
||||
_vector vStartPos = m_pOwner->Get_WorldPostion();
|
||||
@@ -148,6 +148,7 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
/* 초기 객체 비지블 */
|
||||
m_pProjectile->Set_Visible(true);
|
||||
m_pProjectile_Blur->Set_Visible(true);
|
||||
//m_pProjectile_Fire->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(true);
|
||||
@@ -158,11 +159,9 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
XMStoreFloat3(&m_vCameraLook, vDirection);
|
||||
|
||||
|
||||
|
||||
{ /* 대상 위치 지정 */
|
||||
|
||||
m_pInfoInstance->Get_LockOnInfo(m_Info);
|
||||
|
||||
if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) {
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, Get_LockOnPos(m_Info));
|
||||
@@ -251,55 +250,59 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
|
||||
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
dynamic_cast<CPlayer*>(m_pOwner->Get_Owner())->Set_SpellHit(true);
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
_vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
CCharacter_Controller* pCCT = CollisionDesc.pObject->Get_Component<CCharacter_Controller>();
|
||||
_vector vFootPos = {};
|
||||
_vector vHeadPos = {};
|
||||
_vector vPos = {};
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
if (pCCT != nullptr)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
vFootPos = pCCT->Get_FootPosition();
|
||||
vPos = pCCT->Get_Position();
|
||||
vHeadPos = pCCT->Get_HeadPosition();
|
||||
|
||||
|
||||
CPartObject* pDecendo_Rock_PT = Get_PartObject<CEffectParts>("Decendo_Rock_PT");
|
||||
CPartObject* pDecendo_Red_Blur = Get_PartObject<CEffectParts>("Decendo_Red_Blur");
|
||||
CPartObject* pDecendo_Down = Get_PartObject<CEffectParts>("Decendo_Down");
|
||||
CPartObject* pDecendo_Ring = Get_PartObject<CEffectParts>("Decendo_Ring");
|
||||
CPartObject* pDecendo_Smoke = Get_PartObject<CEffectParts>("Decendo_Smoke");
|
||||
|
||||
pDecendo_Rock_PT->Set_Visible(true);
|
||||
pDecendo_Rock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vFootPos);
|
||||
|
||||
pDecendo_Red_Blur->Set_Visible(true);
|
||||
pDecendo_Red_Blur->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
pDecendo_Down->Set_Visible(true);
|
||||
pDecendo_Down->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHeadPos);
|
||||
|
||||
pDecendo_Ring->Set_Visible(true);
|
||||
pDecendo_Ring->Get_Component<CTransform>()->Set_State(STATE::POSITION, vFootPos);
|
||||
|
||||
pDecendo_Smoke->Set_Visible(true);
|
||||
pDecendo_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vFootPos);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
m_pProjectile_Blur->Set_Visible(false);
|
||||
m_pProjectile->Set_Visible(false);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEffectParts>();
|
||||
CPartObject* pWandLight = Get_PartObject<CEffectParts>("Decendo_Wand_Light");
|
||||
|
||||
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
pCircle0->Set_Visible(false);
|
||||
pWandLight->Set_Visible(false);
|
||||
|
||||
_vector vPlayerPos = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::POSITION);
|
||||
|
||||
|
||||
|
||||
Get_PartObject<CEffectParts>("Decendo_Down")->Get_Component<CTransform>()->LookAt(vPlayerPos);
|
||||
Get_PartObject<CEffectParts>("Decendo_Smoke")->Get_Component<CTransform>()->LookAt(vPlayerPos);
|
||||
|
||||
|
||||
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(false);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CDecendo::Free()
|
||||
@@ -308,12 +311,11 @@ void CDecendo::Free()
|
||||
|
||||
SAFE_RELEASE(m_pProjectile_Blur);
|
||||
SAFE_RELEASE(m_pProjectile);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CDecendo::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("DECENDO", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
GUI::Begin("DECENDO");
|
||||
|
||||
GUI::InputFloat("Speed", &m_fLinearSpeed);
|
||||
|
||||
|
||||
@@ -44,21 +44,19 @@ HRESULT CDecendoSide::Initialize(void* pArg)
|
||||
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_R");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
m_pWand_Fire = Get_PartObject<CEffectParts>("Wand_Fire");
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
SAFE_ADDREF(m_pWand_Fire);
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
m_Events.emplace(0.6f, [&]() {
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_isTrailEnd = true;
|
||||
|
||||
XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix());
|
||||
m_Events.emplace(0.8f, [&]() {
|
||||
m_isParticleEnd = true;
|
||||
m_pWandTrail->SetDissolve(true);
|
||||
m_pWand_Fire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f));
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
@@ -87,6 +85,9 @@ void CDecendoSide::Update(_float fTimeDelta)
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
if(m_isParticleEnd == false)
|
||||
m_pWand_Fire->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
_matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix();
|
||||
m_pWandTrail->Trail_Update(TrailMat, fTimeDelta);
|
||||
|
||||
@@ -114,17 +115,20 @@ HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
m_isTrailEnd = false;
|
||||
m_isParticleEnd = false;
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
m_pWand_Fire->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
|
||||
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pWand_Fire->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -182,6 +186,8 @@ void CDecendoSide::Free()
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
Safe_Release(m_pWand_Fire);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "AvadakedavraSide.h"
|
||||
#include "StupefySide.h"
|
||||
#include "TransformationSide.h"
|
||||
#include "AccioSide.h"
|
||||
|
||||
#include "NomalJapSide.h"
|
||||
#include "Lumos.h"
|
||||
@@ -521,6 +522,14 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::ACCIO_SIDE, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CAccioSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CAccioSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -109,6 +109,7 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
CPartObject* pHitPT0 = Get_PartObject<CEffectParts>("HitPT0");
|
||||
CPartObject* pLightning_Tornado_PT = Get_PartObject<CEffectParts>("Lightning_Tornado_PT");
|
||||
CPartObject* pLightning0 = Get_PartObject<CEffectParts>("Lightning0");
|
||||
CPartObject* pLightning1 = Get_PartObject<CEffectParts>("Lightning1");
|
||||
CPartObject* pStart_Line = Get_PartObject<CEffectParts>("Start_Line");
|
||||
CPartObject* pLightning_Smoke = Get_PartObject<CEffectParts>("Lightning_Smoke");
|
||||
CPartObject* pLightning_Rock_PT = Get_PartObject<CEffectParts>("Lightning_Rock_PT");
|
||||
@@ -124,13 +125,25 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_pInfoInstance->Get_LockOnInfo(m_Info);
|
||||
if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) {
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, Get_LockOnPos(m_Info));
|
||||
_vector vLockOnPos = Get_LockOnPos(m_Info);
|
||||
|
||||
CCharacter_Controller* pCCT = m_Info.pUnit->Get_Component<CCharacter_Controller>();
|
||||
|
||||
if (pCCT != nullptr)
|
||||
{
|
||||
_float fYHeight = XMVectorGetY(pCCT->Get_FootPosition()) - pCCT->Get_Volume().y * 2.f + pCCT->Get_Volume().x * 2.f;
|
||||
//_float fYHeight = XMVectorGetY(m_Info.pUnit->Get_Component<CTransform>()->Get_State(STATE::POSITION));
|
||||
vLockOnPos = XMVectorSetY(vLockOnPos, fYHeight);
|
||||
}
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, vLockOnPos);
|
||||
|
||||
|
||||
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
|
||||
}
|
||||
else {
|
||||
// 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
|
||||
XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f);
|
||||
XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 10.f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,18 +152,20 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
pHitPT0->Set_Visible(true);
|
||||
pLightning_Tornado_PT->Set_Visible(true);
|
||||
pLightning0->Set_Visible(true);
|
||||
pLightning1->Set_Visible(true);
|
||||
pStart_Line->Set_Visible(true);
|
||||
pLightning_Smoke->Set_Visible(true);
|
||||
//pLightning_Rock_PT->Set_Visible(true);
|
||||
pLightning_Rock_PT->Set_Visible(true);
|
||||
|
||||
pBottomLightning->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pFlare->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pHitPT0->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pLightning_Tornado_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pLightning0->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pLightning1->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pStart_Line->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pLightning_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
//pLightning_Rock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pLightning_Rock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
|
||||
m_fDistance = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
|
||||
|
||||
@@ -210,17 +225,6 @@ void CLightning::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -190,6 +190,7 @@
|
||||
#include "DecendoSide.h"
|
||||
#include "BombardSide.h"
|
||||
#include "LeviosoSide.h"
|
||||
#include "AccioSide.h"
|
||||
#include "TransformationSide.h"
|
||||
#include "AvadakedavraSide.h"
|
||||
|
||||
@@ -2606,6 +2607,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CAccioSide>(g_iStaticLevel, CAccioSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CStupefySide>(g_iStaticLevel, CStupefySide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -2895,9 +2895,14 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(SKILL_TYPE::ACCIO):
|
||||
|
||||
Add_Event(AnimIndex,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO, this); },
|
||||
fRatio);
|
||||
|
||||
Add_Event(AnimIndex,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO_SIDE, Get_PartObject<CWand>()); },
|
||||
0.f);
|
||||
Info.pText = TEXT("아씨오!");
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
|
||||
break;
|
||||
|
||||
@@ -18,7 +18,6 @@ CRevelio::CRevelio(const CRevelio& rhs)
|
||||
|
||||
HRESULT CRevelio::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Revelio")))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -41,10 +40,12 @@ HRESULT CRevelio::Initialize(void* pArg)
|
||||
m_pRevelioPT_Y = Get_PartObject<CEffectParts>("WandPT_Y");
|
||||
m_pRevelioPT_B = Get_PartObject<CEffectParts>("WandPT_B");
|
||||
m_pRevelioPT_R = Get_PartObject<CEffectParts>("WandPT_R");
|
||||
m_pWand_Light = Get_PartObject<CEffectParts>("Wand_Light");
|
||||
|
||||
SAFE_ADDREF(m_pRevelioPT_Y);
|
||||
SAFE_ADDREF(m_pRevelioPT_B);
|
||||
SAFE_ADDREF(m_pRevelioPT_R);
|
||||
SAFE_ADDREF(m_pWand_Light);
|
||||
|
||||
m_wstrEffectName = L"Revelio";
|
||||
|
||||
@@ -69,7 +70,7 @@ void CRevelio::Update(_float fTimeDelta)
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
@@ -82,6 +83,7 @@ void CRevelio::Update(_float fTimeDelta)
|
||||
m_pRevelioPT_Y->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pRevelioPT_R->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pRevelioPT_B->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pWand_Light->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
|
||||
}
|
||||
|
||||
@@ -97,10 +99,9 @@ void CRevelio::Late_Update(_float fTimeDelta)
|
||||
|
||||
HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject)))
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pOwner);
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
@@ -113,15 +114,43 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_pRevelioPT_Y->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pRevelioPT_R->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pRevelioPT_B->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pWand_Light->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
|
||||
m_pRevelioPT_Y->Set_Visible(true);
|
||||
m_pRevelioPT_R->Set_Visible(true);
|
||||
m_pRevelioPT_B->Set_Visible(true);
|
||||
m_pWand_Light->Set_Visible(true);
|
||||
|
||||
|
||||
Get_PartObject<CEffectParts>("Revelio_Ring")->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
Get_PartObject<CEffectParts>("Revelio_Ring")->Set_Visible(true);
|
||||
CEffectParts* pRevelio_ScreenFX = Get_PartObject<CEffectParts>("Revelio_ScreenFX");
|
||||
CEffectParts* pRevelio_ScreenFX_Reverse = Get_PartObject<CEffectParts>("Revelio_ScreenFX_Reverse");
|
||||
CEffectParts* pRevelio_Smoke = Get_PartObject<CEffectParts>("Revelio_Smoke");
|
||||
CEffectParts* pRevelio_Distortion = Get_PartObject<CEffectParts>("Revelio_Distortion");
|
||||
CEffectParts* pBottom_PT = Get_PartObject<CEffectParts>("Bottom_PT");
|
||||
|
||||
pRevelio_ScreenFX->Set_Visible(true);
|
||||
pRevelio_ScreenFX_Reverse->Set_Visible(true);
|
||||
pRevelio_Smoke->Set_Visible(true);
|
||||
pRevelio_Distortion->Set_Visible(true);
|
||||
pBottom_PT->Set_Visible(true);
|
||||
|
||||
|
||||
CCharacter_Controller* pCCT = m_pOwner->Get_Component<CCharacter_Controller>();
|
||||
|
||||
_vector vFootPos = {};
|
||||
_vector vPos = {};
|
||||
|
||||
if (pCCT != nullptr)
|
||||
{
|
||||
vFootPos = pCCT->Get_FootPosition();
|
||||
vPos = pCCT->Get_Position();
|
||||
|
||||
pRevelio_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vFootPos);
|
||||
pBottom_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vFootPos);
|
||||
pRevelio_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -186,7 +215,7 @@ void CRevelio::Free()
|
||||
SAFE_RELEASE(m_pRevelioPT_Y);
|
||||
SAFE_RELEASE(m_pRevelioPT_B);
|
||||
SAFE_RELEASE(m_pRevelioPT_R);
|
||||
|
||||
SAFE_RELEASE(m_pWand_Light);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -44,7 +44,10 @@ HRESULT CTransformation::Initialize(void* pArg)
|
||||
m_wstrEffectName = L"Transformation";
|
||||
|
||||
m_pTransformation_PJ = Get_PartObject<CEffectParts>("Transformation_PJ");
|
||||
m_pTransformation_PJ_PT = Get_PartObject<CEffectParts>("Transformation_PJ_PT");
|
||||
|
||||
SAFE_ADDREF(m_pTransformation_PJ);
|
||||
SAFE_ADDREF(m_pTransformation_PJ_PT);
|
||||
|
||||
m_fDuration = 3.5f;
|
||||
|
||||
@@ -70,7 +73,7 @@ void CTransformation::Update(_float fTimeDelta)
|
||||
CTransform* pPJTransform = m_pTransformation_PJ->Get_Component<CTransform>();
|
||||
|
||||
pPJTransform->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed);
|
||||
|
||||
m_pTransformation_PJ_PT->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed);
|
||||
|
||||
}
|
||||
|
||||
@@ -108,6 +111,7 @@ HRESULT CTransformation::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
m_pTransformation_PJ->Get_Effect_Info()->isDissolve = false;
|
||||
m_pTransformation_PJ->Set_Visible(true);
|
||||
m_pTransformation_PJ_PT->Set_Visible(true);
|
||||
|
||||
CEffectParts* pWand_Distortion = Get_PartObject<CEffectParts>("Wand_Distortion");
|
||||
CEffectParts* pWand_Light = Get_PartObject<CEffectParts>("Wand_Light");
|
||||
@@ -120,6 +124,7 @@ HRESULT CTransformation::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
pWand_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pWand_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pWand_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
m_pTransformation_PJ_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
_vector vDirection = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
XMStoreFloat3(&m_vCameraLook, vDirection);
|
||||
@@ -257,6 +262,7 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
pHit_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
pHit_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
m_pGameInstance->BillBoard(pHit_PT->Get_Component<CTransform>());
|
||||
|
||||
pHit_Light->Set_Visible(true);
|
||||
pHit_PT->Set_Visible(true);
|
||||
@@ -282,7 +288,7 @@ void CTransformation::Free()
|
||||
__super::Free();
|
||||
|
||||
Safe_Release(m_pTransformation_PJ);
|
||||
|
||||
Safe_Release(m_pTransformation_PJ_PT);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CTransformation::Describe_Entity()
|
||||
|
||||
@@ -43,6 +43,7 @@ HRESULT CTransformationSide::Initialize(void* pArg)
|
||||
|
||||
|
||||
//m_pWandParticle = Get_PartObject<CEffectParts>("Wand_PT");
|
||||
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_B");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
@@ -52,18 +53,9 @@ HRESULT CTransformationSide::Initialize(void* pArg)
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
m_Events.emplace(0.6f, [&]() {
|
||||
m_Events.emplace(0.8f, [&]() {
|
||||
m_isParticleEnd = true;
|
||||
//m_pWandParticle->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_isTrailEnd = true;
|
||||
|
||||
XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix());
|
||||
m_pWandTrail->SetDissolve(true);
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
@@ -99,7 +91,7 @@ void CTransformationSide::Update(_float fTimeDelta)
|
||||
|
||||
// 트레일이 종료되면 위치를 고정함
|
||||
_matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix();
|
||||
m_pWandTrail->Trail_Update(TrailMat, fTimeDelta);
|
||||
m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CAccioSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CAccioSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CAccioSide(const CAccioSide& rhs);
|
||||
virtual ~CAccioSide() = 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 CAccioSide* 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
|
||||
@@ -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, STUPEFY_SIDE,
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, STUPEFY_SIDE, ACCIO_SIDE,
|
||||
|
||||
/*트롤*/
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO,
|
||||
|
||||
@@ -35,10 +35,11 @@ class CDecendoSide final : public CEffect_Container
|
||||
|
||||
_bool m_isTrailEnd = {};
|
||||
_float4x4 m_TrailStopMat = {};
|
||||
_bool m_isParticleEnd = {};
|
||||
|
||||
class CEffectParts* m_pWandLight = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
|
||||
class CEffectParts* m_pWand_Fire = { nullptr };
|
||||
public:
|
||||
static CDecendoSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -32,11 +32,11 @@ class CRevelio final : public CEffect_Container
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CPlayer* m_pPlayer = {};
|
||||
class CPlayer* m_pPlayer = {};
|
||||
class CEffectParts* m_pRevelioPT_Y = { nullptr };
|
||||
class CEffectParts* m_pRevelioPT_B = { nullptr };
|
||||
class CEffectParts* m_pRevelioPT_R = { nullptr };
|
||||
|
||||
class CEffectParts* m_pWand_Light = { nullptr };
|
||||
public:
|
||||
static CRevelio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -36,6 +36,7 @@ class CTransformation final : public CEffect_Container
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CEffectParts* m_pTransformation_PJ = { nullptr };
|
||||
class CEffectParts* m_pTransformation_PJ_PT = { nullptr };
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -48,7 +48,7 @@ HRESULT CDecendo::Initialize(void* pArg)
|
||||
|
||||
SAFE_ADDREF(m_pProjectile_Blur);
|
||||
SAFE_ADDREF(m_pProjectile);
|
||||
|
||||
\
|
||||
m_fDuration = 3.5f;
|
||||
|
||||
return S_OK;
|
||||
@@ -75,7 +75,6 @@ void CDecendo::Update(_float fTimeDelta)
|
||||
// 선속도
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
|
||||
//Up벡터 방향으로 파이만큼 이동
|
||||
|
||||
if (m_fRotateAccTime > XM_2PI)
|
||||
@@ -86,7 +85,6 @@ void CDecendo::Update(_float fTimeDelta)
|
||||
m_pProjectile_Blur->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CDecendo::Late_Update(_float fTimeDelta)
|
||||
@@ -94,7 +92,7 @@ void CDecendo::Late_Update(_float fTimeDelta)
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
Get_PartObject<CTrailObject>()->Oneside_Rope_Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion());
|
||||
|
||||
@@ -124,12 +122,15 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEditEffect>();
|
||||
CPartObject* pWandLight = Get_PartObject<CEditEffect>("Decendo_Wand_Light");
|
||||
CPartObject* pDecendo_Wand_Line = Get_PartObject<CEditEffect>("Decendo_Wand_Line");
|
||||
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pDecendo_Wand_Line->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
pCircle0->Set_Visible(true);
|
||||
pWandLight->Set_Visible(true);
|
||||
pDecendo_Wand_Line->Set_Visible(true);
|
||||
|
||||
/* 초기 위치 저장 */
|
||||
_vector vStartPos = m_pOwner->Get_WorldPostion();
|
||||
@@ -143,6 +144,7 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
/* 초기 객체 비지블 */
|
||||
m_pProjectile->Set_Visible(true);
|
||||
m_pProjectile_Blur->Set_Visible(true);
|
||||
//m_pProjectile_Fire->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(true);
|
||||
@@ -250,39 +252,48 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
_vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
CCharacter_Controller* pCCT = CollisionDesc.pObject->Get_Component<CCharacter_Controller>();
|
||||
_vector vFootPos = {};
|
||||
_vector vPlayerPos = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::POSITION);
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
if (pCCT != nullptr)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
vFootPos = pCCT->Get_FootPosition();
|
||||
}
|
||||
|
||||
|
||||
|
||||
CPartObject* pDecendo_Rock_PT = Get_PartObject<CEditEffect>("Decendo_Rock_PT");
|
||||
CPartObject* pDecendo_Red_Blur = Get_PartObject<CEditEffect>("Decendo_Red_Blur");
|
||||
CPartObject* pDecendo_Down = Get_PartObject<CEditEffect>("Decendo_Down");
|
||||
CPartObject* pDecendo_Ring = Get_PartObject<CEditEffect>("Decendo_Ring");
|
||||
CPartObject* pDecendo_Smoke = Get_PartObject<CEditEffect>("Decendo_Smoke");
|
||||
|
||||
pDecendo_Rock_PT->Set_Visible(true);
|
||||
pDecendo_Rock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vFootPos);
|
||||
|
||||
pDecendo_Red_Blur->Set_Visible(true);
|
||||
pDecendo_Red_Blur->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerPos);
|
||||
|
||||
pDecendo_Down->Set_Visible(true);
|
||||
pDecendo_Down->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerPos);
|
||||
|
||||
pDecendo_Ring->Set_Visible(true);
|
||||
pDecendo_Ring->Get_Component<CTransform>()->Set_State(STATE::POSITION, vFootPos);
|
||||
|
||||
pDecendo_Smoke->Set_Visible(true);
|
||||
pDecendo_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vFootPos);
|
||||
|
||||
|
||||
|
||||
|
||||
m_pProjectile_Blur->Set_Visible(false);
|
||||
m_pProjectile->Set_Visible(false);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
CPartObject* pCircle0 = Get_PartObject<CEditEffect>();
|
||||
CPartObject* pWandLight = Get_PartObject<CEditEffect>("Decendo_Wand_Light");
|
||||
|
||||
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
_vector vPlayerPos = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::POSITION);
|
||||
|
||||
|
||||
|
||||
Get_PartObject<CEditEffect>("Decendo_Down")->Get_Component<CTransform>()->LookAt(vPlayerPos);
|
||||
Get_PartObject<CEditEffect>("Decendo_Smoke")->Get_Component<CTransform>()->LookAt(vPlayerPos);
|
||||
|
||||
|
||||
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
@@ -296,7 +307,6 @@ void CDecendo::Free()
|
||||
|
||||
SAFE_RELEASE(m_pProjectile_Blur);
|
||||
SAFE_RELEASE(m_pProjectile);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CDecendo::Describe_Entity()
|
||||
|
||||
@@ -40,22 +40,21 @@ HRESULT CDecendoSide::Initialize(void* pArg)
|
||||
m_wstrEffectName = L"DecendoSide";
|
||||
|
||||
m_pWandLight = Get_PartObject<CEditEffect>("Wand_Light_R");
|
||||
m_pWand_Fire = Get_PartObject<CEditEffect>("Wand_Fire");
|
||||
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
SAFE_ADDREF(m_pWand_Fire);
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
m_Events.emplace(0.6f, [&]() {
|
||||
CWand* pWand = static_cast<CWand*>(m_pOwner);
|
||||
m_Events.emplace(0.8f, [&]() {
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_isTrailEnd = true;
|
||||
|
||||
XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix());
|
||||
m_pWandTrail->SetDissolve(true);
|
||||
m_pWand_Fire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f));
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
@@ -85,7 +84,7 @@ void CDecendoSide::Update(_float fTimeDelta)
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
_matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix();
|
||||
m_pWandTrail->Trail_Update(TrailMat, fTimeDelta);
|
||||
m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
@@ -179,6 +178,7 @@ void CDecendoSide::Free()
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
Safe_Release(m_pWand_Fire);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -38,10 +38,12 @@ HRESULT CRevelio::Initialize(void* pArg)
|
||||
m_pRevelioPT_Y = Get_PartObject<CEditEffect>("WandPT_Y");
|
||||
m_pRevelioPT_B = Get_PartObject<CEditEffect>("WandPT_B");
|
||||
m_pRevelioPT_R = Get_PartObject<CEditEffect>("WandPT_R");
|
||||
m_pWand_Light = Get_PartObject<CEditEffect>("Wand_Light");
|
||||
|
||||
SAFE_ADDREF(m_pRevelioPT_Y);
|
||||
SAFE_ADDREF(m_pRevelioPT_B);
|
||||
SAFE_ADDREF(m_pRevelioPT_R);
|
||||
SAFE_ADDREF(m_pWand_Light);
|
||||
|
||||
m_wstrEffectName = L"Revelio";
|
||||
|
||||
@@ -79,6 +81,7 @@ void CRevelio::Update(_float fTimeDelta)
|
||||
m_pRevelioPT_Y->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pRevelioPT_R->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pRevelioPT_B->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pWand_Light->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
|
||||
}
|
||||
|
||||
@@ -109,14 +112,43 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_pRevelioPT_Y->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pRevelioPT_R->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pRevelioPT_B->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
m_pWand_Light->Get_Component<CTransform>()->Set_WorldMatrix(WandWorld);
|
||||
|
||||
m_pRevelioPT_Y->Set_Visible(true);
|
||||
m_pRevelioPT_R->Set_Visible(true);
|
||||
m_pRevelioPT_B->Set_Visible(true);
|
||||
m_pWand_Light->Set_Visible(true);
|
||||
|
||||
|
||||
Get_PartObject<CEditEffect>("Revelio_Ring")->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
Get_PartObject<CEditEffect>("Revelio_Ring")->Set_Visible(true);
|
||||
CEditEffect* pRevelio_ScreenFX = Get_PartObject<CEditEffect>("Revelio_ScreenFX");
|
||||
CEditEffect* pRevelio_ScreenFX_Reverse = Get_PartObject<CEditEffect>("Revelio_ScreenFX_Reverse");
|
||||
CEditEffect* pRevelio_Smoke = Get_PartObject<CEditEffect>("Revelio_Smoke");
|
||||
CEditEffect* pRevelio_Distortion = Get_PartObject<CEditEffect>("Revelio_Distortion");
|
||||
CEditEffect* pBottom_PT = Get_PartObject<CEditEffect>("Bottom_PT");
|
||||
|
||||
pRevelio_ScreenFX->Set_Visible(true);
|
||||
pRevelio_ScreenFX_Reverse->Set_Visible(true);
|
||||
pRevelio_Smoke->Set_Visible(true);
|
||||
pRevelio_Distortion->Set_Visible(true);
|
||||
pBottom_PT->Set_Visible(true);
|
||||
|
||||
|
||||
CCharacter_Controller* pCCT = m_pOwner->Get_Component<CCharacter_Controller>();
|
||||
|
||||
_vector vFootPos = {};
|
||||
_vector vPos = {};
|
||||
|
||||
if (pCCT != nullptr)
|
||||
{
|
||||
vFootPos = pCCT->Get_FootPosition();
|
||||
vPos = pCCT->Get_Position();
|
||||
|
||||
pRevelio_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vFootPos);
|
||||
pBottom_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vFootPos);
|
||||
pRevelio_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -181,7 +213,7 @@ void CRevelio::Free()
|
||||
SAFE_RELEASE(m_pRevelioPT_Y);
|
||||
SAFE_RELEASE(m_pRevelioPT_B);
|
||||
SAFE_RELEASE(m_pRevelioPT_R);
|
||||
|
||||
SAFE_RELEASE(m_pWand_Light);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -37,7 +37,6 @@ class CDecendo final : public CEffect_Container
|
||||
class CPartObject* m_pProjectile = {};
|
||||
class CPartObject* m_pProjectile_Blur = {};
|
||||
|
||||
|
||||
_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 = 22.f;
|
||||
|
||||
@@ -37,6 +37,7 @@ class CDecendoSide final : public CEffect_Container
|
||||
_float4x4 m_TrailStopMat = {};
|
||||
|
||||
class CEditEffect* m_pWandLight = { nullptr };
|
||||
class CEditEffect* m_pWand_Fire = { nullptr };
|
||||
class CTrailObject* m_pWandTrail = { nullptr };
|
||||
|
||||
public:
|
||||
|
||||
@@ -33,9 +33,11 @@ class CRevelio final : public CEffect_Container
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CPlayer* m_pPlayer = {};
|
||||
|
||||
class CEditEffect* m_pRevelioPT_Y = { nullptr };
|
||||
class CEditEffect* m_pRevelioPT_B = { nullptr };
|
||||
class CEditEffect* m_pRevelioPT_R = { nullptr };
|
||||
class CEditEffect* m_pWand_Light = { nullptr };
|
||||
|
||||
public:
|
||||
static CRevelio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
Reference in New Issue
Block a user