@@ -163,6 +163,10 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Avadakedavra.h" />
|
||||
<ClInclude Include="..\Public\AvadakedavraSide.h" />
|
||||
<ClInclude Include="..\Public\BroomRace_Bubble.h" />
|
||||
<ClInclude Include="..\Public\HitScreen.h" />
|
||||
<ClInclude Include="..\Public\PotionScreen.h" />
|
||||
<ClInclude Include="..\Public\PotionBroken.h" />
|
||||
<ClInclude Include="..\Public\CamPosition_WorldLook.h" />
|
||||
<ClInclude Include="..\Public\Reparo.h" />
|
||||
<ClInclude Include="..\Public\Elf.h" />
|
||||
@@ -476,6 +480,10 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Avadakedavra.cpp" />
|
||||
<ClCompile Include="..\Private\AvadakedavraSide.cpp" />
|
||||
<ClCompile Include="..\Private\BroomRace_Bubble.cpp" />
|
||||
<ClCompile Include="..\Private\HitScreen.cpp" />
|
||||
<ClCompile Include="..\Private\PotionScreen.cpp" />
|
||||
<ClCompile Include="..\Private\PotionBroken.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition_WorldLook.cpp" />
|
||||
<ClCompile Include="..\Private\Reparo.cpp" />
|
||||
<ClCompile Include="..\Private\Elf.cpp" />
|
||||
|
||||
@@ -959,6 +959,18 @@
|
||||
<ClInclude Include="..\Public\TriggerBox.h">
|
||||
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\PotionScreen.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Potion\PotionScreen</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\PotionBroken.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\Potion\PotionBroken</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\HitScreen.h">
|
||||
<Filter>02.GameObjects\Effect\Effects\HitScreen</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\BroomRace_Bubble.h">
|
||||
<Filter>02.GameObjects\Effect\BroomRace\Bubble</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CamPosition_WorldLook.h">
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter>
|
||||
</ClInclude>
|
||||
@@ -1980,6 +1992,24 @@
|
||||
<Filter Include="04.Mechanic\State\Focus\Spell_Learning">
|
||||
<UniqueIdentifier>{26d7f6f4-0b5f-4b9a-9cef-df91b8a485bf}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Potion">
|
||||
<UniqueIdentifier>{1f2c5d56-c8a8-458e-a48c-444d7c885cf3}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Potion\PotionBroken">
|
||||
<UniqueIdentifier>{3f02d29d-759e-4572-9439-ec79909273e5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\Potion\PotionScreen">
|
||||
<UniqueIdentifier>{6fa4085d-e9eb-47c3-b384-2aa92baf1d55}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\HitScreen">
|
||||
<UniqueIdentifier>{8c62c8f3-d8ba-4a6d-99bd-6270333ea0bb}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\BroomRace">
|
||||
<UniqueIdentifier>{67efb2e4-26f6-41b5-a754-eddf91f1d528}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\BroomRace\Bubble">
|
||||
<UniqueIdentifier>{ce57978a-c208-4fe6-bbfd-8f582c20ff07}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook">
|
||||
<UniqueIdentifier>{b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -2865,6 +2895,18 @@
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp">
|
||||
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\PotionScreen.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Potion\PotionScreen</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\PotionBroken.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Potion\PotionBroken</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\HitScreen.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\HitScreen</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\BroomRace_Bubble.cpp">
|
||||
<Filter>02.GameObjects\Effect\BroomRace\Bubble</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\State_Parry.cpp">
|
||||
|
||||
@@ -0,0 +1,194 @@
|
||||
#include "pch.h"
|
||||
#include "BroomRace_Bubble.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "Goblin_BattleAxe.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
CBroomRace_Bubble::CBroomRace_Bubble(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CBroomRace_Bubble::CBroomRace_Bubble(const CBroomRace_Bubble& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CBroomRace_Bubble::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/BroomBubble")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBroomRace_Bubble::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_fDuration = 99999.f;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBroomRace_Bubble::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CBroomRace_Bubble::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CBroomRace_Bubble::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
CEffectParts* pBubble = Get_PartObject<CEffectParts>("Bubble");
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = pBubble->Get_WorldPostion();
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CBroomRace_Bubble::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
_float4* pPos = static_cast<_float4*>(pArg);
|
||||
|
||||
m_vStartPos = *pPos;
|
||||
|
||||
_vector vPosVector = XMLoadFloat4(pPos);
|
||||
|
||||
CEffectParts* pBubble = Get_PartObject<CEffectParts>("Bubble");
|
||||
CEffectParts* pBubble_Distortion = Get_PartObject<CEffectParts>("Bubble_Distortion");
|
||||
CEffectParts* pHit_Bubble = Get_PartObject<CEffectParts>("Hit_Bubble");
|
||||
|
||||
pBubble->Set_Visible(true);
|
||||
pBubble_Distortion->Set_Visible(true);
|
||||
|
||||
pBubble->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosVector);
|
||||
pBubble_Distortion->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosVector);
|
||||
pHit_Bubble->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosVector);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBroomRace_Bubble::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBroomRace_Bubble::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CBroomRace_Bubble* CBroomRace_Bubble::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CBroomRace_Bubble* pInstance = new CBroomRace_Bubble(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CBroomRace_Bubble");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CBroomRace_Bubble::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CBroomRace_Bubble* pInstance = new CBroomRace_Bubble(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CBroomRace_Bubble");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CBroomRace_Bubble::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
|
||||
CEffectParts* pBubble = Get_PartObject<CEffectParts>("Bubble");
|
||||
CEffectParts* pBubble_Distortion = Get_PartObject<CEffectParts>("Bubble_Distortion");
|
||||
|
||||
pBubble->Set_Visible(false);
|
||||
pBubble_Distortion->Set_Visible(false);
|
||||
|
||||
m_fDuration = 3.f;
|
||||
m_fAccTime = 0.f;
|
||||
|
||||
CEffectParts* pHit_Bubble = Get_PartObject<CEffectParts>("Hit_Bubble");
|
||||
|
||||
pHit_Bubble->Set_Visible(true);
|
||||
|
||||
}
|
||||
|
||||
void CBroomRace_Bubble::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CBroomRace_Bubble::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CBroomRace_Bubble::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,10 @@
|
||||
#include "Transformation.h"
|
||||
#include "Avadakedavra.h"
|
||||
#include "Reparo.h"
|
||||
#include "PotionBroken.h"
|
||||
#include "PotionScreen.h"
|
||||
#include "HitScreen.h"
|
||||
#include "BroomRace_Bubble.h"
|
||||
|
||||
#include "Goblin_ProtegoHit.h"
|
||||
#include "Duelist_ProtegoHit.h"
|
||||
@@ -522,6 +526,42 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::POTION_BROKEN, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CPotionBroken* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CPotionBroken>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_POTION, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CPotionScreen* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CPotionScreen>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::SCREEN_HIT, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CHitScreen* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CHitScreen>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BROOM_RACE_BUBBLE, 20, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBroomRace_Bubble* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CBroomRace_Bubble>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -84,6 +84,10 @@ HRESULT CGoblin_Assassin::Initialize(void* pArg)
|
||||
|
||||
m_pModelCom->Set_DisableRootMotionScale(true);
|
||||
|
||||
m_fRimStrength = 2.3f;
|
||||
m_fRimPower = 2.3f;
|
||||
m_vRimColor = _float4(0.f , 0.f , 0.f , 0.5f);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -144,6 +148,8 @@ void CGoblin_Assassin::Update(_float fTimeDelta)
|
||||
//m_pDetection->Set_Active(m_bDetection);
|
||||
|
||||
Update_Disolve(fTimeDelta, 0.8f);
|
||||
|
||||
m_pMotionTrailCom->Update_Capture(fTimeDelta);
|
||||
}
|
||||
|
||||
void CGoblin_Assassin::Late_Update(_float fTimeDelta)
|
||||
@@ -163,12 +169,30 @@ void CGoblin_Assassin::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
||||
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Assassin::Render()
|
||||
{
|
||||
RENDER ePass = m_pGameInstance->Get_CurrentRenderPass();
|
||||
|
||||
if(ePass == RENDER::BLEND)
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
if (m_bVisible == false)
|
||||
return S_OK;
|
||||
|
||||
@@ -237,12 +261,6 @@ HRESULT CGoblin_Assassin::Render()
|
||||
m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
|
||||
}
|
||||
|
||||
if (m_bMotionTrail) {
|
||||
if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -352,6 +370,17 @@ HRESULT CGoblin_Assassin::Render_Shadow(SHADOW eType)
|
||||
HRESULT CGoblin_Assassin::Render_MotionTrail(ID3D11ShaderResourceView* pSRV)
|
||||
{
|
||||
|
||||
if(FAILED(m_pShaderCom->Bind_RawValue("g_fRimStrength" , &m_fRimLightStrength , sizeof(_float))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fRimPower", &m_fRimPower, sizeof(_float))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vRimColor", &m_vRimColor, sizeof(_float4))))
|
||||
return E_FAIL;
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
@@ -364,7 +393,7 @@ HRESULT CGoblin_Assassin::Render_MotionTrail(ID3D11ShaderResourceView* pSRV)
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom)))
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::RIMLIGHT))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pContext->VSSetShaderResources(26, 1, &pSRV);
|
||||
@@ -720,7 +749,7 @@ void CGoblin_Assassin::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
|
||||
if (GUI::CollapsingHeader("Goblin")) {
|
||||
if (GUI::CollapsingHeader("Goblin_Assassin")) {
|
||||
GUI::Checkbox("LookAt", &m_bLookAt);
|
||||
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
@@ -744,6 +773,15 @@ void CGoblin_Assassin::Describe_Entity()
|
||||
GUI::Text("Length %.2f", m_fLength);
|
||||
|
||||
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
|
||||
|
||||
|
||||
GUI::DragFloat("RimStrength", &m_fRimStrength , 0.01f);
|
||||
GUI::DragFloat("RimPower", &m_fRimPower, 0.01f);
|
||||
GUI::ColorEdit4("RimColor", (_float*)(&m_vRimColor));
|
||||
GUI::DragFloat("MotionTrailTime", &m_vCaptureTimer.y);
|
||||
|
||||
m_pMotionTrailCom->Describe_Entity();
|
||||
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -302,8 +302,12 @@ void CGoblin_Assassin::Behavior_SlashEnter()
|
||||
HRESULT CGoblin_Assassin::Behavior_SlashExitCheck(_float fTimeDelta)
|
||||
{
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
|
||||
|
||||
|
||||
if (fRatio >= 0.8f)
|
||||
{
|
||||
m_pGoblinSpector->Spector_Trail_Visible(false);
|
||||
Get_PartObject<CGoblin_Sword>("Goblin_Sword_L")->Set_CanTakeDamage(false);
|
||||
Get_PartObject<CGoblin_Sword>("Goblin_Sword_R")->Set_CanTakeDamage(false);
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
|
||||
@@ -50,7 +50,7 @@ HRESULT CGoblin_Attack::Initialize(void* pArg)
|
||||
SAFE_ADDREF(m_pPT1);
|
||||
SAFE_ADDREF(m_pPT2);
|
||||
SAFE_ADDREF(m_pAttack_Trail);
|
||||
m_fDuration = 2.f;
|
||||
m_fDuration = 4.f;
|
||||
|
||||
|
||||
m_Events.emplace(1.2f, [&]() {
|
||||
@@ -87,6 +87,7 @@ void CGoblin_Attack::Update(_float fTimeDelta)
|
||||
|
||||
m_pAttack_Trail->Trail_Update(BoneMat, fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_Attack::Late_Update(_float fTimeDelta)
|
||||
@@ -122,6 +123,8 @@ HRESULT CGoblin_Attack::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_pPT2->Set_Visible(true);
|
||||
m_pAttack_Trail->Set_Visible(true);
|
||||
m_pAttack_Trail->SetDissolve(false);
|
||||
m_pAttack_Trail->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
#include "pch.h"
|
||||
#include "HitScreen.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "Goblin_BattleAxe.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
CHitScreen::CHitScreen(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CHitScreen::CHitScreen(const CHitScreen& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CHitScreen::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/HitScreen")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CHitScreen::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_fDuration = 4.f;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CHitScreen::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CHitScreen::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CHitScreen::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CHitScreen::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CEffectParts* pHit_Screen_FX = Get_PartObject<CEffectParts>("Hit_Screen_FX");
|
||||
|
||||
pHit_Screen_FX->Set_Visible(true);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CHitScreen::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CHitScreen::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CHitScreen* CHitScreen::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CHitScreen* pInstance = new CHitScreen(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CHitScreen");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CHitScreen::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CHitScreen* pInstance = new CHitScreen(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CHitScreen");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CHitScreen::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CHitScreen::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CHitScreen::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CHitScreen::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,15 +61,22 @@ void CItem_Potion::Late_Update(_float fTimeDelta)
|
||||
if (m_bVisible)
|
||||
{
|
||||
m_fTimer += fTimeDelta;
|
||||
if (m_fTimer >= 1.f && m_bOnce == false) {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::SCREEN_POTION , this);
|
||||
m_bOnce = true;
|
||||
}
|
||||
if (m_fTimer >= 1.6f) {
|
||||
m_bAttach = false;
|
||||
}
|
||||
|
||||
if (m_fTimer >= 3.f) {
|
||||
m_fTimer = 0.f;
|
||||
m_bVisible = false;
|
||||
m_bAttach = true;
|
||||
m_bOnce = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bAttach)
|
||||
{
|
||||
m_bHit = false;
|
||||
@@ -189,12 +196,21 @@ void CItem_Potion::Check_GroundCollision()
|
||||
|
||||
void CItem_Potion::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
m_bHit = false;
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::POTION_BROKEN, this);
|
||||
m_fTimer = 0.f;
|
||||
m_bVisible = false;
|
||||
m_bAttach = true;
|
||||
m_bOnce = false;
|
||||
}
|
||||
|
||||
void CItem_Potion::Set_Attach(_bool Attach)
|
||||
{
|
||||
m_bAttach = Attach;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -211,6 +211,10 @@
|
||||
#include "Avadakedavra.h"
|
||||
#include "Goblin_Teleport.h"
|
||||
|
||||
#include "PotionBroken.h"
|
||||
#include "PotionScreen.h"
|
||||
#include "HitScreen.h"
|
||||
#include "BroomRace_Bubble.h"
|
||||
|
||||
#include "TrollSwing.h"
|
||||
#include "Troll_Nomal_Smoke.h"
|
||||
@@ -2947,7 +2951,21 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CScreen_Wind>(g_iStaticLevel, CScreen_Wind::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CPotionBroken>(g_iStaticLevel, CPotionBroken::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CPotionScreen>(g_iStaticLevel, CPotionScreen::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CHitScreen>(g_iStaticLevel, CHitScreen::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBroomRace_Bubble>(g_iStaticLevel, CBroomRace_Bubble::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEffectPool>(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -4117,8 +4135,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"));
|
||||
CMotion_Trail::MODELCAPTURE_DESC Desc{};
|
||||
Desc.fMaxCaptureLifeTime = 2.f;
|
||||
Desc.iMaximumCapture = 4;
|
||||
Desc.fMaxCaptureLifeTime = 0.3f;
|
||||
Desc.iMaximumCapture = 16;
|
||||
Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
|
||||
return E_FAIL;
|
||||
@@ -4128,8 +4146,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
{
|
||||
CModel* pModelOriginal = (CModel*)m_pGameInstance->Find_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"));
|
||||
CMotion_Trail::MODELCAPTURE_DESC Desc{};
|
||||
Desc.fMaxCaptureLifeTime = 2.f;
|
||||
Desc.iMaximumCapture = 4;
|
||||
Desc.fMaxCaptureLifeTime = 0.7f;
|
||||
Desc.iMaximumCapture = 16;
|
||||
Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -50,6 +50,7 @@ HRESULT CMageSide::Initialize(void* pArg)
|
||||
SAFE_ADDREF(m_pMage_PT);
|
||||
SAFE_ADDREF(m_pMage_Fire);
|
||||
SAFE_ADDREF(m_pMage_Trail);
|
||||
SAFE_ADDREF(m_pMage_Fire);
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
Load_KeyFrame();
|
||||
|
||||
#if 진우
|
||||
m_isDebugMode = true; // 디버그 무적 모드
|
||||
m_isDebugMode = false; // 디버그 무적 모드
|
||||
#endif
|
||||
#if 나
|
||||
m_isDebugMode = true; // 디버그 무적 모드
|
||||
|
||||
@@ -248,6 +248,9 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
||||
Get_PartObject<CItem_Potion>()->Set_Visible(true);
|
||||
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second);
|
||||
|
||||
|
||||
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_B)) {
|
||||
m_pFSM->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
@@ -1940,8 +1943,9 @@ void CPlayer::Behavior_ParryEnter()
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject<CWand>());
|
||||
m_pGameInstance->SlowMotion(0.4f, 0.2f); },
|
||||
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY_SIDE, Get_PartObject<CWand>());
|
||||
m_pGameInstance->SlowMotion(0.4f, 0.2f); },
|
||||
0.01f);
|
||||
|
||||
|
||||
@@ -2013,6 +2017,8 @@ void CPlayer::Behavior_HitEnter()
|
||||
|
||||
}
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::SCREEN_HIT, this);
|
||||
|
||||
ProcessHitBehavior();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
#include "pch.h"
|
||||
#include "PotionBroken.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "Goblin_BattleAxe.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
CPotionBroken::CPotionBroken(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CPotionBroken::CPotionBroken(const CPotionBroken& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CPotionBroken::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/PotionEffect")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CPotionBroken::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_fDuration = 5.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CPotionBroken::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CPotionBroken::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CPotionBroken::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CPotionBroken::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CEffectParts* pPotionEffect = Get_PartObject<CEffectParts>("PotionEffect");
|
||||
CEffectParts* pPotionSmoke = Get_PartObject<CEffectParts>("PotionSmoke");
|
||||
|
||||
_vector vPosVector = m_pOwner->Get_Component<CTransform>()->Get_State(STATE::POSITION);
|
||||
|
||||
pPotionEffect->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosVector);
|
||||
pPotionSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPosVector);
|
||||
|
||||
pPotionEffect->Set_Visible(true);
|
||||
pPotionSmoke->Set_Visible(true);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPotionBroken::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPotionBroken::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CPotionBroken* CPotionBroken::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CPotionBroken* pInstance = new CPotionBroken(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CPotionBroken");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CPotionBroken::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CPotionBroken* pInstance = new CPotionBroken(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CPotionBroken");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CPotionBroken::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CPotionBroken::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CPotionBroken::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CPotionBroken::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
#include "pch.h"
|
||||
#include "PotionScreen.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "Goblin_BattleAxe.h"
|
||||
#include "TrailObject.h"
|
||||
|
||||
CPotionScreen::CPotionScreen(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CPotionScreen::CPotionScreen(const CPotionScreen& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CPotionScreen::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/PotionScreen")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CPotionScreen::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_fDuration = 4.f;
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CPotionScreen::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CPotionScreen::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CPotionScreen::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CPotionScreen::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CEffectParts* pPotion_ScreenFX = Get_PartObject<CEffectParts>("Potion_ScreenFX");
|
||||
|
||||
pPotion_ScreenFX->Set_Visible(true);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPotionScreen::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPotionScreen::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CPotionScreen* CPotionScreen::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CPotionScreen* pInstance = new CPotionScreen(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CPotionScreen");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CPotionScreen::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CPotionScreen* pInstance = new CPotionScreen(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CPotionScreen");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CPotionScreen::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CPotionScreen::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CPotionScreen::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CPotionScreen::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -131,10 +131,13 @@ HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
if (pWand == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
class CEffectParts* pBlurMesh = Get_PartObject<CEffectParts>("BlurMesh");
|
||||
|
||||
m_pWandParticle->Set_Visible(true);
|
||||
m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고
|
||||
|
||||
m_pWandLight->Set_Visible(true);
|
||||
pBlurMesh->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
m_pWandTrail->Set_Visible(true);
|
||||
@@ -144,6 +147,7 @@ HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
|
||||
|
||||
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
|
||||
pBlurMesh->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_Owner()->Get_Component<CTransform>()->Get_State(STATE::POSITION));
|
||||
|
||||
m_pWandTrail->SetDissolve(false);
|
||||
|
||||
|
||||
@@ -797,9 +797,8 @@ void CTroll::Behavior_DeadEnter()
|
||||
m_pRigidBody->SetActive(false);
|
||||
m_pCharacter_Controller->SetActive(false);
|
||||
|
||||
m_pTroll_Particle->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f));
|
||||
m_pTroll_Particle2->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f));
|
||||
|
||||
m_pTroll_Particle->Set_Visible(false);
|
||||
m_pTroll_Particle2->Set_Visible(false);
|
||||
m_pLeft_Smoke->Set_Visible(false);
|
||||
m_pRight_Smoke->Set_Visible(false);
|
||||
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CBroomRace_Bubble final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CBroomRace_Bubble(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CBroomRace_Bubble(const CBroomRace_Bubble& rhs);
|
||||
virtual ~CBroomRace_Bubble() = 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_pPT1 = { nullptr };
|
||||
class CEffectParts* m_pPT2 = { nullptr };
|
||||
class CTrailObject* m_pAttack_Trail = { nullptr };
|
||||
const _float4x4* m_vMat = { nullptr };
|
||||
|
||||
_bool m_isTrailEnd = {};
|
||||
_float4x4 m_TrailStopMat = {};
|
||||
|
||||
public:
|
||||
static CBroomRace_Bubble* 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
|
||||
@@ -33,7 +33,7 @@ namespace Client
|
||||
MI_Troll_Club_DAENMROSRXO_To
|
||||
, OUTLINE_READ, MI_DANSROMRO_ToSRO, DragonAuraPass, DragonEtherealEyesPass,
|
||||
DragonEtherealWingsPass, DragonWingsPass, DragonBodyPass, DragonRedHotPass, DragonPinkHotPass, DragonYellowHotPass,
|
||||
PLAYER_HAIR_DAOTHV_ToSRO, PLAYER_Suit_DSRON_ToSRO, PLAYER_EyeLash_DAOTHV_ToSRO, PLAYER_Eye_ToSRO, PLAYER_Robe_ToMRO, SHADOW, SHADOW_LEGACY
|
||||
PLAYER_HAIR_DAOTHV_ToSRO, PLAYER_Suit_DSRON_ToSRO, PLAYER_EyeLash_DAOTHV_ToSRO, PLAYER_Eye_ToSRO, PLAYER_Robe_ToMRO, SHADOW, SHADOW_LEGACY, RIMLIGHT
|
||||
, END
|
||||
};
|
||||
enum class UI_STATE {
|
||||
@@ -60,16 +60,16 @@ namespace Client
|
||||
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, LIGHTNING,
|
||||
|
||||
/* PROPS */
|
||||
BOX_SPLESH, CHAIL_SPLESH, BARRAL_SPLASH,
|
||||
BOX_SPLESH, CHAIL_SPLESH, BARRAL_SPLASH, POTION_BROKEN, BROOM_RACE_BUBBLE,
|
||||
|
||||
/*상태 이펙트*/
|
||||
STUN, BLINK,
|
||||
STUN, BLINK,
|
||||
|
||||
/*스크린 이펙트*/
|
||||
SCREEN_WIND,
|
||||
SCREEN_WIND, SCREEN_HIT , SCREEN_POTION,
|
||||
|
||||
/* 히트 이펙트 */
|
||||
PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT,
|
||||
PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT,
|
||||
|
||||
/*사이드*/
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, STUPEFY_SIDE, ACCIO_SIDE,
|
||||
|
||||
@@ -25,7 +25,8 @@ class CCutSceneInfo final : public CBase
|
||||
void Active_Event(_string& strKey);
|
||||
HRESULT DeActive_ActiveEvent(_string& strKey);
|
||||
void Load_Events(pair<_string, TimeLine*>& pairTimeLine);
|
||||
HRESULT Clear_AllEvents();
|
||||
HRESULT Clear_AllEvents();
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
@@ -84,8 +84,8 @@ class CGoblin_Assassin final : public CMonster
|
||||
_float m_fMoveTime = {};
|
||||
_bool m_bFirstMove = {};
|
||||
_bool m_bPos = {};
|
||||
_float m_fAccel = { 3.f};
|
||||
_float m_fTargetSpeed = {60.f};
|
||||
_float m_fAccel = { 3.f };
|
||||
_float m_fTargetSpeed = { 60.f };
|
||||
_float m_fSpeed = {};
|
||||
_bool m_bAir = {};
|
||||
_float m_fGravityAmount = {};
|
||||
@@ -98,7 +98,11 @@ class CGoblin_Assassin final : public CMonster
|
||||
_float m_fMoveDecisionLimit = 1.2f;
|
||||
|
||||
_float4 m_vDashDir = {};
|
||||
_float2 m_vCaptureTimer = { 0.f, 0.1f };
|
||||
_float2 m_vCaptureTimer = { 0.f, 0.01f };
|
||||
|
||||
_float m_fRimStrength = { 1.f};
|
||||
_float m_fRimPower = { 0.f };
|
||||
_float4 m_vRimColor = {};
|
||||
|
||||
void Behavior_IdleEnter();
|
||||
HRESULT Behavior_IdleExitCheck();
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CHitScreen final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CHitScreen(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CHitScreen(const CHitScreen& rhs);
|
||||
virtual ~CHitScreen() = 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_pPT1 = { nullptr };
|
||||
class CEffectParts* m_pPT2 = { nullptr };
|
||||
class CTrailObject* m_pAttack_Trail = { nullptr };
|
||||
const _float4x4* m_vMat = { nullptr };
|
||||
|
||||
_bool m_isTrailEnd = {};
|
||||
_float4x4 m_TrailStopMat = {};
|
||||
|
||||
public:
|
||||
static CHitScreen* 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
|
||||
@@ -45,6 +45,7 @@ class CItem_Potion final : public CPartObject
|
||||
_bool m_bAttach = { true };
|
||||
_float m_fTimer = {};
|
||||
_bool m_bHit = {};
|
||||
_bool m_bOnce = {};
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CPotionBroken final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CPotionBroken(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CPotionBroken(const CPotionBroken& rhs);
|
||||
virtual ~CPotionBroken() = 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 CPotionBroken* 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,53 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CPotionScreen final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CPotionScreen(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CPotionScreen(const CPotionScreen& rhs);
|
||||
virtual ~CPotionScreen() = 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_pPT1 = { nullptr };
|
||||
class CEffectParts* m_pPT2 = { nullptr };
|
||||
class CTrailObject* m_pAttack_Trail = { nullptr };
|
||||
const _float4x4* m_vMat = { nullptr };
|
||||
|
||||
_bool m_isTrailEnd = {};
|
||||
_float4x4 m_TrailStopMat = {};
|
||||
|
||||
public:
|
||||
static CPotionScreen* 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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
@@ -79,6 +79,11 @@ matrix g_BoneMatrices[256];
|
||||
matrix g_PrevBoneMatrices[256];
|
||||
int g_RobeBoneMask[256];
|
||||
|
||||
float g_fRimStrength;
|
||||
float g_fRimPower;
|
||||
float4 g_vRimColor;
|
||||
float2 g_vMotionTrail_LifeTime;
|
||||
|
||||
struct VS_IN_MESH
|
||||
{
|
||||
float3 vPosition : POSITION;
|
||||
@@ -1387,6 +1392,21 @@ PS_OUT_SHADOW PS_MAIN_SHADOW(PS_IN_SHADOW In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
PS_OUT_BLEND PS_RIMLIGHT(PS_IN In)
|
||||
{
|
||||
PS_OUT_BLEND Out = (PS_OUT_BLEND) 0;
|
||||
|
||||
|
||||
float4 vRimColor = float4(g_vRimColor.xyz * GetRimLight(g_vCamPosition.xyz, In.vPosition.xyz, In.vNormal, g_fRimPower, g_fRimStrength), g_vRimColor.a);
|
||||
|
||||
vRimColor.a *= g_vMotionTrail_LifeTime.x / g_vMotionTrail_LifeTime.y;
|
||||
|
||||
Out.vAlbedo = vRimColor;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
|
||||
technique11 DefaultTechnique
|
||||
{
|
||||
pass EYELASH_DAOTHV_ToSRO // 0
|
||||
@@ -1660,4 +1680,13 @@ technique11 DefaultTechnique
|
||||
VertexShader = compile vs_5_0 VS_MAIN_SHADOW_LEGACY();
|
||||
PixelShader = compile ps_5_0 PS_MAIN_SHADOW();
|
||||
}
|
||||
|
||||
pass RimLight // 30
|
||||
{
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Effect, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
PixelShader = compile ps_5_0 PS_RIMLIGHT();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,10 @@ CMotion_Trail::CMotion_Trail(const CMotion_Trail& rhs)
|
||||
: CComponent(rhs),
|
||||
m_pClearBuffer(rhs.m_pClearBuffer),
|
||||
m_CaptureInfos(rhs.m_CaptureInfos),
|
||||
m_RemainingInfos(rhs.m_RemainingInfos)
|
||||
m_RemainingInfos(rhs.m_RemainingInfos),
|
||||
m_fMaxCaptureLifeTime(rhs.m_fMaxCaptureLifeTime),
|
||||
m_iMaximumCapture(rhs.m_iMaximumCapture),
|
||||
m_iNumBones(rhs.m_iMaximumCapture)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -66,6 +69,12 @@ HRESULT CMotion_Trail::Render(CShader* pShader)
|
||||
if (FAILED(pShader->Bind_Matrix("g_WorldMatrix", &pInfo->WorldMatrix))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(pShader->Bind_RawValue("g_vMotionTrail_LifeTime", &pInfo->vCaptureLifeTime , sizeof(_float2))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//if (FAILED(pShader->Bind_RawValue("g_LifeTime", &fRatio, sizeof(_float)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
@@ -229,6 +238,21 @@ void CMotion_Trail::Free()
|
||||
#ifdef _DEBUG
|
||||
void CMotion_Trail::Describe_Entity()
|
||||
{
|
||||
|
||||
if (GUI::TreeNode("Motion Trail"))
|
||||
{
|
||||
|
||||
GUI::DragFloat("m_fMaxCaptureLifeTime", &m_fMaxCaptureLifeTime);
|
||||
|
||||
_int iMaximumCapture = m_iMaximumCapture;
|
||||
if (GUI::DragInt("m_iMaximumCapture", &iMaximumCapture))
|
||||
{
|
||||
m_iMaximumCapture = iMaximumCapture;
|
||||
}
|
||||
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user