diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 53519c337..c3d34fcb5 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -180,6 +180,7 @@ call Update_Resources.bat
+
@@ -190,6 +191,7 @@ call Update_Resources.bat
+
@@ -441,6 +443,7 @@ call Update_Resources.bat
+
@@ -450,6 +453,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 8b1dd71e2..0c2e953a6 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -800,6 +800,12 @@
02.GameObjects\Environment\02.InstancedProp\Light
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Pulse
+
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Charge
+
@@ -1665,6 +1671,12 @@
{05a0db73-4fbf-456c-9137-bb605c632d68}
+
+ {0464c6ff-87b8-4a3e-bc06-c912b32a65eb}
+
+
+ {fd036f05-4c10-4322-b0c2-aac65e7011a1}
+
@@ -2412,6 +2424,12 @@
02.GameObjects\Environment\02.InstancedProp\Light
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Pulse
+
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Charge
+
diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp
index 0e743a908..ca2cbfa53 100644
--- a/Jusin154_Team3D/Client/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp
@@ -37,14 +37,10 @@ HRESULT CEffectObject::Render()
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
{
-
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_EffectInfo.eShaderPass)))) {
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
- return E_FAIL;
-
if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
return E_FAIL;
@@ -100,10 +96,11 @@ HRESULT CEffectObject::Render_Blur()
}
}
- if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONPOS || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT_NONPOS)
+ if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONPOS || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT_NONPOS
+ || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONWB_NONPOS)
BlurPass = SHADER_PASS_INSTANCE_MODEL::NONPOS_BLUR;
- if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING)
+ if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_CULLING)
{
if (m_EffectInfo.isBlurNoEmissive == false)
{
@@ -122,7 +119,6 @@ HRESULT CEffectObject::Render_Blur()
}
-
for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++)
{
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index ca37e620b..00c4fc4cf 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -45,6 +45,8 @@
#include "Ranrok_FireBall.h"
#include "Ranrok_Breath.h"
#include "Ranrok_Point.h"
+#include "Ranrok_Pulse.h"
+#include "Ranrok_Charge.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -592,6 +594,26 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_PURSE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_Pulse* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+
+ ))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_CHARGE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_Charge* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+
+ ))) return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index e4d274489..e560071ad 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -111,9 +111,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
/*if (FAILED(Ready_Layer_BroomRacerAI(TEXT("Layer_BroomRacerAI")))) {
return E_FAIL;
}*/
- //if (FAILED(Ready_Layer_Monster())) {
- // return E_FAIL;
- //}
+ if (FAILED(Ready_Layer_Monster())) {
+ return E_FAIL;
+ }
if(FAILED(m_pInfoInstance->Late_Initialize()))
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 79479360c..e81dcd5d9 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -196,6 +196,8 @@
#include "Ranrok_FireBall.h"
#include "Ranrok_Breath.h"
#include "Ranrok_Point.h"
+#include "Ranrok_Charge.h"
+#include "Ranrok_Pulse.h"
#include "StunEffect.h"
#include "Box_Splesh.h"
@@ -2225,6 +2227,14 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_Pulse::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_Charge::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp
index 2022c4da7..cdd9c8594 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp
@@ -22,9 +22,10 @@ CRanrok_Breath::CRanrok_Breath(const CRanrok_Breath& rhs)
HRESULT CRanrok_Breath::Initialize_Prototype()
{
-
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokBreath")))
return E_FAIL;
+
+
return S_OK;
}
@@ -56,35 +57,6 @@ HRESULT CRanrok_Breath::Initialize(void* pArg)
m_fDuration = 5.f;
- m_Events.emplace(0.5f, [&]() {
- m_isStartRayCast = true;
- });
-
-
- m_Events.emplace(3.f, [&]() {
-
- // 파티클 제어
- m_isParticleEnd = true;
-
- CEffectParts* pRock_PT = Get_PartObject("Rock_PT");
- CEffectParts* pBottomFire = Get_PartObject("BottomFire");
- CEffectParts* pSplatterBottom0 = Get_PartObject("SplatterBottom0");
-
- m_pMouthFire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
-
- pRock_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
- pBottomFire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
- pSplatterBottom0->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
-
- m_pBreath->Get_Component()->Set_Loop(false);
- m_pBreath->Get_Effect_Info()->isDissolve = true;
-
- m_pBreath_Black->Get_Component()->Set_Loop(false);
- m_pBreath_Black->Get_Effect_Info()->isDissolve = true;
-
- m_pBreathSlog->Set_Visible(false);
-
- });
return S_OK;
}
@@ -110,7 +82,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
}
- _matrix WorldMat = m_pOwner->Get_Component()->Get_XMWorldMatrix() ;
+ _matrix WorldMat = m_pOwner->Get_Component()->Get_XMWorldMatrix();
_matrix CombinedMat = BoneMat * WorldMat;
@@ -120,7 +92,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
m_pBreath_Black->Get_Component()->Set_WorldMatrix(CombinedMat);
m_pBreathSlog->Get_Component()->Set_WorldMatrix(CombinedMat);
- if(m_isParticleEnd == false)
+ if (m_isParticleEnd == false)
m_pMouthFire->Get_Component()->Set_State(STATE::POSITION, CombinedMat.r[3]);
@@ -128,7 +100,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
XMStoreFloat4(&m_vStartPos, vStartPos);
- if(m_isStartRayCast == true)
+ if (m_isStartRayCast == true)
{
ON_COLLISION_INFO CollisionInfo = MonsterRayCast(XMLoadFloat4(&m_vStartPos), CombinedMat.r[2] * -1.f, 50.f, 50);
if (m_bHit = true)
@@ -137,7 +109,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
}
-
+
}
void CRanrok_Breath::Late_Update(_float fTimeDelta)
@@ -156,52 +128,58 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
return E_FAIL;
+ /* 브레스 시간 제어 */
+
+ _float fBreathTime = *static_cast<_float*>(pArg);
+
+ Set_BreathTime(fBreathTime);
+
/* 초기 객체 비지블*/
CEffectParts* pBlurMesh = Get_PartObject("BlurMesh");
- m_pBreath->Set_Visible(true);
- m_pBreath_Black->Set_Visible(true);
- m_pBreathSlog->Set_Visible(true);
- m_pMouthFire->Set_Visible(true);
- pBlurMesh->Set_Visible(true);
+ m_pBreath->Set_Visible(true);
+ m_pBreath_Black->Set_Visible(true);
+ m_pBreathSlog->Set_Visible(true);
+ m_pMouthFire->Set_Visible(true);
+ pBlurMesh->Set_Visible(true);
/* 초기 객체 위치 초기화*/
- _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("tongue_01"));
+ _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("tongue_01"));
for (int i = 0; i < 3; ++i) {
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
}
- _matrix WorldMat = m_pOwner->Get_Component()->Get_XMWorldMatrix() ;
+ _matrix WorldMat = m_pOwner->Get_Component()->Get_XMWorldMatrix();
_matrix CombinedMat = BoneMat * WorldMat;
- m_pBreath->Get_Component()->Set_WorldMatrix(CombinedMat);
- m_pBreath_Black->Get_Component()->Set_WorldMatrix(CombinedMat);
- m_pBreathSlog->Get_Component()->Set_WorldMatrix(CombinedMat);
+ m_pBreath->Get_Component()->Set_WorldMatrix(CombinedMat);
+ m_pBreath_Black->Get_Component()->Set_WorldMatrix(CombinedMat);
+ m_pBreathSlog->Get_Component()->Set_WorldMatrix(CombinedMat);
- _vector vStartPos = CombinedMat.r[3];
+ _vector vStartPos = CombinedMat.r[3];
- XMStoreFloat4(&m_vStartPos, vStartPos);
+ XMStoreFloat4(&m_vStartPos, vStartPos);
- m_pMouthFire->Get_Component()->Set_State(STATE::POSITION, CombinedMat.r[3]);
- pBlurMesh->Get_Component()->Set_State(STATE::POSITION, CombinedMat.r[3]);
+ m_pMouthFire->Get_Component()->Set_State(STATE::POSITION, CombinedMat.r[3]);
+ pBlurMesh->Get_Component()->Set_State(STATE::POSITION, CombinedMat.r[3]);
- /* 브레스 디졸브를 위해 초기값 설정*/
- m_pBreath->Get_Component()->Set_Loop(true);
- m_pBreath->Get_Effect_Info()->isDissolve = false;
+ /* 브레스 디졸브를 위해 초기값 설정*/
+ m_pBreath->Get_Component()->Set_Loop(true);
+ m_pBreath->Get_Effect_Info()->isDissolve = false;
- m_pBreath_Black->Get_Component()->Set_Loop(true);
- m_pBreath_Black->Get_Effect_Info()->isDissolve = false;
+ m_pBreath_Black->Get_Component()->Set_Loop(true);
+ m_pBreath_Black->Get_Effect_Info()->isDissolve = false;
- m_isParticleEnd = false;
- m_isStartRayCast = false;
+ m_isParticleEnd = false;
+ m_isStartRayCast = false;
return S_OK;
}
@@ -280,6 +258,42 @@ void CRanrok_Breath::OnCollision(CGameObject* pOther, void* pDesc)
XMStoreFloat4(&m_vPreCollisionPos, vPos);
}
+void CRanrok_Breath::Set_BreathTime(_float fTime)
+{
+ m_Events.clear();
+
+ m_Events.emplace(fTime, [&]() {
+
+ m_pBreath->Get_Component()->Set_Loop(false);
+ m_pBreath->Get_Effect_Info()->isDissolve = true;
+
+ m_pBreath_Black->Get_Component()->Set_Loop(false);
+ m_pBreath_Black->Get_Effect_Info()->isDissolve = true;
+
+ m_pBreathSlog->Set_Visible(false);
+
+ });
+
+ m_Events.emplace(fTime + 0.5f, [&]() {
+ // 파티클 제어
+ m_isParticleEnd = true;
+
+ CEffectParts* pRock_PT = Get_PartObject("Rock_PT");
+ CEffectParts* pBottomFire = Get_PartObject("BottomFire");
+ CEffectParts* pSplatterBottom0 = Get_PartObject("SplatterBottom0");
+
+ m_pMouthFire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+
+ pRock_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ pBottomFire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ pSplatterBottom0->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ });
+
+ m_Events.emplace(0.25f, [&]() {
+ m_isStartRayCast = true;
+ });
+}
+
void CRanrok_Breath::Free()
{
__super::Free();
@@ -290,7 +304,7 @@ void CRanrok_Breath::Free()
SAFE_RELEASE(m_pBreath_Black);
SAFE_RELEASE(m_pBreathSlog);
SAFE_RELEASE(m_pMouthFire);
-
+
//SAFE_RELEASE(m_pFireBall_Tail);
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Charge.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Charge.cpp
new file mode 100644
index 000000000..eae3e2e01
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Ranrok_Charge.cpp
@@ -0,0 +1,187 @@
+#include "pch.h"
+#include "Ranrok_Charge.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_Charge::CRanrok_Charge(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_Charge::CRanrok_Charge(const CRanrok_Charge& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_Charge::Initialize_Prototype()
+{
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokCharge")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_Charge::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"RanrokCharge";
+
+
+
+ m_fDuration = 4.f;
+
+
+
+
+ return S_OK;
+}
+
+void CRanrok_Charge::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_Charge::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+
+
+
+}
+
+void CRanrok_Charge::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_Charge::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ /* 초기 객체 비지블*/
+
+ CEffectParts* pCharge_Goo = Get_PartObject("Charge_Goo");
+ CEffectParts* pCombinedPT = Get_PartObject("CombinedPT");
+
+ pCharge_Goo->Set_Visible(true);
+ pCombinedPT->Set_Visible(true);
+
+ /* 초기 객체 위치 초기화*/
+
+ _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position();
+
+
+ pCharge_Goo->Get_Component()->Set_State(STATE::POSITION, vOwnerPos);
+ pCombinedPT->Get_Component()->Set_State(STATE::POSITION, vOwnerPos);
+
+
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Charge::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Charge::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_Charge* CRanrok_Charge::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_Charge* pInstance = new CRanrok_Charge(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_Charge");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_Charge::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_Charge* pInstance = new CRanrok_Charge(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_Charge");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_Charge::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+}
+
+void CRanrok_Charge::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+
+}
+#ifdef _DEBUG
+void CRanrok_Charge::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_Charge::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Pulse.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Pulse.cpp
new file mode 100644
index 000000000..b450ff23d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Ranrok_Pulse.cpp
@@ -0,0 +1,209 @@
+#include "pch.h"
+#include "Ranrok_Pulse.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_Pulse::CRanrok_Pulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_Pulse::CRanrok_Pulse(const CRanrok_Pulse& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_Pulse::Initialize_Prototype()
+{
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPulse")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_Pulse::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"RanrokPulse";
+
+
+
+ m_fDuration = 15.f;
+
+
+ return S_OK;
+}
+
+void CRanrok_Pulse::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_Pulse::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+
+
+
+}
+
+void CRanrok_Pulse::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ /* 초기 객체 비지블*/
+
+ CEffectParts* pBottomDecal = Get_PartObject("Bottom_Decal");
+ CEffectParts* pBottomSplatter = Get_PartObject("BottomSplatter");
+ CEffectParts* pBottomSplatter2 = Get_PartObject("BottomSplatter2");
+ CEffectParts* pRed_Sphere = Get_PartObject("Red_Sphere");
+ CEffectParts* pRock_PT = Get_PartObject("Rock_PT");
+ CEffectParts* pSmoke = Get_PartObject("Smoke");
+
+ pBottomDecal->Set_Visible(true);
+ pBottomSplatter->Set_Visible(true);
+ pBottomSplatter2->Set_Visible(true);
+ pRock_PT->Set_Visible(true);
+ pSmoke->Set_Visible(true);
+
+ pRed_Sphere->Set_Visible(true);
+
+
+ /* 초기 객체 위치 초기화*/
+
+ _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position();
+
+ pRed_Sphere->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix());
+ pRed_Sphere->Get_Component()->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()->Get_FootPosition();
+
+ XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
+
+ _vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
+
+ pBottomDecal->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+ pBottomSplatter->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+ pBottomSplatter2->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+ pRock_PT->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+ pSmoke->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Pulse::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Pulse::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_Pulse* CRanrok_Pulse::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_Pulse* pInstance = new CRanrok_Pulse(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_Pulse");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_Pulse::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_Pulse* pInstance = new CRanrok_Pulse(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_Pulse");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_Pulse::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+}
+
+void CRanrok_Pulse::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+
+}
+#ifdef _DEBUG
+void CRanrok_Pulse::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_Pulse::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
index 6ed6c8463..83707e4a4 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
@@ -286,39 +286,41 @@ void CRanrok::Behavior_FlyExit()
void CRanrok::Behavior_FireBreathEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
- m_bLookAt = true;
m_pFSM->Enable_State(FSMSTATE::FIREBREATH);
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
{
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_WINDUP_A];
Add_Event(pairAnimInfo.first,
- [&]() { pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
- m_pModelCom->Play_HeadBone(true);
- m_bLookAt = false; },
- 0.95f);
+ [&]() {
+ pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
+ m_bLookAt = false;
+ }, 0.95f);
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
- [&]() { pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); },
- 0.95f);
+ [&]() {
+ pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_bLookAt = true;
+ }, 0.95f);
+
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
[this]() {
- m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
+
+ _float fBreathTime = 1.f;
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
+
}, 0.1f);
+
}
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
{
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_G];
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
-
- Add_Event(pairAnimInfo.first,
- [this]() {
- m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
- }, 0.1f);
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
@@ -389,11 +391,15 @@ void CRanrok::Behavior_FireSweepEnter()
},
0.95f);
-
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
[this]() {
- m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
+
+ _float fBreathTime = 3.f;
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
+
}, 0.08f);
+
}
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
{
@@ -404,6 +410,7 @@ void CRanrok::Behavior_FireSweepEnter()
[this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
}, 0.2f);
+
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
@@ -660,8 +667,16 @@ void CRanrok::Behavior_PulseEnter()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
Add_Event(pairAnimInfo.first,
- [this]() { CameraShake(10.f, 2.f, 5.f, 1.2f); },
+ [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);
+ }, 0.f);
+
}
HRESULT CRanrok::Behavior_PulseExitCheck(_float fTimeDelta)
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index 4ccaa1986..dfbf525d5 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -11,7 +11,7 @@ namespace Client
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
- enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, NONWB_NONPOS ,DECAL, DECAL_WB ,DECAL_BLUR , END};
+ enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, NONWB_NONPOS ,DECAL, DECAL_WB ,DECAL_BLUR , BLEND_CULLING,END};
enum class SHADER_PASS_UIEDITOR {
DEFAULT, COLOR, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
@@ -72,7 +72,7 @@ namespace Client
/*란록*/
- RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT,
+ RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE,
END
};
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_Breath.h b/Jusin154_Team3D/Client/Public/Ranrok_Breath.h
index 0f36e0daa..f8d7ba358 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok_Breath.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok_Breath.h
@@ -30,6 +30,7 @@ class CRanrok_Breath final : public CEffect_Container
HRESULT Ready_Child();
HRESULT Bind_ShaderResources() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+ void Set_BreathTime(_float fTime);
private:
_wstring m_wstrEffectName = {};
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_Charge.h b/Jusin154_Team3D/Client/Public/Ranrok_Charge.h
new file mode 100644
index 000000000..a9819ec3a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Ranrok_Charge.h
@@ -0,0 +1,56 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CRanrok_Charge final : public CEffect_Container
+{
+private:
+ CRanrok_Charge(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_Charge(const CRanrok_Charge& rhs);
+ virtual ~CRanrok_Charge() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ _bool m_isParticleEnd = {};
+
+ _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_Charge* 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
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_Pulse.h b/Jusin154_Team3D/Client/Public/Ranrok_Pulse.h
new file mode 100644
index 000000000..26d8cd7cb
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Ranrok_Pulse.h
@@ -0,0 +1,55 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CRanrok_Pulse final : public CEffect_Container
+{
+private:
+ CRanrok_Pulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_Pulse(const CRanrok_Pulse& rhs);
+ virtual ~CRanrok_Pulse() = 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_Pulse* 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
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokCharge.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokCharge.bin
new file mode 100644
index 000000000..0c685f3e1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokCharge.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a4bc0a7714fe317754ad8ace468aca16c9e6b00370e76807f9f828ea9d2604c4
+size 148
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin
index 46228fd43..037746e8b 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/SplatterBottom0.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6c88d141245be0050de3b55f35a9fb0755bc13ecdca5bb22a0b5897c3081dc25
-size 1088
+oid sha256:643b56853acbe124797de1bd00b1dcf5012b93c879ac1428ff73a90cab70ca27
+size 1112
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokCharge/Charge_Goo.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokCharge/Charge_Goo.bin
new file mode 100644
index 000000000..c3ab01833
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokCharge/Charge_Goo.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:44b8371f75635b1c753d2d0415d2f405c3aae72e50c061737cdc63cc797ba6ef
+size 1132
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokCharge/CombinedPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokCharge/CombinedPT.bin
new file mode 100644
index 000000000..75e82885c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokCharge/CombinedPT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9c467b3966259a67c77e9773edf6c4f315a528da3219493e2a4d89b1447d5b04
+size 1198
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter.bin
index 5afe5b2b4..62ebda91e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f96b04ab17f1f5e6d880b537b917cc3ae5384ba826f5115a14cd73595953e988
-size 1116
+oid sha256:3fc5ad1633c5a3b1939a6c870c91cfc960e0061e8346983d7752d768917cb829
+size 1107
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin
index 53c2fcfef..65416b20d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5f83d873f2bdd8b2fe2128c86a9db3300a28c9d1d878fb81b3eba4bb14a5e521
+oid sha256:46bae518a8d68340c1dbf2530ac3a10ca15078c7e519f6f1f7760a13af72402d
size 1109
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin
index 2446a2e7a..545d2c203 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e1c7e1ca687ed211671f1d6bd2370445b5fd4730a43f8ddbf4491a3c52363c1e
+oid sha256:1f09943e1017552ee233fec131084c507eae42e076fcdda9dfb0ffd3e8c72675
size 1124
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Red_Sphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Red_Sphere.bin
index 86cf3ffbc..94250877d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Red_Sphere.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Red_Sphere.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:74ac12fa89e4a08dc1459a3a1a86bc4e52f15925aca73f7ae533bd3aa8c0b320
+oid sha256:66cd66ad94519153b8cc82356b2a859baff1481f73ae2a6edf9cba62aa05a23d
size 1146
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
index fec70a076..551422ad3 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl
@@ -290,6 +290,8 @@ VS_BULR_MESH_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID)
{
VS_BULR_MESH_OUT Out = (VS_BULR_MESH_OUT) 0;
+
+
matrix matW, matWV, matWVP;
row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation);
@@ -531,6 +533,10 @@ float4 DrawEffect(PS_IN In)
discard;
}
+ if (In.vLifeTime.x > In.vLifeTime.y)
+ discard;
+
+
if (g_isDiffuse == true)
{
float2 UV; // 이미지의 UV값
@@ -745,54 +751,56 @@ float4 DrawEffect(PS_IN In)
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV);
else
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
+
+ float fDissolveValue = vMtrlDissolve.r;
+
+ if (g_isDissolve_G == true)
+ fDissolveValue = vMtrlDissolve.g;
+
+ if (g_isDissolve_B == true)
+ fDissolveValue = vMtrlDissolve.b;
+
+ float fSoftDissolve;
+
+ if (g_fDissolveSoftMask > FLT_EPSILON5)
+ fSoftDissolve = saturate((fDissolveValue - g_fDissolveMaskEdge) * g_fDissolveSoftMask);
+ else
+ fSoftDissolve = fDissolveValue;
+
+ vMtrlDissolve.r = fSoftDissolve;
+
+ if (g_isReverseDissolve == true)
+ {
+ if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y))
+ discard;
+ }
+ else
+ {
+
+
+ if (g_fDissolveCutRatio <= fTimeRatio) // 일정 수준 이상 넘어가지 못하도록 막기
+ {
+ fTimeRatio = g_fDissolveCutRatio;
+
+ }
+
+
+ float fFade = smoothstep(fTimeRatio - 0.1f, fTimeRatio + 0.1f, vMtrlDissolve.r);
+
+ if (g_isNoDissolveSmoothStep == true)
+ {
+ fFade = smoothstep(fTimeRatio, fTimeRatio, vMtrlDissolve.r);
+ }
+
+ vMtrlDiffuse.a *= fFade;
+
+ }
}
/* */
- float fDissolveValue = vMtrlDissolve.r;
-
- if (g_isDissolve_G == true)
- fDissolveValue = vMtrlDissolve.g;
-
- if (g_isDissolve_B == true)
- fDissolveValue = vMtrlDissolve.b;
-
- float fSoftDissolve;
-
- if (g_fDissolveSoftMask > FLT_EPSILON5)
- fSoftDissolve = saturate((fDissolveValue - g_fDissolveMaskEdge) * g_fDissolveSoftMask);
- else
- fSoftDissolve = fDissolveValue;
-
- vMtrlDissolve.r = fSoftDissolve;
-
- if (g_isReverseDissolve == true)
- {
- if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y))
- discard;
- }
- else
- {
-
-
- if (g_fDissolveCutRatio <= fTimeRatio) // 일정 수준 이상 넘어가지 못하도록 막기
- {
- fTimeRatio = g_fDissolveCutRatio;
- }
-
-
- float fFade = smoothstep(fTimeRatio - 0.1f, fTimeRatio + 0.1f, vMtrlDissolve.r);
-
- if (g_isNoDissolveSmoothStep == true)
- {
- fFade = smoothstep(fTimeRatio, fTimeRatio, vMtrlDissolve.r);
- }
-
- vMtrlDiffuse.a *= fFade;
-
- }
clip(vMtrlDiffuse.a - FLT_EPSILON5);
}
@@ -931,6 +939,9 @@ float4 SoftEffect(PS_IN In, float4 vMtrlDiffuse)
vDiffuse.a = vDiffuse.a * saturate(fDistance);
+ if(vDiffuse.a < FLT_EPSILON5)
+ discard;
+
return vDiffuse;
}
@@ -1048,21 +1059,22 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
{
PS_OUT Out = (PS_OUT)0;
+
+ //int2 iTexel = int2(In.vPosition.xy);
+
+ //float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
+
+ //float fbias = 0.000005f;
+
+ //if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
+ // discard;
+
float4 vMtrlDiffuse;
vMtrlDiffuse = DrawEffect(In);
vMtrlDiffuse = SoftEffect(In, vMtrlDiffuse);
- int2 iTexel = int2(In.vPosition.xy);
-
- float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r;
-
- float fbias = 0.000005f;
-
- if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias)
- discard;
-
vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
vMtrlDiffuse += RimLight(In);
@@ -1830,6 +1842,16 @@ technique11 DefaultTechnique
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_DECAL_BLUR();
}
+//28
+ pass Blend_Culling
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Effect, 0);
+ SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_BLEND();
+ }
}
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index e3a03d129..fac2ba32b 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -214,6 +214,7 @@ call Update_Shaders.bat
+
@@ -476,6 +477,7 @@ call Update_Shaders.bat
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 371192ea7..662e247c0 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -708,7 +708,7 @@
{935b6ab0-e01b-4b4b-80d0-649a507d21c8}
-
+
{cbb99946-a4d6-4ad8-842c-e67ca5de3f3a}
@@ -718,6 +718,9 @@
{189b5f72-c985-4bf8-a33e-4257f6d74d25}
+
+ {c9d234fd-d9dc-4740-9e9e-32b986335ee7}
+
@@ -1445,7 +1448,7 @@
02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Pulse
-
+
50.UI\GamePlay_Canvas\Broom_Panel\Broom_Trophy
@@ -1455,6 +1458,9 @@
02.GameObjects\RaceRing
+
+ 02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Charge
+
@@ -2190,7 +2196,7 @@
02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Pulse
-
+
50.UI\GamePlay_Canvas\Broom_Panel\Broom_Trophy
@@ -2200,6 +2206,9 @@
02.GameObjects\RaceRing
+
+ 02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Charge
+
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 898cee3c5..1ac979164 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -457,7 +457,7 @@ void CEditEffect::Describe_Entity()
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",
"BLUR_NO_WORLD_NO_EMISSIVE","WEIGHTBLEND_FOR_BLEND" , "DEPTH_STOP" , "WB_CULLING", "SCREEN_FX" , "DISTORTION" ,"NONPOS" , "NONPOS_BLUR" , "BULR_MESH" , "BLUR_CULLING" ,"BLUR_CULLING_NO_EMISSIVE" ,
- "BLOOM_CULLING" , "DEFAULT_NONPOS" , "NONWB_NONPOS", "DECAL", "DECAL_WB" , "DECAL_BLUR"};
+ "BLOOM_CULLING" , "DEFAULT_NONPOS" , "NONWB_NONPOS", "DECAL", "DECAL_WB" , "DECAL_BLUR", "BLEND_CULLING"};
const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY"};
_int iCurrentItem = static_cast<_int>(m_EffectInfo.eRenderOrder);
diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
index dcb940d1e..bc6338a28 100644
--- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp
@@ -42,8 +42,8 @@ HRESULT CEffectObject::Render()
return E_FAIL;
}
- if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
- return E_FAIL;
+ //if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
+ // return E_FAIL;
if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1)))
return E_FAIL;
@@ -104,7 +104,7 @@ HRESULT CEffectObject::Render_Blur()
|| m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONWB_NONPOS)
BlurPass = SHADER_PASS_INSTANCE_MODEL::NONPOS_BLUR;
- if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING)
+ if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::BLEND_CULLING)
{
if (m_EffectInfo.isBlurNoEmissive == false)
{
diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
index e11baaf22..26d560a46 100644
--- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
@@ -25,6 +25,8 @@
#include "Ranrok_Breath.h"
#include "Ranrok_Point.h"
#include "Ranrok_Pulse.h"
+#include "Ranrok_Charge.h"
+
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -354,6 +356,15 @@ HRESULT CEffectPool::Ready_MonsterEffect()
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::RANROK_CHARGE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CRanrok_Charge* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index b24b2e728..0a5501432 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -209,6 +209,7 @@
#include "Ranrok_Breath.h"
#include "Ranrok_Point.h"
#include "Ranrok_Pulse.h"
+#include "Ranrok_Charge.h"
#pragma endregion
#pragma region PHYSX_HEADER
@@ -1911,6 +1912,10 @@ HRESULT CLoader::Loading_For_Effect()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_Charge::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
/* For.Prototype_GameObject_Wand */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
return E_FAIL;
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Breath.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Breath.cpp
index 65bd4dde9..3f4a53017 100644
--- a/Jusin154_Team3D/Editor/Private/Ranrok_Breath.cpp
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_Breath.cpp
@@ -55,35 +55,6 @@ HRESULT CRanrok_Breath::Initialize(void* pArg)
m_fDuration = 5.f;
- m_Events.emplace(0.5f, [&]() {
- m_isStartRayCast = true;
- });
-
-
- m_Events.emplace(3.f, [&]() {
-
- // 파티클 제어
- m_isParticleEnd = true;
-
- CEditEffect* pRock_PT = Get_PartObject("Rock_PT");
- CEditEffect* pBottomFire = Get_PartObject("BottomFire");
- CEditEffect* pSplatterBottom0 = Get_PartObject("SplatterBottom0");
-
- m_pMouthFire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
-
- pRock_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
- pBottomFire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
- pSplatterBottom0->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
-
- m_pBreath->Get_Component()->Set_Loop(false);
- m_pBreath->Get_Effect_Info()->isDissolve = true;
-
- m_pBreath_Black->Get_Component()->Set_Loop(false);
- m_pBreath_Black->Get_Effect_Info()->isDissolve = true;
-
- m_pBreathSlog->Set_Visible(false);
-
- });
return S_OK;
}
@@ -155,6 +126,12 @@ HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
return E_FAIL;
+ /* 브레스 시간 제어 */
+
+ _float fBreathTime = *static_cast<_float*>(pArg);
+
+ Set_BreathTime(fBreathTime);
+
/* 초기 객체 비지블*/
CEditEffect* pBlurMesh = Get_PartObject("BlurMesh");
@@ -279,6 +256,42 @@ void CRanrok_Breath::OnCollision(CGameObject* pOther, void* pDesc)
XMStoreFloat4(&m_vPreCollisionPos, vPos);
}
+void CRanrok_Breath::Set_BreathTime(_float fTime)
+{
+ m_Events.clear();
+
+ m_Events.emplace(fTime, [&]() {
+
+ m_pBreath->Get_Component()->Set_Loop(false);
+ m_pBreath->Get_Effect_Info()->isDissolve = true;
+
+ m_pBreath_Black->Get_Component()->Set_Loop(false);
+ m_pBreath_Black->Get_Effect_Info()->isDissolve = true;
+
+ m_pBreathSlog->Set_Visible(false);
+
+ });
+
+ m_Events.emplace(fTime + 0.5f, [&]() {
+ // 파티클 제어
+ m_isParticleEnd = true;
+
+ CEditEffect* pRock_PT = Get_PartObject("Rock_PT");
+ CEditEffect* pBottomFire = Get_PartObject("BottomFire");
+ CEditEffect* pSplatterBottom0 = Get_PartObject("SplatterBottom0");
+
+ m_pMouthFire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+
+ pRock_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ pBottomFire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ pSplatterBottom0->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ });
+
+ m_Events.emplace(0.25f, [&]() {
+ m_isStartRayCast = true;
+ });
+}
+
void CRanrok_Breath::Free()
{
__super::Free();
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Charge.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Charge.cpp
new file mode 100644
index 000000000..f45abcfa2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_Charge.cpp
@@ -0,0 +1,185 @@
+#include "pch.h"
+#include "Ranrok_Charge.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+#include "Wand.h"
+#include "Player.h"
+#include "InfoInstance.h"
+
+CRanrok_Charge::CRanrok_Charge(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CRanrok_Charge::CRanrok_Charge(const CRanrok_Charge& rhs)
+ : CEffect_Container(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pInfoInstance);
+}
+
+HRESULT CRanrok_Charge::Initialize_Prototype()
+{
+
+
+ return S_OK;
+
+}
+
+HRESULT CRanrok_Charge::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/RanrokCharge")))
+ return E_FAIL;
+
+ m_wstrEffectName = L"RanrokCharge";
+
+
+
+ m_fDuration = 4.f;
+
+
+
+
+ return S_OK;
+}
+
+void CRanrok_Charge::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CRanrok_Charge::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+
+
+
+}
+
+void CRanrok_Charge::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CRanrok_Charge::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ /* 초기 객체 비지블*/
+
+ CEditEffect* pCharge_Goo = Get_PartObject("Charge_Goo");
+ CEditEffect* pCombinedPT = Get_PartObject("CombinedPT");
+
+ pCharge_Goo->Set_Visible(true);
+ pCombinedPT->Set_Visible(true);
+
+ /* 초기 객체 위치 초기화*/
+
+ _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position();
+
+
+ pCharge_Goo->Get_Component()->Set_State(STATE::POSITION, vOwnerPos);
+ pCombinedPT->Get_Component()->Set_State(STATE::POSITION, vOwnerPos);
+
+
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Charge::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CRanrok_Charge::Ready_Child()
+{
+ return S_OK;
+}
+
+CRanrok_Charge* CRanrok_Charge::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CRanrok_Charge* pInstance = new CRanrok_Charge(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CRanrok_Charge");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CRanrok_Charge::Clone(void* pArg, CGameObject* pOwner)
+{
+ CRanrok_Charge* pInstance = new CRanrok_Charge(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CRanrok_Charge");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CRanrok_Charge::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ if (m_bHit == false)
+ return;
+
+ ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
+
+ _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
+
+
+}
+
+void CRanrok_Charge::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pInfoInstance);
+
+
+}
+#ifdef _DEBUG
+void CRanrok_Charge::Describe_Entity()
+{
+
+}
+#endif
+
+HRESULT CRanrok_Charge::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp
index 9c749ae30..b23b94b51 100644
--- a/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp
@@ -106,6 +106,11 @@ HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg)
/* 초기 객체 위치 초기화*/
+ _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position();
+
+ pRed_Sphere->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix());
+ pRed_Sphere->Get_Component()->Set_State(STATE::POSITION, vOwnerPos);
+
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
if (pPlayer == nullptr)
@@ -115,15 +120,14 @@ HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg)
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
- pBottomDecal->Get_Component()->Set_State(STATE::POSITION, vPlayer_FootPos);
- pBottomSplatter->Get_Component()->Set_State(STATE::POSITION, vPlayer_FootPos);
- pBottomSplatter2->Get_Component()->Set_State(STATE::POSITION, vPlayer_FootPos);
- pRock_PT->Get_Component()->Set_State(STATE::POSITION, vPlayer_FootPos);
- pSmoke->Get_Component()->Set_State(STATE::POSITION, vPlayer_FootPos);
+ _vector vCompute_Pos = XMVectorSetY(vOwnerPos, XMVectorGetY(vPlayer_FootPos));
- _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position();
+ pBottomDecal->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+ pBottomSplatter->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+ pBottomSplatter2->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+ pRock_PT->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
+ pSmoke->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos);
- pRed_Sphere->Get_Component()->Set_State(STATE::POSITION, vOwnerPos);
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
index f45d283a1..589c09a29 100644
--- a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp
@@ -303,9 +303,14 @@ void CRanrok::Behavior_FireBreathEnter()
m_bLookAt = true;
},0.95f);
+
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
[this]() {
- m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
+
+ _float fBreathTime = 1.f;
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this , &fBreathTime);
+
}, 0.1f);
}
@@ -368,7 +373,11 @@ void CRanrok::Behavior_FireSweepEnter()
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
[this]() {
- m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
+
+ _float fBreathTime = 3.f;
+
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &fBreathTime);
+
}, 0.08f);
}
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
@@ -622,6 +631,12 @@ 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]() {
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_CHARGE, this);
+ }, 0.f);
+
Add_Event(pairAnimInfo.first,
[this]() {
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 1af807dd8..ccfe5a1a7 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -41,7 +41,7 @@ namespace Editor
FLAGWAVE, BROOMCIRCLE,
ENEMY_DETECTION, INTERACTION_OBJECT, INTERACTION_NPC, END
};
- enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, BLUR_CULLING , BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING , DEFAULT_NONPOS , NONWB_NONPOS, DECAL, DECAL_WB, DECAL_BLUR, END};
+ enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, BLUR_CULLING , BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING , DEFAULT_NONPOS , NONWB_NONPOS, DECAL, DECAL_WB, DECAL_BLUR, BLEND_CULLING, END};
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
@@ -61,7 +61,7 @@ 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,
+ TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE,
END
};
diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_Breath.h b/Jusin154_Team3D/Editor/Public/Ranrok_Breath.h
index 86cfe5099..dc8a7e008 100644
--- a/Jusin154_Team3D/Editor/Public/Ranrok_Breath.h
+++ b/Jusin154_Team3D/Editor/Public/Ranrok_Breath.h
@@ -30,6 +30,8 @@ class CRanrok_Breath final : public CEffect_Container
HRESULT Ready_Child();
HRESULT Bind_ShaderResources() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+ void Set_BreathTime(_float fTime);
+
private:
_wstring m_wstrEffectName = {};
diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_Charge.h b/Jusin154_Team3D/Editor/Public/Ranrok_Charge.h
new file mode 100644
index 000000000..aade59309
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Ranrok_Charge.h
@@ -0,0 +1,56 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CRanrok_Charge final : public CEffect_Container
+{
+private:
+ CRanrok_Charge(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CRanrok_Charge(const CRanrok_Charge& rhs);
+ virtual ~CRanrok_Charge() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ _bool m_isParticleEnd = {};
+
+ _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_Charge* 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