This commit is contained in:
GiJungSUk
2025-12-08 14:09:01 +09:00
parent 071b7257c5
commit 535ccb6483
4 changed files with 52 additions and 5 deletions
@@ -44,9 +44,9 @@ HRESULT CEffectPool::Initialize(void* pArg)
return E_FAIL;
}
//if (FAILED(Ready_Effect())) {
// return E_FAIL;
//}
if (FAILED(Ready_Effect())) {
return E_FAIL;
}
return S_OK;
+42
View File
@@ -14,6 +14,8 @@
#include "State_Combat.h"
#pragma endregion
#include "EffectParts.h"
CGoblin::CGoblin(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CMonster(pDevice, pContext)
@@ -296,6 +298,46 @@ HRESULT CGoblin::Ready_Parts()
Get_PartObject<CGoblin_Dagger>()->Set_Visible(false);
#pragma region EFFECT
/* EFFECT */
CPartObject::PARTOBJECT_DESC PartsDesc{};
PartsDesc.pParentTransform = m_pTransformCom;
if (FAILED(Add_PartObject<CEffectParts>("Goblin_Particle",g_iStaticLevel, &m_pGoblin_Particle, &PartsDesc)))
{
return E_FAIL;
}
m_pGoblin_Particle->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle", static_cast<LEVEL>(NEXT_LEVEL));
m_pGoblin_Particle->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder"));
if (FAILED(Add_PartObject<CEffectParts>("Goblin_Particle2", g_iStaticLevel, &m_pGoblin_Particle2, &PartsDesc)))
{
return E_FAIL;
}
m_pGoblin_Particle2->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2", static_cast<LEVEL>(NEXT_LEVEL));
m_pGoblin_Particle2->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder"));
if (FAILED(Add_PartObject<CEffectParts>("Goblin_Smoke", g_iStaticLevel, &m_pSmoke, &PartsDesc)))
{
return E_FAIL;
}
m_pSmoke->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke", static_cast<LEVEL>(NEXT_LEVEL));
m_pSmoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("Spine2"));
#pragma endregion
return S_OK;
return S_OK;
}
+2 -2
View File
@@ -316,7 +316,7 @@ HRESULT CTroll::Ready_Parts()
/*if (FAILED(Add_PartObject<CEffectParts>("Troll_Particle", g_iStaticLevel, &m_pTroll_Particle, &PartsDesc)))
if (FAILED(Add_PartObject<CEffectParts>("Troll_Particle", g_iStaticLevel, &m_pTroll_Particle, &PartsDesc)))
{
return E_FAIL;
}
@@ -350,7 +350,7 @@ HRESULT CTroll::Ready_Parts()
m_pLeft_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Smoke", static_cast<LEVEL>(NEXT_LEVEL));
m_pLeft_Smoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("LeftArm"));
*/
#pragma endregion
return S_OK;
}
+5
View File
@@ -40,6 +40,11 @@ class CGoblin final : public CMonster
_float2 m_vStunTimer = { 0.f, 4.f };
_uint iIndex;
class CEffectParts* m_pSmoke = { nullptr };
class CEffectParts* m_pGoblin_Particle = { nullptr };
class CEffectParts* m_pGoblin_Particle2 = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;