COMMIT
This commit is contained in:
@@ -189,6 +189,8 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\public\Dialogue_Font.h" />
|
||||
<ClInclude Include="..\public\NPCInteraction.h" />
|
||||
<ClInclude Include="..\public\PointLight.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Hit.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Impact.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
||||
<ClInclude Include="..\Public\PlayerRobe.h" />
|
||||
<ClInclude Include="..\Public\Player_ENUM.h" />
|
||||
@@ -462,6 +464,8 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\private\Dialogue_Font.cpp" />
|
||||
<ClCompile Include="..\private\NPCInteraction.cpp" />
|
||||
<ClCompile Include="..\private\PointLight.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Hit.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Impact.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
||||
<ClCompile Include="..\Private\PlayerRobe.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Pulse.cpp" />
|
||||
|
||||
@@ -836,6 +836,12 @@
|
||||
<ClInclude Include="..\Public\Camera_Model.h">
|
||||
<Filter>02.GameObjects\Cameras\Camera_Model</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Impact.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrol_Impact</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Hit.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Nomal_Hit</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1737,6 +1743,12 @@
|
||||
<Filter Include="02.GameObjects\Cameras\Camera_Model">
|
||||
<UniqueIdentifier>{40504926-63cc-4132-ade2-5a789e1a82a6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Nomal_Hit">
|
||||
<UniqueIdentifier>{b537dfd4-fcad-401f-a49a-8fdafeb91ab7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrol_Impact">
|
||||
<UniqueIdentifier>{15ea8015-5b0a-4678-bf02-55b042ef4de4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2520,6 +2532,12 @@
|
||||
<ClCompile Include="..\Private\Camera_Model.cpp">
|
||||
<Filter>02.GameObjects\Cameras\Camera_Model</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Impact.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrol_Impact</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Hit.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Nomal_Hit</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -1106,6 +1106,10 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isNonSoftEffect", &m_EffectInfo.isNonSoftEffect, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (m_pDiffuse_TextureCom != nullptr)
|
||||
|
||||
@@ -47,6 +47,8 @@
|
||||
#include "Ranrok_Point.h"
|
||||
#include "Ranrok_Pulse.h"
|
||||
#include "Ranrok_Charge.h"
|
||||
#include "Ranrok_Hit.h"
|
||||
#include "Ranrok_Impact.h"
|
||||
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -158,9 +160,9 @@ void CEffectPool::Priority_Update(_float fTimeDelta)
|
||||
#if 진우
|
||||
|
||||
|
||||
(*m_EffectList[ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA_SIDE)].begin())->Describe_Entity();
|
||||
//(*m_EffectList[ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA_SIDE)].begin())->Describe_Entity();
|
||||
|
||||
Describe_Entity();
|
||||
//Describe_Entity();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
@@ -614,6 +616,26 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_HIT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Hit* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Hit>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_IMPACT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Impact* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Impact>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -102,9 +102,11 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Layer_SkyBox(TEXT("Layer_SkyBox")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_Player(LAYER_PLAYER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_Monster())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -212,6 +212,8 @@
|
||||
#include "Ranrok_Point.h"
|
||||
#include "Ranrok_Charge.h"
|
||||
#include "Ranrok_Pulse.h"
|
||||
#include "Ranrok_Hit.h"
|
||||
#include "Ranrok_Impact.h"
|
||||
|
||||
#include "StunEffect.h"
|
||||
#include "Box_Splesh.h"
|
||||
@@ -2300,6 +2302,15 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Hit>(g_iStaticLevel, CRanrok_Hit::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Impact>(g_iStaticLevel, CRanrok_Impact::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "TrailObject.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
#include "State_Move.h"
|
||||
@@ -161,6 +162,28 @@ void CRanrok::Update(_float fTimeDelta)
|
||||
|
||||
Update_Disolve(fTimeDelta,0.8f);
|
||||
|
||||
|
||||
#pragma region TRAIL_UPDATE
|
||||
|
||||
_matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_matrix LeftEyeMatrix = {};
|
||||
_matrix RightEyeMatrix = {};
|
||||
|
||||
LeftEyeMatrix = XMLoadFloat4x4(m_pLeftEye_BoneMat);
|
||||
RightEyeMatrix = XMLoadFloat4x4(m_pRightEye_BoneMat);
|
||||
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
LeftEyeMatrix.r[i] = XMVector3Normalize(LeftEyeMatrix.r[i]);
|
||||
RightEyeMatrix.r[i] = XMVector3Normalize(RightEyeMatrix.r[i]);
|
||||
}
|
||||
|
||||
m_pLeftEye_Trail->Trail_Update(LeftEyeMatrix * WorldMat, fTimeDelta);
|
||||
m_pRightEye_Trail->Trail_Update(RightEyeMatrix * WorldMat, fTimeDelta);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
}
|
||||
|
||||
void CRanrok::Late_Update(_float fTimeDelta)
|
||||
@@ -334,6 +357,8 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC);
|
||||
break;
|
||||
}
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_HIT, this, &CollisionDesc->vWorldPos);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -460,6 +485,78 @@ HRESULT CRanrok::Ready_Components()
|
||||
|
||||
HRESULT CRanrok::Ready_Parts()
|
||||
{
|
||||
#pragma region EFFECT
|
||||
/* EFFECT */
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("LeftSmoke", g_iStaticLevel, &m_pLeftSmoke, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pLeftSmoke->Load("../Bin/Resources/Data/Effect/Ranrok/RanrokSmoke/Smoke", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pLeftSmoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("wrist_left_target"));
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("RightSmoke", g_iStaticLevel, &m_pRightSmoke, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRightSmoke->Load("../Bin/Resources/Data/Effect/Ranrok/RanrokSmoke/Smoke", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pRightSmoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("wrist_right_target"));
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("BottomSmoke", g_iStaticLevel, &m_pBottomSmoke, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pBottomSmoke->Load("../Bin/Resources/Data/Effect/Ranrok/RanrokSmoke/Smoke_Bottom", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pBottomSmoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("hip"));
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("LeftParticle", g_iStaticLevel, &m_pLeftPt, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pLeftPt->Load("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Side_PT", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pLeftPt->FollowParents(m_pModelCom->Get_BoneMatrixPtr("indexmiddlewing_04_right"));
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>("RightParticle", g_iStaticLevel, &m_pRightPt, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRightPt->Load("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Side_PT", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pRightPt->FollowParents(m_pModelCom->Get_BoneMatrixPtr("indexmiddlewing_04_left"));
|
||||
|
||||
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>("Left_Trail", g_iStaticLevel, &m_pLeftEye_Trail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pLeftEye_Trail->Load_Trail("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Eye_Trail", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pLeftEye_Trail->Set_Visible(true);
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>("Right_Trail", g_iStaticLevel, &m_pRightEye_Trail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pRightEye_Trail->Load_Trail("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Eye_Trail", static_cast<LEVEL>(g_iStaticLevel));
|
||||
m_pRightEye_Trail->Set_Visible(true);
|
||||
|
||||
m_pLeftEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_left");
|
||||
m_pRightEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_right");
|
||||
|
||||
#pragma endregion
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -557,9 +654,12 @@ HRESULT CRanrok::Render_Nonblend()
|
||||
m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
|
||||
m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
|
||||
}
|
||||
|
||||
#ifndef 진우
|
||||
if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -806,6 +906,14 @@ void CRanrok::Free()
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pEffectPool);
|
||||
SAFE_RELEASE(m_pRanrok_Point);
|
||||
SAFE_RELEASE(m_pRightSmoke);
|
||||
SAFE_RELEASE(m_pLeftSmoke);
|
||||
SAFE_RELEASE(m_pBottomSmoke);
|
||||
SAFE_RELEASE(m_pLeftEye_Trail);
|
||||
SAFE_RELEASE(m_pRightEye_Trail);
|
||||
SAFE_RELEASE(m_pRightPt);
|
||||
SAFE_RELEASE(m_pLeftPt);
|
||||
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,188 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Hit.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Hit::CRanrok_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Hit::CRanrok_Hit(const CRanrok_Hit& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Hit::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokHit")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Hit::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"RanrokHit";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Hit::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Hit::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Hit::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Hit::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
_float4 vHitPos = *static_cast<_float4*>(pArg);
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEffectParts* pHit_PT_R = Get_PartObject<CEffectParts>("Hit_PT_R");
|
||||
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
CEffectParts* pSplatter_Hit = Get_PartObject<CEffectParts>("Splatter_Hit");
|
||||
|
||||
|
||||
pSplatter_Hit->Set_Visible(true);
|
||||
pHit_PT_R->Set_Visible(true);
|
||||
pRock_PT->Set_Visible(true);
|
||||
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_vector vHittingPos = XMLoadFloat4(&vHitPos);
|
||||
|
||||
pSplatter_Hit->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHittingPos);
|
||||
pHit_PT_R->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHittingPos);
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vHittingPos);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Hit::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Hit::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Hit* CRanrok_Hit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Hit* pInstance = new CRanrok_Hit(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Hit");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Hit::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Hit* pInstance = new CRanrok_Hit(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Hit");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Hit::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_Hit::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Hit::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Hit::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,192 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Impact.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Impact::CRanrok_Impact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Impact::CRanrok_Impact(const CRanrok_Impact& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Impact::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokBigHit")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Impact::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"RanrokImpact";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Impact::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Impact::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Impact::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Impact::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
CEffectParts* pHit_PT0 = Get_PartObject<CEffectParts>("Hit_PT0");
|
||||
CEffectParts* pHit_Pulse = Get_PartObject<CEffectParts>("Hit_Pulse");
|
||||
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
CEffectParts* pSplash_Hit = Get_PartObject<CEffectParts>("Splash_Hit");
|
||||
CEffectParts* pSpline0 = Get_PartObject<CEffectParts>("Spline0");
|
||||
CEffectParts* pSpline1 = Get_PartObject<CEffectParts>("Spline1");
|
||||
|
||||
pHit_PT0->Set_Visible(true);
|
||||
pHit_Pulse->Set_Visible(true);
|
||||
pRock_PT->Set_Visible(true);
|
||||
pSplash_Hit->Set_Visible(true);
|
||||
pSpline0->Set_Visible(true);
|
||||
pSpline1->Set_Visible(true);
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_vector vOwnerPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
|
||||
|
||||
pHit_PT0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
pHit_Pulse->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
pSplash_Hit->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
pSpline0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
pSpline1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vOwnerPos);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Impact::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Impact::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Impact* CRanrok_Impact::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Impact* pInstance = new CRanrok_Impact(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Impact");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Impact::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Impact* pInstance = new CRanrok_Impact(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Impact");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Impact::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_Impact::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Impact::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Impact::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
|
||||
|
||||
pBottomDecal->Set_Visible(true);
|
||||
pBottomSplatter->Set_Visible(true);
|
||||
//pBottomSplatter->Set_Visible(true);
|
||||
pBottomSplatter2->Set_Visible(true);
|
||||
pRock_PT->Set_Visible(true);
|
||||
pSmoke->Set_Visible(true);
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include "Player.h"
|
||||
#include "Effect_Container.h"
|
||||
#include "EffectPool.h"
|
||||
#include "EffectParts.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
@@ -784,6 +786,11 @@ void CRanrok::Behavior_PulseEnter()
|
||||
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);
|
||||
|
||||
}
|
||||
@@ -802,6 +809,10 @@ HRESULT CRanrok::Behavior_PulseExitCheck(_float fTimeDelta)
|
||||
else {
|
||||
m_pFSM->Change_State(FSMSTATE::LAND);
|
||||
}
|
||||
|
||||
m_pLeftSmoke->Set_Visible(true);
|
||||
m_pRightSmoke->Set_Visible(true);
|
||||
m_pBottomSmoke->Set_Visible(true);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
@@ -824,6 +835,10 @@ void CRanrok::Behavior_TuckedEnter()
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_POINT, this, nullptr, &m_pRanrok_Point);
|
||||
|
||||
m_pLeftEye_Trail->Set_Visible(false);
|
||||
m_pRightEye_Trail->Set_Visible(false);
|
||||
|
||||
}, 0.05f);
|
||||
|
||||
}
|
||||
@@ -861,8 +876,14 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
|
||||
void CRanrok::Behavior_TuckedExit()
|
||||
{
|
||||
/* 이펙트를 서서히 사라지게 하기위해 도착 이후에 나오는 이펙트를 아래로 떨굼 */
|
||||
m_pRanrok_Point->Setting_Pos(XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
SAFE_RELEASE(m_pRanrok_Point);
|
||||
if (m_bTucked == true)
|
||||
{
|
||||
m_pRanrok_Point->Setting_Pos(XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
SAFE_RELEASE(m_pRanrok_Point);
|
||||
}
|
||||
|
||||
m_pLeftEye_Trail->Set_Visible(true);
|
||||
m_pRightEye_Trail->Set_Visible(true);
|
||||
|
||||
m_pFSM->Disable_State(FSMSTATE::TUCKED);
|
||||
m_bTucked = false;
|
||||
|
||||
@@ -354,9 +354,6 @@ HRESULT CTrailObject::Render()
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_TrailInfo.eShaderPass))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture")))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pTrailCom->Render()))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -477,6 +474,14 @@ HRESULT CTrailObject::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), m_pShaderCom, "g_DepthTexture"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace Client
|
||||
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, WATER, LAND, NONMRO,SPECTOR_WEAPON, GLASS_CUBE, LEVIOSO, DECAL, END };
|
||||
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 , BLEND_CULLING,END};
|
||||
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, TRAIL_WB, 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, DECAL_BLEND, END};
|
||||
enum class SHADER_PASS_UIEDITOR {
|
||||
DEFAULT, COLOR, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
|
||||
LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
|
||||
@@ -78,7 +78,7 @@ namespace Client
|
||||
|
||||
/*란록*/
|
||||
|
||||
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE,
|
||||
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT,
|
||||
|
||||
END
|
||||
};
|
||||
|
||||
@@ -258,7 +258,7 @@ namespace Client
|
||||
_bool isBlurDissolve = {};
|
||||
_bool isNomalMap = {};
|
||||
_bool isNoDissolveSmoothStep = {};
|
||||
_bool isPadding3 = {};
|
||||
_bool isNonSoftEffect = {};
|
||||
|
||||
_float2 vDissolveSmoothRange = { 0.1f , 0.1f };
|
||||
_float2 vPadding0 = {};
|
||||
|
||||
@@ -119,6 +119,21 @@ class CRanrok final : public CMonster
|
||||
class CEffect_Container* m_pRanrok_Point = { nullptr };
|
||||
_float m_fTuckedSpeed = { 90.f };
|
||||
|
||||
|
||||
class CEffectParts* m_pLeftSmoke = { nullptr };
|
||||
class CEffectParts* m_pRightSmoke = { nullptr };
|
||||
class CEffectParts* m_pBottomSmoke = { nullptr };
|
||||
|
||||
class CEffectParts* m_pRightPt = { nullptr };
|
||||
class CEffectParts* m_pLeftPt = { nullptr };
|
||||
|
||||
class CTrailObject* m_pRightEye_Trail = { nullptr };
|
||||
class CTrailObject* m_pLeftEye_Trail = { nullptr };
|
||||
|
||||
|
||||
const _float4x4* m_pLeftEye_BoneMat = { nullptr };
|
||||
const _float4x4* m_pRightEye_BoneMat = { nullptr };
|
||||
|
||||
void Behavior_IdleEnter();
|
||||
HRESULT Behavior_IdleExitCheck();
|
||||
void Behavior_IdleExit();
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_Hit final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Hit(const CRanrok_Hit& rhs);
|
||||
virtual ~CRanrok_Hit() = 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_Hit* 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_Impact final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Impact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Impact(const CRanrok_Impact& rhs);
|
||||
virtual ~CRanrok_Impact() = 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_Impact* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
Reference in New Issue
Block a user