commit
commit
This commit is contained in:
@@ -162,6 +162,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Avadakedavra.h" />
|
||||
<ClInclude Include="..\Public\AvadakedavraSide.h" />
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_Behavior.h" />
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_HitReport.h" />
|
||||
<ClInclude Include="..\Public\State_Fall.h" />
|
||||
@@ -394,6 +395,7 @@ call Update_Resources.bat
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Avadakedavra.cpp" />
|
||||
<ClCompile Include="..\Private\AvadakedavraSide.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_Behavior.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\State_Fall.cpp" />
|
||||
|
||||
@@ -691,7 +691,7 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Avadakedavra.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Avadakedavra</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\SpellLearn_Slot.h">
|
||||
<Filter>02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot</Filter>
|
||||
</ClInclude>
|
||||
@@ -716,6 +716,9 @@
|
||||
<ClInclude Include="..\Public\State_Fall.h">
|
||||
<Filter>04.Mechanic\State\Focus\State_Fall</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\AvadakedavraSide.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Avadakedavra\AvadakedavraSide</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1466,7 +1469,7 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Avadakedavra">
|
||||
<UniqueIdentifier>{575f6ef3-7013-448a-b448-e94f1ddc5647}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer">
|
||||
<UniqueIdentifier>{d9c0bcb6-64f6-4b58-a68d-ff04c91b9861}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1491,6 +1494,9 @@
|
||||
<Filter Include="04.Mechanic\State\Focus\State_Fall">
|
||||
<UniqueIdentifier>{b85f80a2-d88e-4eb0-91af-da93b49bfa09}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Avadakedavra\AvadakedavraSide">
|
||||
<UniqueIdentifier>{f9c3f711-4032-4455-9d70-b81c5320f8c8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2126,7 +2132,7 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Avadakedavra.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Avadakedavra</Filter>
|
||||
</ClCompile>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\NPC_EleazarFig.cpp">
|
||||
<Filter>02.GameObjects\NPC\Ally\GateKeeper</Filter>
|
||||
</ClCompile>
|
||||
@@ -2154,6 +2160,9 @@
|
||||
<ClCompile Include="..\Private\State_Fall.cpp">
|
||||
<Filter>04.Mechanic\State\Focus\State_Fall</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\AvadakedavraSide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Avadakedavra\AvadakedavraSide</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -39,7 +39,7 @@ HRESULT CAvadakedavra::Initialize(void* pArg)
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::AVADA_KEDAVRA);
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA);
|
||||
|
||||
m_wstrEffectName = L"Avadakedavra";
|
||||
|
||||
@@ -102,73 +102,82 @@ HRESULT CAvadakedavra::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
_vector vDirection = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
|
||||
/*완드 포지션*/
|
||||
|
||||
_vector vWandPos = pWand->Get_WorldPostion();
|
||||
|
||||
XMStoreFloat3(&m_vCameraLook, vDirection);
|
||||
|
||||
//_vector vStartPos = vWandPos;
|
||||
XMStoreFloat4(&m_vStartPos, vWandPos);
|
||||
|
||||
{ /* 대상 위치 지정 */
|
||||
|
||||
m_pInfoInstance->Get_LockOnInfo(m_Info);
|
||||
|
||||
if (nullptr != m_Info.pUnit) {
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos());
|
||||
|
||||
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
|
||||
}
|
||||
else {
|
||||
// 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
|
||||
XMStoreFloat4(&m_vTargetPos, vWandPos + vDirection * m_fLinearSpeed * 0.5f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//_vector vDirection = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
CEffectParts* pCircle_0 = Get_PartObject<CEffectParts>("Circle_0");
|
||||
CEffectParts* pCircle_Blur = Get_PartObject<CEffectParts>("Circle_Blur");
|
||||
CEffectParts* pCircle_1 = Get_PartObject<CEffectParts>("Circle_1");
|
||||
CEffectParts* pCircle_Blur_Big = Get_PartObject<CEffectParts>("Circle_Blur_Big");
|
||||
|
||||
///*완드 포지션*/
|
||||
CEffectParts* pHit_Light = Get_PartObject<CEffectParts>("Hit_Light");
|
||||
CEffectParts* pHit_PT_G = Get_PartObject<CEffectParts>("Hit_PT_G");
|
||||
CEffectParts* pHit_PT_G_Small = Get_PartObject<CEffectParts>("Hit_PT_G_Small");
|
||||
CEffectParts* pRay_G = Get_PartObject<CEffectParts>("Ray_G");
|
||||
CEffectParts* pSmoke_Black = Get_PartObject<CEffectParts>("Smoke_Black");
|
||||
|
||||
//_vector vWandPos = pWand->Get_WorldPostion();
|
||||
pCircle_0->Get_Component<CTransform>()->Set_State(STATE::POSITION , XMLoadFloat4(&m_vTargetPos));
|
||||
pCircle_Blur->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pHit_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pHit_PT_G->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pSmoke_Black->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
|
||||
//pStupefy_PJ0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
//pStupefy_PJ1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
|
||||
//m_pStupefy_PJ_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
|
||||
//pStupefy_Light_Long->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
//pBodyFlare->Get_Component<CTransform>()->Set_State(STATE::POSITION, vWandPos);
|
||||
////
|
||||
///*몸통 포지션*/
|
||||
|
||||
//_vector vPlayerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position() + vDirection * -0.1f;
|
||||
|
||||
//pWand_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerPos);
|
||||
///*발 포지션*/
|
||||
|
||||
//_vector vPlayerFootPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_FootPosition();
|
||||
|
||||
//pStupefy_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPlayerFootPos + XMVectorSet(0.f ,1.f ,0.f ,0.f));
|
||||
pCircle_1->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pCircle_Blur_Big->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos));
|
||||
pHit_PT_G_Small->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos) - 1.f * XMLoadFloat3(&m_vCameraLook));
|
||||
|
||||
|
||||
pCircle_0->Set_Visible(true);
|
||||
pCircle_Blur->Set_Visible(true);
|
||||
pHit_Light->Set_Visible(true);
|
||||
pHit_PT_G->Set_Visible(true);
|
||||
pSmoke_Black->Set_Visible(true);
|
||||
pRay_G->Set_Visible(true);
|
||||
pHit_PT_G_Small->Set_Visible(true);
|
||||
|
||||
|
||||
//XMStoreFloat3(&m_vCameraLook, vDirection);
|
||||
pCircle_1->Set_Visible(true);
|
||||
pCircle_Blur_Big->Set_Visible(true);
|
||||
|
||||
////_vector vStartPos = vWandPos;
|
||||
//XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
/* RAY 월드 구성하기 */
|
||||
|
||||
//{ /* 대상 위치 지정 */
|
||||
_float fLength = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - vWandPos)) * 0.5f;
|
||||
|
||||
// m_pInfoInstance->Get_LockOnInfo(m_Info);
|
||||
// if (nullptr != m_Info.pUnit) {
|
||||
CTransform* pRay_Transform = pRay_G->Get_Component<CTransform>();
|
||||
|
||||
// XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos());
|
||||
_vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)) * fLength * -1.f;
|
||||
_vector vUp = XMVector3Normalize( XMVector3Cross(XMVectorSet(0.f, 0.f, 1.f, 0.f) , vRight));
|
||||
_vector vLook = XMVector3Normalize(XMVector3Cross(vRight , vUp));
|
||||
_vector vPos = vWandPos;
|
||||
|
||||
// XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
|
||||
// }
|
||||
// else {
|
||||
// // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
|
||||
// XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f);
|
||||
// }
|
||||
//}
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
|
||||
/* PJ 월드 구성하기 */
|
||||
|
||||
//_float fLength = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - vPlayerPos));
|
||||
|
||||
//CTransform* pPJ0_Transform = pStupefy_PJ0->Get_Component<CTransform>();
|
||||
//CTransform* pPJ1_Transform = pStupefy_PJ1->Get_Component<CTransform>();
|
||||
|
||||
//_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);
|
||||
pRay_Transform->Set_WorldMatrix(PJ_WorldMat);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -223,20 +232,7 @@ void CAvadakedavra::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
CEffectParts* pStupefy_Hit_PT = Get_PartObject<CEffectParts>("Stupefy_Hit_PT");
|
||||
CEffectParts* pStupefy_Circle0 = Get_PartObject<CEffectParts>("Stupefy_Circle0");
|
||||
CEffectParts* pHitFlare = Get_PartObject<CEffectParts>("HitFlare");
|
||||
|
||||
|
||||
pStupefy_Hit_PT->Set_Visible(true);
|
||||
pStupefy_Hit_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pStupefy_Circle0->Set_Visible(true);
|
||||
pStupefy_Circle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pHitFlare->Set_Visible(true);
|
||||
pHitFlare->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
|
||||
//
|
||||
//m_pProjectile0->Set_Visible(false);
|
||||
//m_pProjectile1->Set_Visible(false);
|
||||
|
||||
|
||||
@@ -0,0 +1,220 @@
|
||||
#include "pch.h"
|
||||
#include "AvadakedavraSide.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Player.h"
|
||||
#include "Wand.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
|
||||
CAvadakedavraSide::CAvadakedavraSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CAvadakedavraSide::CAvadakedavraSide(const CAvadakedavraSide& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CAvadakedavraSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/AvadakedavraSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CAvadakedavraSide::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<CEffectParts>("WandParticle0");
|
||||
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_G");
|
||||
m_pWandGoo = Get_PartObject<CEffectParts>("Wand_Goo");
|
||||
m_pWandTrail = Get_PartObject<CTrailObject>();
|
||||
|
||||
SAFE_ADDREF(m_pWandLight);
|
||||
SAFE_ADDREF(m_pWandTrail);
|
||||
SAFE_ADDREF(m_pWandParticle);
|
||||
SAFE_ADDREF(m_pWandGoo);
|
||||
|
||||
m_fDuration = 3.f;
|
||||
|
||||
m_Events.emplace(1.f, [&]() {
|
||||
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());
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CAvadakedavraSide::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CAvadakedavraSide::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());
|
||||
m_pWandGoo->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
|
||||
|
||||
// 파티클생성이 막히면 실행되지 않음
|
||||
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 CAvadakedavraSide::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CAvadakedavraSide::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_pWandGoo->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());
|
||||
m_pWandGoo->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CAvadakedavraSide::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CAvadakedavraSide::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CAvadakedavraSide* CAvadakedavraSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CAvadakedavraSide* pInstance = new CAvadakedavraSide(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CAvadakedavraSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CAvadakedavraSide::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CAvadakedavraSide* pInstance = new CAvadakedavraSide(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CAvadakedavraSide");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CAvadakedavraSide::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
}
|
||||
|
||||
void CAvadakedavraSide::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
Safe_Release(m_pWandLight);
|
||||
Safe_Release(m_pWandTrail);
|
||||
Safe_Release(m_pWandParticle);
|
||||
Safe_Release(m_pWandGoo);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CAvadakedavraSide::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CAvadakedavraSide::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "BombardSide.h"
|
||||
#include "LeviosoSide.h"
|
||||
#include "DecendoSide.h"
|
||||
#include "AvadakedavraSide.h"
|
||||
#include "TransformationSide.h"
|
||||
|
||||
#include "NomalJapSide.h"
|
||||
#include "Lumos.h"
|
||||
@@ -39,7 +41,8 @@
|
||||
#include "LightningSide.h"
|
||||
#include "Blink.h"
|
||||
#include "Transformation.h"
|
||||
#include "TransformationSide.h"
|
||||
#include "Avadakedavra.h"
|
||||
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -78,7 +81,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
m_isActiveEffectCreate = true;
|
||||
@@ -431,6 +434,24 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::AVADAKEDAVRA, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CAvadakedavra* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CAvadakedavra>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::AVADAKEDAVRA_SIDE, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CAvadakedavraSide* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CAvadakedavraSide>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -149,6 +149,7 @@
|
||||
#include "BombardSide.h"
|
||||
#include "LeviosoSide.h"
|
||||
#include "TransformationSide.h"
|
||||
#include "AvadakedavraSide.h"
|
||||
|
||||
#include "TrailObject.h"
|
||||
#include "Instance_Model.h"
|
||||
@@ -158,6 +159,7 @@
|
||||
#include "Lumos.h"
|
||||
#include "Accio.h"
|
||||
#include "Blink.h"
|
||||
#include "Avadakedavra.h"
|
||||
#include "Goblin_Teleport.h"
|
||||
|
||||
|
||||
@@ -1992,6 +1994,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CAvadakedavraSide>(g_iStaticLevel, CAvadakedavraSide::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTrollSwing>(g_iStaticLevel, CTrollSwing::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -2061,6 +2067,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CAvadakedavra>(g_iStaticLevel, CAvadakedavra::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
||||
|
||||
@@ -2482,9 +2482,18 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_ENTER];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::AVADA_KEDAVRA):
|
||||
case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
|
||||
pairAnimInfo = m_Animation[STATEANIM::AVADA_KEDAVRA];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::AVADAKEDAVRA, this); },
|
||||
0.45f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::AVADAKEDAVRA_SIDE, Get_PartObject<CWand>()); },
|
||||
0.f);
|
||||
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::LUMOS):
|
||||
if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first)
|
||||
|
||||
@@ -38,7 +38,7 @@ class CAvadakedavra final : public CEffect_Container
|
||||
|
||||
_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 = 10.f;
|
||||
_float3 m_vCameraLook = {};
|
||||
public:
|
||||
static CAvadakedavra* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CAvadakedavraSide final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CAvadakedavraSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CAvadakedavraSide(const CAvadakedavraSide& rhs);
|
||||
virtual ~CAvadakedavraSide() = 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 };
|
||||
class CEffectParts* m_pWandGoo = { nullptr };
|
||||
|
||||
public:
|
||||
static CAvadakedavraSide* 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
|
||||
@@ -42,7 +42,7 @@ namespace Client
|
||||
CONFRINGO, DIFFINDO, EXPELLIARMUS, BOMBARDA, INCENDIO, // 빨간색
|
||||
DISILLUSIONMENT, LUMOS, REPARO, WINGARDIUM_LEVIOSA, // 하늘색
|
||||
CONJURING_SPELL, ALTERING_SPELL, EVANESCO, // 연녹색
|
||||
AVADA_KEDAVRA, CRUCIO, IMPERIO, // 진녹색
|
||||
AVADAKEDAVRA, CRUCIO, IMPERIO, // 진녹색
|
||||
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색
|
||||
JAP, REVELIO, PROTEGO, STUPEFY, // 검은색
|
||||
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, LIGHTNING,
|
||||
@@ -57,7 +57,7 @@ namespace Client
|
||||
SCREEN_WIND,
|
||||
|
||||
/*사이드*/
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE,
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE,
|
||||
|
||||
/*트롤*/
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO,
|
||||
|
||||
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.
@@ -341,9 +341,10 @@ HRESULT CInstance_Model::Load_InstanceModel(INSTANCE_DESC InstanceDesc)
|
||||
|
||||
m_InstanceDesc = InstanceDesc;
|
||||
|
||||
if (m_InstanceDesc.fTimeMult >= 0)
|
||||
if (m_InstanceDesc.fTimeMult <= 0)
|
||||
m_InstanceDesc.fTimeMult = 1.f;
|
||||
|
||||
|
||||
Change_NumInstance();
|
||||
|
||||
return S_OK;
|
||||
@@ -357,9 +358,10 @@ HRESULT CInstance_Model::Load_InstanceModel(HANDLE hFile)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (m_InstanceDesc.fTimeMult >= 0)
|
||||
if (m_InstanceDesc.fTimeMult <= 0)
|
||||
m_InstanceDesc.fTimeMult = 1.f;
|
||||
|
||||
|
||||
Change_NumInstance();
|
||||
|
||||
return S_OK;
|
||||
|
||||
Reference in New Issue
Block a user