commit
This commit is contained in:
@@ -347,6 +347,8 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\public\MiniMap_Camera.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Teleport.h" />
|
||||
<ClInclude Include="..\Public\TriggerBox.h" />
|
||||
<ClInclude Include="..\Public\Troll_Throw.h" />
|
||||
<ClInclude Include="..\Public\Troll_Attack.h" />
|
||||
<ClInclude Include="..\Public\Troll_Rush.h" />
|
||||
<ClInclude Include="..\Public\Troll_Self_Hit.h" />
|
||||
<ClInclude Include="..\Public\Troll_Shout.h" />
|
||||
@@ -677,6 +679,8 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\StunEffect.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Teleport.cpp" />
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_Throw.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_Attack.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_Rush.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_Self_Hit.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_Shout.cpp" />
|
||||
|
||||
@@ -990,6 +990,12 @@
|
||||
<ClInclude Include="..\Public\CutScene_Shout.h">
|
||||
<Filter>02.GameObjects\Effect\CutSceneEffect\CutScene_Shout</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Troll_Throw.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Troll_Throw</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Troll_Attack.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Troll_Attack</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -2041,6 +2047,12 @@
|
||||
<Filter Include="02.GameObjects\Effect\CutSceneEffect\CutScene_Shout">
|
||||
<UniqueIdentifier>{abf505b2-d91f-4ab1-ad69-ff571a74c035}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Troll_Throw">
|
||||
<UniqueIdentifier>{8300a5c5-8e4f-4d4c-957b-ccc99c5cbc3a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Troll_Attack">
|
||||
<UniqueIdentifier>{e1af9a18-369a-4168-8d6e-c98c951ecb39}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2957,6 +2969,12 @@
|
||||
<ClCompile Include="..\Private\CutScene_Shout.cpp">
|
||||
<Filter>02.GameObjects\Effect\CutSceneEffect\CutScene_Shout</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Troll_Attack.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Troll_Attack</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Troll_Throw.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Troll_Throw</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\State_Parry.cpp">
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
#include "Troll_Rush.h"
|
||||
#include "Troll_Shout.h"
|
||||
#include "Troll_Self_Hit.h"
|
||||
#include "Troll_Attack.h"
|
||||
#include "Troll_Throw.h"
|
||||
|
||||
#include "Goblin_Protego.h"
|
||||
#include "Goblin_Attack.h"
|
||||
@@ -909,6 +911,25 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_ATTACK_HIT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTroll_Attack* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CTroll_Attack>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::TROLL_THROW, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CTroll_Throw* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CTroll_Throw>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -428,11 +428,11 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA);
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
|
||||
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC);
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -222,6 +222,8 @@
|
||||
#include "Troll_Rush.h"
|
||||
#include "Troll_Shout.h"
|
||||
#include "Troll_Self_Hit.h"
|
||||
#include "Troll_Attack.h"
|
||||
#include "Troll_Throw.h"
|
||||
|
||||
#include "WandEnd.h"
|
||||
#include "Goblin_Protego.h"
|
||||
@@ -2836,6 +2838,15 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Self_Hit>(g_iStaticLevel, CTroll_Self_Hit::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Attack>(g_iStaticLevel, CTroll_Attack::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Throw>(g_iStaticLevel, CTroll_Throw::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Protego>(g_iStaticLevel, CGoblin_Protego::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1566,7 +1566,8 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
if (iCurr != iStart + 2)
|
||||
{
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
[this]() {
|
||||
m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
|
||||
@@ -1661,6 +1662,8 @@ void CPlayer::Behavior_AncientSpellEnter()
|
||||
if (m_LockOnInfo.pUnit)
|
||||
m_pTransformCom->LookAt(m_LockOnInfo.pUnit->Get_WorldPostion());
|
||||
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::LIGHTNING, Get_PartObject<CWand>());
|
||||
@@ -3117,6 +3120,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
|
||||
|
||||
Get_PartObject<CCamPosition_Shoulder>()->Set_CameraAnim(6);
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Goblin_Fear"));
|
||||
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::REPARO):
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "EffectParts.h"
|
||||
#include "TrailObject.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_EtherInfo.h"
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
@@ -909,6 +910,11 @@ void CRanrok::Behavior_TuckedEnter()
|
||||
m_pRightEye_Trail->Set_Visible(false);
|
||||
|
||||
|
||||
m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_AURA)]->Set_Visible(false);
|
||||
m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_EYES)]->Set_Visible(false);
|
||||
m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_WINGS)]->Set_Visible(false);
|
||||
|
||||
|
||||
}, 0.05f);
|
||||
|
||||
}
|
||||
@@ -959,6 +965,9 @@ void CRanrok::Behavior_TuckedExit()
|
||||
m_pLeftEye_Trail->Set_Visible(true);
|
||||
m_pRightEye_Trail->Set_Visible(true);
|
||||
|
||||
m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_AURA)]->Set_Visible(true);
|
||||
m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_EYES)]->Set_Visible(true);
|
||||
m_pEtherInfo[ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_WINGS)]->Set_Visible(true);
|
||||
|
||||
m_pFSM->Disable_State(FSMSTATE::TUCKED);
|
||||
m_bTucked = false;
|
||||
@@ -1058,6 +1067,12 @@ void CRanrok::Behavior_DeadEnter()
|
||||
m_pLeftPt->Set_Visible(false);
|
||||
m_pRightPt->Set_Visible(false);
|
||||
|
||||
for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++)
|
||||
{
|
||||
m_pEtherInfo[i]->Set_Visible(false);
|
||||
}
|
||||
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
|
||||
|
||||
@@ -0,0 +1,177 @@
|
||||
#include "pch.h"
|
||||
#include "Troll_Attack.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
CTroll_Attack::CTroll_Attack(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CTroll_Attack::CTroll_Attack(const CTroll_Attack& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CTroll_Attack::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollAttackHit")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTroll_Attack::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"TrollAttackHit";
|
||||
|
||||
|
||||
m_fDuration = 3.5f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll_Attack::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CTroll_Attack::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CTroll_Attack::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTroll_Attack::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
_float4 vPos = *static_cast<_float4*>(pArg); // 위치 넘기기
|
||||
|
||||
CEffectParts* pHit0 = Get_PartObject<CEffectParts>("Hit0");
|
||||
|
||||
pHit0->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&vPos));
|
||||
|
||||
pHit0->Set_Visible(true);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTroll_Attack::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTroll_Attack::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CTroll_Attack* CTroll_Attack::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CTroll_Attack* pInstance = new CTroll_Attack(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CTroll_Attack");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CTroll_Attack::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CTroll_Attack* pInstance = new CTroll_Attack(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CTroll_Attack");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CTroll_Attack::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
_int iIndex = CollisionCheck();
|
||||
|
||||
if (iIndex < 0)
|
||||
return;
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CTroll_Attack::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CTroll_Attack::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CTroll_Attack::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -145,6 +145,11 @@ void CTroll_Rock::RockHit()
|
||||
break;
|
||||
}
|
||||
m_bVisible = false;
|
||||
|
||||
_float4 vPos = {};
|
||||
XMStoreFloat4(&vPos, pUserData->pOwner->Get_Component<CCharacter_Controller>()->Get_Position());
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, m_pOwner, &vPos);
|
||||
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
}
|
||||
break;
|
||||
@@ -161,8 +166,9 @@ void CTroll_Rock::RockHit()
|
||||
}
|
||||
m_bVisible = false;
|
||||
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, m_pOwner , &tagCollInfo.vWorldPos);
|
||||
_float4 vPos = {};
|
||||
XMStoreFloat4(&vPos , pUserData->pOwner->Get_Component<CCharacter_Controller>()->Get_Position());
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, m_pOwner , &vPos);
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -445,6 +445,20 @@ void CTroll::Behavior_ThrowEnter()
|
||||
},
|
||||
0.95f);
|
||||
|
||||
//Add_Event(pairAnimInfo.first,
|
||||
// [this]() {
|
||||
// _matrix HandMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("SKT_LeftHand"));
|
||||
|
||||
// HandMat *= m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
// _float4 vPos = {};
|
||||
|
||||
// XMStoreFloat4(&vPos, HandMat.r[3]);
|
||||
|
||||
// m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_THROW, this, &vPos);
|
||||
// },
|
||||
// 0.95f);
|
||||
|
||||
Set_Easing(m_Animation[STATEANIM::THROW_ROCK].first, 0.1f, 0.47f, 1.5f);
|
||||
Set_Easing(m_Animation[STATEANIM::THROW_ROCK].first, 0.47f, 0.5f, 0.5f);
|
||||
}
|
||||
@@ -1032,6 +1046,14 @@ void CTroll::SwingHit(_bool& bPlayerHit)
|
||||
if (true == bPlayerHit) {
|
||||
continue;
|
||||
}
|
||||
|
||||
_vector vPos = pUserData->pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
|
||||
_float4 vPosfloat4 = {};
|
||||
|
||||
XMStoreFloat4(&vPosfloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_ATTACK_HIT, this, &vPosfloat4);
|
||||
|
||||
bPlayerHit = true;
|
||||
pUserData->pOwner->OnCollision(this,&tagCollInfo);
|
||||
} break;
|
||||
@@ -1084,6 +1106,12 @@ void CTroll::SlamHit(_bool& bPlayerHit)
|
||||
if (true == bPlayerHit) {
|
||||
continue;
|
||||
}
|
||||
_vector vPos = pUserData->pOwner->Get_Component<CCharacter_Controller>()->Get_Position();
|
||||
_float4 vPosfloat4 = {};
|
||||
|
||||
XMStoreFloat4(&vPosfloat4, vPos);
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_ATTACK_HIT, this, &vPosfloat4);
|
||||
bPlayerHit = true;
|
||||
pUserData->pOwner->OnCollision(this,&tagCollInfo);
|
||||
} break;
|
||||
|
||||
@@ -0,0 +1,181 @@
|
||||
#include "pch.h"
|
||||
#include "Troll_Throw.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
CTroll_Throw::CTroll_Throw(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CTroll_Throw::CTroll_Throw(const CTroll_Throw& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CTroll_Throw::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollThrow")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTroll_Throw::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"TrollThrow";
|
||||
|
||||
|
||||
m_fDuration = 3.5f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll_Throw::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CTroll_Throw::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CTroll_Throw::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTroll_Throw::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
_float4 vPos = *static_cast<_float4*>(pArg); // 위치 넘기기
|
||||
|
||||
CEffectParts* pRockPT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("NomalSmoke");
|
||||
|
||||
|
||||
pRockPT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&vPos) + XMVectorSet(0.f , 0.2f ,0.f, 0.f) );
|
||||
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMLoadFloat4(&vPos) + XMVectorSet(0.f, 0.2f, 0.f, 0.f));
|
||||
|
||||
pRockPT->Set_Visible(true);
|
||||
pSmoke->Set_Visible(true);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTroll_Throw::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTroll_Throw::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CTroll_Throw* CTroll_Throw::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CTroll_Throw* pInstance = new CTroll_Throw(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CTroll_Throw");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CTroll_Throw::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CTroll_Throw* pInstance = new CTroll_Throw(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CTroll_Throw");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CTroll_Throw::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
_int iIndex = CollisionCheck();
|
||||
|
||||
if (iIndex < 0)
|
||||
return;
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CTroll_Throw::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CTroll_Throw::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CTroll_Throw::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace Client
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, STUPEFY_SIDE, ACCIO_SIDE,
|
||||
|
||||
/*트롤*/
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, TROLL_SHOUT , TROLL_RUSH, TROLL_SELF_HIT,
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, TROLL_SHOUT , TROLL_RUSH, TROLL_SELF_HIT, TROLL_ATTACK_HIT , TROLL_THROW,
|
||||
|
||||
/*고블린*/
|
||||
GOBLIN_ATTACK, GOBILN_TELEPORT,
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CTroll_Attack final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CTroll_Attack(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CTroll_Attack(const CTroll_Attack& rhs);
|
||||
virtual ~CTroll_Attack() = 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 = {};
|
||||
|
||||
public:
|
||||
static CTroll_Attack* 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,47 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CTroll_Throw final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CTroll_Throw(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CTroll_Throw(const CTroll_Throw& rhs);
|
||||
virtual ~CTroll_Throw() = 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 = {};
|
||||
|
||||
public:
|
||||
static CTroll_Throw* 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
|
||||
BIN
Binary file not shown.
Binary file not shown.
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.
Binary file not shown.
@@ -64,7 +64,7 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
||||
return;
|
||||
#endif // 기무리
|
||||
#ifdef 진우
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT))))
|
||||
return;
|
||||
#endif // 진우
|
||||
|
||||
|
||||
@@ -689,7 +689,7 @@ HRESULT CRanrok::Render_Blend()
|
||||
{
|
||||
RENDER eCurrentPass = m_pGameInstance->Get_CurrentRenderPass();
|
||||
|
||||
if (m_pEtherInfo[i]->Get_RenderOrder() != eCurrentPass)
|
||||
if (m_pEtherInfo[i]->Get_RenderOrder() != eCurrentPass || m_pEtherInfo[i]->Get_Visible() == false)
|
||||
continue;
|
||||
|
||||
if (FAILED(m_pEther_Shader->Bind_Matrices("g_OffsetMatrix",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "TrailObject.h"
|
||||
#include "EditEffect.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
#include "Ranrok_EtherInfo.h"
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
@@ -907,6 +908,11 @@ void CRanrok::Behavior_DeadEnter()
|
||||
m_pLeftSmoke->Set_Visible(false);
|
||||
m_pRightSmoke->Set_Visible(false);
|
||||
|
||||
for (size_t i = 0; i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i++)
|
||||
{
|
||||
m_pEtherInfo[i]->Set_Visible(false);
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user