This commit is contained in:
GiJungSUk
2026-01-05 22:29:19 +09:00
parent 1297b8f275
commit bfeea69f51
48 changed files with 1781 additions and 88 deletions
@@ -190,12 +190,15 @@ call Update_Resources.bat
<ClInclude Include="..\public\Dialogue_Font.h" />
<ClInclude Include="..\public\NPCInteraction.h" />
<ClInclude Include="..\public\PointLight.h" />
<ClInclude Include="..\Public\Ranrok_GroundPulse.h" />
<ClInclude Include="..\Public\Ranrok_Hit.h" />
<ClInclude Include="..\Public\Ranrok_Impact.h" />
<ClInclude Include="..\Public\Ranrok_Land.h" />
<ClInclude Include="..\Public\Ranrok_Point.h" />
<ClInclude Include="..\Public\PlayerRobe.h" />
<ClInclude Include="..\Public\Player_ENUM.h" />
<ClInclude Include="..\Public\Ranrok_Pulse.h" />
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h" />
<ClInclude Include="..\Public\ReparoObject.h" />
<ClInclude Include="..\Public\Ride_BboosterBar.h" />
<ClInclude Include="..\Public\Ride_Bbooster_Slot.h" />
@@ -466,11 +469,14 @@ call Update_Resources.bat
<ClCompile Include="..\private\Dialogue_Font.cpp" />
<ClCompile Include="..\private\NPCInteraction.cpp" />
<ClCompile Include="..\private\PointLight.cpp" />
<ClCompile Include="..\Private\Ranrok_GroundPulse.cpp" />
<ClCompile Include="..\Private\Ranrok_Hit.cpp" />
<ClCompile Include="..\Private\Ranrok_Impact.cpp" />
<ClCompile Include="..\Private\Ranrok_Land.cpp" />
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
<ClCompile Include="..\Private\PlayerRobe.cpp" />
<ClCompile Include="..\Private\Ranrok_Pulse.cpp" />
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp" />
<ClCompile Include="..\Private\ReparoObject.cpp" />
<ClCompile Include="..\Private\Ride_BboosterBar.cpp" />
<ClCompile Include="..\Private\Ride_Bbooster_Slot.cpp" />
@@ -841,10 +841,19 @@
</ClInclude>
<ClInclude Include="..\Public\Ranrok_Hit.h">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Nomal_Hit</Filter>
</ClInclude>
</ClInclude>
<ClInclude Include="..\Public\RandomNpc.h">
<Filter>02.GameObjects\NPC\Ally\RandomNpc</Filter>
</ClInclude>
</ClInclude>
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush</Filter>
</ClInclude>
<ClInclude Include="..\Public\Ranrok_Land.h">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Land</Filter>
</ClInclude>
<ClInclude Include="..\Public\Ranrok_GroundPulse.h">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Client.ico">
@@ -1751,10 +1760,19 @@
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrol_Impact">
<UniqueIdentifier>{15ea8015-5b0a-4678-bf02-55b042ef4de4}</UniqueIdentifier>
</Filter>
</Filter>
<Filter Include="02.GameObjects\NPC\Ally\RandomNpc">
<UniqueIdentifier>{88b62177-01fc-424d-a444-4fb5fd4b2db5}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Land">
<UniqueIdentifier>{9cf44fef-f3be-409e-b530-6aef90db5c0c}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse">
<UniqueIdentifier>{c756e70b-1ba2-4a25-a177-b50bbc1a332a}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush">
<UniqueIdentifier>{eb8e52f5-0283-4acf-8fbb-0e734b7580e9}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Client.cpp">
@@ -2543,10 +2561,19 @@
</ClCompile>
<ClCompile Include="..\Private\Ranrok_Hit.cpp">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Nomal_Hit</Filter>
</ClCompile>
</ClCompile>
<ClCompile Include="..\Private\RandomNpc.cpp">
<Filter>02.GameObjects\NPC\Ally\RandomNpc</Filter>
</ClCompile>
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush</Filter>
</ClCompile>
<ClCompile Include="..\Private\Ranrok_Land.cpp">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Land</Filter>
</ClCompile>
<ClCompile Include="..\Private\Ranrok_GroundPulse.cpp">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\Private\Goblin_States.cpp">
+32 -2
View File
@@ -49,7 +49,9 @@
#include "Ranrok_Charge.h"
#include "Ranrok_Hit.h"
#include "Ranrok_Impact.h"
#include "Ranrok_Land.h"
#include "Ranrok_GroundPulse.h"
#include "Ranrok_Rush_Bottom.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -637,7 +639,35 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_LAND, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_Land* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Land>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_GROUNDPULSE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_GroundPulse* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_GroundPulse>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_RUSH_BOTTOM, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_Rush_Bottom* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Rush_Bottom>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
return S_OK;
}
+12
View File
@@ -215,6 +215,9 @@
#include "Ranrok_Pulse.h"
#include "Ranrok_Hit.h"
#include "Ranrok_Impact.h"
#include "Ranrok_Land.h"
#include "Ranrok_GroundPulse.h"
#include "Ranrok_Rush_Bottom.h"
#include "StunEffect.h"
#include "Box_Splesh.h"
@@ -2365,6 +2368,15 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Land>(g_iStaticLevel, CRanrok_Land::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_GroundPulse>(g_iStaticLevel, CRanrok_GroundPulse::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Rush_Bottom>(g_iStaticLevel, CRanrok_Rush_Bottom::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)))) {
@@ -6,6 +6,7 @@
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
#include "Ranrok.h"
CRanrok_Breath::CRanrok_Breath(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
@@ -48,11 +49,13 @@ HRESULT CRanrok_Breath::Initialize(void* pArg)
m_pBreath_Black = Get_PartObject<CEffectParts>("Breath_Black");
m_pBreathSlog = Get_PartObject<CEffectParts>("BreathSlog");
m_pMouthFire = Get_PartObject<CEffectParts>("MouthFire");
m_pLand_Decal = Get_PartObject<CEffectParts>("Land_Decal");
SAFE_ADDREF(m_pBreath);
SAFE_ADDREF(m_pBreath_Black);
SAFE_ADDREF(m_pBreathSlog);
SAFE_ADDREF(m_pMouthFire);
SAFE_ADDREF(m_pLand_Decal);
m_fDuration = 5.f;
@@ -130,9 +133,9 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
/* 브레스 시간 제어 */
_float fBreathTime = *static_cast<_float*>(pArg);
BREATH_INFO BreathDesc = *static_cast<BREATH_INFO*>(pArg);
Set_BreathTime(fBreathTime);
Set_BreathTime(BreathDesc.fTime);
/* 초기 객체 비지블*/
@@ -146,7 +149,7 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
/* 초기 객체 위치 초기화*/
_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]);
@@ -180,6 +183,33 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
m_isParticleEnd = false;
m_isStartRayCast = false;
/* 바닥 페이즈 일때*/
if (static_cast<CRanrok::RANROK_PHASE>(BreathDesc.iPase) == CRanrok::RANROK_PHASE::PHASE_GROUND)
{
m_pLand_Decal->Set_Visible(true);
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
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();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
m_pLand_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
m_pLand_Decal->Get_Component<CInstance_Model>()->Set_Loop(true);
}
return S_OK;
}
@@ -254,6 +284,7 @@ void CRanrok_Breath::OnCollision(CGameObject* pOther, void* pDesc)
pSplatterBottom0->Set_Visible(true);
pSplatterBottom0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos + vDir * 3.f);
m_pLand_Decal->Get_Component<CInstance_Model>()->Set_Loop(false);
XMStoreFloat4(&m_vPreCollisionPos, vPos);
}
@@ -304,7 +335,7 @@ void CRanrok_Breath::Free()
SAFE_RELEASE(m_pBreath_Black);
SAFE_RELEASE(m_pBreathSlog);
SAFE_RELEASE(m_pMouthFire);
SAFE_RELEASE(m_pLand_Decal);
//SAFE_RELEASE(m_pFireBall_Tail);
}
#ifdef _DEBUG
@@ -0,0 +1,207 @@
#include "pch.h"
#include "Ranrok_GroundPulse.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
CRanrok_GroundPulse::CRanrok_GroundPulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CRanrok_GroundPulse::CRanrok_GroundPulse(const CRanrok_GroundPulse& rhs)
: CEffect_Container(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CRanrok_GroundPulse::Initialize_Prototype()
{
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokGroundPulse")))
return E_FAIL;
return S_OK;
}
HRESULT CRanrok_GroundPulse::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"RanrokGroundPulse";
m_fDuration = 10.f;
return S_OK;
}
void CRanrok_GroundPulse::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CRanrok_GroundPulse::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CRanrok_GroundPulse::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CRanrok_GroundPulse::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
/* 초기 객체 비지블*/
CEffectParts* pBottomDecal = Get_PartObject<CEffectParts>("Bottom_Decal");
CEffectParts* pBottomSplatter = Get_PartObject<CEffectParts>("BottomSplatter");
CEffectParts* pRed_Sphere = Get_PartObject<CEffectParts>("Red_Sphere");
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
pBottomDecal->Set_Visible(true);
pBottomSplatter->Set_Visible(true);
pRock_PT->Set_Visible(true);
pSmoke->Set_Visible(true);
pRed_Sphere->Set_Visible(true);
/* 초기 객체 위치 초기화*/
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
pRed_Sphere->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
pRed_Sphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
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();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_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);
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
return S_OK;
}
HRESULT CRanrok_GroundPulse::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CRanrok_GroundPulse::Ready_Child()
{
return S_OK;
}
CRanrok_GroundPulse* CRanrok_GroundPulse::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRanrok_GroundPulse* pInstance = new CRanrok_GroundPulse(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRanrok_GroundPulse");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRanrok_GroundPulse::Clone(void* pArg, CGameObject* pOwner)
{
CRanrok_GroundPulse* pInstance = new CRanrok_GroundPulse(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRanrok_GroundPulse");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRanrok_GroundPulse::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_GroundPulse::Free()
{
__super::Free();
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG
void CRanrok_GroundPulse::Describe_Entity()
{
}
#endif
HRESULT CRanrok_GroundPulse::Bind_ShaderResources()
{
return S_OK;
}
@@ -0,0 +1,201 @@
#include "pch.h"
#include "Ranrok_Land.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
CRanrok_Land::CRanrok_Land(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CRanrok_Land::CRanrok_Land(const CRanrok_Land& rhs)
: CEffect_Container(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CRanrok_Land::Initialize_Prototype()
{
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokLand")))
return E_FAIL;
return S_OK;
}
HRESULT CRanrok_Land::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"RanrokLand";
m_fDuration = 5.f;
return S_OK;
}
void CRanrok_Land::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CRanrok_Land::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CRanrok_Land::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CRanrok_Land::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
/* 초기 객체 비지블*/
CEffectParts* pBottom_Decal = Get_PartObject<CEffectParts>("Bottom_Decal");
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
pBottom_Decal->Set_Visible(true);
pSmoke->Set_Visible(true);
pRock_PT->Set_Visible(true);
/* 초기 객체 위치 초기화*/
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
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();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
pBottom_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
return S_OK;
}
HRESULT CRanrok_Land::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CRanrok_Land::Ready_Child()
{
return S_OK;
}
CRanrok_Land* CRanrok_Land::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRanrok_Land* pInstance = new CRanrok_Land(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRanrok_Land");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRanrok_Land::Clone(void* pArg, CGameObject* pOwner)
{
CRanrok_Land* pInstance = new CRanrok_Land(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRanrok_Land");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRanrok_Land::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_Land::Free()
{
__super::Free();
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG
void CRanrok_Land::Describe_Entity()
{
}
#endif
HRESULT CRanrok_Land::Bind_ShaderResources()
{
return S_OK;
}
@@ -0,0 +1,202 @@
#include "pch.h"
#include "Ranrok_Rush_Bottom.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
CRanrok_Rush_Bottom::CRanrok_Rush_Bottom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CRanrok_Rush_Bottom::CRanrok_Rush_Bottom(const CRanrok_Rush_Bottom& rhs)
: CEffect_Container(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CRanrok_Rush_Bottom::Initialize_Prototype()
{
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokRushBottom")))
return E_FAIL;
return S_OK;
}
HRESULT CRanrok_Rush_Bottom::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"Ranrok_Rush_Bottom";
m_fDuration = 3.f;
return S_OK;
}
void CRanrok_Rush_Bottom::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CRanrok_Rush_Bottom::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CRanrok_Rush_Bottom::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CRanrok_Rush_Bottom::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
/* 초기 객체 비지블*/
CEffectParts* pRush_Decal = Get_PartObject<CEffectParts>("Rush_Decal");
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
pRush_Decal->Set_Visible(true);
pSmoke->Set_Visible(true);
pRock_PT->Set_Visible(true);
/* 초기 객체 위치 초기화*/
_vector vBonePos = XMLoadFloat4(static_cast<_float4*>(pArg));
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();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_vector vCompute_Pos = XMVectorSetY(vBonePos, XMVectorGetY(vPlayer_FootPos));
pRush_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
return S_OK;
}
HRESULT CRanrok_Rush_Bottom::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CRanrok_Rush_Bottom::Ready_Child()
{
return S_OK;
}
CRanrok_Rush_Bottom* CRanrok_Rush_Bottom::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRanrok_Rush_Bottom* pInstance = new CRanrok_Rush_Bottom(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRanrok_Rush_Bottom");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRanrok_Rush_Bottom::Clone(void* pArg, CGameObject* pOwner)
{
CRanrok_Rush_Bottom* pInstance = new CRanrok_Rush_Bottom(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRanrok_Rush_Bottom");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRanrok_Rush_Bottom::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_Rush_Bottom::Free()
{
__super::Free();
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG
void CRanrok_Rush_Bottom::Describe_Entity()
{
}
#endif
HRESULT CRanrok_Rush_Bottom::Bind_ShaderResources()
{
return S_OK;
}
@@ -7,6 +7,7 @@
#include "EffectPool.h"
#include "EffectParts.h"
#include "TrailObject.h"
#include "Ranrok_Breath.h"
#pragma region STATE
#include "State_Idle.h"
@@ -352,9 +353,13 @@ void CRanrok::Behavior_FireBreathEnter()
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
[this]() {
_float fBreathTime = 1.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 1.f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
}, 0.1f);
@@ -370,8 +375,13 @@ void CRanrok::Behavior_FireBreathEnter()
Add_Event(pairAnimInfo.first,
[this]() {
_float fBreathTime = 5.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 2.f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
m_bLookAt = false;
}, 0.2f);
@@ -457,9 +467,13 @@ void CRanrok::Behavior_FireSweepEnter()
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
[this]() {
_float fBreathTime = 3.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 2.5f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
}, 0.08f);
@@ -476,8 +490,13 @@ void CRanrok::Behavior_FireSweepEnter()
Add_Event(m_Animation[STATEANIM::FIRESWEEP_G].first,
[this]() {
_float fBreathTime = 5.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 3.f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
m_bLookAt = false;
}, 0.2f);
@@ -698,6 +717,31 @@ void CRanrok::Behavior_RushEnter()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,2.f);
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::RUSH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::RUSH)];
m_bLookAt = false;
Add_Event(m_Animation[STATEANIM::RUSH_LOOP].first,
[this]() {
_matrix LeftBoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("wrist_left_target")) * m_pTransformCom->Get_XMWorldMatrix();
_float4 vLeftPos;
XMStoreFloat4(&vLeftPos, LeftBoneMat.r[3]);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_RUSH_BOTTOM, this, &vLeftPos);
}, 0.5f, true);
Add_Event(m_Animation[STATEANIM::RUSH_LOOP].first,
[this]() {
_matrix RightBoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("wrist_right_target")) * m_pTransformCom->Get_XMWorldMatrix();
_float4 vRightPos;
XMStoreFloat4(&vRightPos, RightBoneMat.r[3]);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_RUSH_BOTTOM, this, &vRightPos);
}, 0.8f, true);
}
HRESULT CRanrok::Behavior_RushExitCheck(_float fTimeDelta)
@@ -762,6 +806,9 @@ HRESULT CRanrok::Behavior_RushExitCheck(_float fTimeDelta)
m_pFSM->Change_State(FSMSTATE::GROUND);
return E_FAIL;
}
return S_OK;
}
@@ -782,21 +829,31 @@ void CRanrok::Behavior_PulseEnter()
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
Add_Event(pairAnimInfo.first,
[this]() { CameraShake(10.f, 2.f, 5.f, 1.2f);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PURSE, this);
},
0.39f);
Add_Event(pairAnimInfo.first,
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_CHARGE, this);
m_pLeftSmoke->Set_Visible(false);
m_pRightSmoke->Set_Visible(false);
m_pBottomSmoke->Set_Visible(false);
}, 0.f);
}, 0.01f);
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
{
Add_Event(pairAnimInfo.first,
[this]() {
CameraShake(10.f, 2.f, 5.f, 1.2f);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PURSE, this);
}, 0.39f);
}
else
{
Add_Event(pairAnimInfo.first,
[this]() {
CameraShake(10.f, 2.f, 5.f, 1.2f);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_GROUNDPULSE, this);
}, 0.39f);
}
}
@@ -908,8 +965,11 @@ void CRanrok::Behavior_LandEnter()
pairAnimInfo = m_Animation[STATEANIM::LAND];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,fAnimSpeed);
Add_Event(pairAnimInfo.first,
[this]() { CameraShake(30.f, 5.f, 10.f, 1.2f); },
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_LAND, this);
CameraShake(30.f, 5.f, 10.f, 1.2f); },
0.53f);
}
@@ -378,8 +378,6 @@ HRESULT CTrailObject::Render_Blur()
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLUR))))
return E_FAIL;
if (FAILED(m_pTrailCom->Render()))
return E_FAIL;
@@ -470,10 +468,6 @@ HRESULT CTrailObject::Bind_ShaderResources()
if (FAILED(m_pTrailCom->Bind_Resources()))
return E_FAIL;
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), m_pShaderCom, "g_DepthTexture"))) {
return E_FAIL;
}
@@ -482,6 +476,11 @@ HRESULT CTrailObject::Bind_ShaderResources()
return E_FAIL;
}
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
+2 -1
View File
@@ -78,7 +78,8 @@ namespace Client
/*란록*/
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT,
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT, RANROK_LAND, RANROK_RUSH_BOTTOM,
RANROK_GROUNDPULSE,
END
};
+1 -1
View File
@@ -31,7 +31,7 @@ class CRanrok final : public CMonster
BODY,
END
};
public:
enum class RANROK_PHASE
{
PHASE_AIR,
@@ -10,6 +10,13 @@ NS_BEGIN(Client)
class CRanrok_Breath final : public CEffect_Container
{
public:
typedef struct tagBreathInfo
{
_float fTime;
_int iPase;
}BREATH_INFO;
private:
CRanrok_Breath(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_Breath(const CRanrok_Breath& rhs);
@@ -38,6 +45,7 @@ class CRanrok_Breath final : public CEffect_Container
class CEffectParts* m_pBreath_Black = { nullptr };
class CEffectParts* m_pBreathSlog = { nullptr };
class CEffectParts* m_pMouthFire = { nullptr };
class CEffectParts* m_pLand_Decal = { nullptr };
_float3 m_vLook = {};
_float m_fLinearSpeed = 0.8f;
@@ -0,0 +1,55 @@
#pragma once
#include "Client_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Client)
class CRanrok_GroundPulse final : public CEffect_Container
{
private:
CRanrok_GroundPulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_GroundPulse(const CRanrok_GroundPulse& rhs);
virtual ~CRanrok_GroundPulse() = 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 = {};
_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_GroundPulse* 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_Land final : public CEffect_Container
{
private:
CRanrok_Land(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_Land(const CRanrok_Land& rhs);
virtual ~CRanrok_Land() = 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_Land* 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_Rush_Bottom final : public CEffect_Container
{
private:
CRanrok_Rush_Bottom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_Rush_Bottom(const CRanrok_Rush_Bottom& rhs);
virtual ~CRanrok_Rush_Bottom() = 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_Rush_Bottom* 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
@@ -215,6 +215,8 @@ call Update_Shaders.bat
<ClInclude Include="..\Public\Ranrok.h" />
<ClInclude Include="..\Public\Ranrok_Breath.h" />
<ClInclude Include="..\Public\Ranrok_Charge.h" />
<ClInclude Include="..\Public\Ranrok_GroundPulse.h" />
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h" />
<ClInclude Include="..\Public\Ranrok_Land.h" />
<ClInclude Include="..\Public\Ranrok_Impact.h" />
<ClInclude Include="..\Public\Ranrok_Hit.h" />
@@ -489,6 +491,8 @@ call Update_Shaders.bat
<ClCompile Include="..\Private\Ranrok.cpp" />
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
<ClCompile Include="..\Private\Ranrok_Charge.cpp" />
<ClCompile Include="..\Private\Ranrok_GroundPulse.cpp" />
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp" />
<ClCompile Include="..\Private\Ranrok_Land.cpp" />
<ClCompile Include="..\Private\Ranrok_Impact.cpp" />
<ClCompile Include="..\Private\Ranrok_Hit.cpp" />
@@ -754,6 +754,12 @@
<Filter Include="02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Land">
<UniqueIdentifier>{ea60b62d-1df5-41d7-aa0f-74ec9f454443}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Rush">
<UniqueIdentifier>{7210d8cd-a5b8-48bd-a45e-52992dfe3557}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\GroundPulse">
<UniqueIdentifier>{614e67ae-6df9-4826-adbe-6be96f54041d}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Editor.h">
@@ -1527,6 +1533,12 @@
<ClInclude Include="..\Public\Ranrok_Land.h">
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Land</Filter>
</ClInclude>
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h">
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Rush</Filter>
</ClInclude>
<ClInclude Include="..\Public\Ranrok_GroundPulse.h">
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\GroundPulse</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Editor.ico">
@@ -2308,6 +2320,12 @@
<ClCompile Include="..\Private\Ranrok_Land.cpp">
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Land</Filter>
</ClCompile>
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp">
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Rush</Filter>
</ClCompile>
<ClCompile Include="..\Private\Ranrok_GroundPulse.cpp">
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\GroundPulse</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Editor.rc">
@@ -452,7 +452,7 @@ void CEditEffect::Describe_Entity()
//여기서 모델, 텍스쳐, 선택할 수 있도록 함
const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" };
const char* pRenderNames[] = { "PRIORITY" , "SHADOW_NEAR", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM", "DISTORTION", "BULR_MESH" , "UI", "OCCLUSION" , "SHADOW_MIDDLE" , "PRESHADOW" , "UI_OVERLAY"};
const char* pRenderNames[] = { "PRIORITY" , "SHADOW_NEAR", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM", "DISTORTION", "BULR_MESH", "UI", "OCCLUSION" , "SHADOW_MIDDLE" , "PRESHADOW" , "UI_OVERLAY", "EFFECT_NONBLEND" };
const char* pEffectType[] = { "EFFECT" , "TRAIL" };
const char* pShaderPass[] = { "DEFAULT" , "NON_NOMALMAP" , "BLUR" , "WEIGHTBLEND" , "NON_WORLD" , "NON_WORLD_BLUR", "BLEND", "BLEND_NOWORLD", "BLOOM" ,"BLOOM_NOWORLD" ,"BLUR_NO_EMMISVE",
+22 -1
View File
@@ -29,7 +29,8 @@
#include "Ranrok_Hit.h"
#include "Ranrok_Impact.h"
#include "Ranrok_Land.h"
#include "Ranrok_Rush_Bottom.h"
#include "Ranrok_GroundPulse.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -395,6 +396,26 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_RUSH_BOTTOM, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_Rush_Bottom* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Rush_Bottom>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_GROUNDPULSE, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CRanrok_GroundPulse* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_GroundPulse>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
return S_OK;
}
@@ -222,6 +222,8 @@
#include "Ranrok_Hit.h"
#include "Ranrok_Impact.h"
#include "Ranrok_Land.h"
#include "Ranrok_Rush_Bottom.h"
#include "Ranrok_GroundPulse.h"
#pragma endregion
#pragma region PHYSX_HEADER
@@ -1968,6 +1970,13 @@ HRESULT CLoader::Loading_For_Effect()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Rush_Bottom>(NEXT_LEVEL, CRanrok_Rush_Bottom::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_GroundPulse>(NEXT_LEVEL, CRanrok_GroundPulse::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
/* For.Prototype_GameObject_Wand */
if (FAILED(m_pGameInstance->Add_Prototype<CWand>(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
@@ -6,6 +6,7 @@
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
#include "Ranrok.h"
CRanrok_Breath::CRanrok_Breath(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
@@ -46,11 +47,13 @@ HRESULT CRanrok_Breath::Initialize(void* pArg)
m_pBreath_Black = Get_PartObject<CEditEffect>("Breath_Black");
m_pBreathSlog = Get_PartObject<CEditEffect>("BreathSlog");
m_pMouthFire = Get_PartObject<CEditEffect>("MouthFire");
m_pLand_Decal = Get_PartObject<CEditEffect>("Land_Decal");
SAFE_ADDREF(m_pBreath);
SAFE_ADDREF(m_pBreath_Black);
SAFE_ADDREF(m_pBreathSlog);
SAFE_ADDREF(m_pMouthFire);
SAFE_ADDREF(m_pLand_Decal);
m_fDuration = 5.f;
@@ -128,9 +131,9 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
/* 브레스 시간 제어 */
_float fBreathTime = *static_cast<_float*>(pArg);
BREATH_INFO BreathDesc = *static_cast<BREATH_INFO*>(pArg);
Set_BreathTime(fBreathTime);
Set_BreathTime(BreathDesc.fTime);
/* 초기 객체 비지블*/
@@ -178,6 +181,35 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
m_isParticleEnd = false;
m_isStartRayCast = false;
/* 바닥 페이즈 일때*/
if (static_cast<CRanrok::RANROK_PHASE>(BreathDesc.iPase) == CRanrok::RANROK_PHASE::PHASE_GROUND)
{
m_pLand_Decal->Set_Visible(true);
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
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();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
m_pLand_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
m_pLand_Decal->Get_Component<CInstance_Model>()->Set_Loop(true);
}
return S_OK;
}
@@ -270,6 +302,7 @@ void CRanrok_Breath::Set_BreathTime(_float fTime)
m_pBreathSlog->Set_Visible(false);
m_pLand_Decal->Get_Component<CInstance_Model>()->Set_Loop(false);
});
m_Events.emplace(fTime + 0.5f, [&]() {
@@ -302,7 +335,7 @@ void CRanrok_Breath::Free()
SAFE_RELEASE(m_pBreath_Black);
SAFE_RELEASE(m_pBreathSlog);
SAFE_RELEASE(m_pMouthFire);
SAFE_RELEASE(m_pLand_Decal);
//SAFE_RELEASE(m_pFireBall_Tail);
}
#ifdef _DEBUG
@@ -0,0 +1,204 @@
#include "pch.h"
#include "Ranrok_GroundPulse.h"
#include "GameInstance.h"
#include "EditEffect.h"
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
CRanrok_GroundPulse::CRanrok_GroundPulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CRanrok_GroundPulse::CRanrok_GroundPulse(const CRanrok_GroundPulse& rhs)
: CEffect_Container(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CRanrok_GroundPulse::Initialize_Prototype()
{
return S_OK;
}
HRESULT CRanrok_GroundPulse::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokGroundPulse")))
return E_FAIL;
m_wstrEffectName = L"RanrokGroundPulse";
m_fDuration = 10.f;
return S_OK;
}
void CRanrok_GroundPulse::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CRanrok_GroundPulse::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CRanrok_GroundPulse::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CRanrok_GroundPulse::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
/* 초기 객체 비지블*/
CEditEffect* pBottomDecal = Get_PartObject<CEditEffect>("Bottom_Decal");
CEditEffect* pBottomSplatter = Get_PartObject<CEditEffect>("BottomSplatter");
CEditEffect* pRed_Sphere = Get_PartObject<CEditEffect>("Red_Sphere");
CEditEffect* pRock_PT = Get_PartObject<CEditEffect>("Rock_PT");
CEditEffect* pSmoke = Get_PartObject<CEditEffect>("Smoke");
pBottomDecal->Set_Visible(true);
pBottomSplatter->Set_Visible(true);
pRock_PT->Set_Visible(true);
pSmoke->Set_Visible(true);
pRed_Sphere->Set_Visible(true);
/* 초기 객체 위치 초기화*/
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
pRed_Sphere->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
pRed_Sphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
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();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_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);
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
return S_OK;
}
HRESULT CRanrok_GroundPulse::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CRanrok_GroundPulse::Ready_Child()
{
return S_OK;
}
CRanrok_GroundPulse* CRanrok_GroundPulse::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRanrok_GroundPulse* pInstance = new CRanrok_GroundPulse(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRanrok_GroundPulse");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRanrok_GroundPulse::Clone(void* pArg, CGameObject* pOwner)
{
CRanrok_GroundPulse* pInstance = new CRanrok_GroundPulse(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRanrok_GroundPulse");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRanrok_GroundPulse::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_GroundPulse::Free()
{
__super::Free();
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG
void CRanrok_GroundPulse::Describe_Entity()
{
}
#endif
HRESULT CRanrok_GroundPulse::Bind_ShaderResources()
{
return S_OK;
}
@@ -0,0 +1,199 @@
#include "pch.h"
#include "Ranrok_Rush_Bottom.h"
#include "GameInstance.h"
#include "EditEffect.h"
#include "Wand.h"
#include "Player.h"
#include "InfoInstance.h"
CRanrok_Rush_Bottom::CRanrok_Rush_Bottom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CRanrok_Rush_Bottom::CRanrok_Rush_Bottom(const CRanrok_Rush_Bottom& rhs)
: CEffect_Container(rhs),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CRanrok_Rush_Bottom::Initialize_Prototype()
{
return S_OK;
}
HRESULT CRanrok_Rush_Bottom::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokRushBottom")))
return E_FAIL;
m_wstrEffectName = L"Ranrok_Rush_Bottom";
m_fDuration = 3.f;
return S_OK;
}
void CRanrok_Rush_Bottom::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CRanrok_Rush_Bottom::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
}
void CRanrok_Rush_Bottom::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CRanrok_Rush_Bottom::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
/* 초기 객체 비지블*/
CEditEffect* pRush_Decal = Get_PartObject<CEditEffect>("Rush_Decal");
CEditEffect* pRock_PT = Get_PartObject<CEditEffect>("Rock_PT");
CEditEffect* pSmoke = Get_PartObject<CEditEffect>("Smoke");
pRush_Decal->Set_Visible(true);
pSmoke->Set_Visible(true);
pRock_PT->Set_Visible(true);
/* 초기 객체 위치 초기화*/
_vector vBonePos = XMLoadFloat4(static_cast<_float4*>(pArg));
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();
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
_vector vCompute_Pos = XMVectorSetY(vBonePos, XMVectorGetY(vPlayer_FootPos));
pRush_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
return S_OK;
}
HRESULT CRanrok_Rush_Bottom::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CRanrok_Rush_Bottom::Ready_Child()
{
return S_OK;
}
CRanrok_Rush_Bottom* CRanrok_Rush_Bottom::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CRanrok_Rush_Bottom* pInstance = new CRanrok_Rush_Bottom(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CRanrok_Rush_Bottom");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CRanrok_Rush_Bottom::Clone(void* pArg, CGameObject* pOwner)
{
CRanrok_Rush_Bottom* pInstance = new CRanrok_Rush_Bottom(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CRanrok_Rush_Bottom");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CRanrok_Rush_Bottom::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_Rush_Bottom::Free()
{
__super::Free();
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG
void CRanrok_Rush_Bottom::Describe_Entity()
{
}
#endif
HRESULT CRanrok_Rush_Bottom::Bind_ShaderResources()
{
return S_OK;
}
@@ -7,6 +7,7 @@
#include "EffectPool.h"
#include "TrailObject.h"
#include "EditEffect.h"
#include "Ranrok_Breath.h"
#pragma region STATE
#include "State_Idle.h"
@@ -309,9 +310,12 @@ void CRanrok::Behavior_FireBreathEnter()
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
[this]() {
_float fBreathTime = 1.f;
CRanrok_Breath::BREATH_INFO BreathDesc;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this , &fBreathTime);
BreathDesc.fTime = 1.f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this , &BreathDesc);
}, 0.1f);
@@ -323,8 +327,15 @@ void CRanrok::Behavior_FireBreathEnter()
Add_Event(pairAnimInfo.first,
[this]() {
_float fBreathTime = 5.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 2.f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
m_bLookAt = false;
}, 0.2f);
}
@@ -384,9 +395,13 @@ void CRanrok::Behavior_FireSweepEnter()
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
[this]() {
_float fBreathTime = 3.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 2.5f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
}, 0.08f);
}
@@ -397,8 +412,14 @@ void CRanrok::Behavior_FireSweepEnter()
Add_Event(m_Animation[STATEANIM::FIRESWEEP_G].first,
[this]() {
_float fBreathTime = 5.f;
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
CRanrok_Breath::BREATH_INFO BreathDesc;
BreathDesc.fTime = 3.f;
BreathDesc.iPase = ENUM_CLASS(m_ePhase);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc);
m_bLookAt = false;
}, 0.2f);
}
@@ -595,6 +616,31 @@ void CRanrok::Behavior_RushEnter()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 2.f);
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::RUSH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::RUSH)];
m_bLookAt = false;
Add_Event(m_Animation[STATEANIM::RUSH_LOOP].first,
[this]() {
_matrix LeftBoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("wrist_left_target")) * m_pTransformCom->Get_XMWorldMatrix();
_float4 vLeftPos;
XMStoreFloat4(&vLeftPos, LeftBoneMat.r[3]);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_RUSH_BOTTOM, this, &vLeftPos);
}, 0.5f , true);
Add_Event(m_Animation[STATEANIM::RUSH_LOOP].first,
[this]() {
_matrix RightBoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("wrist_right_target")) * m_pTransformCom->Get_XMWorldMatrix();
_float4 vRightPos;
XMStoreFloat4(&vRightPos, RightBoneMat.r[3]);
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_RUSH_BOTTOM, this, &vRightPos);
}, 0.8f , true);
}
HRESULT CRanrok::Behavior_RushExitCheck(_float fTimeDelta)
@@ -616,6 +662,12 @@ HRESULT CRanrok::Behavior_RushExitCheck(_float fTimeDelta)
_vector vPos = m_pCharacter_Controller->Get_Position();
_vector vNextPos = vPos + vLook * 10.f * fTimeDelta;
m_pCharacter_Controller->Set_Position(vNextPos);
if (m_pModelCom->IsFinishedAnim())
{
}
return S_OK;
}
@@ -632,6 +684,7 @@ void CRanrok::Behavior_RushExit()
m_pFSM->Disable_State(FSMSTATE::RUSH);
m_fRushTime = 0.f;
m_bLookAt = true;
Reset_Event();
}
void CRanrok::Behavior_PulseEnter()
@@ -653,11 +706,23 @@ void CRanrok::Behavior_PulseEnter()
m_pBottomSmoke->Set_Visible(false);
}, 0.f);
Add_Event(pairAnimInfo.first,
[this]() {
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
{
Add_Event(pairAnimInfo.first,
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PURSE, this);
}, 0.39f);
}
else
{
Add_Event(pairAnimInfo.first,
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_GROUNDPULSE, this);
}, 0.39f);
}
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PURSE, this);
},0.39f);
}
HRESULT CRanrok::Behavior_PulseExitCheck(_float fTimeDelta)
@@ -756,6 +821,7 @@ void CRanrok::Behavior_LandEnter()
m_pCharacter_Controller->SetGravity(true);
#endif
m_ePhase = ENUM_CLASS(RANROK_PHASE::PHASE_GROUND);
m_pBottomSmoke->Set_Visible(false);
pairAnimInfo = m_Animation[STATEANIM::LAND];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -43,10 +43,6 @@ void CTrailObject::Update(_float fTimeDelta)
if (m_bVisible == false)
return;
/* 디스토션 타임*/
if (m_TrailInfo.vDistortionTime.y != 0)
{
@@ -67,7 +67,8 @@ namespace Editor
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE,
STUN,
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_IMPACT , RANROK_HIT, RANROK_LAND,
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_IMPACT , RANROK_HIT, RANROK_LAND, RANROK_RUSH_BOTTOM,
RANROK_GROUNDPULSE,
END
};
+1
View File
@@ -32,6 +32,7 @@ class CRanrok final : public CMonster
END
};
public:
enum class RANROK_PHASE
{
PHASE_AIR,
@@ -10,6 +10,12 @@ NS_BEGIN(Editor)
class CRanrok_Breath final : public CEffect_Container
{
public:
typedef struct tagBreathInfo
{
_float fTime;
_int iPase;
}BREATH_INFO;
private:
CRanrok_Breath(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_Breath(const CRanrok_Breath& rhs);
@@ -39,6 +45,7 @@ class CRanrok_Breath final : public CEffect_Container
class CEditEffect* m_pBreath_Black = { nullptr };
class CEditEffect* m_pBreathSlog = { nullptr };
class CEditEffect* m_pMouthFire = { nullptr };
class CEditEffect* m_pLand_Decal = { nullptr };
_float3 m_vLook = {};
_float m_fLinearSpeed = 0.8f;
@@ -0,0 +1,55 @@
#pragma once
#include "Editor_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Editor)
class CRanrok_GroundPulse final : public CEffect_Container
{
private:
CRanrok_GroundPulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_GroundPulse(const CRanrok_GroundPulse& rhs);
virtual ~CRanrok_GroundPulse() = 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 = {};
_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_GroundPulse* 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 "Editor_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Editor)
class CRanrok_Rush_Bottom final : public CEffect_Container
{
private:
CRanrok_Rush_Bottom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CRanrok_Rush_Bottom(const CRanrok_Rush_Bottom& rhs);
virtual ~CRanrok_Rush_Bottom() = 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 CEditEffect* m_pGooRod_0 = { nullptr };
class CEditEffect* m_pSmoke = { nullptr };
class CEditEffect* 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_Rush_Bottom* 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
@@ -11,6 +11,7 @@ void CRenderer::Render()
Render_Shadow();
Render_NonBlend();
Render_Decal();
Render_EffectNonBlend();
Render_SSAO();
Render_SSAO_BLUR();
Render_LightAcc();
@@ -361,6 +362,34 @@ void CRenderer::Render_Decal()
m_pGameInstance->Clear_RenderTarget(TEXT("Target_NormalCopy"));
}
void CRenderer::Render_EffectNonBlend()
{
COMPUTE_TIMEDELTA("Timer_Render_EffectNonBlend");
EVENTSCOPE_("Render_EffectNonBlend");
m_eType = RENDER::EFFECT_NONBLEND;
if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_GameObjects")))) {
return;
}
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::EFFECT_NONBLEND)])
{
if (nullptr != pRenderObject) {
if (FAILED(pRenderObject->Render())) {
assert(false);
}
}
SAFE_RELEASE(pRenderObject);
}
m_RenderObjects[ENUM_CLASS(RENDER::EFFECT_NONBLEND)].clear();
if (FAILED(m_pGameInstance->End_MRT())) {
return;
}
COMPUTE_TIMEDELTA("Timer_Render_EffectNonBlend");
}
void CRenderer::Render_LightAcc()
{
COMPUTE_TIMEDELTA("Timer_Render_LightAcc");
+26 -23
View File
@@ -129,32 +129,35 @@ HRESULT CUnit::Ready_Components(void *pArg)
void CUnit::Play_Event()
{
for (auto iter = m_PendingEvents.begin(); iter != m_PendingEvents.end(); )
{
_float ratio = m_pModelCom->Get_CurrentTrackProgressRatio();
_uint curAnim = m_pModelCom->Get_AnimIndex();
for (auto iter = m_PendingEvents.begin(); iter != m_PendingEvents.end(); )
{
_float ratio = m_pModelCom->Get_CurrentTrackProgressRatio();
_uint curAnim = m_pModelCom->Get_AnimIndex();
if (curAnim == iter->AnimIndex)
{
if (!iter->bExecuted && ratio >= iter->fRatio)
{
iter->Callback();
iter->bExecuted = true;
_float prevRatio = iter->PrevRatio;
if (!iter->bKeep)
{
iter = m_PendingEvents.erase(iter);
continue;
}
}
}
else
{
iter->bExecuted = false;
}
if (curAnim == iter->AnimIndex)
{
if (prevRatio <= iter->fRatio && ratio >= iter->fRatio)
{
iter->Callback();
++iter;
}
if (!iter->bKeep)
{
iter = m_PendingEvents.erase(iter);
continue;
}
}
iter->PrevRatio = ratio;
}
else
{
iter->PrevRatio = 0.f;
}
++iter;
}
}
void CUnit::Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio,_bool bKeep)
+1 -1
View File
@@ -5,7 +5,7 @@ NS_BEGIN(Engine)
enum class STATE { RIGHT, UP, LOOK, POSITION, END };
enum class LIGHT { DIRECTIONAL, POINT, SPOT, END };
enum class COLLIDER { AABB, OBB, SPHERE, END };
enum class RENDER {PRIORITY, SHADOW_NEAR, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, DISTORTION, BULR_MESH ,UI, OCCLUSION, SHADOW_MIDDLE, PRESHADOW, UI_OVERLAY ,END };
enum class RENDER {PRIORITY, SHADOW_NEAR, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, DISTORTION, BULR_MESH ,UI, OCCLUSION, SHADOW_MIDDLE, PRESHADOW, UI_OVERLAY, EFFECT_NONBLEND,END };
enum class RAY { LOCAL, WORLD, END };
enum class ACTOR { BOX, CAPSULE, SPHERE, PLANE, TRIANGLEMESH, HEIGHTFIELD, END };
enum class BLEND_BONE{SPINE,SHOULDER_L,SHOULDER_R,NECK,SHOULDER_NECK_L, SHOULDER_NECK_R,HEAD, HIPS_CLOTH, END};
+1
View File
@@ -119,6 +119,7 @@ class CRenderer final : public CBase
void Render_Shadow();
void Render_NonBlend();
void Render_Decal();
void Render_EffectNonBlend();
void Render_Blur();
void Combine_Blur();
void Render_SSAO();
+5 -5
View File
@@ -15,11 +15,11 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
struct PendingEvent
{
_float fRatio = 0.f;
_uint AnimIndex = 0;
function<void()> Callback;
_bool bKeep = { false };
_bool bExecuted = { false };
_float fRatio = 0.f;
_uint AnimIndex = 0;
function<void()> Callback;
_bool bKeep = { false };
_float PrevRatio = {};
};
protected:
CUnit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);