commit
This commit is contained in:
@@ -183,6 +183,8 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\RandomNpc.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Charge.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_DeadImpact.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_DeadSplash.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_FireBall.h" />
|
||||
<ClInclude Include="..\Public\CamPosition_AI.h" />
|
||||
<ClInclude Include="..\public\Dialogue.h" />
|
||||
@@ -199,6 +201,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Player_ENUM.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Pulse.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Swipe.h" />
|
||||
<ClInclude Include="..\Public\ReparoObject.h" />
|
||||
<ClInclude Include="..\Public\Ride_BboosterBar.h" />
|
||||
<ClInclude Include="..\Public\Ride_Bbooster_Slot.h" />
|
||||
@@ -462,6 +465,8 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\RandomNpc.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Charge.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_DeadImpact.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_DeadSplash.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_FireBall.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition_AI.cpp" />
|
||||
<ClCompile Include="..\private\Dialogue.cpp" />
|
||||
@@ -477,6 +482,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\PlayerRobe.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Pulse.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Swipe.cpp" />
|
||||
<ClCompile Include="..\Private\ReparoObject.cpp" />
|
||||
<ClCompile Include="..\Private\Ride_BboosterBar.cpp" />
|
||||
<ClCompile Include="..\Private\Ride_Bbooster_Slot.cpp" />
|
||||
|
||||
@@ -854,6 +854,15 @@
|
||||
<ClInclude Include="..\Public\Ranrok_GroundPulse.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_DeadSplash.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Swipe.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_DeadImpact.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1773,6 +1782,15 @@
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush">
|
||||
<UniqueIdentifier>{eb8e52f5-0283-4acf-8fbb-0e734b7580e9}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact">
|
||||
<UniqueIdentifier>{a7aeb7ef-a180-49ba-81f6-c8a47dcb941d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe">
|
||||
<UniqueIdentifier>{7a994c53-e406-485e-82c2-6a116b6b23e5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash">
|
||||
<UniqueIdentifier>{e1fcb75d-6e7a-4adb-9835-6913ac6f44b6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2574,6 +2592,15 @@
|
||||
<ClCompile Include="..\Private\Ranrok_GroundPulse.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_DeadSplash.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_DeadImpact.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Swipe.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -52,6 +52,9 @@
|
||||
#include "Ranrok_Land.h"
|
||||
#include "Ranrok_GroundPulse.h"
|
||||
#include "Ranrok_Rush_Bottom.h"
|
||||
#include "Ranrok_Swipe.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -668,6 +671,33 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_SWIPE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Swipe* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Swipe>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_SPLASH, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_DeadSplash* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_DeadSplash>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_IMPACT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_DeadImpact* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_DeadImpact>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -686,6 +716,7 @@ HRESULT CEffectPool::Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPr
|
||||
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -147,6 +147,13 @@ HRESULT CLevel_Field::Ready_Lights()
|
||||
Desc.vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
#if 진우
|
||||
Desc.vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f);
|
||||
Desc.vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
|
||||
Desc.vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLight_Main>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &pLight))) {
|
||||
return E_FAIL;
|
||||
@@ -162,6 +169,9 @@ HRESULT CLevel_Field::Ready_Lights()
|
||||
vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
#endif // gimch
|
||||
|
||||
vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f);
|
||||
vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f);
|
||||
vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
|
||||
|
||||
pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
@@ -174,6 +184,7 @@ HRESULT CLevel_Field::Ready_Volumetric()
|
||||
{
|
||||
m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -218,6 +218,9 @@
|
||||
#include "Ranrok_Land.h"
|
||||
#include "Ranrok_GroundPulse.h"
|
||||
#include "Ranrok_Rush_Bottom.h"
|
||||
#include "Ranrok_Swipe.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
|
||||
#include "StunEffect.h"
|
||||
#include "Box_Splesh.h"
|
||||
@@ -2414,6 +2417,18 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Swipe>(g_iStaticLevel, CRanrok_Swipe::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_DeadSplash>(g_iStaticLevel, CRanrok_DeadSplash::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_DeadImpact>(g_iStaticLevel, CRanrok_DeadImpact::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)))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -326,8 +326,9 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
|
||||
#ifndef 진우
|
||||
XMStoreFloat4(&m_DamageInfo.vTarget_Pos, m_pCharacter_Controller->Get_HeadPosition());
|
||||
#endif
|
||||
|
||||
CEffect_Container* pEffect_Container = dynamic_cast<CEffect_Container*>(pOther);
|
||||
|
||||
@@ -382,7 +383,9 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
|
||||
m_DamageInfo.fDamage = damagePair.first;
|
||||
#ifndef 진우
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
#endif
|
||||
if (0 == damagePair.second) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
return;
|
||||
|
||||
@@ -79,7 +79,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("jaw"));
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("tongue_01"));
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_DeadImpact::CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_DeadImpact::CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::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"RanrokDeadImpact";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEffectParts* pDistortion = Get_PartObject<CEffectParts>("Distortion");
|
||||
CEffectParts* pDistortion_Small = Get_PartObject<CEffectParts>("Distortion_Small");
|
||||
CEffectParts* pPulse_White = Get_PartObject<CEffectParts>("Pulse_White");
|
||||
CEffectParts* pSplash_Black = Get_PartObject<CEffectParts>("Splash_Black");
|
||||
CEffectParts* pSplash_Red = Get_PartObject<CEffectParts>("Splash_Red");
|
||||
CEffectParts* pSpline0 = Get_PartObject<CEffectParts>("Spline0");
|
||||
CEffectParts* pSpline1 = Get_PartObject<CEffectParts>("Spline1");
|
||||
CEffectParts* pSide_Pt = Get_PartObject<CEffectParts>("Side_Pt");
|
||||
CEffectParts* pCircle_0 = Get_PartObject<CEffectParts>("Circle_0");
|
||||
|
||||
pDistortion->Set_Visible(true);
|
||||
pDistortion_Small->Set_Visible(true);
|
||||
pPulse_White->Set_Visible(true);
|
||||
pSplash_Black->Set_Visible(true);
|
||||
pSplash_Red->Set_Visible(true);
|
||||
pSpline0->Set_Visible(true);
|
||||
pSpline1->Set_Visible(true);
|
||||
pSide_Pt->Set_Visible(true);
|
||||
pCircle_0->Set_Visible(true);
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_vector vPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_HeadPosition();
|
||||
|
||||
|
||||
pDistortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pDistortion_Small->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pPulse_White->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSplash_Black->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSplash_Red->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSpline0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSpline1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSide_Pt->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pCircle_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_DeadImpact* CRanrok_DeadImpact::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_DeadImpact");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_DeadImpact::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_DeadImpact");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_DeadImpact::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,203 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_DeadSplash::CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_DeadSplash::CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::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"RanrokDeadSplash";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
_float4 vPos = *static_cast<_float4*>(pArg);
|
||||
_vector vPosition = XMLoadFloat4(&vPos);
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEffectParts* pDead_Decal = Get_PartObject<CEffectParts>("Dead_Decal");
|
||||
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
CEffectParts* pRock_Splash = Get_PartObject<CEffectParts>("Rock_Splash");
|
||||
CEffectParts* pSplash = Get_PartObject<CEffectParts>("Splash");
|
||||
|
||||
pDead_Decal->Set_Visible(true);
|
||||
pRock_PT->Set_Visible(true);
|
||||
|
||||
pRock_Splash->Set_Visible(true);
|
||||
pSplash->Set_Visible(true);
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosition);
|
||||
pSplash->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosition);
|
||||
|
||||
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
_vector vPlayer_FootPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_FootPosition();
|
||||
|
||||
|
||||
_vector vCompute_Pos = XMVectorSetY(vPosition, XMVectorGetY(vPlayer_FootPos));
|
||||
pRock_Splash->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
|
||||
vCompute_Pos = XMVectorSetY(m_pOwner->Get_WorldPostion(), XMVectorGetY(vPlayer_FootPos));
|
||||
|
||||
pDead_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_DeadSplash* CRanrok_DeadSplash::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_DeadSplash");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_DeadSplash::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_DeadSplash");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_DeadSplash::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -660,8 +660,12 @@ void CRanrok::Behavior_SwipeEnter()
|
||||
|
||||
}
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bMotionTrail = true; },
|
||||
[this]() {
|
||||
m_bMotionTrail = true;
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_SWIPE , this);
|
||||
},
|
||||
0.3f);
|
||||
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
@@ -1030,20 +1034,95 @@ void CRanrok::Behavior_DeadEnter()
|
||||
m_bLookAt = false;
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::DEAD);
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
m_pRigidBody->SetActive(false);
|
||||
m_pCharacter_Controller->SetActive(false);
|
||||
|
||||
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::DEAD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
|
||||
m_pBottomSmoke->Set_Visible(false);
|
||||
m_pLeftSmoke->Set_Visible(false);
|
||||
m_pRightSmoke->Set_Visible(false);
|
||||
m_pLeftPt->Set_Visible(false);
|
||||
m_pRightPt->Set_Visible(false);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_vector vPos = m_pCharacter_Controller->Get_Position();
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &vPosFloat4);
|
||||
|
||||
}, 0.f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("pinky_06_right")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.2f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("elbow_left")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.34f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.44f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.6f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_IMPACT, this);
|
||||
|
||||
}, 0.8f);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Behavior_DeadExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (FLT_EPSILON > m_pModelCom->Get_CurrentTrackProgressRatio()) {
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
m_fDeadRatio = CMyTools::Saturate((fRatio - 0.8f) / 0.2f);
|
||||
if (FLT_EPSILON > fRatio) {
|
||||
return E_PENDING;
|
||||
}
|
||||
return S_OK;
|
||||
@@ -1285,8 +1364,15 @@ void CRanrok::Add_FSM()
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_DeadExit(); };
|
||||
Desc.funcLateUpdate = [this](_float fDeadRatio) {
|
||||
m_fDeadRatio = fDeadRatio;
|
||||
if (m_fDeadRatio > 1.f) {
|
||||
// m_fDeadRatio = fDeadRatio;
|
||||
if (m_fDeadRatio >= 1.f) {
|
||||
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
m_pRigidBody->SetActive(false);
|
||||
m_pCharacter_Controller->SetActive(false);
|
||||
|
||||
m_bDead = true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -0,0 +1,229 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Swipe.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Swipe::CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Swipe::CRanrok_Swipe(const CRanrok_Swipe& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::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"RanrokSwipe";
|
||||
|
||||
m_pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
SAFE_ADDREF(m_pRock_PT);
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
m_Events.emplace(0.4f, [&]() {
|
||||
|
||||
CEffectParts* pClawDecal = Get_PartObject<CEffectParts>("ClawDecal");
|
||||
pClawDecal->Set_Visible(true);
|
||||
|
||||
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Swipe_Smoke");
|
||||
pSmoke->Set_Visible(true);
|
||||
|
||||
_vector vComputePos = Compute_Pos();
|
||||
|
||||
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vComputePos);
|
||||
|
||||
_vector vLook = XMVector3Normalize(m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK));
|
||||
_vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f) , vLook));
|
||||
_vector vUp = XMVector3Normalize(XMVector3Cross(vLook , vRight));
|
||||
_vector vPos = vComputePos;
|
||||
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
pClawDecal->Get_Component<CTransform>()->Set_WorldMatrix(PJ_WorldMat);
|
||||
});
|
||||
|
||||
m_Events.emplace(0.8f, [&]() {
|
||||
m_isParticleEnd = true;
|
||||
m_pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f));
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
if (m_isParticleEnd == false)
|
||||
{
|
||||
_vector vComputePos = Compute_Pos();
|
||||
m_pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vComputePos);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
m_pRock_PT->Set_Visible(true);
|
||||
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
_vector vComputePos = Compute_Pos();
|
||||
m_pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vComputePos);
|
||||
|
||||
m_isParticleEnd = false;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Swipe* CRanrok_Swipe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Swipe* pInstance = new CRanrok_Swipe(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Swipe");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Swipe::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Swipe* pInstance = new CRanrok_Swipe(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Swipe");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
|
||||
}
|
||||
|
||||
_fvector CRanrok_Swipe::Compute_Pos()
|
||||
{
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("wrist_left_target")) * m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
_vector vBonePos = BoneMat.r[3];
|
||||
|
||||
|
||||
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
|
||||
|
||||
|
||||
|
||||
_vector vPlayer_FootPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_FootPosition();
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
|
||||
|
||||
_vector vCompute_Pos = XMVectorSetY(vBonePos, XMVectorGetY(vPlayer_FootPos));
|
||||
|
||||
return vCompute_Pos;
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
SAFE_RELEASE(m_pRock_PT);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Swipe::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Swipe::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace Client
|
||||
/*란록*/
|
||||
|
||||
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT, RANROK_LAND, RANROK_RUSH_BOTTOM,
|
||||
RANROK_GROUNDPULSE,
|
||||
RANROK_GROUNDPULSE, RANROK_SWIPE , RANROK_DEAD_SPLASH, RANROK_DEAD_IMPACT,
|
||||
|
||||
END
|
||||
};
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_DeadImpact final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs);
|
||||
virtual ~CRanrok_DeadImpact() = 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 = {};
|
||||
|
||||
class CEffectParts* m_pGooRod_0 = { nullptr };
|
||||
class CEffectParts* m_pSmoke = { nullptr };
|
||||
class CEffectParts* m_pSpread_PT = { nullptr };
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_DeadImpact* 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
|
||||
@@ -0,0 +1,58 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_DeadSplash final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs);
|
||||
virtual ~CRanrok_DeadSplash() = 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 = {};
|
||||
|
||||
class CEffectParts* m_pGooRod_0 = { nullptr };
|
||||
class CEffectParts* m_pSmoke = { nullptr };
|
||||
class CEffectParts* m_pSpread_PT = { nullptr };
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_DeadSplash* 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
|
||||
@@ -0,0 +1,59 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_Swipe final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Swipe(const CRanrok_Swipe& rhs);
|
||||
virtual ~CRanrok_Swipe() = 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;
|
||||
_fvector Compute_Pos();
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pRock_PT = { nullptr };
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
|
||||
_bool m_isParticleEnd = {};
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Swipe* 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
|
||||
Reference in New Issue
Block a user