@@ -184,6 +184,8 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\RandomNpc.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Charge.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_DeadImpact.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_DeadSplash.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_FireBall.h" />
|
||||
<ClInclude Include="..\Public\CamPosition_AI.h" />
|
||||
<ClInclude Include="..\public\Dialogue.h" />
|
||||
@@ -200,6 +202,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Player_ENUM.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Pulse.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Swipe.h" />
|
||||
<ClInclude Include="..\Public\ReparoObject.h" />
|
||||
<ClInclude Include="..\Public\Ride_BoosterBar.h" />
|
||||
<ClInclude Include="..\Public\Ride_Booster_Slot.h" />
|
||||
@@ -466,6 +469,8 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\RandomNpc.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Charge.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_DeadImpact.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_DeadSplash.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_FireBall.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition_AI.cpp" />
|
||||
<ClCompile Include="..\private\Dialogue.cpp" />
|
||||
@@ -481,6 +486,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\PlayerRobe.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Pulse.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Swipe.cpp" />
|
||||
<ClCompile Include="..\Private\ReparoObject.cpp" />
|
||||
<ClCompile Include="..\Private\Ride_BoosterBar.cpp" />
|
||||
<ClCompile Include="..\Private\Ride_Booster_Slot.cpp" />
|
||||
|
||||
@@ -854,6 +854,15 @@
|
||||
<ClInclude Include="..\Public\Ranrok_GroundPulse.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_DeadSplash.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Swipe.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_DeadImpact.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Human_Duelist.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Human_Duelist</Filter>
|
||||
</ClInclude>
|
||||
@@ -1779,6 +1788,15 @@
|
||||
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_BoosterBar">
|
||||
<UniqueIdentifier>{8b69e309-b90b-47f6-8f2d-3dd778b468fe}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact">
|
||||
<UniqueIdentifier>{a7aeb7ef-a180-49ba-81f6-c8a47dcb941d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe">
|
||||
<UniqueIdentifier>{7a994c53-e406-485e-82c2-6a116b6b23e5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash">
|
||||
<UniqueIdentifier>{e1fcb75d-6e7a-4adb-9835-6913ac6f44b6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2589,6 +2607,15 @@
|
||||
<ClCompile Include="..\Private\Ranrok_GroundPulse.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_DeadSplash.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_DeadImpact.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Swipe.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -52,6 +52,9 @@
|
||||
#include "Ranrok_Land.h"
|
||||
#include "Ranrok_GroundPulse.h"
|
||||
#include "Ranrok_Rush_Bottom.h"
|
||||
#include "Ranrok_Swipe.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -668,6 +671,33 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_SWIPE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Swipe* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Swipe>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_SPLASH, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_DeadSplash* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_DeadSplash>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_IMPACT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_DeadImpact* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_DeadImpact>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -686,6 +716,7 @@ HRESULT CEffectPool::Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPr
|
||||
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -159,12 +159,13 @@ HRESULT CLevel_Field::Ready_Lights()
|
||||
_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
|
||||
_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
|
||||
#ifdef gimch
|
||||
#if gimch || 진우
|
||||
vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f);
|
||||
vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f);
|
||||
vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
#endif // gimch
|
||||
|
||||
|
||||
|
||||
|
||||
pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
@@ -177,6 +178,7 @@ HRESULT CLevel_Field::Ready_Volumetric()
|
||||
{
|
||||
m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -223,12 +225,10 @@ HRESULT CLevel_Field::Ready_Layer_SkyBox()
|
||||
|
||||
HRESULT CLevel_Field::Ready_Background()
|
||||
{
|
||||
_float4 vColor = _float4(0.2f, 0.246f, 0.253f, 1.f);
|
||||
m_pGameInstance->Set_FogColor(vColor);
|
||||
m_pGameInstance->Set_Fog(10.f, 8.f);
|
||||
|
||||
m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f);
|
||||
|
||||
|
||||
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Dungeon_Map_Data", LAYER_BACKGROUND);
|
||||
CInfoInstance::GetInstance()->Load_WorldDecal("Duengon_Decal_Data", LAYER_BACKGROUND);
|
||||
CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data", LAYER_BACKGROUND);
|
||||
|
||||
@@ -325,18 +325,20 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
#if 진우
|
||||
|
||||
#else
|
||||
if(isReady_Hogsmeade)
|
||||
|
||||
#endif
|
||||
|
||||
if (isReady_Hogsmeade)
|
||||
{
|
||||
if (FAILED(Ready_Layer_Hogsmeade()))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if(isReady_Hogwart)
|
||||
if (isReady_Hogwart)
|
||||
{
|
||||
if (FAILED(Ready_Layer_Hogwart()))
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (FAILED(Ready_IntstanceProp()))
|
||||
return E_FAIL;
|
||||
@@ -804,7 +806,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
isLoad_RandomNPC = true;
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
isLoad_RandomNPC = true;
|
||||
isLoad_RandomNPC = false;
|
||||
isLoad_NPC = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_NPC = false;
|
||||
@@ -903,7 +906,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
isLoad_Monster = true;
|
||||
isLoad_Monster = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Monster = true;
|
||||
|
||||
@@ -46,6 +46,9 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLevel_Logo::Render()
|
||||
|
||||
@@ -98,12 +98,21 @@ HRESULT CLight_Main::Ready_Components(void* pArg)
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
_matrix LIGHT_WorldMatrixDoNotModify =
|
||||
_matrix(0.819145918f, 0.f, -0.573572040f, 0.f,
|
||||
|
||||
if (NEXT_LEVEL == ENUM_CLASS(LEVEL::GAMEPLAY))
|
||||
{
|
||||
_matrix LIGHT_WorldMatrixDoNotModify =
|
||||
_matrix(0.819145918f, 0.f, -0.573572040f, 0.f,
|
||||
0.553958654f, 0.258784860f, 0.791134834f, 0.f
|
||||
, 0.148416296f, -0.965690017f, 0.211960629f, 0.f
|
||||
, 0.f, 0.f, 0.f, 1.f);
|
||||
m_pTransformCom->Set_WorldMatrix(LIGHT_WorldMatrixDoNotModify);
|
||||
m_pTransformCom->Set_WorldMatrix(LIGHT_WorldMatrixDoNotModify);
|
||||
}
|
||||
else if (NEXT_LEVEL == ENUM_CLASS(LEVEL::FIELD))
|
||||
{
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(-4.f), XMConvertToRadians(271.f), 0.f);
|
||||
|
||||
}
|
||||
|
||||
LIGHT_DESC* pLightDescArg = static_cast<LIGHT_DESC*>(pArg);
|
||||
|
||||
|
||||
@@ -219,6 +219,9 @@
|
||||
#include "Ranrok_Land.h"
|
||||
#include "Ranrok_GroundPulse.h"
|
||||
#include "Ranrok_Rush_Bottom.h"
|
||||
#include "Ranrok_Swipe.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
|
||||
#include "StunEffect.h"
|
||||
#include "Box_Splesh.h"
|
||||
@@ -2604,6 +2607,18 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Swipe>(g_iStaticLevel, CRanrok_Swipe::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_DeadSplash>(g_iStaticLevel, CRanrok_DeadSplash::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_DeadImpact>(g_iStaticLevel, CRanrok_DeadImpact::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;
|
||||
|
||||
@@ -525,6 +525,8 @@ HRESULT CPlayer::Ready_Components()
|
||||
}
|
||||
|
||||
m_pStat = m_pInfoInstance->Get_PlayerStatPtr();
|
||||
SAFE_ADDREF(m_pStat);
|
||||
|
||||
m_Components.push_back(m_pStat);
|
||||
SAFE_ADDREF(m_pStat);
|
||||
|
||||
|
||||
@@ -10,6 +10,9 @@ CPlayerInfo::CPlayerInfo()
|
||||
|
||||
CStat* CPlayerInfo::Get_PlayerStatPtr()
|
||||
{
|
||||
if (m_pStat == nullptr)
|
||||
return nullptr;
|
||||
|
||||
return m_pStat;
|
||||
}
|
||||
|
||||
|
||||
@@ -537,6 +537,7 @@ void CPlayerRobe::Free()
|
||||
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
|
||||
SAFE_RELEASE(m_pRobeJointAnchor[i]);
|
||||
}
|
||||
#ifdef _Debug
|
||||
if (nullptr != m_pMainShape) {
|
||||
m_pMainShape.release();
|
||||
m_pMainShape = nullptr;
|
||||
@@ -545,4 +546,5 @@ void CPlayerRobe::Free()
|
||||
m_pSubShape.release();
|
||||
m_pSubShape = nullptr;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
@@ -326,8 +326,9 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
|
||||
#ifndef 진우
|
||||
XMStoreFloat4(&m_DamageInfo.vTarget_Pos, m_pCharacter_Controller->Get_HeadPosition());
|
||||
#endif
|
||||
|
||||
CEffect_Container* pEffect_Container = dynamic_cast<CEffect_Container*>(pOther);
|
||||
|
||||
@@ -382,7 +383,9 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
|
||||
m_DamageInfo.fDamage = damagePair.first;
|
||||
#ifndef 진우
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
#endif
|
||||
if (0 == damagePair.second) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
return;
|
||||
@@ -399,10 +402,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {m_bDisolve = true; },
|
||||
0.15f);
|
||||
0.25f);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); },
|
||||
0.5f);
|
||||
0.55f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
return;
|
||||
}
|
||||
@@ -415,10 +418,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {m_bDisolve = true; },
|
||||
0.15f);
|
||||
0.25f);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); },
|
||||
0.5f);
|
||||
0.55f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
return;
|
||||
}
|
||||
@@ -432,10 +435,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {m_bDisolve = true; },
|
||||
0.15f);
|
||||
0.25f);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); },
|
||||
0.5f);
|
||||
0.55f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ void CRanrok_Breath::Update(_float fTimeDelta)
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
_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]);
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_DeadImpact::CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_DeadImpact::CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::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"RanrokDeadImpact";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEffectParts* pDistortion = Get_PartObject<CEffectParts>("Distortion");
|
||||
CEffectParts* pDistortion_Small = Get_PartObject<CEffectParts>("Distortion_Small");
|
||||
CEffectParts* pPulse_White = Get_PartObject<CEffectParts>("Pulse_White");
|
||||
CEffectParts* pSplash_Black = Get_PartObject<CEffectParts>("Splash_Black");
|
||||
CEffectParts* pSplash_Red = Get_PartObject<CEffectParts>("Splash_Red");
|
||||
CEffectParts* pSpline0 = Get_PartObject<CEffectParts>("Spline0");
|
||||
CEffectParts* pSpline1 = Get_PartObject<CEffectParts>("Spline1");
|
||||
CEffectParts* pSide_Pt = Get_PartObject<CEffectParts>("Side_Pt");
|
||||
CEffectParts* pCircle_0 = Get_PartObject<CEffectParts>("Circle_0");
|
||||
|
||||
pDistortion->Set_Visible(true);
|
||||
pDistortion_Small->Set_Visible(true);
|
||||
pPulse_White->Set_Visible(true);
|
||||
pSplash_Black->Set_Visible(true);
|
||||
pSplash_Red->Set_Visible(true);
|
||||
pSpline0->Set_Visible(true);
|
||||
pSpline1->Set_Visible(true);
|
||||
pSide_Pt->Set_Visible(true);
|
||||
pCircle_0->Set_Visible(true);
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_vector vPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_HeadPosition();
|
||||
|
||||
|
||||
pDistortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pDistortion_Small->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pPulse_White->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSplash_Black->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSplash_Red->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSpline0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSpline1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSide_Pt->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pCircle_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_DeadImpact* CRanrok_DeadImpact::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_DeadImpact");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_DeadImpact::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_DeadImpact");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::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_DeadImpact::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_DeadImpact::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,203 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_DeadSplash::CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_DeadSplash::CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::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"RanrokDeadSplash";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
_float4 vPos = *static_cast<_float4*>(pArg);
|
||||
_vector vPosition = XMLoadFloat4(&vPos);
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEffectParts* pDead_Decal = Get_PartObject<CEffectParts>("Dead_Decal");
|
||||
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
CEffectParts* pRock_Splash = Get_PartObject<CEffectParts>("Rock_Splash");
|
||||
CEffectParts* pSplash = Get_PartObject<CEffectParts>("Splash");
|
||||
|
||||
pDead_Decal->Set_Visible(true);
|
||||
pRock_PT->Set_Visible(true);
|
||||
|
||||
pRock_Splash->Set_Visible(true);
|
||||
pSplash->Set_Visible(true);
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosition);
|
||||
pSplash->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosition);
|
||||
|
||||
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();
|
||||
|
||||
|
||||
_vector vCompute_Pos = XMVectorSetY(vPosition, XMVectorGetY(vPlayer_FootPos));
|
||||
pRock_Splash->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
|
||||
vCompute_Pos = XMVectorSetY(m_pOwner->Get_WorldPostion(), XMVectorGetY(vPlayer_FootPos));
|
||||
|
||||
pDead_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_DeadSplash* CRanrok_DeadSplash::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_DeadSplash");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_DeadSplash::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_DeadSplash");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::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_DeadSplash::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_DeadSplash::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -660,8 +660,12 @@ void CRanrok::Behavior_SwipeEnter()
|
||||
|
||||
}
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bMotionTrail = true; },
|
||||
[this]() {
|
||||
m_bMotionTrail = true;
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_SWIPE , this);
|
||||
},
|
||||
0.3f);
|
||||
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
@@ -1030,20 +1034,95 @@ void CRanrok::Behavior_DeadEnter()
|
||||
m_bLookAt = false;
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::DEAD);
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
m_pRigidBody->SetActive(false);
|
||||
m_pCharacter_Controller->SetActive(false);
|
||||
|
||||
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::DEAD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
|
||||
m_pBottomSmoke->Set_Visible(false);
|
||||
m_pLeftSmoke->Set_Visible(false);
|
||||
m_pRightSmoke->Set_Visible(false);
|
||||
m_pLeftPt->Set_Visible(false);
|
||||
m_pRightPt->Set_Visible(false);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_vector vPos = m_pCharacter_Controller->Get_Position();
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &vPosFloat4);
|
||||
|
||||
}, 0.f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("pinky_06_right")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.2f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("elbow_left")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.34f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.44f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.6f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_IMPACT, this);
|
||||
|
||||
}, 0.8f);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Behavior_DeadExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (FLT_EPSILON > m_pModelCom->Get_CurrentTrackProgressRatio()) {
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
m_fDeadRatio = CMyTools::Saturate((fRatio - 0.8f) / 0.2f);
|
||||
if (FLT_EPSILON > fRatio) {
|
||||
return E_PENDING;
|
||||
}
|
||||
return S_OK;
|
||||
@@ -1285,8 +1364,15 @@ void CRanrok::Add_FSM()
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_DeadExit(); };
|
||||
Desc.funcLateUpdate = [this](_float fDeadRatio) {
|
||||
m_fDeadRatio = fDeadRatio;
|
||||
if (m_fDeadRatio > 1.f) {
|
||||
// m_fDeadRatio = fDeadRatio;
|
||||
if (m_fDeadRatio >= 1.f) {
|
||||
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
m_pRigidBody->SetActive(false);
|
||||
m_pCharacter_Controller->SetActive(false);
|
||||
|
||||
m_bDead = true;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -0,0 +1,229 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Swipe.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Swipe::CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Swipe::CRanrok_Swipe(const CRanrok_Swipe& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::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"RanrokSwipe";
|
||||
|
||||
m_pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
SAFE_ADDREF(m_pRock_PT);
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
m_Events.emplace(0.4f, [&]() {
|
||||
|
||||
CEffectParts* pClawDecal = Get_PartObject<CEffectParts>("ClawDecal");
|
||||
pClawDecal->Set_Visible(true);
|
||||
|
||||
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Swipe_Smoke");
|
||||
pSmoke->Set_Visible(true);
|
||||
|
||||
_vector vComputePos = Compute_Pos();
|
||||
|
||||
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vComputePos);
|
||||
|
||||
_vector vLook = XMVector3Normalize(m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK));
|
||||
_vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f) , vLook));
|
||||
_vector vUp = XMVector3Normalize(XMVector3Cross(vLook , vRight));
|
||||
_vector vPos = vComputePos;
|
||||
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
pClawDecal->Get_Component<CTransform>()->Set_WorldMatrix(PJ_WorldMat);
|
||||
});
|
||||
|
||||
m_Events.emplace(0.8f, [&]() {
|
||||
m_isParticleEnd = true;
|
||||
m_pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f));
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
if (m_isParticleEnd == false)
|
||||
{
|
||||
_vector vComputePos = Compute_Pos();
|
||||
m_pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vComputePos);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
m_pRock_PT->Set_Visible(true);
|
||||
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
_vector vComputePos = Compute_Pos();
|
||||
m_pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vComputePos);
|
||||
|
||||
m_isParticleEnd = false;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Swipe* CRanrok_Swipe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Swipe* pInstance = new CRanrok_Swipe(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Swipe");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Swipe::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Swipe* pInstance = new CRanrok_Swipe(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Swipe");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
_fvector CRanrok_Swipe::Compute_Pos()
|
||||
{
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("wrist_left_target")) * m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
_vector vBonePos = BoneMat.r[3];
|
||||
|
||||
|
||||
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
|
||||
|
||||
|
||||
|
||||
_vector vPlayer_FootPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_FootPosition();
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
|
||||
|
||||
_vector vCompute_Pos = XMVectorSetY(vBonePos, XMVectorGetY(vPlayer_FootPos));
|
||||
|
||||
return vCompute_Pos;
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
SAFE_RELEASE(m_pRock_PT);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Swipe::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Swipe::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace Client
|
||||
/*란록*/
|
||||
|
||||
RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT, RANROK_LAND, RANROK_RUSH_BOTTOM,
|
||||
RANROK_GROUNDPULSE,
|
||||
RANROK_GROUNDPULSE, RANROK_SWIPE , RANROK_DEAD_SPLASH, RANROK_DEAD_IMPACT,
|
||||
|
||||
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_DeadImpact final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs);
|
||||
virtual ~CRanrok_DeadImpact() = 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_DeadImpact* 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_DeadSplash final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs);
|
||||
virtual ~CRanrok_DeadSplash() = 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_DeadSplash* 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,59 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_Swipe final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Swipe(const CRanrok_Swipe& rhs);
|
||||
virtual ~CRanrok_Swipe() = 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;
|
||||
_fvector Compute_Pos();
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pRock_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 };
|
||||
|
||||
_bool m_isParticleEnd = {};
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Swipe* 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
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -444,7 +444,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
|
||||
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
||||
fSurfaceParam, // 서페이스 파라미터
|
||||
1.f);
|
||||
(2.f / 255.f));
|
||||
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
|
||||
@@ -964,6 +964,9 @@ float2 ComputeDecal(float4 vPosition , float4x4 LocalMatrixInv)
|
||||
vDepthUV.y = vPosition.y / g_fWinSizeY;
|
||||
|
||||
float4 vDepthDesc = g_DepthTexture.Sample(PointSampler, vDepthUV);
|
||||
|
||||
clip(0.5f - vDepthDesc.w); /* 지형과 메쉬에게서만 수행할 것 */
|
||||
|
||||
float3 vNormalDesc = g_NormalMapTexture.Sample(PointSampler, vDepthUV).xyz;
|
||||
vNormalDesc = normalize(vNormalDesc * 2.f - 1.f);
|
||||
|
||||
|
||||
@@ -215,7 +215,10 @@ 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_DeadImpact.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_GroundPulse.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_DeadSplash.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Swipe.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Land.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Impact.h" />
|
||||
@@ -491,7 +494,10 @@ 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_DeadImpact.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_GroundPulse.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_DeadSplash.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Swipe.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Land.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Impact.cpp" />
|
||||
|
||||
@@ -760,6 +760,15 @@
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Ride_Panel\Ride_BoosterBar">
|
||||
<UniqueIdentifier>{12d83369-3413-478f-920e-c3c0ddeabfe8}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Swipe">
|
||||
<UniqueIdentifier>{1893fa7b-b08f-4362-a212-7751614d4922}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadSplash">
|
||||
<UniqueIdentifier>{8172dd50-d631-4fa8-8d09-e459600365fa}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadImpact">
|
||||
<UniqueIdentifier>{7a345ef7-8e16-45df-9bc3-e8fc665f729f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Editor.h">
|
||||
@@ -1539,6 +1548,15 @@
|
||||
<ClInclude Include="..\Public\Ranrok_GroundPulse.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\GroundPulse</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Swipe.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Swipe</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_DeadSplash.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadSplash</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_DeadImpact.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadImpact</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Editor.ico">
|
||||
@@ -2326,6 +2344,15 @@
|
||||
<ClCompile Include="..\Private\Ranrok_GroundPulse.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\GroundPulse</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Swipe.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Swipe</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_DeadSplash.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadSplash</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_DeadImpact.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadImpact</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Editor.rc">
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
#include "Ranrok_Land.h"
|
||||
#include "Ranrok_Rush_Bottom.h"
|
||||
#include "Ranrok_GroundPulse.h"
|
||||
#include "Ranrok_Swipe.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -406,7 +409,7 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_GROUNDPULSE, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_GROUNDPULSE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_GroundPulse* pEffect = nullptr;
|
||||
|
||||
@@ -415,6 +418,32 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_SWIPE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Swipe* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Swipe>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_SPLASH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_DeadSplash* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_DeadSplash>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_IMPACT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_DeadImpact* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_DeadImpact>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -111,6 +111,7 @@ HRESULT CLevel_EffectViewer::Initialize()
|
||||
|
||||
m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -164,8 +165,12 @@ HRESULT CLevel_EffectViewer::Ready_Layer_Light()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_float4 vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f);
|
||||
_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
|
||||
//_float4 vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f);
|
||||
//_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
|
||||
//_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
|
||||
_float4 vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f);
|
||||
_float4 vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f);
|
||||
_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
|
||||
pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
@@ -228,6 +233,8 @@ HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag)
|
||||
m_pGameInstance->Set_Fog(10.f, 5.f);
|
||||
m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data");
|
||||
|
||||
CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -224,6 +224,10 @@
|
||||
#include "Ranrok_Land.h"
|
||||
#include "Ranrok_Rush_Bottom.h"
|
||||
#include "Ranrok_GroundPulse.h"
|
||||
#include "Ranrok_Swipe.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#pragma region PHYSX_HEADER
|
||||
@@ -1918,6 +1922,9 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CLightSpawner>(g_iStaticLevel, CLightSpawner::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Dagger>(g_iStaticLevel, CGoblin_Dagger::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
@@ -1977,6 +1984,18 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_GroundPulse>(NEXT_LEVEL, CRanrok_GroundPulse::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Swipe>(NEXT_LEVEL, CRanrok_Swipe::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_DeadSplash>(NEXT_LEVEL, CRanrok_DeadSplash::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_DeadImpact>(NEXT_LEVEL, CRanrok_DeadImpact::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))))
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_DeadImpact.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EditEffect.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_DeadImpact::CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_DeadImpact::CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::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/RanrokDeadImpact")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"RanrokDeadImpact";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEditEffect* pDistortion = Get_PartObject<CEditEffect>("Distortion");
|
||||
CEditEffect* pDistortion_Small = Get_PartObject<CEditEffect>("Distortion_Small");
|
||||
CEditEffect* pPulse_White = Get_PartObject<CEditEffect>("Pulse_White");
|
||||
CEditEffect* pSplash_Black = Get_PartObject<CEditEffect>("Splash_Black");
|
||||
CEditEffect* pSplash_Red = Get_PartObject<CEditEffect>("Splash_Red");
|
||||
CEditEffect* pSpline0 = Get_PartObject<CEditEffect>("Spline0");
|
||||
CEditEffect* pSpline1 = Get_PartObject<CEditEffect>("Spline1");
|
||||
CEditEffect* pSide_Pt = Get_PartObject<CEditEffect>("Side_Pt");
|
||||
CEditEffect* pCircle_0 = Get_PartObject<CEditEffect>("Circle_0");
|
||||
|
||||
pDistortion->Set_Visible(true);
|
||||
pDistortion_Small->Set_Visible(true);
|
||||
pPulse_White->Set_Visible(true);
|
||||
pSplash_Black->Set_Visible(true);
|
||||
pSplash_Red->Set_Visible(true);
|
||||
pSpline0->Set_Visible(true);
|
||||
pSpline1->Set_Visible(true);
|
||||
pSide_Pt->Set_Visible(true);
|
||||
pCircle_0->Set_Visible(true);
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_vector vPos = m_pOwner->Get_Component<CCharacter_Controller>()->Get_HeadPosition();
|
||||
|
||||
|
||||
pDistortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pDistortion_Small->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pPulse_White->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSplash_Black->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSplash_Red->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSpline0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSpline1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSide_Pt->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pCircle_0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_DeadImpact* CRanrok_DeadImpact::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_DeadImpact");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_DeadImpact::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_DeadImpact");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_DeadImpact::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_DeadImpact::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_DeadImpact::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_DeadImpact::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_DeadSplash.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EditEffect.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_DeadSplash::CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_DeadSplash::CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::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/RanrokDeadSplash")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"RanrokDeadSplash";
|
||||
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
_float4 vPos = *static_cast<_float4*>(pArg);
|
||||
_vector vPosition = XMLoadFloat4(&vPos);
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEditEffect* pDead_Decal = Get_PartObject<CEditEffect>("Dead_Decal");
|
||||
CEditEffect* pRock_PT = Get_PartObject<CEditEffect>("Rock_PT");
|
||||
CEditEffect* pRock_Splash = Get_PartObject<CEditEffect>("Rock_Splash");
|
||||
CEditEffect* pSplash = Get_PartObject<CEditEffect>("Splash");
|
||||
|
||||
pDead_Decal->Set_Visible(true);
|
||||
pRock_PT->Set_Visible(true);
|
||||
|
||||
pRock_Splash->Set_Visible(true);
|
||||
pSplash->Set_Visible(true);
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosition);
|
||||
pSplash->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosition);
|
||||
|
||||
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();
|
||||
|
||||
|
||||
_vector vCompute_Pos = XMVectorSetY(vPosition, XMVectorGetY(vPlayer_FootPos));
|
||||
pRock_Splash->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
|
||||
vCompute_Pos = XMVectorSetY(m_pOwner->Get_WorldPostion(), XMVectorGetY(vPlayer_FootPos));
|
||||
|
||||
pDead_Decal->Get_Component<CTransform>()->Set_State(STATE::POSITION, vCompute_Pos);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_DeadSplash* CRanrok_DeadSplash::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_DeadSplash");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_DeadSplash::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_DeadSplash");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_DeadSplash::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_DeadSplash::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_DeadSplash::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_DeadSplash::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -564,6 +564,12 @@ void CRanrok::Behavior_SwipeEnter()
|
||||
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_SWIPE , this);
|
||||
}, 0.3f);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Behavior_SwipeExitCheck(_float fTimeDelta)
|
||||
@@ -888,12 +894,90 @@ void CRanrok::Behavior_DeadEnter()
|
||||
m_bLookAt = false;
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::DEAD);
|
||||
m_fDeadRatio = 0.f;
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::DEAD];
|
||||
m_pBottomSmoke->Set_Visible(false);
|
||||
m_pLeftSmoke->Set_Visible(false);
|
||||
m_pRightSmoke->Set_Visible(false);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_vector vPos = m_pCharacter_Controller->Get_Position();
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &vPosFloat4);
|
||||
|
||||
}, 0.f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("pinky_06_right")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.2f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("elbow_left")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.34f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.44f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
_vector vPos = BoneMat.r[3];
|
||||
_float4 vPosFloat4 = {};
|
||||
XMStoreFloat4(&vPosFloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4);
|
||||
|
||||
}, 0.6f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_IMPACT, this);
|
||||
|
||||
}, 0.8f);
|
||||
|
||||
|
||||
#ifndef 진우
|
||||
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
|
||||
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
|
||||
m_pRigidBody->SetActive(false);
|
||||
m_pCharacter_Controller->SetActive(false);
|
||||
|
||||
#endif
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::DEAD];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
@@ -901,15 +985,36 @@ void CRanrok::Behavior_DeadEnter()
|
||||
|
||||
HRESULT CRanrok::Behavior_DeadExitCheck(_float fTimeDelta)
|
||||
{
|
||||
|
||||
|
||||
#ifdef 진우
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
m_pFSM->Disable_State(FSMSTATE::DEAD);
|
||||
return S_OK;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (FLT_EPSILON > m_pModelCom->Get_CurrentTrackProgressRatio()) {
|
||||
return E_PENDING;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok::Behavior_DeadExit()
|
||||
{
|
||||
|
||||
#ifndef 진우
|
||||
m_bDead = true;
|
||||
#else
|
||||
|
||||
m_pFSM->Disable_State(FSMSTATE::DEAD);
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1129,7 +1234,9 @@ void CRanrok::Add_FSM()
|
||||
Desc.funcLateUpdate = [this](_float fDeadRatio) {
|
||||
m_fDeadRatio = fDeadRatio;
|
||||
if (m_fDeadRatio > 1.f) {
|
||||
#ifndef 진우
|
||||
m_bDead = true;
|
||||
#endif
|
||||
}
|
||||
};
|
||||
Desc.vDeadTimer.x = FLT_EPSILON5;
|
||||
|
||||
@@ -0,0 +1,227 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Swipe.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EditEffect.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Swipe::CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Swipe::CRanrok_Swipe(const CRanrok_Swipe& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::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/RanrokSwipe")))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"RanrokSwipe";
|
||||
|
||||
m_pRock_PT = Get_PartObject<CEditEffect>("Rock_PT");
|
||||
SAFE_ADDREF(m_pRock_PT);
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
m_Events.emplace(0.4f, [&]() {
|
||||
|
||||
CEditEffect* pClawDecal = Get_PartObject<CEditEffect>("ClawDecal");
|
||||
pClawDecal->Set_Visible(true);
|
||||
|
||||
CEditEffect* pSmoke = Get_PartObject<CEditEffect>("Swipe_Smoke");
|
||||
pSmoke->Set_Visible(true);
|
||||
|
||||
_vector vComputePos = Compute_Pos();
|
||||
|
||||
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vComputePos);
|
||||
|
||||
_vector vLook = XMVector3Normalize(m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK));
|
||||
_vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f) , vLook));
|
||||
_vector vUp = XMVector3Normalize(XMVector3Cross(vLook , vRight));
|
||||
_vector vPos = vComputePos;
|
||||
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
pClawDecal->Get_Component<CTransform>()->Set_WorldMatrix(PJ_WorldMat);
|
||||
});
|
||||
|
||||
m_Events.emplace(0.8f, [&]() {
|
||||
m_isParticleEnd = true;
|
||||
m_pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f));
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
if (m_isParticleEnd == false)
|
||||
{
|
||||
_vector vComputePos = Compute_Pos();
|
||||
m_pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vComputePos);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
m_pRock_PT->Set_Visible(true);
|
||||
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
_vector vComputePos = Compute_Pos();
|
||||
m_pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vComputePos);
|
||||
|
||||
m_isParticleEnd = false;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Swipe::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Swipe* CRanrok_Swipe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Swipe* pInstance = new CRanrok_Swipe(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Swipe");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Swipe::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Swipe* pInstance = new CRanrok_Swipe(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Swipe");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
_fvector CRanrok_Swipe::Compute_Pos()
|
||||
{
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("wrist_left_target")) * m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
_vector vBonePos = BoneMat.r[3];
|
||||
|
||||
|
||||
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
|
||||
|
||||
|
||||
|
||||
_vector vPlayer_FootPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_FootPosition();
|
||||
|
||||
XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos);
|
||||
|
||||
_vector vCompute_Pos = XMVectorSetY(vBonePos, XMVectorGetY(vPlayer_FootPos));
|
||||
|
||||
return vCompute_Pos;
|
||||
}
|
||||
|
||||
void CRanrok_Swipe::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
SAFE_RELEASE(m_pRock_PT);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Swipe::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Swipe::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace Editor
|
||||
|
||||
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, RANROK_RUSH_BOTTOM,
|
||||
RANROK_GROUNDPULSE,
|
||||
RANROK_GROUNDPULSE, RANROK_SWIPE, RANROK_DEAD_SPLASH , RANROK_DEAD_IMPACT,
|
||||
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_DeadImpact final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs);
|
||||
virtual ~CRanrok_DeadImpact() = 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_DeadImpact* 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_DeadSplash final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs);
|
||||
virtual ~CRanrok_DeadSplash() = 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_DeadSplash* 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,59 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CRanrok_Swipe final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Swipe(const CRanrok_Swipe& rhs);
|
||||
virtual ~CRanrok_Swipe() = 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;
|
||||
_fvector Compute_Pos();
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEditEffect* m_pRock_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 };
|
||||
|
||||
_bool m_isParticleEnd = {};
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Swipe* 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
|
||||
@@ -280,9 +280,12 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
|
||||
|
||||
m_pVertexPositions = new _float3[m_iNumVertices];
|
||||
ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices);
|
||||
|
||||
#ifdef DEBUG
|
||||
m_VertexTexcoords = new _float2[m_iNumVertices];
|
||||
ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices);
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
|
||||
for (_uint i = 0; i < m_iNumVertices; ++i)
|
||||
{
|
||||
@@ -303,8 +306,12 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
|
||||
XMStoreFloat3(&pVertices[i].vBinormal,
|
||||
XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix)));
|
||||
|
||||
|
||||
pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV;
|
||||
#ifdef DEBUG
|
||||
memcpy(&m_VertexTexcoords[i], &pVertices[i].vTexcoord, sizeof(_float2));
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
D3D11_SUBRESOURCE_DATA InitialVBData{};
|
||||
|
||||
Reference in New Issue
Block a user