commit
This commit is contained in:
@@ -200,6 +200,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
||||
<ClInclude Include="..\Public\PlayerRobe.h" />
|
||||
<ClInclude Include="..\Public\Player_ENUM.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Prop.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Pulse.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Swipe.h" />
|
||||
@@ -484,6 +485,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Ranrok_Land.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
||||
<ClCompile Include="..\Private\PlayerRobe.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Prop.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Pulse.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Swipe.cpp" />
|
||||
|
||||
@@ -862,10 +862,13 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_DeadImpact.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Human_Duelist.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Human_Duelist</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Prop.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1781,7 +1784,7 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush">
|
||||
<UniqueIdentifier>{eb8e52f5-0283-4acf-8fbb-0e734b7580e9}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_Booster_Slot">
|
||||
<UniqueIdentifier>{9c357e12-18b3-461e-b74c-76f85280796f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1797,6 +1800,12 @@
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash">
|
||||
<UniqueIdentifier>{e1fcb75d-6e7a-4adb-9835-6913ac6f44b6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Prop">
|
||||
<UniqueIdentifier>{77cbc828-2eec-4c0e-8425-d9fdf8c4c797}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop">
|
||||
<UniqueIdentifier>{95a34fdb-ac6d-4312-8d28-1931f95c4f4c}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2616,6 +2625,9 @@
|
||||
<ClCompile Include="..\Private\Ranrok_Swipe.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Prop.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -44,7 +44,10 @@ HRESULT CBombard::Initialize(void* pArg)
|
||||
m_wstrEffectName = L"Bombard";
|
||||
|
||||
m_pLight_Projectile = Get_PartObject<CEffectParts>("Bombard_Projectile");
|
||||
m_pWand_Light_B = Get_PartObject<CEffectParts>("Wand_Light_B");
|
||||
|
||||
SAFE_ADDREF(m_pLight_Projectile);
|
||||
SAFE_ADDREF(m_pWand_Light_B);
|
||||
|
||||
m_fDuration = 2.5f;
|
||||
|
||||
@@ -72,6 +75,13 @@ void CBombard::Update(_float fTimeDelta)
|
||||
pPJTransform->Translation( XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed);
|
||||
|
||||
|
||||
CWand* pWand = static_cast<CPlayer*>(m_pOwner)->Get_PartObject<CWand>();
|
||||
|
||||
if (pWand == nullptr)
|
||||
return;
|
||||
|
||||
m_pWand_Light_B->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
}
|
||||
|
||||
void CBombard::Late_Update(_float fTimeDelta)
|
||||
@@ -110,13 +120,15 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
CPartObject* pShootPt = Get_PartObject<CEffectParts>("Bombard_Shoot_Pt");
|
||||
CPartObject* pCircle0 = Get_PartObject<CEffectParts>("Bombard_Circle0");
|
||||
|
||||
|
||||
pShootPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
m_pLight_Projectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
m_pWand_Light_B->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
pCircle0->Set_Visible(true);
|
||||
pShootPt->Set_Visible(true);
|
||||
m_pWand_Light_B->Set_Visible(true);
|
||||
|
||||
|
||||
m_pLight_Projectile->Set_Visible(true);
|
||||
|
||||
@@ -212,7 +224,7 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
pShootPt->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pCircle0->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pWand_Light_B->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
|
||||
m_pLight_Projectile->Set_Visible(false);
|
||||
|
||||
@@ -230,7 +242,7 @@ void CBombard::Free()
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pLight_Projectile);
|
||||
|
||||
SAFE_RELEASE(m_pWand_Light_B);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CBombard::Describe_Entity()
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
#include "Ranrok_Swipe.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
#include "Ranrok_Prop.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -699,6 +700,16 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_PROP, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Prop* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Prop>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -222,6 +222,7 @@
|
||||
#include "Ranrok_Swipe.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
#include "Ranrok_Prop.h"
|
||||
|
||||
#include "StunEffect.h"
|
||||
#include "Box_Splesh.h"
|
||||
@@ -2136,6 +2137,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
Desc1.vLocalTranslation = { 0.f, 0.f, 0.f };
|
||||
}
|
||||
|
||||
|
||||
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC RanrokDesc{};
|
||||
{
|
||||
RanrokDesc.eType = ACTOR::BOX;
|
||||
@@ -2619,6 +2621,9 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Prop>(g_iStaticLevel, CRanrok_Prop::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;
|
||||
|
||||
@@ -22,6 +22,7 @@ void CMonsterInfo::Change_Level()
|
||||
for (CMonster* pMonster : m_ActiveMonsters) {
|
||||
SAFE_RELEASE(pMonster);
|
||||
} m_ActiveMonsters.clear();
|
||||
|
||||
for (CUnit* pPlayerAlly : m_PlayerAllies) {
|
||||
SAFE_RELEASE(pPlayerAlly);
|
||||
} m_PlayerAllies.clear();
|
||||
|
||||
@@ -94,6 +94,7 @@ void CProtego::Late_Update(_float fTimeDelta)
|
||||
if (m_bVisible == false){
|
||||
return;
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position());
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
@@ -134,6 +135,7 @@ HRESULT CProtego::Ready_Components(void* pArg)
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
|
||||
@@ -187,6 +187,18 @@ void CRanrok::Update(_float fTimeDelta)
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
#pragma region CREATE PROP
|
||||
m_vCreatePropTime.x += fTimeDelta;
|
||||
|
||||
if (m_vCreatePropTime.x >= m_vCreatePropTime.y)
|
||||
{
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PROP, this);
|
||||
m_vCreatePropTime.x = 0.f;
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
|
||||
}
|
||||
|
||||
void CRanrok::Late_Update(_float fTimeDelta)
|
||||
@@ -326,9 +338,8 @@ 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);
|
||||
|
||||
@@ -994,6 +1005,11 @@ void CRanrok::Describe_Entity()
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z, 1.f));
|
||||
}
|
||||
|
||||
if (GUI::Button("Create Prop"))
|
||||
{
|
||||
m_vCreatePropTime.x = m_vCreatePropTime.y;
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < m_Points.size(); ++i)
|
||||
{
|
||||
GUI::Separator();
|
||||
|
||||
@@ -0,0 +1,317 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Prop.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Player.h"
|
||||
|
||||
CRanrok_Prop::CRanrok_Prop(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Prop::CRanrok_Prop(const CRanrok_Prop& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Prop::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokProp")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Prop::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_pSphere = Get_PartObject<CEffectParts>("Sphere");
|
||||
m_pSphereLay = Get_PartObject<CEffectParts>("Sphere_Noise");
|
||||
m_pSphereHitLay = Get_PartObject<CEffectParts>("HitLay");
|
||||
|
||||
m_pRing = Get_PartObject<CEffectParts>("Ring");
|
||||
|
||||
SAFE_ADDREF(m_pSphere);
|
||||
SAFE_ADDREF(m_pSphereLay);
|
||||
SAFE_ADDREF(m_pRing);
|
||||
SAFE_ADDREF(m_pSphereHitLay);
|
||||
|
||||
m_wstrEffectName = L"RanrokProp";
|
||||
|
||||
|
||||
m_fAmountSize = 0.1f;
|
||||
m_fSpeed = 5.f;
|
||||
|
||||
m_fDuration = 10000.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Prop::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Prop::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
/* 시작 사이즈 러프 */
|
||||
if (m_fSizeAccTime > XM_PIDIV2 && m_isSizeLerpEnd == false)
|
||||
{
|
||||
m_isSizeLerpEnd = true;
|
||||
|
||||
CEffectParts* pGlowBall = Get_PartObject<CEffectParts>("GlowBall");
|
||||
CEffectParts* pCore = Get_PartObject<CEffectParts>("Core");
|
||||
|
||||
pGlowBall->Set_Visible(true);
|
||||
pCore->Set_Visible(true);
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
m_fSizeAccTime += fTimeDelta * m_fSpeed;
|
||||
|
||||
_float fSize = 1 + sinf(m_fSizeAccTime) * m_fAmountSize;
|
||||
_float3 vSize = _float3(fSize, fSize, fSize);
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pRing->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereHitLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Prop::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
#if _DEBUG
|
||||
m_pRigidBody->Render();
|
||||
#endif
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Prop::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
_vector vPos = pObject->Get_WorldPostion();
|
||||
|
||||
_vector vRandomPos = XMVectorSet(m_pGameInstance->Real_Random_Float(-20.f, 20.f), m_pGameInstance->Real_Random_Float(5.f, 15.f), m_pGameInstance->Real_Random_Float(-20.f, 20.f), 0.f);
|
||||
|
||||
vPos += vRandomPos;
|
||||
|
||||
for (auto& pPart : m_PartObjects)
|
||||
{
|
||||
pPart.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
CEffectParts* pAppear_PT = Get_PartObject<CEffectParts>("Appear_PT");
|
||||
CEffectParts* pSpline = Get_PartObject<CEffectParts>("Spline");
|
||||
|
||||
|
||||
m_pSphere->Set_Visible(true);
|
||||
m_pSphereLay->Set_Visible(true);
|
||||
m_pRing->Set_Visible(true);
|
||||
pAppear_PT->Set_Visible(true);
|
||||
pSpline->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
_float3 vSize = _float3(1.f, 1.f, 1.f);
|
||||
m_pSphere->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pRing->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
m_pSphereHitLay->Get_Component<CTransform>()->Set_Scale(vSize);
|
||||
|
||||
m_fSizeAccTime = 0.f;
|
||||
|
||||
m_isSizeLerpEnd = false;
|
||||
|
||||
m_fHp = 3.f;
|
||||
m_fDuration = 10000.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Prop::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
{ // DO
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANROK_PROP);
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Prop::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Prop* CRanrok_Prop::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Prop* pInstance = new CRanrok_Prop(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Prop");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Prop::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Prop* pInstance = new CRanrok_Prop(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Prop");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Prop::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
//CTransform* pOtherTransform = p
|
||||
ON_COLLISION_INFO* CollisionDesc = nullptr;
|
||||
|
||||
if(pDesc != nullptr)
|
||||
CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
|
||||
m_fHp--;
|
||||
|
||||
|
||||
if (m_fHp > 0)
|
||||
{
|
||||
CEffectParts* pHitLay = Get_PartObject<CEffectParts>("HitLay");
|
||||
CEffectParts* pHit_PT = Get_PartObject<CEffectParts>("Hit_PT");
|
||||
CEffectParts* pPulse_Purple = Get_PartObject<CEffectParts>("Pulse_Purple");
|
||||
|
||||
|
||||
pHitLay->Set_Visible(true);
|
||||
pHit_PT->Set_Visible(true);
|
||||
pPulse_Purple->Set_Visible(true);
|
||||
|
||||
pHitLay->Get_Component<CInstance_Model>()->Instane_Buffer_ReStruct();
|
||||
pHit_PT->Get_Component<CInstance_Model>()->Instane_Buffer_ReStruct();
|
||||
pPulse_Purple->Get_Component<CInstance_Model>()->Instane_Buffer_ReStruct();
|
||||
|
||||
if (CollisionDesc != nullptr)
|
||||
{
|
||||
_vector vHitPos = XMLoadFloat4(&CollisionDesc->vWorldPos);
|
||||
pHit_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHitPos);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
for (auto& pPart : m_PartObjects)
|
||||
{
|
||||
pPart.second->Set_Visible(false);
|
||||
}
|
||||
|
||||
CEffectParts* pHitSplash0 = Get_PartObject<CEffectParts>("HitSplash0");
|
||||
CEffectParts* pHitSplash1 = Get_PartObject<CEffectParts>("HitSplash1");
|
||||
CEffectParts* pBroken_Goo = Get_PartObject<CEffectParts>("Broken_Goo");
|
||||
CEffectParts* pBroken_PT = Get_PartObject<CEffectParts>("Broken_PT");
|
||||
CEffectParts* pBroken_PT2 = Get_PartObject<CEffectParts>("Broken_PT2");
|
||||
|
||||
|
||||
pHitSplash0->Set_Visible(true);
|
||||
pHitSplash1->Set_Visible(true);
|
||||
pBroken_Goo->Set_Visible(true);
|
||||
pBroken_PT->Set_Visible(true);
|
||||
pBroken_PT2->Set_Visible(true);
|
||||
|
||||
m_fDuration = 5.f;
|
||||
m_fAccTime = 0.f;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Prop::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pSphere);
|
||||
SAFE_RELEASE(m_pSphereLay);
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
SAFE_RELEASE(m_pRing);
|
||||
SAFE_RELEASE(m_pSphereHitLay);
|
||||
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CRanrok_Prop::Describe_Entity()
|
||||
{
|
||||
|
||||
|
||||
if(GUI::Button("Hit"))
|
||||
{
|
||||
OnCollision();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CRanrok_Prop::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,6 @@ HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEffectParts* pBottomDecal = Get_PartObject<CEffectParts>("Bottom_Decal");
|
||||
CEffectParts* pBottomSplatter = Get_PartObject<CEffectParts>("BottomSplatter");
|
||||
CEffectParts* pBottomSplatter2 = Get_PartObject<CEffectParts>("BottomSplatter2");
|
||||
CEffectParts* pRed_Sphere = Get_PartObject<CEffectParts>("Red_Sphere");
|
||||
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
@@ -124,7 +123,6 @@ HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
_vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
|
||||
|
||||
pBottomDecal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pBottomSplatter->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pBottomSplatter2->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
|
||||
@@ -35,7 +35,8 @@ class CBombard final : public CEffect_Container
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CEffectParts* m_pLight_Projectile = {};
|
||||
class CEffectParts* m_pLight_Projectile = { nullptr };
|
||||
class CEffectParts* m_pWand_Light_B = { nullptr };
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치
|
||||
|
||||
@@ -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_SWIPE , RANROK_DEAD_SPLASH, RANROK_DEAD_IMPACT,
|
||||
RANROK_GROUNDPULSE, RANROK_SWIPE , RANROK_DEAD_SPLASH, RANROK_DEAD_IMPACT, RANROK_PROP,
|
||||
|
||||
END
|
||||
};
|
||||
|
||||
@@ -68,6 +68,7 @@ class CRanrok final : public CMonster
|
||||
_uint iIndex = {};
|
||||
DAMAGE_INFO m_DamageInfo;
|
||||
_bool m_bCollisionPlayer = { false };
|
||||
_float2 m_vCreatePropTime = { 0.f , 60.f };
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_Prop final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Prop(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Prop(const CRanrok_Prop& rhs);
|
||||
virtual ~CRanrok_Prop() = 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_pSphere = { nullptr };
|
||||
class CEffectParts* m_pSphereLay = { nullptr };
|
||||
class CEffectParts* m_pSphereHitLay = { nullptr };
|
||||
class CEffectParts* m_pRing = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
|
||||
_float m_fSizeAccTime = {};
|
||||
_float m_fAmountSize = {};
|
||||
_float m_fSpeed = {};
|
||||
|
||||
|
||||
_float m_fHp = { 3.f };
|
||||
_bool m_isSizeLerpEnd = {};
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Prop* 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