diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index c63e31d27..9d4ab8cb3 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -191,7 +191,11 @@ call Update_Resources.bat
+
+
+
+
@@ -223,6 +227,7 @@ call Update_Resources.bat
+
@@ -323,6 +328,7 @@ call Update_Resources.bat
+
@@ -489,6 +495,9 @@ call Update_Resources.bat
+
+
+
@@ -520,6 +529,7 @@ call Update_Resources.bat
+
@@ -625,6 +635,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 7df46f555..e970fcc8c 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -905,6 +905,25 @@
02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide
+
+ 02.GameObjects\Effect\Effects\Protego\ProtegoHit
+
+
+ 02.GameObjects\Effect\MonsterEffect\Goblin_Protego\Goblin_ProtegoHit
+
+
+ 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit
+
+
+ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop
+
+
+ 04.Mechanic\State\State_Combat\State_Block
+
+
+ 02.GameObjects\NPC\Hostile\Monster\Ranrok
+
+
@@ -1878,6 +1897,18 @@
{f2ddb6fa-89b6-4322-912e-61e0ce79278c}
+
+ {c63abdad-13ae-43af-812a-25bcd5f7064b}
+
+
+ {696df72a-c0ad-483d-9fb3-b5e053696457}
+
+
+ {75632dfe-2808-4ce3-abc1-8020563d3a6e}
+
+
+ {c0fdb122-503b-47f0-a544-90d153464c9a}
+
@@ -2736,6 +2767,19 @@
02.GameObjects\Effect\Effects\NomalJap\Duelist_JapSide
+
+ 02.GameObjects\Effect\Effects\Protego\ProtegoHit
+
+
+ 02.GameObjects\Effect\MonsterEffect\Goblin_Protego\Goblin_ProtegoHit
+
+
+ 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit
+
+
+ 04.Mechanic\State\State_Combat\State_Block
+
+
diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp
index bf5b7331b..f577c9168 100644
--- a/Jusin154_Team3D/Client/Private/Broom.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom.cpp
@@ -143,6 +143,9 @@ void CBroom::Update(_float fTimeDelta)
void CBroom::Late_Update(_float fTimeDelta)
{
+ if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
+ return;
+ }
__super::Late_Update(fTimeDelta);
if (m_bRide == true && m_pWindEffect != nullptr)
diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
index f13b319b6..970fd4077 100644
--- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
@@ -53,6 +53,24 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta)
break;
case ENUM_CLASS(RACE_STATE::FINISH):
break;
+ case ENUM_CLASS(RACE_STATE::END):
+ {
+ for (auto& racer : m_Racers)
+ {
+ if (racer.pAI)
+ {
+ racer.pAI->Get_Broom()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ }
+ if (racer.pRacer)
+ {
+ if (m_pGameInstance->Key_Up(DIK_ESCAPE))
+ {
+ m_bRaceEnd = true;
+ }
+ }
+ }
+ }
+ break;
}
}
@@ -61,70 +79,6 @@ void CBroomRaceManager::Update(_float fTimeDelta)
{
__super::Update(fTimeDelta);
- /*if (m_pGameInstance->Key_Up(DIK_PGUP))
- {
- m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
- const _float SPAWN_DISTANCE = 80.f;
-
- if (FAILED(Load_RaceRing()))
- {
- MSG_BOX("Failed Load RaceRing");
- }
- CBroomRacerAI::RacerDesc Desc = {};
- for (_uint i = 1; i < 4; i++)
- {
- Desc.pRacerManager = this;
- Desc.iIndex = i;
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc)))
- return;
- }
- m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object()->Set_RaceInfo();
-
- for (auto& racer : m_Racers)
- {
- CTransform* pRingTransform =
- m_pRaceRings[0]->Get_Component();
-
- _vector ringPos = pRingTransform->Get_State(STATE::POSITION);
- _vector ringLook = pRingTransform->Get_State(STATE::RIGHT);
- ringLook = XMVector3Normalize(ringLook);
-
- _vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE;
-
- if (racer.pAI)
- {
- CTransform* pTransform =
- racer.pAI->Get_Component();
- _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
- spawnPos.m128_f32[2] += fRand;
-
- pTransform->Set_State(STATE::POSITION, spawnPos);
- pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
-
- racer.pAI->Get_Broom()->Set_Move(false);
- }
- else if (racer.pRacer)
- {
- CTransform* pTransform =
- racer.pRacer->Get_Component();
- pTransform->Set_State(STATE::POSITION, spawnPos);
- pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
- racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
- racer.pRacer->Get_Broom()->Set_Move(false);
- }
- }
- }
-
- if (m_pGameInstance->Key_Up(DIK_PGDN))
- {
- if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY))
- {
- m_pInfoInstance->Event_CallBack(TEXT("Ready_Race"));
- m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN);
- }
- }*/
-
-
if (m_bRaceReady == true)
{
m_fRedayTime += fTimeDelta;
@@ -153,10 +107,33 @@ void CBroomRaceManager::Update(_float fTimeDelta)
m_pInfoInstance->Event_CallBack(TEXT("RaceEnd"));
m_iCount = 3;
m_bRaceStart = false;
+ m_eRaceState = ENUM_CLASS(RACE_STATE::END);
}
}
}
+ if (m_bRaceEnd) {
+ m_fDelay += fTimeDelta;
+ for (auto& racer : m_Racers) {
+ if (racer.pRacer) {
+ if (m_fDelay >= 1.f) {
+ racer.pRacer->Get_Broom()->Set_Ride(false);
+
+ racer.pRacer->Get_Component()->Change_State(FSMSTATE::IDLE);
+
+ CTransform* pTransform = racer.pRacer->Get_Component();
+ CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
+ pCharacter->Set_Position(XMLoadFloat4(&m_OriginPos));
+ pTransform->Set_State(STATE::POSITION, XMLoadFloat4(&m_OriginPos));
+ m_bRaceEnd = false;
+ m_fDelay = 0.f;
+ }
+ }
+ }
+ }
+
+
+
#ifdef _DEBUG
//Describe_Entity();
#endif // _DEBUG
@@ -236,6 +213,7 @@ void CBroomRaceManager::Free()
void CBroomRaceManager::Describe_Entity()
{
+
//if (GUI::Button("Race Start"))
//{
m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
@@ -260,50 +238,67 @@ void CBroomRaceManager::Describe_Entity()
CTransform* pRingTransform =
m_pRaceRings[0]->Get_Component();
- _vector ringPos = pRingTransform->Get_State(STATE::POSITION);
- _vector ringLook = pRingTransform->Get_State(STATE::RIGHT);
- ringLook = XMVector3Normalize(ringLook);
+ //_vector ringPos = pRingTransform->Get_State(STATE::POSITION);
+ //_vector ringLook = pRingTransform->Get_State(STATE::RIGHT);
+ //ringLook = XMVector3Normalize(ringLook);
- _vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE;
+ //_vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE;
- if (racer.pAI)
- {
- CTransform* pTransform =
- racer.pAI->Get_Component();
- _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
- spawnPos.m128_f32[0] += fRand;
+ //if (racer.pAI)
+ //{
+ // CTransform* pTransform =
+ // racer.pAI->Get_Component();
+ // _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
+ // spawnPos.m128_f32[0] += fRand;
- pTransform->Set_State(STATE::POSITION, spawnPos);
- pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
+ // pTransform->Set_State(STATE::POSITION, spawnPos);
+ // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
- racer.pAI->Get_Broom()->Set_Move(false);
- }
- else if (racer.pRacer)
- {
- CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
- pCharacter->Set_Position(spawnPos);
- CTransform* pTransform = racer.pRacer->Get_Component();
+ // racer.pAI->Get_Broom()->Set_Move(false);
+ //}
+ //else if (racer.pRacer)
+ //{
+ // CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
+ // pCharacter->Set_Position(spawnPos);
+ // CTransform* pTransform = racer.pRacer->Get_Component();
- // pTransform->Set_State(STATE::POSITION, spawnPos);
- pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
- racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
- racer.pRacer->Get_Broom()->Set_Move(false);
- }
+ // // pTransform->Set_State(STATE::POSITION, spawnPos);
+ // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
+ // racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
+ // racer.pRacer->Get_Broom()->Set_Move(false);
+ //}
- else if (racer.pRacer)
- {
- CTransform* pTransform =
- racer.pRacer->Get_Component();
- CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
- pCharacter->Set_Position(spawnPos);
- pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
- racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
- racer.pRacer->Get_Broom()->Set_Move(false);
- }
+ //else if (racer.pRacer)
+ //{
+ // CTransform* pTransform =
+ // racer.pRacer->Get_Component();
+ // CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
+ // pCharacter->Set_Position(spawnPos);
+ // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
+ // racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
+ // racer.pRacer->Get_Broom()->Set_Move(false);
+ //}
+ ////if (GUI::Button("Race Start"))
+ ////{
+ //m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
+ //const _float SPAWN_DISTANCE = 80.f;
+ //if (FAILED(Load_RaceRing()))
+ //{
+ // MSG_BOX("Failed Load RaceRing");
+ //}
+ //CBroomRacerAI::RacerDesc Desc = {};
+ //for (_uint i = 1; i < 4; i++)
+ //{
+ // Desc.pRacerManager = this;
+ // Desc.iIndex = i;
+ // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc)))
+ // return;
+ //}
+ //m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object()->Set_RaceInfo();
- m_bRaceReady = true;
+ //m_bRaceReady = true;
//}
//if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY))
//{
@@ -314,6 +309,65 @@ void CBroomRaceManager::Describe_Entity()
// //}
//}
}
+ //for (auto& racer : m_Racers)
+ //{
+ // CTransform* pRingTransform =
+ // m_pRaceRings[0]->Get_Component();
+
+ // _vector ringPos = pRingTransform->Get_State(STATE::POSITION);
+ // _vector ringLook = pRingTransform->Get_State(STATE::RIGHT);
+ // ringLook = XMVector3Normalize(ringLook);
+
+ // _vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE;
+
+
+ // if (racer.pAI)
+ // {
+ // CTransform* pTransform =
+ // racer.pAI->Get_Component();
+ // _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
+ // spawnPos.m128_f32[0] += fRand;
+
+ // pTransform->Set_State(STATE::POSITION, spawnPos);
+ // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
+
+ // racer.pAI->Get_Broom()->Set_Move(false);
+ // }
+ // else if (racer.pRacer)
+ // {
+ // CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
+ // pCharacter->Set_Position(spawnPos);
+ // CTransform* pTransform = racer.pRacer->Get_Component();
+
+ // // pTransform->Set_State(STATE::POSITION, spawnPos);
+ // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
+ // racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
+ // racer.pRacer->Get_Broom()->Set_Move(false);
+ // }
+
+ // else if (racer.pRacer)
+ // {
+ // CTransform* pTransform =
+ // racer.pRacer->Get_Component();
+ // CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
+ // pCharacter->Set_Position(spawnPos);
+ // pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
+ // racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
+ // racer.pRacer->Get_Broom()->Set_Move(false);
+ // }
+
+
+ // m_bRaceReady = true;
+ // //}
+ // //if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY))
+ // //{
+ // // /*if (GUI::Button("Countdown"))
+ // // {*/
+ // // m_pInfoInstance->Event_CallBack(TEXT("Ready_Race"));
+ // // m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN);
+ // // //}
+ // //}
+ //}
}
#endif // _DEBUG
@@ -482,15 +536,16 @@ void CBroomRaceManager::RaceReady()
}
else if (racer.pRacer)
{
- /*CTransform* pTransform =
- racer.pRacer->Get_Component();*/
CTransform* pTransform =
- racer.pRacer->Get_Broom()->Get_Component();
+ racer.pRacer->Get_Component();
CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
+ XMStoreFloat4(&m_OriginPos, racer.pRacer->Get_WorldPostion());
pCharacter->Set_Position(spawnPos);
+ pTransform->Set_State(STATE::POSITION, spawnPos);
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
racer.pRacer->Get_Component()->Change_State(FSMSTATE::BROOM_RIDE);
racer.pRacer->Get_Broom()->Set_Move(false);
+
}
}
diff --git a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp
index 3431d8e7b..319bd3cab 100644
--- a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp
@@ -138,7 +138,9 @@ void CBroomRacerAI::Update(_float fTimeDelta)
void CBroomRacerAI::Late_Update(_float fTimeDelta)
{
-
+ if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
+ return;
+ }
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
diff --git a/Jusin154_Team3D/Client/Private/Broom_Exit.cpp b/Jusin154_Team3D/Client/Private/Broom_Exit.cpp
index 0b022ea0a..550811bca 100644
--- a/Jusin154_Team3D/Client/Private/Broom_Exit.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom_Exit.cpp
@@ -198,7 +198,7 @@ HRESULT CBroom_Exit::Ready_Components(void* pArg)
{
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Space"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Keyboard_Esc"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
{
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp b/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp
index 444e91da7..474cab4dd 100644
--- a/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom_TargetGate.cpp
@@ -51,9 +51,14 @@ void CBroom_TargetGate::Update(_float fTimeDelta)
m_fSize = _float3(45.f, 45.f, 1.f);
m_vPlayerPos = m_pInfoInstance->Get_PalyerPos();
+
if (m_vActive == true)
{
- m_Distance = to_wstring(_int(floor(XMVectorGetX(XMVector3Length(XMVectorSubtract(XMLoadFloat4(&m_vTargetPos), XMLoadFloat4(&m_vPlayerPos)))))));
+ _vector Target = XMLoadFloat4(&m_vTargetPos);
+ _vector PlayerPos = XMLoadFloat4(&m_vPlayerPos);
+ _vector Dir = XMVectorSubtract(Target, PlayerPos);
+ _float Dist = XMVectorGetX(XMVector3Length(Dir));
+ m_Distance = to_wstring(_int(Dist));
}
}
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
index b1da4dd04..bad6a1245 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
@@ -424,7 +424,7 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts()
CameraDesc.bEnableTransitionLerp = true;
CameraDesc.bEnableFollowLerp = false;
CameraDesc.bEnableLookLerp = false;
- CameraDesc.vTransitionTime = { 0.f, 1.f };
+ CameraDesc.vTransitionTime = { 0.f, 3.f };
CameraDesc.vFollowLerpTime = { 0.f, TIMER_SHORT_LERP };
CameraDesc.vLookLerpTime = { 0.f, TIMER_SHORT_LERP };
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
index 66fae4a22..dd8799a7d 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "CamPosition_Target.h"
+#include "Unit.h"
CCamPosition_Target::CCamPosition_Target(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CCamPosition(pDevice, pContext)
@@ -13,6 +14,14 @@ CCamPosition_Target::CCamPosition_Target(const CCamPosition_Target& rhs)
void CCamPosition_Target::Priority_Update(_float fTimeDelta)
{
+ if (nullptr != m_pStalkingTarget) {
+ if (nullptr != m_pTargetSocketMatrix) {
+ Set_WorldPostion(XMMatrixMultiply(XMLoadFloat4x4(m_pTargetSocketMatrix), m_pStalkingTarget->Get_Component()->Get_XMWorldMatrix()).r[3]);
+ }
+ else {
+ Set_WorldPostion(m_pStalkingTarget->Get_WorldPostion());
+ }
+ }
}
void CCamPosition_Target::Update(_float fTimeDelta)
@@ -28,6 +37,29 @@ _vector CCamPosition_Target::Get_WorldPostion()
return m_pTransformCom->Get_State(STATE::POSITION);
}
+void CCamPosition_Target::Set_WorldPostion(_vector vPos)
+{
+ m_pTransformCom->Set_State(STATE::POSITION, vPos);
+}
+
+_bool CCamPosition_Target::IsStalking()
+{
+ return nullptr == m_pStalkingTarget;
+}
+
+void CCamPosition_Target::Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix)
+{
+ SAFE_RELEASE(m_pStalkingTarget);
+ m_pStalkingTarget = pStalkingTarget;
+ m_pTargetSocketMatrix = pTargetSocketMatrix;
+ SAFE_ADDREF(m_pStalkingTarget);
+}
+
+void CCamPosition_Target::Stop_Stalking()
+{
+ SAFE_RELEASE(m_pStalkingTarget);
+}
+
HRESULT CCamPosition_Target::Initialize_Prototype()
{
return S_OK;
@@ -88,6 +120,7 @@ CCamPosition_Target* CCamPosition_Target::Clone(void* pArg, class CGameObject* p
void CCamPosition_Target::Free()
{
__super::Free();
+ SAFE_RELEASE(m_pStalkingTarget);
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
index bda5fccbe..22cbcd485 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
@@ -2,19 +2,13 @@
#include "Camera_Cinematic.h"
#include "InfoInstance.h"
#include "TimeSocket.h"
+#include "CamPosition_Target.h"
#include "Layer.h"
+#include "Unit.h"
-CCamera_Cinematic::CCamera_Cinematic(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
- : CCamera(pDevice, pContext)
-{
-}
-
-CCamera_Cinematic::CCamera_Cinematic(const CCamera_Cinematic& rhs)
- : CCamera(rhs),
- m_pInfoInstance(CInfoInstance::GetInstance())
-{
-}
+CCamera_Cinematic::CCamera_Cinematic(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CCamera(pDevice, pContext) {}
+CCamera_Cinematic::CCamera_Cinematic(const CCamera_Cinematic& rhs) : CCamera(rhs), m_pInfoInstance(CInfoInstance::GetInstance()) { }
void CCamera_Cinematic::Priority_Update(_float fTimeDelta)
{
@@ -29,7 +23,17 @@ void CCamera_Cinematic::Priority_Update(_float fTimeDelta)
if (false == m_bActive) {
return;
}
+ if (false == m_bIsCurrentTransition) {
+ m_pLookTargetPart->Priority_Update(fTimeDelta);
+ m_pFollowTargetPart->Priority_Update(fTimeDelta);
+ m_pTransformCom->Set_State(STATE::POSITION, m_pFollowTargetPart->Get_WorldPostion());
+ m_pTransformCom->LookAt(m_pLookTargetPart->Get_WorldPostion());
+ }
+ else {
+ Transition(fTimeDelta);
+ }
m_bActive = true;
+ Update_LerpTimer(fTimeDelta);
__super::Bind_Matrices();
}
@@ -41,9 +45,6 @@ void CCamera_Cinematic::Update(_float fTimeDelta)
if (false == m_bActive) {
return;
}
- Transition(fTimeDelta);
- Update_LerpTimer(fTimeDelta);
-
}
void CCamera_Cinematic::Late_Update(_float fTimeDelta)
{
@@ -51,9 +52,20 @@ void CCamera_Cinematic::Late_Update(_float fTimeDelta)
return;
}
}
-HRESULT CCamera_Cinematic::Render()
+HRESULT CCamera_Cinematic::Render() { return S_OK; }
+void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo)
{
- return S_OK;
+ if (true == m_bEnable_TransitionLerp) {
+ _vector vNewPos = XMVectorSetW(XMLoadFloat3(&pairTransitionInfo.second), 1.f);
+ m_pTransformCom->Set_WorldMatrix(XMMatrixAffineTransformation(XMVectorSplatOne(), XMVectorZero(),
+ XMLoadFloat4(&pairTransitionInfo.first), vNewPos));
+ m_vTransitionTime.x = 0.f;
+ m_bIsCurrentTransition = true;
+
+ m_pFollowTargetPart->Set_WorldPostion(vNewPos);
+ m_pLookTargetPart->Set_WorldPostion(vNewPos + m_pTransformCom->Get_State(STATE::LOOK) * 10.f);
+ }
+ m_bActive = true;
}
void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta)
@@ -62,25 +74,8 @@ void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta)
return;
}
Lerp_Translation(fTimeDelta);
+ Lerp_Rotation(fTimeDelta);
Lerp_FovY(fTimeDelta);
- if (true == m_bEnable_LookLerp) {
- m_vLookLerpTime.x += fTimeDelta;
- if (m_vLookLerpTime.y <= m_vLookLerpTime.x) {
- m_vLookLerpTime.x = 0.f;
- XMStoreFloat3(&m_vLookPos_Src, XMLoadFloat3(&m_vLookPos_Dest));
- XMStoreFloat3(&m_vLookPos_Dest, m_pLookTarget->Get_WorldPostion());
- }
- }
-
- if (true == m_bEnable_FollowLerp) {
- m_vFollowLerpTime.x += fTimeDelta;
- if (m_vFollowLerpTime.y <= m_vFollowLerpTime.x) {
- m_vFollowLerpTime.x = 0.f;
- XMStoreFloat3(&m_vFollowPos_Src, m_pTransformCom->Get_State(STATE::POSITION));
- XMStoreFloat3(&m_vFollowPos_Dest, m_pFollowTarget->Get_WorldPostion());
- }
- }
-
}
void CCamera_Cinematic::Set_Priority(_uint iPriority)
@@ -88,18 +83,14 @@ void CCamera_Cinematic::Set_Priority(_uint iPriority)
m_iPriority = iPriority;
}
-void CCamera_Cinematic::Set_LookTarget(CGameObject* pTarget)
+void CCamera_Cinematic::Set_LookTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix)
{
- SAFE_RELEASE(m_pLookTarget);
- m_pLookTarget = pTarget;
- SAFE_ADDREF(m_pLookTarget);
+ m_pLookTargetPart->Stalking_Target(pTarget, pTargetSocketMatrix);
}
-void CCamera_Cinematic::Set_FollowTarget(CGameObject* pTarget)
+void CCamera_Cinematic::Set_FollowTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix)
{
- SAFE_RELEASE(m_pFollowTarget);
- m_pFollowTarget = pTarget;
- SAFE_ADDREF(m_pFollowTarget);
+ m_pFollowTargetPart->Stalking_Target(pTarget, pTargetSocketMatrix);
}
void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
@@ -111,22 +102,34 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
m_pGameInstance->Bind_Camera(NEXT_LEVEL, pContents->wstrKeyName, true);
break;
case TIMESOCKET_FUNC::TRANSLATION:
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
- m_pTransformCom->RotationQ(pContents->pxTransform.q);
+ {
+ m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
Clear_Lerp_Translation();
- break;
+ } break;
case TIMESOCKET_FUNC::TRANSLATION_LERP:
{
Clear_Lerp_Translation();
Start_Lerp_Translation(pContents->vParam_11.x, pContents->pxTransform);
} break;
+ case TIMESOCKET_FUNC::ROTATION: {
+ Rotation(XMLoadFloat4((_float4*)&pContents->pxTransform.q));
+ Clear_Lerp_Rotation();
+ } break;
+ case TIMESOCKET_FUNC::ROTATION_LERP:
+ {
+ Clear_Lerp_Rotation();
+ Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform);
+ } break;
case TIMESOCKET_FUNC::LOOK_AT:
{
- Set_LookTarget(pContents->pOtherTarget);
+ CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
+ Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
+ //Set_LookTarget(pUnit, nullptr);
}break;
case TIMESOCKET_FUNC::DONT_LOOK_AT:
{
- Set_LookTarget(pContents->pOtherTarget);
+ CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
+ Set_FollowTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
}break;
case TIMESOCKET_FUNC::ZOOM_IN:
{
@@ -165,6 +168,10 @@ HRESULT CCamera_Cinematic::Initialize(void* pArg)
return E_FAIL;
}
+ if (FAILED(Ready_SubPart())) {
+ return E_FAIL;
+ }
+
return S_OK;
}
HRESULT CCamera_Cinematic::Ready_Components(void* pArg)
@@ -175,6 +182,20 @@ HRESULT CCamera_Cinematic::Ready_Components(void* pArg)
return S_OK;
}
+
+HRESULT CCamera_Cinematic::Ready_SubPart()
+{
+ {
+ CCamPosition_Target::CAMERAPOSITION_TARGET_DESC Desc{};
+ Desc.pParentTransform = m_pTransformCom;
+ m_pFollowTarget = m_pFollowTargetPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc);
+ m_pFollowTargetPart->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -10.4f, 1.f));
+ m_pLookTarget = m_pLookTargetPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc);
+ m_pLookTargetPart->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f));
+ }
+ return S_OK;
+}
+
HRESULT CCamera_Cinematic::Bind_ShaderResources()
{
return S_OK;
@@ -187,25 +208,22 @@ void CCamera_Cinematic::Lerp_Translation(_float fTimeDelta)
m_vLerpTranslationTimer.x = m_vLerpTranslationTimer.y;
m_bLerpTranslation = false;
}
- _float4x4 ResultMatrix = {};
- CMyTools::MatrixLerp(&m_vLerpTranslationStart, &m_vLerpTranslationEnd, &m_vLerpRotQStart, &m_vLerpRotQEnd,
- ResultMatrix, m_vLerpTranslationTimer.x / m_vLerpTranslationTimer.y);
- m_pTransformCom->Set_WorldMatrix(ResultMatrix);
+
+ _vector vPos = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLerpTranslationStart), XMLoadFloat3(&m_vLerpTranslationEnd), m_vLerpTranslationTimer.x / m_vLerpTranslationTimer.y), 1.f);
+ m_pFollowTargetPart->Set_WorldPostion(vPos);
}
}
void CCamera_Cinematic::Start_Lerp_Translation(_float fTimeMaximum, PSX::PxTransform pxTransform)
{
_float3 vTrans = { pxTransform.p.x , pxTransform.p.y, pxTransform.p.z };
- _float4 vRotQ = { pxTransform.q.x, pxTransform.q.y, pxTransform.q.z, pxTransform.q.w };
- Start_Lerp_Translation(fTimeMaximum, vTrans, vRotQ);
+ Start_Lerp_Translation(fTimeMaximum, vTrans);
}
-void CCamera_Cinematic::Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans, _float4& vRotQ)
+void CCamera_Cinematic::Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans)
{
m_bLerpTranslation = { fTimeMaximum != 0 };
m_vLerpTranslationTimer = { 0.f, fTimeMaximum };
- m_pTransformCom->Compress_WorldMatrix(m_vLerpTranslationStart, m_vLerpRotQStart);
+ XMStoreFloat3(&m_vLerpTranslationStart, m_pFollowTarget->Get_WorldPostion());
m_vLerpTranslationEnd = vTrans;
- m_vLerpRotQEnd = vRotQ;
}
void CCamera_Cinematic::Clear_Lerp_Translation()
{
@@ -213,6 +231,35 @@ void CCamera_Cinematic::Clear_Lerp_Translation()
m_vLerpTranslationTimer = {};
m_vLerpTranslationStart = {};
m_vLerpTranslationEnd = {};
+}
+void CCamera_Cinematic::Lerp_Rotation(_float fTimeDelta)
+{
+ if (true == m_bLerpRotiation) {
+ m_vLerpRotiationTimer.x += fTimeDelta;
+ if (m_vLerpRotiationTimer.y < m_vLerpRotiationTimer.x) {
+ m_vLerpRotiationTimer.x = m_vLerpRotiationTimer.y;
+ m_bLerpRotiation = false;
+ }
+ _vector vRotQ = XMQuaternionNormalize(XMQuaternionSlerp(XMLoadFloat4(&m_vLerpRotQStart), XMLoadFloat4(&m_vLerpRotQEnd), m_vLerpRotiationTimer.x / m_vLerpRotiationTimer.y));
+ Rotation(vRotQ);
+ }
+}
+void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform)
+{
+ _float4 vRotQ = { pxTransform.q.x, pxTransform.q.y, pxTransform.q.z, pxTransform.q.w };
+ Start_Lerp_Rotation(fTimeMaximum, vRotQ);
+}
+void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ)
+{
+ m_bLerpRotiation = { fTimeMaximum != 0 };
+ m_vLerpRotiationTimer = { 0.f, fTimeMaximum };
+ XMStoreFloat4(&m_vLerpRotQStart, m_pTransformCom->Get_QuarternionVector());
+ m_vLerpRotQEnd = vRotQ;
+}
+void CCamera_Cinematic::Clear_Lerp_Rotation()
+{
+ m_bLerpRotiation = { false };
+ m_vLerpRotiationTimer = {};
m_vLerpRotQStart = {};
m_vLerpRotQEnd = {};
}
@@ -239,6 +286,45 @@ void CCamera_Cinematic::Clear_Lerp_FovY()
m_vFovYLerp = { 60.f, 60.f };
m_vLerpFovYTimer = { 0.f, 0.f };
}
+void CCamera_Cinematic::Transition(_float fTimeDelta)
+{
+ if (false == m_bIsCurrentTransition) {
+ return;
+ }
+ m_vTransitionTime.x += fTimeDelta;
+ _float fRatio = m_vTransitionTime.x / m_vTransitionTime.y;
+ if (fRatio > 1.f) {
+ fRatio = 1.f;
+ m_bIsCurrentTransition = false;
+ }
+
+ _vector vFollowTarget = m_pFollowTargetPart->Get_WorldPostion();
+ _vector vLookTarget = m_pLookTargetPart->Get_WorldPostion();
+
+ _matrix xmMatTarget = XMMatrixInverse(nullptr, XMMatrixLookAtLH(vFollowTarget, vLookTarget, XMVectorSet(0.f, 1.f, 0.f, 0.f)));
+
+ _float4x4 matOrigin = *m_pTransformCom->Get_WorldMatrixPtr();
+ _float4x4 matTarget = {}; XMStoreFloat4x4(&matTarget, xmMatTarget);
+ _float4x4 matResult = {};
+
+ CMyTools::MatrixLerp(&matOrigin, &matTarget, matResult, fRatio);
+
+ m_pTransformCom->Set_WorldMatrix(matResult);
+}
+void CCamera_Cinematic::Rotation(_fvector vRotQ)
+{
+ _vector vPos = m_pFollowTargetPart->Get_WorldPostion();
+ _vector vLookPos = m_pLookTargetPart->Get_WorldPostion();
+ _float fDistance = XMVectorGetX(XMVector3Length(vLookPos - vPos));
+ _vector vLookDir = XMVector3Rotate(XMVectorSet(0.f, 0.f, 1.f, 0.f), vRotQ);
+
+ if (true == m_pLookTargetPart->IsStalking()) { // 스토킹 중이면 팔로우가 움직이고 아니면 룩타겟이 움직임
+ m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(vLookPos - (fDistance * vLookDir), 1.f));
+ }
+ else {
+ m_pLookTargetPart->Set_WorldPostion(XMVectorSetW(vPos + (fDistance * vLookDir), 1.f));
+ }
+}
CCamera_Cinematic* CCamera_Cinematic::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CCamera_Cinematic* pInstance = new CCamera_Cinematic(pDevice, pContext);
@@ -265,6 +351,9 @@ CGameObject* CCamera_Cinematic::Clone(void* pArg, CGameObject* pOwner)
void CCamera_Cinematic::Free()
{
__super::Free();
+
+ SAFE_RELEASE(m_pLookTargetPart);
+ SAFE_RELEASE(m_pFollowTargetPart);
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
index 4dd9f2729..a36b464d9 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
@@ -32,12 +32,12 @@ void CCamera_Gaze::Priority_Update(_float fTimeDelta)
_vector vNewLook = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLookPos_Src), XMLoadFloat3(&m_vLookPos_Dest), CMyTools::Saturate(m_vLookLerpTime.x / fTimeDenom)), 1.f);
m_pTransformCom->LookAt(vNewLook);
}
+ else if (m_bSyncFollow) {
+ m_pTransformCom->Set_WorldMatrix(m_pFollowTarget->Get_Component()->Get_XMWorldMatrix());
+ }
else {
m_pTransformCom->LookAt(m_pLookTarget->Get_Component()->Get_State(STATE::POSITION));
}
- if (m_bSyncFollow) {
- m_pTransformCom->Set_WorldMatrix(m_pFollowTarget->Get_Component()->Get_XMWorldMatrix());
- }
}
else {
diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
index 07fc375cc..a68e0dc99 100644
--- a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
@@ -6,24 +6,34 @@
#include "Layer.h"
#include "Player.h"
#include "TimeSocket.h"
+#include "Camera_Cinematic.h"
+#include "Ranrok.h"
CCutSceneInfo::CCutSceneInfo()
{
}
void CCutSceneInfo::Update(_float fTimeDelta)
{
+#ifdef _DEBUG
+ Describe_Entity();
+#endif // _DEBUG
+
_float fRatio = 0.f;
for (map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin(); iter != m_funcActiveEvents.end();) {
list* pSockets = &iter->second->m_Sockets;
iter->second->m_vTimer.x += fTimeDelta;
fRatio = CMyTools::Saturate(iter->second->m_vTimer.x / iter->second->m_vTimer.y);
for (list::iterator socketIter = pSockets->begin(); socketIter != pSockets->end();) {
+#ifdef _DEBUG
GUI::Begin("CutScene");
- if (GUI::TreeNode((*socketIter)->m_Contents.strEventName.c_str())) {
+ if (GUI::TreeNodeEx((*socketIter)->m_Contents.strEventName.c_str(), ImGuiTreeNodeFlags_::ImGuiTreeNodeFlags_DefaultOpen)) {
GUI::Text("fRatio : %.2f", fRatio);
+ GUI::Text("fSecond : %.2f / %.2f", iter->second->m_vTimer.x, iter->second->m_vTimer.y);
GUI::TreePop();
}
GUI::End();
+#endif // _DEBUG
+
if ((*socketIter)->Trigger(fRatio))
{
SAFE_RELEASE((*socketIter));
@@ -46,8 +56,18 @@ void CCutSceneInfo::Update(_float fTimeDelta)
void CCutSceneInfo::Change_Level()
{
- _uint iLevel = m_pGameInstance->Get_NextLevelID();
-
+ LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID();
+ switch (eLevel)
+ {
+ case LEVEL::INTRO:
+ break;
+ case LEVEL::GAMEPLAY:
+ break;
+ case LEVEL::FIELD:
+ break;
+ default:
+ break;
+ }
Clear_ActiveEvents();
}
@@ -117,7 +137,18 @@ HRESULT CCutSceneInfo::Clear_AllEvents()
Clear_Events(m_funcActiveEvents);
Clear_Events(m_funcWaitEvents);
- return E_NOTIMPL;
+ return S_OK;
+}
+HRESULT CCutSceneInfo::Ready_GameplayCutScenes()
+{
+ return S_OK;
+}
+HRESULT CCutSceneInfo::Ready_FieldCutScenes()
+{
+ {
+ Load_CutSceneXML("../Bin/Resources/Data/CutScene/RanrokCutScene.xml");
+ }
+ return S_OK;
}
CCutSceneInfo* CCutSceneInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
@@ -139,3 +170,300 @@ void CCutSceneInfo::Free()
SAFE_RELEASE(m_pDevice);
SAFE_RELEASE(m_pContext);
}
+#ifdef _DEBUG
+void CCutSceneInfo::Describe_Entity()
+{
+ GUI::Begin("CutScene");
+ if (GUI::Button("ReadyCutScene")) {
+ LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID();
+ Clear_AllEvents();
+ switch (eLevel)
+ {
+ case LEVEL::GAMEPLAY:
+ {
+ Ready_GameplayCutScenes();
+ }
+ break;
+ case LEVEL::FIELD:
+ {
+ Ready_FieldCutScenes();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+ if (GUI::Button("DeActiveCutScene")) {
+ Clear_ActiveEvents();
+ }
+ GUI::End();
+}
+#endif // _DEBUG
+
+
+static _bool IsTrueText(const char* text)
+{
+ if (!text) { return false; }
+ return (strcmp(text, "true") == 0) || (strcmp(text, "1") == 0);
+}
+
+static _bool TryReadFloatAttr(tinyxml2::XMLElement* element, const _char* attrName, _float& outValue)
+{
+ if (!element || !attrName) {
+ return false;
+ }
+
+ const _char* text = element->Attribute(attrName);
+ if (!text || text[0] == '\0') {
+ return false;
+ }
+
+ return (element->QueryFloatAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
+}
+
+static _bool TryReadUIntAttr(tinyxml2::XMLElement* element, const _char* attrName, _uint& outValue)
+{
+ if (!element || !attrName) return false;
+
+ const _char* text = element->Attribute(attrName);
+ if (!text || text[0] == '\0') {
+ return false;
+ }
+
+ return (element->QueryUnsignedAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
+}
+
+static void ReadPxTransform(tinyxml2::XMLElement* transformNode, PSX::PxTransform& outTransform)
+{
+ outTransform.p = PSX::PxVec3(0.f, 0.f, 0.f);
+ outTransform.q = PSX::PxQuat(0.f, 0.f, 0.f, 1.f);
+
+ if (!transformNode) { return; }
+
+ tinyxml2::XMLElement* rotQNode = transformNode->FirstChildElement("RotQ");
+ tinyxml2::XMLElement* transNode = transformNode->FirstChildElement("Trans");
+ if (!rotQNode || !transNode) {
+ return;
+ }
+
+ TryReadFloatAttr(rotQNode, "X", outTransform.q.x);
+ TryReadFloatAttr(rotQNode, "Y", outTransform.q.y);
+ TryReadFloatAttr(rotQNode, "Z", outTransform.q.z);
+ TryReadFloatAttr(rotQNode, "W", outTransform.q.w);
+
+ TryReadFloatAttr(transNode, "X", outTransform.p.x);
+ TryReadFloatAttr(transNode, "Y", outTransform.p.y);
+ TryReadFloatAttr(transNode, "Z", outTransform.p.z);
+}
+
+static void ReadFlags16(tinyxml2::XMLElement* flagsNode, _boolean& outFlags)
+{
+ memset(&outFlags, 0, sizeof(_boolean));
+
+ if (!flagsNode) {
+ return;
+ }
+
+ for (tinyxml2::XMLElement* flagNode = flagsNode->FirstChildElement("Flag");
+ flagNode;
+ flagNode = flagNode->NextSiblingElement("Flag"))
+ {
+ int flagId = -1;
+ if (flagNode->QueryIntAttribute("id", &flagId) != tinyxml2::XML_SUCCESS) {
+ continue;
+ }
+
+ if (flagId < 0 || flagId >= 16) {
+ continue;
+ }
+
+ outFlags.b[flagId] = IsTrueText(flagNode->GetText());
+ }
+}
+
+static void ReadUInt4(tinyxml2::XMLElement* param10Node, _uint4& outValue)
+{
+ outValue = {};
+
+ if (!param10Node) {
+ return;
+ }
+ tinyxml2::XMLElement* uintNode = param10Node->FirstChildElement("uint");
+ if (!uintNode) return;
+
+ _uint temp = 0;
+ if (TryReadUIntAttr(uintNode, "X", temp)) outValue.x = temp;
+ if (TryReadUIntAttr(uintNode, "Y", temp)) outValue.y = temp;
+ if (TryReadUIntAttr(uintNode, "Z", temp)) outValue.z = temp;
+ if (TryReadUIntAttr(uintNode, "W", temp)) outValue.w = temp;
+}
+
+static void ReadFloat4(tinyxml2::XMLElement* param11Node, _float4& outValue)
+{
+ outValue = {};
+
+ if (!param11Node) {
+ return;
+ }
+ tinyxml2::XMLElement* floatNode = param11Node->FirstChildElement("float");
+ if (!floatNode) {
+ return;
+ }
+
+ TryReadFloatAttr(floatNode, "X", outValue.x);
+ TryReadFloatAttr(floatNode, "Y", outValue.y);
+ TryReadFloatAttr(floatNode, "Z", outValue.z);
+ TryReadFloatAttr(floatNode, "W", outValue.w);
+}
+
+
+void CCutSceneInfo::Load_CutSceneXML(const string& path)
+{
+ tinyxml2::XMLDocument doc;
+ if (doc.LoadFile(path.c_str()) != tinyxml2::XML_SUCCESS) {
+ return;
+ }
+
+ TimeLine* pTimeLine = new TimeLine();
+ tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement("RanrokIntro");
+ if (!pContentsNode) {
+ return;
+ }
+
+ pTimeLine->m_vTimer.y = 0.f;
+ pContentsNode->QueryFloatAttribute("fDuration", &pTimeLine->m_vTimer.y);
+
+ pTimeLine->m_Sockets.clear();
+
+ for (tinyxml2::XMLElement* pSocketNode = pContentsNode->FirstChildElement("Socket");
+ pSocketNode; pSocketNode = pSocketNode->NextSiblingElement("Socket"))
+ {
+ SOCKETCONTENTS SocketContents = {};
+
+ SocketContents.fRatio = 0.f;
+ _float fStartPosition = 0;
+ pSocketNode->QueryFloatAttribute("fStartPosition", &fStartPosition);
+ SocketContents.fRatio = CMyTools::Saturate(fStartPosition / pTimeLine->m_vTimer.y);
+ // Info
+ tinyxml2::XMLElement* pInfoNode = pSocketNode->FirstChildElement("Info");
+ if (pInfoNode != nullptr)
+ {
+ const _char* pEventNameText = pInfoNode->Attribute("strEventName");
+ SocketContents.strEventName = pEventNameText ? pEventNameText : "";
+
+ SocketContents.eTypeParam = TIMESOCKET_PARAM::END;
+ const _char* pTypeText = pInfoNode->Attribute("eTypeParam");
+ if (nullptr != pTypeText)
+ {
+ CTimeSocket::TryParse_TimeSocketParam(string_view(pTypeText), SocketContents.eTypeParam);
+ }
+
+ SocketContents.eTypeFunc = TIMESOCKET_FUNC::END;
+ const _char* pFuncText = pInfoNode->Attribute("eTypeFunc");
+ if (nullptr != pFuncText)
+ {
+ CTimeSocket::TryParse_TimeSocketFunc(string_view(pFuncText), SocketContents.eTypeFunc);
+ }
+
+ SocketContents.pEventTarget = nullptr;
+ SocketContents.funcEvent = nullptr;
+ const _char* pTargetText = pInfoNode->Attribute("pTarget");
+ if (nullptr != pTargetText)
+ {
+ if (strcmp(pTargetText, "CAMERA_CINEMATIC") == 0)
+ {
+ CCamera* pEventTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
+ SocketContents.pEventTarget = pEventTarget;
+ SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
+ }
+ else if (strcmp(pTargetText, "CAMERA_SHOULDER") == 0)
+ {
+ CCamera* pEventTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
+ SocketContents.pEventTarget = pEventTarget;
+ SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
+ }
+ else if (strcmp(pTargetText, "ACTOR_PLAYER") == 0)
+ {
+ CPlayer* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object();
+ SocketContents.pEventTarget = pEventTarget;
+ SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
+ }
+ else if (strcmp(pTargetText, "ACTOR_RANROK") == 0)
+ {
+ CMonster* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object();
+ SocketContents.pEventTarget = pEventTarget;
+ SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
+ }
+ }
+ }
+
+ // -------- Param_0 ----------
+ tinyxml2::XMLElement* pParam0Node = pSocketNode->FirstChildElement("Param_0");
+ if (nullptr != pParam0Node)
+ {
+ switch (SocketContents.eTypeParam)
+ {
+ case TIMESOCKET_PARAM::TARGET:
+ {
+ tinyxml2::XMLElement* pOtherTargetNode = pParam0Node->FirstChildElement("OtherTarget");
+ if (!pOtherTargetNode) break;
+
+ const _char* pLayerNameText = pOtherTargetNode->Attribute("Layer");
+ const _char* pTypeIdText = pOtherTargetNode->Attribute("TypeID");
+
+ if (!pLayerNameText || !pTypeIdText) break;
+ if (pLayerNameText[0] == '\0' || pTypeIdText[0] == '\0') break;
+
+ SocketContents.wstrLayerName = CMyTools::ToWstring(pLayerNameText);
+ SocketContents.wstrKeyName = CMyTools::ToWstring(pTypeIdText);
+
+ if (string_view(pTypeIdText) == "Ranrok")
+ {
+ SocketContents.pOtherTarget =
+ m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
+ }
+ else if (string_view(pTypeIdText) == "CAMERA_CINEMATIC")
+ {
+ SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
+ }
+ else if (string_view(pTypeIdText) == "CAMERA_SHOULDER")
+ {
+ SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
+ }
+
+ break;
+ }
+
+ case TIMESOCKET_PARAM::TRANSFORM:
+ {
+ tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform");
+ ReadPxTransform(pTransformNode, SocketContents.pxTransform);
+ break;
+ }
+ case TIMESOCKET_PARAM::END:
+ default:
+ break;
+ }
+ }
+
+ // -------- vFlags / Param_10 / Param_11 / Param_12 ----------
+ ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags);
+ ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10);
+ ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11);
+ const _char* pStringParma = pSocketNode->FirstChildElement("Param_12")->FirstChildElement("string")->Attribute("tag");
+ SocketContents.vParam_12 = pStringParma;
+ CTimeSocket* pSocket = CTimeSocket::Create(&SocketContents);
+ if (!pSocket) {
+ continue;
+ }
+ pTimeLine->m_Sockets.push_back(pSocket);
+ }
+ tinyxml2::XMLElement* pTriggerNode = pContentsNode->FirstChildElement("Trigger");
+
+ //pTriggerNode->QueryIntAttribute("W", )
+ pTimeLine->m_Sockets.sort([](CTimeSocket* a, CTimeSocket* b) {
+ return a->m_Contents.fRatio < b->m_Contents.fRatio;
+ });
+ pair<_string, TimeLine*> pairResult = { _string(pContentsNode->Name()), pTimeLine };
+ m_pInfoInstance->Load_Events(pairResult);
+}
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
index b06933c66..c1345d333 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
@@ -51,7 +51,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
const char* text = pLine->Attribute("Text");
if (text) line.pText = CMyTools::ToWstring(text);
- pLine->QueryIntAttribute("NextText", &line.NextTextID);
+ pLine->QueryIntAttribute("NextID", &line.NextTextID);
// 선택지 처리
tinyxml2::XMLElement* pChoice = pLine->FirstChildElement("Choice");
@@ -64,7 +64,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
const char* choiceText = pChoice->Attribute("Text");
if (choiceText) choice.pText = CMyTools::ToWstring(choiceText);
- pChoice->QueryIntAttribute("NextText", &choice.NextTypeID);
+ pChoice->QueryIntAttribute("NextID", &choice.NextTypeID);
line.ChoiceInfo.push_back(choice);
pChoice = pChoice->NextSiblingElement("Choice");
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
index e66123969..f984a891d 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
@@ -61,6 +61,8 @@ void CDialogue_Font::Update(_float fTimeDelta)
if (m_bCurrentInteract == true)
{
+ _int a = 10;
+
if (m_bChoiceText == true)
{
switch (m_iType)
@@ -72,18 +74,20 @@ void CDialogue_Font::Update(_float fTimeDelta)
CHoice();
break;
case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT):
-
+ a = 10;
break;
case ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT):
-
+ Quest();
break;
case ENUM_CLASS(NPCTEXTTYPE::SPELLLEAN):
-
+ a = 10;
break;
case ENUM_CLASS(NPCTEXTTYPE::BROOM):
+ m_bRace = true;
+ m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRace);
NextText();
break;
default:
@@ -281,10 +285,27 @@ void CDialogue_Font::SpellLearn()
{
}
+void CDialogue_Font::Quest()
+{
+ m_pInfoInstance->Set_AcceptQuest(m_iNextID);
+ _bool Interact = false;
+ m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
+ m_pCurrentDialogue[0]->Set_Hover(Interact);
+ m_pCurrentDialogue[0]->Visible(Interact);
+ m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
+ m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
+ if (m_bChoiceText == true)
+ {
+ m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
+ ReSet();
+ }
+}
+
void CDialogue_Font::ReSet()
{
m_bChoiceText = false;
m_bCurrentChoiceText = false;
+ m_bRace = false;
vector<_int> Dummy;
m_NextLevel.swap(Dummy);
for (auto it = m_pCurrentDialogue.begin(); it != m_pCurrentDialogue.end();)
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
index e440b3854..489588548 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
@@ -88,11 +88,11 @@ void CDialogue_Panel::Choice_Slot(CHOICEINFO Choice)
break;
case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT):
-
+ m_pInfoInstance->Event_CallBack(TEXT("NPCNEXTTEXT"), &Choice);
break;
case ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT):
-
+ m_pInfoInstance->Event_CallBack(TEXT("NPCNEXTTEXT"), &Choice);
break;
case ENUM_CLASS(NPCTEXTTYPE::SPELLLEAN):
diff --git a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp
index 5ba1b2ff9..8b7648f04 100644
--- a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp
+++ b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp
@@ -300,12 +300,14 @@ void CDuelist_NormalJap::OnCollision(CGameObject* pOther, void* pDesc)
_vector vDir = m_pTransformCom->Get_State(STATE::LOOK);
vDir = XMVector3Normalize(vDir);
- _float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 0.f));
+ _float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 180.f));
_matrix rotX = XMMatrixRotationX(fRandAngle);
_vector vRandDir = XMVector3TransformNormal(vDir, rotX);
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(vRandDir));
+
+ m_fLinearSpeed = 15.f;
}
else {
Get_PartObject("JapPT0")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion());
diff --git a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp
index 6d02fde21..d128fd096 100644
--- a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp
@@ -4,7 +4,8 @@
#include "GameInstance.h"
#include "EffectParts.h"
#include "Player.h"
-
+#include "EffectPool.h"
+#include "Layer.h"
CDuelist_Protego::CDuelist_Protego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
@@ -18,6 +19,8 @@ CDuelist_Protego::CDuelist_Protego(const CDuelist_Protego& rhs)
HRESULT CDuelist_Protego::Initialize_Prototype()
{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/NPCProtego")))
+ return E_FAIL;
return S_OK;
@@ -31,8 +34,6 @@ HRESULT CDuelist_Protego::Initialize(void* pArg)
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
- if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
- return E_FAIL;
if (FAILED(Create_Effect()))
return E_FAIL;
@@ -49,7 +50,7 @@ HRESULT CDuelist_Protego::Initialize(void* pArg)
m_fAmountSize = 0.1f;
m_fSpeed = 5.f;
- m_fDuration = 3.f;
+ m_fDuration = 6.f;
return S_OK;
}
@@ -94,6 +95,7 @@ void CDuelist_Protego::Late_Update(_float fTimeDelta)
if (m_bVisible == false) {
return;
}
+
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_Component()->Get_Position());
__super::Late_Update(fTimeDelta);
@@ -116,6 +118,8 @@ HRESULT CDuelist_Protego::Pre_Setting(CGameObject* pObject, void* pArg)
m_pSphere->Get_Component()->Set_Scale(vSize);
m_pSphereLay->Get_Component()->Set_Scale(vSize);
+
+
m_fSizeAccTime = 0.f;
return S_OK;
@@ -134,6 +138,7 @@ HRESULT CDuelist_Protego::Ready_Components(void* pArg)
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
+
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
@@ -197,6 +202,9 @@ void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc)
break;
}
}
+
+ m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object()
+ ->Use_Skill(SKILL_TYPE::DUELIST_PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos);
}
diff --git a/Jusin154_Team3D/Client/Private/Duelist_ProtegoHit.cpp b/Jusin154_Team3D/Client/Private/Duelist_ProtegoHit.cpp
new file mode 100644
index 000000000..8037ebab3
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Duelist_ProtegoHit.cpp
@@ -0,0 +1,188 @@
+#include "pch.h"
+#include "Duelist_ProtegoHit.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+
+
+CDuelist_ProtegoHit::CDuelist_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CDuelist_ProtegoHit::CDuelist_ProtegoHit(const CDuelist_ProtegoHit& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CDuelist_ProtegoHit::Initialize_Prototype()
+{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/NPCProtegoHit")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CDuelist_ProtegoHit::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"NPCProtegoHit";
+
+ m_pHit_SphereLay = Get_PartObject("ProtegoHit_Lay");
+ m_pHit_Light = Get_PartObject("Hit_Light");
+
+ SAFE_ADDREF(m_pHit_SphereLay);
+ SAFE_ADDREF(m_pHit_Light);
+
+
+ m_fDuration = 3.f;
+
+ _float3 vScale = _float3(1.1f, 1.1f, 1.1f);
+
+ m_pHit_SphereLay->Get_Component()->Set_Scale(vScale);
+ m_pHit_Light->Get_Component()->Set_Scale(vScale);
+
+ return S_OK;
+}
+
+void CDuelist_ProtegoHit::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CDuelist_ProtegoHit::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+}
+
+void CDuelist_ProtegoHit::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CDuelist_ProtegoHit::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+ _vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg));
+
+ CEffectParts* pProtego_HitPT = Get_PartObject("Protego_HitPT");
+ CEffectParts* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line");
+ CEffectParts* pProtegoHit = Get_PartObject("ProtegoHit");
+
+ m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ pProtego_HitPT->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+ pProtego_HitPT_Line->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+ pProtegoHit->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+
+
+ m_pHit_SphereLay->Set_Visible(true);
+ m_pHit_Light->Set_Visible(true);
+
+ pProtego_HitPT->Set_Visible(true);
+ pProtego_HitPT_Line->Set_Visible(true);
+ pProtegoHit->Set_Visible(true);
+
+
+
+
+ return S_OK;
+}
+
+HRESULT CDuelist_ProtegoHit::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CDuelist_ProtegoHit::Ready_Child()
+{
+ return S_OK;
+}
+
+CDuelist_ProtegoHit* CDuelist_ProtegoHit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CDuelist_ProtegoHit* pInstance = new CDuelist_ProtegoHit(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CDuelist_ProtegoHit");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CDuelist_ProtegoHit::Clone(void* pArg, CGameObject* pOwner)
+{
+ CDuelist_ProtegoHit* pInstance = new CDuelist_ProtegoHit(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CDuelist_ProtegoHit");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CDuelist_ProtegoHit::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CDuelist_ProtegoHit::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pHit_SphereLay);
+ SAFE_RELEASE(m_pHit_Light);
+}
+#ifdef _DEBUG
+
+void CDuelist_ProtegoHit::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CDuelist_ProtegoHit::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 725bf6f28..62ae635e2 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -24,6 +24,8 @@
#include "Lumos.h"
#include "WandEnd.h"
+#include "Protego_Hit.h"
+
#include "Troll_Rush_Hit.h"
#include "Troll_Nomal_Smoke.h"
#include "TrollSwing.h"
@@ -45,6 +47,10 @@
#include "Blink.h"
#include "Transformation.h"
#include "Avadakedavra.h"
+
+#include "Goblin_ProtegoHit.h"
+#include "Duelist_ProtegoHit.h"
+
#include "Ranrok_FireBall.h"
#include "Ranrok_Breath.h"
#include "Ranrok_Point.h"
@@ -104,7 +110,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 나
- m_isActiveEffectCreate = false;
+ m_isActiveEffectCreate = true;
m_isActiveMonsterEffectCreate = false;
#endif //
#endif
@@ -496,6 +502,17 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO_HIT, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CProtego_Hit* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+
+
return S_OK;
}
@@ -738,6 +755,24 @@ HRESULT CEffectPool::Ready_MonsterEffect()
return pEffect; }
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::GOBLIN_PROTEGO_HIT, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CGoblin_ProtegoHit* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::DUELIST_PROTEGO_HIT, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CDuelist_ProtegoHit* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index 9ecb1ab1c..cdae2fa61 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -915,6 +915,7 @@ ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_fvector StartPos, _fvec
{
pUserData->pOwner->OnCollision(this, &tagCollInfo);
m_bHit = true;
+ m_bHitShield = true;
}
break;
}
@@ -1069,7 +1070,7 @@ _vector CEffect_Container::Get_LockOnPos(LOCKON_INFO Info)
return Info.pEffect->Get_WorldPostion();
}
if (Info.pUnit) {
- return Info.pUnit->Get_Component()->Get_Position();
+ return Info.pUnit->Get_LockOnPos();
}
return XMVectorZero();
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
index ed20d03c9..9b3b06e37 100644
--- a/Jusin154_Team3D/Client/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -393,7 +393,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
if (pEffect_Container != nullptr)
{
_uint iSkillType = pEffect_Container->Get_SkillType();
- //damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
+ damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
switch (iSkillType)
{
@@ -439,14 +439,14 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
}
- //m_DamageInfo.fDamage = damagePair.first;
- //m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
- //if (0 == damagePair.second) {
- // m_pFSM->Change_State(FSMSTATE::DEAD);
- // _int ID = m_pStat->Get_Stat().iObjectID;
- // m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
- // return;
- //}
+ m_DamageInfo.fDamage = damagePair.first;
+ m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
+ if (0 == damagePair.second) {
+ m_pFSM->Change_State(FSMSTATE::DEAD);
+ _int ID = m_pStat->Get_Stat().iObjectID;
+ m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
+ return;
+ }
m_pFSM->Change_State(FSMSTATE::HIT);
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
index c909d3b24..21234be26 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
@@ -3,9 +3,11 @@
#include "GameInstance.h"
#include "EffectParts.h"
+#include "Player.h"
+#include "EffectPool.h"
+#include "Layer.h"
#include "MapElement_Interactable.h"
-
CGoblin_Protego::CGoblin_Protego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
@@ -33,24 +35,23 @@ HRESULT CGoblin_Protego::Initialize(void* pArg)
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
+
if (FAILED(Create_Effect()))
return E_FAIL;
m_pSphere = Get_PartObject("ProtegoSphere");
- m_pBottom = Get_PartObject("ProtegoBottom");
- m_pCircle = Get_PartObject("ProtegoCircle");
+ m_pSphereLay = Get_PartObject("ProtegoLay");
SAFE_ADDREF(m_pSphere);
- SAFE_ADDREF(m_pBottom);
- SAFE_ADDREF(m_pCircle);
+ SAFE_ADDREF(m_pSphereLay);
- m_wstrEffectName = L"Goblin_Protego";
+ m_wstrEffectName = L"Protego";
m_fAmountSize = 0.1f;
m_fSpeed = 5.f;
- m_fDuration = 3.f;
+ m_fDuration = 6.f;
return S_OK;
}
@@ -58,7 +59,6 @@ HRESULT CGoblin_Protego::Initialize(void* pArg)
void CGoblin_Protego::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
-
}
void CGoblin_Protego::Update(_float fTimeDelta)
@@ -67,8 +67,7 @@ void CGoblin_Protego::Update(_float fTimeDelta)
return;
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pBottom->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pCircle-> Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
__super::Update(fTimeDelta);
@@ -89,15 +88,18 @@ void CGoblin_Protego::Update(_float fTimeDelta)
_float3 vSize = _float3(fSize, fSize, fSize);
m_pSphere->Get_Component()->Set_Scale(vSize);
- m_pCircle->Get_Component()->Set_Scale(vSize);
+ m_pSphereLay->Get_Component()->Set_Scale(vSize);
}
void CGoblin_Protego::Late_Update(_float fTimeDelta)
{
- if (m_bVisible == false)
+ if (m_bVisible == false) {
return;
+ }
+
m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_Component()->Get_Position());
__super::Late_Update(fTimeDelta);
+
}
HRESULT CGoblin_Protego::Pre_Setting(CGameObject* pObject, void* pArg)
@@ -106,17 +108,18 @@ HRESULT CGoblin_Protego::Pre_Setting(CGameObject* pObject, void* pArg)
return E_FAIL;
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pBottom->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pCircle->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pSphere->Set_Visible(true);
- m_pCircle->Set_Visible(true);
- m_pBottom->Set_Visible(true);
+ m_pSphereLay->Set_Visible(true);
+
_float3 vSize = _float3(1.f, 1.f, 1.f);
m_pSphere->Get_Component()->Set_Scale(vSize);
- m_pCircle->Get_Component()->Set_Scale(vSize);
+ m_pSphereLay->Get_Component()->Set_Scale(vSize);
+
+
m_fSizeAccTime = 0.f;
@@ -129,12 +132,14 @@ HRESULT CGoblin_Protego::Ready_Components(void* pArg)
return E_FAIL;
}
+
{ // DO
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_PROTEGO);
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
+
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
@@ -175,8 +180,6 @@ CGameObject* CGoblin_Protego::Clone(void* pArg, CGameObject* pOwner)
void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
{
- if (!m_bVisible)
- return;
ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
@@ -212,6 +215,9 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
}
}
+ m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object()
+ ->Use_Skill(SKILL_TYPE::GOBLIN_PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos);
+
}
void CGoblin_Protego::Free()
@@ -221,21 +227,19 @@ void CGoblin_Protego::Free()
//if(m_pPhysHitBox != nullptr)
// if (m_pPhysHitBox->Get_Depth() == false)
// SAFE_RELEASE(m_pPhysHitBox);
-
- SAFE_RELEASE(m_pSphere);
- SAFE_RELEASE(m_pBottom);
- SAFE_RELEASE(m_pCircle);
SAFE_RELEASE(m_pRigidBody);
+ SAFE_RELEASE(m_pSphere);
+ SAFE_RELEASE(m_pSphereLay);
}
#ifdef _DEBUG
void CGoblin_Protego::Describe_Entity()
{
- GUI::Begin("PROTEGO", 0, IMGUI_GLOBAL_BEGIN_FLAG);
+ GUI::Begin("PROTEGO");
- GUI::DragFloat("fAmountSize" ,&m_fAmountSize);
- GUI::DragFloat("fSpeed" , &m_fSpeed);
+ GUI::DragFloat("fAmountSize", &m_fAmountSize);
+ GUI::DragFloat("fSpeed", &m_fSpeed);
GUI::End();
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_ProtegoHit.cpp b/Jusin154_Team3D/Client/Private/Goblin_ProtegoHit.cpp
new file mode 100644
index 000000000..7debf4496
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Goblin_ProtegoHit.cpp
@@ -0,0 +1,188 @@
+#include "pch.h"
+#include "Goblin_ProtegoHit.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+
+
+CGoblin_ProtegoHit::CGoblin_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CGoblin_ProtegoHit::CGoblin_ProtegoHit(const CGoblin_ProtegoHit& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CGoblin_ProtegoHit::Initialize_Prototype()
+{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinProtegoHit")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CGoblin_ProtegoHit::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"GoblinProtegoHit";
+
+ m_pHit_SphereLay = Get_PartObject("ProtegoHit_Lay");
+ m_pHit_Light = Get_PartObject("Hit_Light");
+
+ SAFE_ADDREF(m_pHit_SphereLay);
+ SAFE_ADDREF(m_pHit_Light);
+
+
+ m_fDuration = 3.f;
+
+ _float3 vScale = _float3(1.1f, 1.1f, 1.1f);
+
+ m_pHit_SphereLay->Get_Component()->Set_Scale(vScale);
+ m_pHit_Light->Get_Component()->Set_Scale(vScale);
+
+ return S_OK;
+}
+
+void CGoblin_ProtegoHit::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CGoblin_ProtegoHit::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+}
+
+void CGoblin_ProtegoHit::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CGoblin_ProtegoHit::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+ _vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg));
+
+ CEffectParts* pProtego_HitPT = Get_PartObject("Protego_HitPT");
+ CEffectParts* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line");
+ CEffectParts* pProtegoHit = Get_PartObject("ProtegoHit");
+
+ m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ pProtego_HitPT->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+ pProtego_HitPT_Line->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+ pProtegoHit->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+
+
+ m_pHit_SphereLay->Set_Visible(true);
+ m_pHit_Light->Set_Visible(true);
+
+ pProtego_HitPT->Set_Visible(true);
+ pProtego_HitPT_Line->Set_Visible(true);
+ pProtegoHit->Set_Visible(true);
+
+
+
+
+ return S_OK;
+}
+
+HRESULT CGoblin_ProtegoHit::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CGoblin_ProtegoHit::Ready_Child()
+{
+ return S_OK;
+}
+
+CGoblin_ProtegoHit* CGoblin_ProtegoHit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CGoblin_ProtegoHit* pInstance = new CGoblin_ProtegoHit(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CGoblin_ProtegoHit");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CGoblin_ProtegoHit::Clone(void* pArg, CGameObject* pOwner)
+{
+ CGoblin_ProtegoHit* pInstance = new CGoblin_ProtegoHit(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CGoblin_ProtegoHit");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CGoblin_ProtegoHit::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CGoblin_ProtegoHit::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pHit_SphereLay);
+ SAFE_RELEASE(m_pHit_Light);
+}
+#ifdef _DEBUG
+
+void CGoblin_ProtegoHit::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CGoblin_ProtegoHit::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
index 0a664bcae..407af3a78 100644
--- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
+++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
@@ -97,6 +97,9 @@ void CHuman_Duelist::Update(_float fTimeDelta)
Play_Event();
+
+
+
__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
@@ -563,6 +566,8 @@ void CHuman_Duelist::Free()
void CHuman_Duelist::Describe_Entity()
{
+
+
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
if (GUI::CollapsingHeader("HUMAN_DUELIST_DESC")) {
@@ -610,6 +615,12 @@ void CHuman_Duelist::Describe_Entity()
GUI::Text("HP : %f, %f", m_pStat->Get_Stat().fCurrentHp, m_pStat->Get_Stat().fMaxHp);
GUI::SameLine(); if (GUI::Button("FULL")) { m_pStat->Set_Stat(ENUM_CLASS(STAT::CURRENTHP), m_pStat->Get_Stat().fMaxHp); }
+
+ if(GUI::Button("Reset Pos"))
+ {
+ m_pCharacter_Controller->Set_Position(XMVectorSet(1007.f, 6.f, 1016.f, 1.f));
+ }
+
m_pLightCom->Describe_Entity();
}
GUI::End();
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index a4a85b31a..0c6bbbfcd 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -231,49 +231,12 @@ void CInfoInstance::Key_Input(_uint Input)
case ENUM_CLASS(KEYINPUT::INPUT_4):
Event_CallBack(TEXT("Spell"), &m_eInput);
break;
- //case ENUM_CLASS(KEYINPUT::INPUT_T):
- // if (m_eUI_State == UI_STATE::GAMEPLAYER)
- // {
- // m_eUI_State = UI_STATE::SPELL;
- // Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- // }
- // else if (m_eUI_State == UI_STATE::SPELL)
- // {
- // m_eUI_State = UI_STATE::GAMEPLAYER;
- // Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- // }
- // break;
case ENUM_CLASS(KEYINPUT::INPUT_X):
Event_CallBack(TEXT("Ancient_Magic_Throw"));
break;
case ENUM_CLASS(KEYINPUT::INPUT_G):
Event_CallBack(TEXT("Use_Potion"));
break;
- /*case ENUM_CLASS(KEYINPUT::INPUT_TAB):
- if (m_eUI_State == UI_STATE::GAMEPLAYER)
- {
- m_eUI_State = UI_STATE::QUEST;
- Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- }
- else if (m_eUI_State == UI_STATE::QUEST)
- {
- m_eUI_State = UI_STATE::GAMEPLAYER;
- Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- }
- break;
- case ENUM_CLASS(KEYINPUT::INPUT_ESPACE):
- if (m_eUI_State == UI_STATE::GAMEPLAYER)
- {
- m_eUI_State = UI_STATE::SPELLNEARN;
- Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- }
- else if (m_eUI_State == UI_STATE::SPELLNEARN)
- {
- m_eUI_State = UI_STATE::GAMEPLAYER;
- Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
- }
- break;*/
-
default:
break;
}
diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp
index 3c61e99f5..ce0d1f0f3 100644
--- a/Jusin154_Team3D/Client/Private/Level_Field.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp
@@ -62,10 +62,6 @@ HRESULT CLevel_Field::Initialize(void* pArg)
if (FAILED(Ready_Layer_Monster())) {
return E_FAIL;
}
- if (FAILED(Ready_Layer_CutScene())) {
- return E_FAIL;
- }
-
m_bLevel = true;
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
@@ -106,8 +102,6 @@ void CLevel_Field::Update(_float fTimeDelta)
UI_STATE eState = UI_STATE::GAMEPLAYER;
m_pInfoInstance->Event_CallBack(TEXT("Canvas_Change"), &eState);
}
-
-
}
HRESULT CLevel_Field::Render()
@@ -243,9 +237,9 @@ HRESULT CLevel_Field::Ready_Camera()
Camera_Desc.fFar = 500.f;
Camera_Desc.pCameraKey = CAMERA_CINEMATIC;
Camera_Desc.iPriority = 65;
- Camera_Desc.bEnableTransitionLerp = true;
- Camera_Desc.bEnableLookLerp = true;
- Camera_Desc.bEnableFollowLerp = true;
+ Camera_Desc.bEnableTransitionLerp = false;
+ Camera_Desc.bEnableLookLerp = false;
+ Camera_Desc.bEnableFollowLerp = false;
Camera_Desc.vTransitionTime.y = 1.f;
Camera_Desc.pFollowTarget = { nullptr };
Camera_Desc.pLookTarget = { nullptr };
@@ -340,27 +334,6 @@ HRESULT CLevel_Field::Reday_Layer_EffectPool()
return S_OK;
}
-HRESULT CLevel_Field::Ready_Layer_CutScene()
-{
- CMonster* pMonster = { nullptr };
- CCamera* pCamera = { nullptr };
- {
- CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_MONSTER);
- if (nullptr != pLayer) {
- pMonster = pLayer->Get_Object();
- }
- }
- {
- pCamera = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
- }
-
- if (nullptr == pMonster || nullptr == pCamera) {
- return E_FAIL;
- }
- Load_CutSceneXML("../Bin/Resources/Data/CutScene/RanrokCutScene.xml", pCamera, pMonster);
- return S_OK;
-}
-
pair> CLevel_Field::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
{
CLevel_Field* pInstance = new CLevel_Field(pDevice, pContext, eLevelID);
@@ -381,270 +354,9 @@ void CLevel_Field::Free()
SAFE_RELEASE(m_pInfoInstance);
}
-static _bool IsTrueText(const char* text)
-{
- if (!text){ return false; }
- return (strcmp(text, "true") == 0) || (strcmp(text, "1") == 0);
-}
-
-static _bool TryReadFloatAttr(tinyxml2::XMLElement* element, const _char* attrName, _float& outValue)
-{
- if (!element || !attrName) {
- return false;
- }
-
- const _char* text = element->Attribute(attrName);
- if (!text || text[0] == '\0'){
- return false;
- }
-
- return (element->QueryFloatAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
-}
-
-static _bool TryReadUIntAttr(tinyxml2::XMLElement* element, const _char* attrName, _uint& outValue)
-{
- if (!element || !attrName) return false;
-
- const _char* text = element->Attribute(attrName);
- if (!text || text[0] == '\0') {
- return false;
- }
-
- return (element->QueryUnsignedAttribute(attrName, &outValue) == tinyxml2::XML_SUCCESS);
-}
-
-static void ReadPxTransform(tinyxml2::XMLElement* transformNode, PSX::PxTransform& outTransform)
-{
- outTransform.p = PSX::PxVec3(0.f, 0.f, 0.f);
- outTransform.q = PSX::PxQuat(0.f, 0.f, 0.f, 1.f);
-
- if (!transformNode) { return; }
-
- tinyxml2::XMLElement* rotQNode = transformNode->FirstChildElement("RotQ");
- tinyxml2::XMLElement* transNode = transformNode->FirstChildElement("Trans");
- if (!rotQNode || !transNode) {
- return;
- }
-
- TryReadFloatAttr(rotQNode, "X", outTransform.q.x);
- TryReadFloatAttr(rotQNode, "Y", outTransform.q.y);
- TryReadFloatAttr(rotQNode, "Z", outTransform.q.z);
- TryReadFloatAttr(rotQNode, "W", outTransform.q.w);
-
- TryReadFloatAttr(transNode, "X", outTransform.p.x);
- TryReadFloatAttr(transNode, "Y", outTransform.p.y);
- TryReadFloatAttr(transNode, "Z", outTransform.p.z);
-}
-
-static void ReadFlags16(tinyxml2::XMLElement* flagsNode, _boolean& outFlags)
-{
- memset(&outFlags, 0, sizeof(_boolean));
-
- if (!flagsNode) {
- return;
- }
-
- for (tinyxml2::XMLElement* flagNode = flagsNode->FirstChildElement("Flag");
- flagNode;
- flagNode = flagNode->NextSiblingElement("Flag"))
- {
- int flagId = -1;
- if (flagNode->QueryIntAttribute("id", &flagId) != tinyxml2::XML_SUCCESS) {
- continue;
- }
-
- if (flagId < 0 || flagId >= 16) {
- continue;
- }
-
- outFlags.b[flagId] = IsTrueText(flagNode->GetText());
- }
-}
-
-static void ReadUInt4(tinyxml2::XMLElement* param10Node, _uint4& outValue)
-{
- outValue = {};
-
- if (!param10Node) {
- return;
- }
- tinyxml2::XMLElement* uintNode = param10Node->FirstChildElement("uint");
- if (!uintNode) return;
-
- _uint temp = 0;
- if (TryReadUIntAttr(uintNode, "X", temp)) outValue.x = temp;
- if (TryReadUIntAttr(uintNode, "Y", temp)) outValue.y = temp;
- if (TryReadUIntAttr(uintNode, "Z", temp)) outValue.z = temp;
- if (TryReadUIntAttr(uintNode, "W", temp)) outValue.w = temp;
-}
-
-static void ReadFloat4(tinyxml2::XMLElement* param11Node, _float4& outValue)
-{
- outValue = {};
-
- if (!param11Node) {
- return;
- }
- tinyxml2::XMLElement* floatNode = param11Node->FirstChildElement("float");
- if (!floatNode) {
- return;
- }
-
- TryReadFloatAttr(floatNode, "X", outValue.x);
- TryReadFloatAttr(floatNode, "Y", outValue.y);
- TryReadFloatAttr(floatNode, "Z", outValue.z);
- TryReadFloatAttr(floatNode, "W", outValue.w);
-}
-
-void CLevel_Field::Load_CutSceneXML(const string& path, CCamera* pCamera, CMonster* pMonster)
-{
- tinyxml2::XMLDocument doc;
- if (doc.LoadFile(path.c_str()) != tinyxml2::XML_SUCCESS){
- return;
- }
-
- TimeLine* pTimeLine = new TimeLine();
- tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement("RanrokIntro");
- if (!pContentsNode){
- return;
- }
-
- pTimeLine->m_vTimer.y = 0.f;
- pContentsNode->QueryFloatAttribute("fDuration", &pTimeLine->m_vTimer.y);
-
- pTimeLine->m_Sockets.clear();
-
- for (tinyxml2::XMLElement* pSocketNode = pContentsNode->FirstChildElement("Socket");
- pSocketNode; pSocketNode = pSocketNode->NextSiblingElement("Socket"))
- {
- SOCKETCONTENTS SocketContents = {};
-
- SocketContents .fRatio = 0.f;
- _int fStartPosition = 0;
- pSocketNode->QueryIntAttribute("fStartPosition", &fStartPosition);
- SocketContents.fRatio = CMyTools::Saturate(fStartPosition / pTimeLine->m_vTimer.y);
- // Info
- tinyxml2::XMLElement* pInfoNode = pSocketNode->FirstChildElement("Info");
- if (pInfoNode != nullptr)
- {
- const _char* pEventNameText = pInfoNode->Attribute("strEventName");
- SocketContents.strEventName = pEventNameText ? pEventNameText : "";
-
- SocketContents.eTypeParam = TIMESOCKET_PARAM::END;
- if (const _char* pTypeText = pInfoNode->Attribute("eTypeParam"))
- {
- CTimeSocket::TryParse_TimeSocketParam(string_view(pTypeText), SocketContents.eTypeParam);
- }
-
- SocketContents.eTypeFunc = TIMESOCKET_FUNC::END;
- if (const _char* pFuncText = pInfoNode->Attribute("eTypeFunc"))
- {
- CTimeSocket::TryParse_TimeSocketFunc(string_view(pFuncText), SocketContents.eTypeFunc);
- }
-
- SocketContents.pEventTarget = nullptr;
- SocketContents.funcEvent = nullptr;
-
- if (const _char* pTargetText = pInfoNode->Attribute("pTarget"))
- {
- if (strcmp(pTargetText, "CAMERA_CINEMATIC") == 0)
- {
- CCamera* pEventTarget = pCamera;
- SocketContents.pEventTarget = pEventTarget;
- SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
- }
- else if (strcmp(pTargetText, "CAMERA_SHOULDER") == 0)
- {
- CCamera* pEventTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
- SocketContents.pEventTarget = pEventTarget;
- SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
- }
- else if (strcmp(pTargetText, "ACTOR_PLAYER") == 0)
- {
- CPlayer* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object();
- SocketContents.pEventTarget = pEventTarget;
- SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
- }
- }
- }
-
- // -------- Param_0 ----------
- tinyxml2::XMLElement* pParam0Node = pSocketNode->FirstChildElement("Param_0");
- if (nullptr != pParam0Node)
- {
- switch (SocketContents.eTypeParam)
- {
- case TIMESOCKET_PARAM::TARGET:
- {
- tinyxml2::XMLElement* pOtherTargetNode = pParam0Node->FirstChildElement("OtherTarget");
- if (!pOtherTargetNode) break;
-
- const _char* pLayerNameText = pOtherTargetNode->Attribute("Layer");
- const _char* pTypeIdText = pOtherTargetNode->Attribute("TypeID");
-
- if (!pLayerNameText || !pTypeIdText) break;
- if (pLayerNameText[0] == '\0' || pTypeIdText[0] == '\0') break;
-
- SocketContents.wstrLayerName = CMyTools::ToWstring(pLayerNameText);
- SocketContents.wstrKeyName = CMyTools::ToWstring(pTypeIdText);
-
- if (string_view(pTypeIdText) == "Ranrok")
- {
- SocketContents.pOtherTarget =
- m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
- }
- else if (string_view(pTypeIdText) == "CAMERA_CINEMATIC")
- {
- SocketContents.pOtherTarget = pCamera;
- }
- else if (string_view(pTypeIdText) == "CAMERA_SHOULDER")
- {
- SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
- }
-
- break;
- }
-
- case TIMESOCKET_PARAM::TRANSFORM:
- {
- tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform");
- ReadPxTransform(pTransformNode, SocketContents.pxTransform);
- break;
- }
- case TIMESOCKET_PARAM::END:
- default:
- break;
- }
- }
-
- // -------- vFlags / Param_10 / Param_11 ----------
- ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags);
- ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10);
- ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11);
- CTimeSocket* pSocket = CTimeSocket::Create(&SocketContents);
- if (!pSocket) {
- continue;
- }
- pTimeLine->m_Sockets.push_back(pSocket);
- }
- pTimeLine->m_Sockets.sort([](CTimeSocket* a, CTimeSocket* b) {
- return a->m_Contents.fRatio < b->m_Contents.fRatio;
- });
- pair<_string, TimeLine*> pairResult = { _string(pContentsNode->Name()), pTimeLine };
- m_pInfoInstance->Load_Events(pairResult);
-}
#ifdef _DEBUG
void CLevel_Field::Describe_Entity()
{
- GUI::Begin("CutScene");
- if (GUI::Button("ReadyCutScene")) {
- Ready_Layer_CutScene();
- }
- if (GUI::Button("DeActiveCutScene")) {
- _string strDeActiveEvent = "RanrokIntro";
- m_pInfoInstance->DeActive_ActiveEvent(strDeActiveEvent);
- }
- GUI::End();
}
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 8636a7499..213a49661 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -62,7 +62,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
m_isDay = true;
#endif //
#ifdef 나
- m_isDay = true;
+ m_isDay = false;
#endif //
#endif // _DEBUG
@@ -312,11 +312,11 @@ HRESULT CLevel_GamePlay::Ready_Background()
#ifdef 기무리
isReady_Background = true;
isReady_Hogsmeade = true;
- isReady_Hogwart = true;
+ isReady_Hogwart = false;
#endif //
#ifdef 나
- isReady_Background = true;
- isReady_Hogsmeade = true;
+ isReady_Background = false;
+ isReady_Hogsmeade = false;
isReady_Hogwart = false;
#endif //
#endif // _DEBUG
@@ -998,7 +998,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
isLoad_Monster = true;
#endif //
#ifdef 기무리
- isLoad_Monster = true;
+ isLoad_Monster = false;
#endif //
#ifdef 나
@@ -1063,7 +1063,6 @@ HRESULT CLevel_GamePlay::Ready_Layer_Manager(const _wstring& strLayerTag)
HRESULT CLevel_GamePlay::Reday_Layer_EffectPool()
{
-
//플레이어보다 먼저 생성해야함!
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_EFFECTPOOL))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 01de241cd..1aa22173d 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -193,6 +193,10 @@
#include "TransformationSide.h"
#include "AvadakedavraSide.h"
+#include "Protego_Hit.h"
+#include "Goblin_ProtegoHit.h"
+#include "Duelist_ProtegoHit.h"
+
#include "TrailObject.h"
#include "Instance_Model.h"
#include "Trail.h"
@@ -425,15 +429,16 @@ HRESULT CLoader::Loading_For_GamePlay()
#endif //
#ifdef 기무리
isLoad_Background = true;
- isLoad_Hogwart = true;
- isLoad_UI_SEQUANTIAL = true;
+ isLoad_Hogwart = false;
+ isLoad_UI_SEQUANTIAL = false;
isLoad_NPC = true;
isLoad_Monster = true;
#endif //
#ifdef 나
- isLoad_Background = true;
- isLoad_Hogwart = true;
- isLoad_UI_SEQUANTIAL = false;
+ isLoad_Background = false;
+ isLoad_Hogwart = false;
+ isLoad_UI_SEQUANTIAL = true;
+ isLoad_Monster = true;
#endif //
#ifdef Bin
isLoad_Background = false;
@@ -444,6 +449,7 @@ HRESULT CLoader::Loading_For_GamePlay()
#pragma region MAP_MODELS
vector*>> jobMapModels;
+ vector*>> jobMapShaders;
{
{ /* Terrain */
jobMapModels.emplace_back(Deferred_FolderLoad(
@@ -1076,6 +1082,43 @@ HRESULT CLoader::Loading_For_GamePlay()
));
}
}
+
+#pragma region SHADER
+
+ {
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_UIEDITOR,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_UIINSTANCE,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_INSTANCE_MODEL,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_INSTANCE_PROP_MODEL,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_NPC_PBR_ANIM,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_ANIMMESH,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_POSTEX,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_NORTEX,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"), VTXNORTEX::Elements, VTXNORTEX::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_MESH,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), VTXMESH::Elements, VTXMESH::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_VTXPOS,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements));
+ }
+
+#pragma endregion
/* LAND_MODEL */
{
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
@@ -1891,70 +1934,6 @@ HRESULT CLoader::Loading_For_GamePlay()
-#pragma endregion
-#pragma region SHADER
-
- m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"),
- VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"),
- VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_MODEL,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"),
- VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"),
- VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) {
- return E_FAIL;
- }
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"),
- VTXPOS::Elements, VTXPOS::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"),
- VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"),
- VTXMESH::Elements, VTXMESH::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_ANIMMESH,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"),
- VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_POSTEX,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"),
- VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NORTEX,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"),
- VTXNORTEX::Elements, VTXNORTEX::iNumElements)))) {
- return E_FAIL;
- }
-
#pragma endregion
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
@@ -2570,6 +2549,16 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_ProtegoHit::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDuelist_ProtegoHit::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
+
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Attack::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -2614,6 +2603,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CProtego_Hit::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLightningSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -3737,11 +3730,28 @@ HRESULT CLoader::Loading_For_GamePlay()
#pragma region RECEIVE_THREAD
- { // MapModels
+ {
+ m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
_uint iIndex = 0;
- for (auto& JobMapModels : jobMapModels)
+ for (auto& JobMapShader : jobMapShaders)
{
- vector* pOut = JobMapModels.get();
+ pair<_wstring, CShader*>* pOut = JobMapShader.get();
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
+ return E_FAIL;
+ }
+ Safe_Delete(pOut);
+ }
+ }
+
+/* 쉐이더 로딩 종료 이후 로딩*/
+
+
+ { // MapModels
+ m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
+ _uint iIndex = 0;
+ for (auto& JobMapModel : jobMapModels)
+ {
+ vector* pOut = JobMapModel.get();
for (_uint i = 0; i < pOut->size(); ++i) {
FOLDER_LOAD* pContents = (*pOut)[i];
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, pContents->pModelTag, pContents->pLoadedModel))) {
@@ -3763,25 +3773,28 @@ HRESULT CLoader::Loading_For_GamePlay()
m_strMessage = TEXT("정보를 불러오는 중입니다.");
m_strMessage = TEXT("모델을 다시 불러오는 중입니다. ");
- {
- 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.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;
- }
- }
- {
- 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.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;
+ if (isLoad_Monster) {
+ {
+ 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.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;
+ }
+ }
+
+ {
+ 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.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;
+ }
}
}
@@ -4100,10 +4113,28 @@ pair<_wstring, CModel*>* APIENTRY Deferred_ModelLoad_Main(ID3D11Device* pDevice,
return Out;
}
+pair<_wstring, CShader*>* APIENTRY Deferred_ShaderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements)
+{
+ if (FAILED(CoInitializeEx(nullptr, 0))) {
+ assert(false);
+ return nullptr;
+ }
+
+ CShader* pShader = CShader::Create(pDevice, pContext, pShaderFilePath, pElements, iNumElements);
+
+ CoUninitialize();
+ pair<_wstring, CShader*>* Out = new pair<_wstring, CShader*>(strPrototypeTag, pShader);
+ return Out;
+}
+
future*> CLoader::Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag) {
return m_pGameInstance->EnqueueJob(&Deferred_ModelLoad_Main, m_pDevice, m_pContext, eType, pDirectoryPath, pPrototypeTag, PreTransform);
}
+future*> CLoader::Deferred_ShaderLoad(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements) {
+ return m_pGameInstance->EnqueueJob(&Deferred_ShaderLoad_Main, pDevice, pContext, strPrototypeTag, pShaderFilePath, pElements, iNumElements);
+}
+
void CLoader::Ready_MapModels(vector*>>& jobMapModels)
{
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
index d8aa5aaea..4713850ff 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
@@ -151,13 +151,11 @@ void CMapElement_Static::ReadyForPhysX()
}
m_bConverted = true;
_uint iLevel = NEXT_LEVEL;
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
- if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
- assert(false);
- }
+ CModel* pModel = m_pModelComs[0];
+
+ if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
+ assert(false);
}
}
@@ -168,26 +166,22 @@ void CMapElement_Static::ConvertToPhysX()
}
m_bReadyToCreatePhysX = true;
- m_RigidBodies.resize(m_iMaxLodLevel + 1);
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
+ CModel* pModel = m_pModelComs[0];
+
+ _uint iNumMeshes = pModel->Get_NumMeshes();
+
+ for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
{
- CModel* pModel = m_pModelComs[iIndexLOD];
-
- _uint iNumMeshes = pModel->Get_NumMeshes();
-
- for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
- {
- _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
- CRigidBody_Static* pRigidBody = { nullptr };
- CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
- Desc.pMeshName = wstrName.c_str();
- Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
- if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
- assert(false);
- }
- m_RigidBodies[iIndexLOD].push_back(pRigidBody);
+ _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
+ CRigidBody_Static* pRigidBody = { nullptr };
+ CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
+ Desc.pMeshName = wstrName.c_str();
+ Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
+ if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
+ assert(false);
}
+ m_RigidBodies.push_back(pRigidBody);
}
}
@@ -224,9 +218,7 @@ void CMapElement_Static::Free()
SAFE_RELEASE(m_pShaderCom);
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
- for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
- SAFE_RELEASE(m_RigidBodies[i][j]);
- }
+ SAFE_RELEASE(m_RigidBodies[i]);
} m_RigidBodies.clear();
for (auto& pModel : m_pModelComs)
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp b/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
index 805c557be..5ad853b03 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
@@ -143,26 +143,23 @@ void CMapObject_Collision::ReadyForPhysX()
}
m_bConverted = true;
_uint iLevel = NEXT_LEVEL;
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
- _matrix parentMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
- _matrix idenMatrix = XMMatrixIdentity();
- _bool bSkip = { false };
- for (_int i = 0; i < 4; ++i) {
- if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
- if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
- assert(false);
- }
- bSkip = true;
- break;
- }
- }
- if (false == bSkip) {
- if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
+ CModel* pModel = m_pModelComs[0];
+ _matrix parentMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
+ _matrix idenMatrix = XMMatrixIdentity();
+ _bool bSkip = { false };
+ for (_int i = 0; i < 4; ++i) {
+ if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
assert(false);
}
+ bSkip = true;
+ break;
+ }
+ }
+ if (false == bSkip) {
+ if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
+ assert(false);
}
}
}
@@ -174,26 +171,22 @@ void CMapObject_Collision::ConvertToPhysX()
}
m_bReadyToCreatePhysX = true;
- m_RigidBodies.resize(m_iMaxLodLevel + 1);
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
+ CModel* pModel = m_pModelComs[0];
- _uint iNumMeshes = pModel->Get_NumMeshes();
-
- for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
- {
- _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
- CRigidBody_Static* pRigidBody = { nullptr };
- CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
- Desc.pMeshName = wstrName.c_str();
- Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
- if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
- assert(false);
- }
- m_RigidBodies[iIndexLOD].push_back(pRigidBody);
+ _uint iNumMeshes = pModel->Get_NumMeshes();
+
+ for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
+ {
+ _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
+ CRigidBody_Static* pRigidBody = { nullptr };
+ CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
+ Desc.pMeshName = wstrName.c_str();
+ Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
+ if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
+ assert(false);
}
+ m_RigidBodies.push_back(pRigidBody);
}
}
@@ -278,10 +271,7 @@ void CMapObject_Collision::Free()
} m_pModelComs.clear();
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
- for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
- SAFE_RELEASE(m_RigidBodies[i][j]);
- }
- m_RigidBodies[i].clear();
+ SAFE_RELEASE(m_RigidBodies[i]);
} m_RigidBodies.clear();
m_ModelPrototypeTags.clear();
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
index 8a83927a3..3f53662f5 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
@@ -158,13 +158,11 @@ void CMapObject_Render::ReadyForPhysX()
m_bConverted = true;
_uint iLevel = NEXT_LEVEL;
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
- if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
- assert(false);
- }
+ CModel* pModel = m_pModelComs[0];
+
+ if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
+ assert(false);
}
}
@@ -175,26 +173,22 @@ void CMapObject_Render::ConvertToPhysX()
}
m_bReadyToCreatePhysX = true;
- m_RigidBodies.resize(m_iMaxLodLevel + 1);
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
+ CModel* pModel = m_pModelComs[0];
+
+ _uint iNumMeshes = pModel->Get_NumMeshes();
+
+ for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
{
- CModel* pModel = m_pModelComs[iIndexLOD];
-
- _uint iNumMeshes = pModel->Get_NumMeshes();
-
- for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
- {
- _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
- CRigidBody_Static* pRigidBody = { nullptr };
- CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
- Desc.pMeshName = wstrName.c_str();
- Desc.pWorldMatrix = &m_CombinedWorldMatrix;
- if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
- assert(false);
- }
- m_RigidBodies[iIndexLOD].push_back(pRigidBody);
+ _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
+ CRigidBody_Static* pRigidBody = { nullptr };
+ CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
+ Desc.pMeshName = wstrName.c_str();
+ Desc.pWorldMatrix = &m_CombinedWorldMatrix;
+ if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
+ assert(false);
}
+ m_RigidBodies.push_back(pRigidBody);
}
}
@@ -305,9 +299,7 @@ void CMapObject_Render::Free()
SAFE_RELEASE(m_pDefaultGlassTextureCom);
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
- for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
- SAFE_RELEASE(m_RigidBodies[i][j]);
- }
+ SAFE_RELEASE(m_RigidBodies[i]);
} m_RigidBodies.clear();
for (auto& pModel : m_pModelComs)
diff --git a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
index d3154d442..a911000ca 100644
--- a/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
+++ b/Jusin154_Team3D/Client/Private/NPCInteraction.cpp
@@ -100,7 +100,7 @@ void CNPCInteraction::NpcInfo(void* pArg)
m_pInfo.fNPCPosition = Info->fNPCPosition;
_vector MonsterPos = static_cast(Info->pOwner)->Get_WorldPostion();
- _vector HeadPos = MonsterPos + XMVectorSet(0.5f, 2.f, 0.f, 0.f);
+ _vector HeadPos = MonsterPos + XMVectorSet(0.f, 2.f, 0.f, 0.f);
XMStoreFloat4(&m_pInfo.fNPCPosition, HeadPos);
}
@@ -109,7 +109,7 @@ void CNPCInteraction::Priority_Update(_float fTimeDelta)
if (m_pInfo.pOwner != nullptr)
{
_vector MonsterPos = static_cast(m_pInfo.pOwner)->Get_WorldPostion();
- _vector HeadPos = XMVectorAdd(MonsterPos, XMVectorSet(0.5f, 2.f, 0.f, 0.f));
+ _vector HeadPos = XMVectorAdd(MonsterPos, XMVectorSet(0.f, 2.f, 0.f, 0.f));
XMStoreFloat4(&m_pInfo.fNPCPosition, HeadPos);
_vector ScreenPos = XMVector3Project(
diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp
index 342f4142b..524009623 100644
--- a/Jusin154_Team3D/Client/Private/NomalJap.cpp
+++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp
@@ -296,12 +296,14 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
_vector vDir = m_pTransformCom->Get_State(STATE::LOOK);
vDir = XMVector3Normalize(vDir);
- _float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 0.f));
+ _float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 180.f));
_matrix rotX = XMMatrixRotationX(fRandAngle);
_vector vRandDir = XMVector3TransformNormal(vDir, rotX);
XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(vRandDir));
+
+ m_fLinearSpeed = 15.f;
}
else {
Get_PartObject("JapPT0")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion());
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 7052c1074..a45673d4b 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -116,7 +116,7 @@ HRESULT CPlayer::Initialize(void* pArg)
// UI 연동 추가
m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); });
- m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); });
+ m_pInfoInstance->Add_Event(TEXT("Player_CanvasChange"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); });
m_bAI = false;
@@ -430,14 +430,21 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
}
void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
{
+ pair<_uint, _bool> pairAnimInfo;
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
+
if (m_pFSM->IsEnable(FSMSTATE::DODGE | FSMSTATE::BLINK) ||
- m_bShield ||
iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first ||
iCurrAnim == m_Animation[STATEANIM::ANCIENT_LIGHTNING].first ||
iCurrAnim == m_Animation[STATEANIM::ANCIENT_THROW].first)
return;
+ if (m_bShield)
+ {
+ m_pFSM->Change_State(FSMSTATE::BLOCK);
+ return;
+ }
+
#ifdef _DEBUG
if (m_isDebugMode == true)
return;
@@ -855,7 +862,8 @@ void CPlayer::Player_PixRot()
{
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
if (iCurrAnim == m_Animation[STATEANIM::AVADA_KEDAVRA].first ||
- iCurrAnim == m_Animation[STATEANIM::BROOM_DISMOUNT].first)
+ iCurrAnim == m_Animation[STATEANIM::BROOM_DISMOUNT].first||
+ iCurrAnim == m_Animation[STATEANIM::IDLE].first)
{
_vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
@@ -1014,6 +1022,7 @@ void CPlayer::Describe_Entity()
m_pShaderCom->Shader_Refresh();
}
m_pCharacter_Controller->Describe_Entity();
+ GUI::Checkbox("Shield", &m_bShield);
_float4 vMomentum = {};
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index 9a7cb6411..d129a51c6 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -32,6 +32,7 @@
#include "State_Spell.h"
#include "State_AncientSpell.h"
#include "State_Shield.h"
+#include "State_Block.h"
#include "State_Hit.h"
#include "State_Broom_Ride.h"
#include "State_Broom_Ride_Move.h"
@@ -192,7 +193,6 @@ void CPlayer::Behavior_IdleEnter() {
pairAnimInfo = m_Animation[STATEANIM::IDLE];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
-
}
HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
@@ -370,16 +370,16 @@ HRESULT CPlayer::Behavior_CutSceneExitCheck(_float fTimeDelta)
{
if (m_bOpeningCutScene)
{
- _vector Offset = XMVectorSet(1.820f, 0.44f, 0.f, 0.f);
- m_pTransformCom->Set_WorldMatrix(m_pCarriage->Get_Component()->Get_XMWorldMatrix());
- m_pCharacter_Controller->Set_Position(m_pCarriage->Get_WorldPostion() + Offset);
+ //_vector Offset = XMVectorSet(1.820f, 0.44f, 0.f, 0.f);
+ //m_pTransformCom->Set_WorldMatrix(m_pCarriage->Get_Component()->Get_XMWorldMatrix());
+ m_pCharacter_Controller->Set_Position(m_pCarriage->Get_WorldPostion() /*+ Offset*/);
}
- if (m_pCarriage->Get_Component()->IsFinishedAnim())
+ /*if (m_pCarriage->Get_Component()->IsFinishedAnim())
{
m_pFSM->Change_State(FSMSTATE::IDLE);
return E_FAIL;
- }
+ }*/
return S_OK;
}
@@ -1686,6 +1686,7 @@ void CPlayer::Behavior_ShieldEnter()
pair<_uint, _bool> pairAnimInfo;
m_pFSM->Enable_State(FSMSTATE::SHIELD);
+
pairAnimInfo = m_Animation[STATEANIM::SKILL2];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.3f);
@@ -1694,87 +1695,12 @@ void CPlayer::Behavior_ShieldEnter()
0.1f);
}
-HRESULT CPlayer::Behavior_ShieldExitCheck()
+HRESULT CPlayer::Behavior_ShieldExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo;
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
_float fEventRatio = 0.2f;
-
- if (m_bShield)
- {
- pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
-
- if (m_pGameInstance->Key_Pressing(DIK_Q))
- {
- m_pFSM->Enable_State(FSMSTATE::PARRY);
- if (m_LockOnInfo.pUnit)
- {
- _vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
- _vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f);
-
- vLook = XMVector3Normalize(vLook);
- vCameraLook = XMVector3Normalize(vCameraLook);
-
- _float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook));
- fDot = clamp(fDot, -1.0f, 1.0f);
-
- _float fAngleRad = acosf(fDot);
- _float Degree = XMConvertToDegrees(fAngleRad);
- _vector vCross = XMVector3Cross(vLook, vCameraLook);
- _float Cross = XMVectorGetY(vCross);
-
- if (Degree <= 30.f)
- {
- pairAnimInfo = m_Animation[STATEANIM::PARRY4];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.f,true, false, false);
- }
- else if (Degree <= 60.f)
- {
- pairAnimInfo = m_Animation[STATEANIM::PARRY4];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false);
- }
- else if (Degree <= 135.f)
- {
- if (Cross < 0.f)
- {
- pairAnimInfo = m_Animation[STATEANIM::PARRY2];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false);
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::PARRY3];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false);
- fEventRatio = 0.3f;
- }
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.3f, true,false, false);
- }
-
- }
- else {
- pairAnimInfo = m_Animation[STATEANIM::PARRY4];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- }
-
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); },
- 0.01f);
-
-
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
- fEventRatio);
-
- Start_CameraShake(0.3f, 2.f);
- //m_pGameInstance->SlowMotion(0.8f, 0.3f);
- m_bShield = false;
- return S_OK;
-
- }
- }
if (m_pModelCom->IsFinishedAnim()) {
if (SUCCEEDED(InputMove()))
@@ -1811,10 +1737,153 @@ void CPlayer::Behavior_ShieldExit()
m_pFSM->Disable_State(FSMSTATE::SHIELD);
m_pFSM->Disable_State(FSMSTATE::PARRY);
Reset_Event();
- m_bShield = false;
m_bLookAt = false;
}
+void CPlayer::Behavior_BlockEnter()
+{
+ m_pFSM->Enable_State(FSMSTATE::BLOCK);
+ pair<_uint, _bool> pairAnimInfo;
+ if (m_bShield) {
+ m_bBlock = true;
+ Start_CameraShake(0.3f, 3.f);
+ _int iRand = m_pGameInstance->Real_Random_Int(0, 6);
+
+ switch (iRand)
+ {
+ case 0:
+ pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK1];
+ break;
+ case 1:
+ pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK2];
+ break;
+ case 2:
+ pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK3];
+ break;
+ case 3:
+ pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK4];
+ break;
+ case 4:
+ pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK5];
+ break;
+ case 5:
+ pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK6];
+ break;
+ case 6:
+ pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK7];
+ break;
+ }
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false);
+ }
+}
+
+HRESULT CPlayer::Behavior_BlockExitCheck(_float fTimeDelta)
+{
+ pair<_uint, _bool> pairAnimInfo;
+ _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+ _float fEventRatio = 0.2f;
+ if (m_bBlock)
+ {
+ if (fRatio >= 0.1f && fRatio <= 0.2f) {
+ m_bCanParry = true;
+ }
+ else {
+ m_bCanParry = false;
+ }
+ }
+
+ if (m_bShield && m_bCanParry && m_pGameInstance->Key_Pressing(DIK_Q))
+ {
+ m_bBlock = false;
+ m_pFSM->Enable_State(FSMSTATE::PARRY);
+ if (m_LockOnInfo.pUnit)
+ {
+ _vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
+ _vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f);
+
+ vLook = XMVector3Normalize(vLook);
+ vCameraLook = XMVector3Normalize(vCameraLook);
+
+ _float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook));
+ fDot = clamp(fDot, -1.0f, 1.0f);
+
+ _float fAngleRad = acosf(fDot);
+ _float Degree = XMConvertToDegrees(fAngleRad);
+ _vector vCross = XMVector3Cross(vLook, vCameraLook);
+ _float Cross = XMVectorGetY(vCross);
+
+ if (Degree <= 30.f)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::PARRY4];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false);
+ }
+ else if (Degree <= 60.f)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::PARRY4];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false);
+ }
+ else if (Degree <= 135.f)
+ {
+ if (Cross < 0.f)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::PARRY2];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false);
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::PARRY3];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false);
+ fEventRatio = 0.3f;
+ }
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.3f, true, false, false);
+ }
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::PARRY4];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); },
+ 0.01f);
+
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
+ fEventRatio);
+
+ //m_pGameInstance->SlowMotion(0.8f, 0.3f);
+ m_bShield = false;
+ return S_OK;
+ }
+
+
+
+
+ if (m_pModelCom->IsFinishedAnim()) {
+ if (SUCCEEDED(InputMove()))
+ {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
+ else {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ return E_FAIL;
+ }
+ }
+ return S_OK;
+}
+
+void CPlayer::Behavior_BlockExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::BLOCK);
+ m_bShield = false;
+}
+
void CPlayer::Behavior_HitEnter()
{
m_pBroom->Set_Ride(false);
@@ -1896,6 +1965,7 @@ void CPlayer::Behavior_HitExit()
m_pCharacter_Controller->SetGravity(true);
m_eHitType = ENUM_CLASS(HIT_TYPE::END);
m_bLookAt = false;
+ m_bShield = false;
m_fAirTime = 0.f;
}
@@ -2430,16 +2500,16 @@ void CPlayer::Behavior_Broom_DismountEnter()
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_DISMOUNT);
m_pFSM->Enable_State(FSMSTATE::BROOM_DISMOUNT);
m_pBroom->Set_Ride(false);
- _vector look = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
+ //_vector look = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
- _vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
+ //_vector worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
- _vector right = XMVector3Normalize(XMVector3Cross(worldUp, look));
- _vector up = XMVector3Normalize(XMVector3Cross(look, right));
+ //_vector right = XMVector3Normalize(XMVector3Cross(worldUp, look));
+ //_vector up = XMVector3Normalize(XMVector3Cross(look, right));
- m_pTransformCom->Set_State(STATE::RIGHT, right);
- m_pTransformCom->Set_State(STATE::UP, up);
- m_pTransformCom->Set_State(STATE::LOOK, look);
+ //m_pTransformCom->Set_State(STATE::RIGHT, right);
+ //m_pTransformCom->Set_State(STATE::UP, up);
+ //m_pTransformCom->Set_State(STATE::LOOK, look);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.6f);
}
@@ -3183,12 +3253,23 @@ void CPlayer::Add_FSM()
CState_Shield::STATE_SHIELD_DESC Desc{};
Desc.pOwner = this;
Desc.funcEnterEvent = [this]() { Behavior_ShieldEnter(); };
- Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_ShieldExitCheck(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_ShieldExitCheck(fTimedelta); };
Desc.funcExitEvent = [this]() { Behavior_ShieldExit(); };
Desc.funcPriorityUpdate = nullptr;
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::SHIELD, CState_Shield::Create(&Desc));
}
+
+ {
+ CState_Block::STATE_BLOCK_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_BlockEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_BlockExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_BlockExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::BLOCK, CState_Block::Create(&Desc));
+ }
#pragma endregion
#pragma region Behavior_Combat_Focus
diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp
index 7170a628c..6250fe075 100644
--- a/Jusin154_Team3D/Client/Private/Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Protego.cpp
@@ -4,7 +4,8 @@
#include "GameInstance.h"
#include "EffectParts.h"
#include "Player.h"
-
+#include "EffectPool.h"
+#include "Layer.h"
CProtego::CProtego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
@@ -18,6 +19,8 @@ CProtego::CProtego(const CProtego& rhs)
HRESULT CProtego::Initialize_Prototype()
{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
+ return E_FAIL;
return S_OK;
@@ -31,8 +34,6 @@ HRESULT CProtego::Initialize(void* pArg)
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
- if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
- return E_FAIL;
if (FAILED(Create_Effect()))
return E_FAIL;
@@ -49,7 +50,7 @@ HRESULT CProtego::Initialize(void* pArg)
m_fAmountSize = 0.1f;
m_fSpeed = 5.f;
- m_fDuration = 3.f;
+ m_fDuration = 6.f;
return S_OK;
}
@@ -61,8 +62,12 @@ void CProtego::Priority_Update(_float fTimeDelta)
void CProtego::Update(_float fTimeDelta)
{
- if (m_bVisible == false)
+ if (m_bVisible == false) {
+ dynamic_cast(m_pOwner)->Set_Shield(false);
return;
+ }
+
+
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
@@ -105,6 +110,8 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
+ m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
+
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
@@ -117,6 +124,8 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
m_pSphere->Get_Component()->Set_Scale(vSize);
m_pSphereLay->Get_Component()->Set_Scale(vSize);
+
+
m_fSizeAccTime = 0.f;
return S_OK;
@@ -182,6 +191,17 @@ void CProtego::OnCollision(CGameObject* pOther, void* pDesc)
ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
dynamic_cast(m_pOwner)->Set_Shield(true);
+
+ m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object()
+ ->Use_Skill(SKILL_TYPE::PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos);
+
+ m_pOwner->OnCollision(pOther, &CollisionDesc);
+
+ static_cast(m_pOwner)->Start_CameraShake(0.3f, 2.f);
+
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
+
+ m_bVisible = false;
}
void CProtego::Free()
diff --git a/Jusin154_Team3D/Client/Private/Protego_Hit.cpp b/Jusin154_Team3D/Client/Private/Protego_Hit.cpp
new file mode 100644
index 000000000..6edfd4e37
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Protego_Hit.cpp
@@ -0,0 +1,188 @@
+#include "pch.h"
+#include "Protego_Hit.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+
+
+CProtego_Hit::CProtego_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CProtego_Hit::CProtego_Hit(const CProtego_Hit& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CProtego_Hit::Initialize_Prototype()
+{
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/ProtegoHit")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CProtego_Hit::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+ m_wstrEffectName = L"ProtegoHit";
+
+ m_pHit_SphereLay = Get_PartObject("ProtegoHit_Lay");
+ m_pHit_Light = Get_PartObject("Hit_Light");
+
+ SAFE_ADDREF(m_pHit_SphereLay);
+ SAFE_ADDREF(m_pHit_Light);
+
+
+ m_fDuration = 3.f;
+
+ _float3 vScale = _float3(1.1f, 1.1f, 1.1f);
+
+ m_pHit_SphereLay->Get_Component()->Set_Scale(vScale);
+ m_pHit_Light->Get_Component()->Set_Scale(vScale);
+
+ return S_OK;
+}
+
+void CProtego_Hit::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CProtego_Hit::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+}
+
+void CProtego_Hit::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+ _vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg));
+
+ CEffectParts* pProtego_HitPT = Get_PartObject("Protego_HitPT");
+ CEffectParts* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line");
+ CEffectParts* pProtegoHit = Get_PartObject("ProtegoHit");
+
+ m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ pProtego_HitPT->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+ pProtego_HitPT_Line->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+ pProtegoHit->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+
+
+ m_pHit_SphereLay->Set_Visible(true);
+ m_pHit_Light->Set_Visible(true);
+
+ pProtego_HitPT->Set_Visible(true);
+ pProtego_HitPT_Line->Set_Visible(true);
+ pProtegoHit->Set_Visible(true);
+
+
+
+
+ return S_OK;
+}
+
+HRESULT CProtego_Hit::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CProtego_Hit::Ready_Child()
+{
+ return S_OK;
+}
+
+CProtego_Hit* CProtego_Hit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CProtego_Hit* pInstance = new CProtego_Hit(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CProtego_Hit");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CProtego_Hit::Clone(void* pArg, CGameObject* pOwner)
+{
+ CProtego_Hit* pInstance = new CProtego_Hit(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CProtego_Hit");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CProtego_Hit::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CProtego_Hit::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pHit_SphereLay);
+ SAFE_RELEASE(m_pHit_Light);
+}
+#ifdef _DEBUG
+
+void CProtego_Hit::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CProtego_Hit::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp b/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp
index 9c413d948..d0fdd0833 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Canvas.cpp
@@ -3,7 +3,6 @@
#include "Quest_Canvas.h"
#include "GameInstance.h"
#include "Quest_Panel.h"
-#include "InfoInstance.h"
CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CCanvasObject(pDevice, pContext)
@@ -11,8 +10,7 @@ CQuest_Canvas::CQuest_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContex
}
CQuest_Canvas::CQuest_Canvas(const CQuest_Canvas& rhs)
- :CCanvasObject(rhs),
- m_pInfoInstance(CInfoInstance::GetInstance())
+ :CCanvasObject(rhs)
{
}
@@ -43,9 +41,6 @@ HRESULT CQuest_Canvas::Initialize(void* pArg)
return E_FAIL;
}
Visible(false);
- m_pInfoInstance->Set_AcceptQuest(0);
- m_pInfoInstance->Set_AcceptQuest(1);
- m_pInfoInstance->Set_AcceptQuest(2);
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Quest_Data.cpp b/Jusin154_Team3D/Client/Private/Quest_Data.cpp
index 6e850b057..70959070d 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Data.cpp
@@ -61,8 +61,9 @@ HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath)
pObjective->QueryIntAttribute("Clear", &Clear);
obj.bClear = Clear != 0;
pObjective->QueryIntAttribute("TargetID", &obj.iTargetID);
- pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
+ obj.pQuestInfo = CMyTools::ToWstring(pObjective->Attribute("QuestInfo"));
pObjective->QueryIntAttribute("CurrentCount", &obj.iCurrentCount);
+ pObjective->QueryIntAttribute("RequiredCount", &obj.iRequiredCount);
quest.ObjectiveInfo.push_back(obj);
diff --git a/Jusin154_Team3D/Client/Private/Quest_Info.cpp b/Jusin154_Team3D/Client/Private/Quest_Info.cpp
index c929b94de..50bee1036 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Info.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Info.cpp
@@ -98,6 +98,13 @@ void CQuest_Info::Update(_float fTimeDelta)
m_fAlpha = 0.f;
}
}
+
+ if (m_iCurrentIndex != m_iQuest_Index)
+ {
+ Y(m_fOriginPerviewSize + (m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size() * 50.f));
+ m_iCurrentIndex = m_iQuest_Index;
+ }
+
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -129,9 +136,14 @@ HRESULT CQuest_Info::Render()
return E_FAIL;
}
- if (m_iQuest_Index != 0)
+ if (m_iQuest_Index != -1)
{
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+
+ for (_int i = 0; i < m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size(); ++i)
+ {
+ m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo[i].pQuestInfo.c_str(), _float2(m_fFontX + m_fX, m_fFontY - m_fY + 100 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
+ }
}
return S_OK;
@@ -235,6 +247,15 @@ void CQuest_Info::Set_Hover(void* pArg)
Visible(true);
}
+void CQuest_Info::Y(_float fSizeY)
+{
+ m_fSizeY = fSizeY;
+
+ _float Delta = fSizeY - m_fOriginPerviewSize;
+
+ m_fY = m_fOrigin_Position.y - (Delta * 0.5f);
+}
+
CQuest_Info* CQuest_Info::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CQuest_Info* pInstance = new CQuest_Info(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp b/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp
index b2c7954ea..890dae0b8 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp
@@ -129,7 +129,7 @@ HRESULT CQuest_Info_Header::Render()
return E_FAIL;
}
- if (m_iQuest_Index != 0)
+ if (m_iQuest_Index != -1)
{
_float OffSet = (m_pGameInstance->FontSizeX(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestName.c_str()) - 30) * 0.5f;
m_pGameInstance->Render_Text(TEXT("Font_size20"), m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).pQuestName.c_str(), _float2((m_fFontX + m_fX) - OffSet, m_fFontY - m_fY), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha));
diff --git a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
index b3a5ebf2f..e842d8608 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
@@ -8,6 +8,7 @@
#include "Quest_Data.h"
#include "Quest_Slot.h"
#include "Quest_Status.h"
+#include "InfoInstance.h"
CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
@@ -15,7 +16,8 @@ CQuest_Panel::CQuest_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
}
CQuest_Panel::CQuest_Panel(const CQuest_Panel& rhs)
- :CPanelObject(rhs)
+ :CPanelObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
{
}
@@ -52,6 +54,9 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
Visible(true);
ElementAllVisible(true);
Set_Status();
+ //m_pInfoInstance->Set_AcceptQuest(0);
+ //m_pInfoInstance->Set_AcceptQuest(1);
+ //m_pInfoInstance->Set_AcceptQuest(2);
Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
//static_cast(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
return S_OK;
diff --git a/Jusin154_Team3D/Client/Private/Quest_Slot.cpp b/Jusin154_Team3D/Client/Private/Quest_Slot.cpp
index 11eba6548..8ad76355c 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Slot.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Slot.cpp
@@ -105,7 +105,6 @@ void CQuest_Slot::Update(_float fTimeDelta)
static_cast(m_pOwner)->Function_Callback(TEXT("QuestListHover"), &m_Info);
-
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
}
@@ -154,7 +153,7 @@ void CQuest_Slot::Font_Size()
{
for (_int i = 0; i < m_iQuestCount; ++i)
{
- m_fFontY = 190 + i * 85.f;
+ m_fFontY = Get_SlotY(i);
if (m_iIndex == -1)
{
m_Fonts[i].pFontSizeName = TEXT("Font_size20");
@@ -183,7 +182,7 @@ void CQuest_Slot::Font_Setting(_int Index)
for (_int i = 0; i < Index; ++i)
{
- m_fFontY = 190 + i * 85.f;
+ m_fFontY = Get_SlotY(i);
Fonts.pFontSizeName = TEXT("Font_size20");
Fonts.pQuestName = m_pInfoInstance->Get_Quest(m_Info.iQuestCategory, i).pQuestName.c_str();
Fonts.m_fFontSize = _float2(m_fFontX + m_fX, m_fFontY - m_fY);
@@ -196,15 +195,17 @@ _int CQuest_Slot::Mousechack(POINT Mouse)
{
for (_int i = 0; i < m_iQuestCount; ++i)
{
+ _float SlotY = m_fPositionY - (i * m_fOffSetY);
+
RECT Box = {
long(m_fPositionX - m_fSizeX * 0.5f),
- long((m_fPositionY - (i * m_fOffSetY)) - m_fSizeY * 0.5f),
+ long(SlotY - m_fSizeY * 0.5f),
long(m_fPositionX + m_fSizeX * 0.5f),
- long((m_fPositionY + (i * m_fOffSetY)) + m_fSizeY * 0.5f) };
+ long(SlotY + m_fSizeY * 0.5f)
+ };
if (PtInRect(&Box, Mouse))
{
-
return i;
}
}
@@ -212,6 +213,11 @@ _int CQuest_Slot::Mousechack(POINT Mouse)
return -1;
}
+_float CQuest_Slot::Get_SlotY(_int iIndex)
+{
+ return 190 + (iIndex * m_fOffSetY);
+}
+
_vector CQuest_Slot::Get_WorldPostion()
{
return m_pTransformCom->Get_State(STATE::POSITION);
@@ -320,11 +326,11 @@ void CQuest_Slot::Hover()
Mouse.x = _long(fMouse.x);
Mouse.y = _long(fMouse.y);
- m_iIndex = Mousechack(Mouse);
-
+ m_Info.iQuestIndex = m_iIndex = Mousechack(Mouse);
+
if (m_iIndex != m_iPrevIndex)
{
- m_pVIBufferCom->Set_Hover(m_iIndex);
+ //m_pVIBufferCom->Set_Hover(m_iIndex);
Font_Size();
m_iPrevIndex = m_iIndex;
}
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index ce5c51fb8..669489833 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp
@@ -79,6 +79,9 @@ HRESULT CRanrok::Initialize(void* pArg)
m_pModelCom->Set_DisableRootMotionScale(true);
+#ifdef _DEBUG
+ m_pTransformCom->Compress_WorldMatrix(m_vInitialTrans, m_vInitialRotQ);
+#endif // _DEBUG
return S_OK;
}
@@ -112,7 +115,7 @@ void CRanrok::Update(_float fTimeDelta)
}
m_pFSM->Update_State(fTimeDelta);
-
+ Update_CollidersPosition();
if (m_bMotionTrail) {
m_vCaptureTimer.x += fTimeDelta;
if (m_vCaptureTimer.y < m_vCaptureTimer.x) {
@@ -193,38 +196,42 @@ void CRanrok::Update(_float fTimeDelta)
#pragma region CREATE PROP
+
+ if (!m_pFSM->IsEnable(FSMSTATE::IDLE | FSMSTATE::PULSE | FSMSTATE::TUCKED | FSMSTATE::DEAD))
+ {
m_vCreatePropTime.x += fTimeDelta;
if (m_vCreatePropTime.x >= m_vCreatePropTime.y)
{
CEffect_Container* pEffect = nullptr;
- m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PROP, this,nullptr,&pEffect);
+ m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PROP, this, nullptr, &pEffect);
m_vCreatePropTime.x = 0.f;
m_pRanrok_Props.push_back(pEffect);
}
-
- _bool bAllHidden = true;
- for (auto& Props : m_pRanrok_Props)
- {
- if (Props->Get_Visible())
+ _bool bAllHidden = true;
+
+ for (auto& Props : m_pRanrok_Props)
{
- bAllHidden = false;
- break;
+ if (Props->Get_Visible())
+ {
+ bAllHidden = false;
+ break;
+ }
+ }
+ if (m_pRanrok_Props.size() == 0) {
+ bAllHidden = false;
}
- }
- if (m_pRanrok_Props.size() == 0) {
- bAllHidden = false;
- }
- if (bAllHidden)
- {
- m_bFireBurst = false;
- }
- else {
- m_bFireBurst = true;
+ if (bAllHidden)
+ {
+ m_bFireBurst = false;
+ }
+ else {
+ m_bFireBurst = true;
+ }
}
#pragma endregion
@@ -259,6 +266,7 @@ void CRanrok::Late_Update(_float fTimeDelta)
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
}
@@ -276,6 +284,12 @@ HRESULT CRanrok::Render()
//hr = Render_Blend();
hr = S_OK;
}
+#ifdef _DEBUG
+ else if (RENDER::NONLIGHT == eCurrentPass) {
+ hr = Render_Collider();
+ }
+#endif // _DEBUG
+
return hr;
}
@@ -332,11 +346,15 @@ void CRanrok::Trigger(CTimeSocket& Socket)
}break;
case TIMESOCKET_FUNC::SET_ANIMSTATE:
{
- //m_pFSM->Set_State(FSMSTATE::CUTSCENE);
}break;
case TIMESOCKET_FUNC::SET_FSMSTATE:
{
- //m_pModelCom->Set_AnimationIndex();
+ if (Socket.m_Contents.vFlags.b[0]) {
+ m_pFSM->Change_State(FSMSTATE::TUCKED);
+ }
+ else if (Socket.m_Contents.vFlags.b[1]) {
+ m_pFSM->Change_State(FSMSTATE::FIRESWEEP);
+ }
}break;
default:
break;
@@ -369,18 +387,27 @@ HRESULT CRanrok::Render_MotionTrail(ID3D11ShaderResourceView* pSRV)
_vector CRanrok::Get_LockOnPos()
{
- _vector Offset = XMVectorZero();
- //if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
- //{
- // Offset = XMVectorSetY(Offset, 10.f);
- //}
- if (nullptr != m_pCharacter_Controller && true == m_pCharacter_Controller->IsActive()) {
- return m_pCharacter_Controller->Get_Position() + Offset;
+ _vector vCameraLook = m_pGameInstance->Get_CameraLook();
+ _vector vCameraPos = m_pGameInstance->Get_CamXMPosition();
+
+ _vector vNearestPos = m_pCharacter_Controller->Get_Position();
+ _vector vToMonsterDir = vNearestPos - vCameraPos;
+ _float fMaxDot = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
+
+ {
+ for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
+ _vector vPosResult = m_pTargetableDO[i]->Get_Position();
+ vToMonsterDir = vPosResult - vCameraPos;
+
+ _float fDotResult = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
+
+ if (fMaxDot < fDotResult) {
+ vNearestPos = vPosResult;
+ fMaxDot = fDotResult;
+ }
+ }
}
- else if (nullptr != m_pRigidBody) {
- return m_pRigidBody->Get_Position() + Offset;
- }
- return Get_WorldPostion() + Offset;
+ return XMVectorSetW(vNearestPos, 1.f);
}
void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
@@ -469,6 +496,12 @@ void CRanrok::OnHit(CGameObject* pOther, CGameObject* pCaller)
{
}
+_vector CRanrok::Get_BonePos(RANROK_ENUM_BONEMATRICES eType)
+{
+ PSX::PxTransform pxPos = m_pTargetableDO[ENUM_CLASS(eType)]->Get_GlobalPosition();
+ return XMVectorSet(pxPos.p.x, pxPos.p.y, pxPos.p.z, 1.f);
+}
+
HRESULT CRanrok::Ready_Components()
{
CTransform::TRANSFORM_DESC Desc = {};
@@ -609,9 +642,9 @@ HRESULT CRanrok::Ready_Parts()
m_pRightEye_Trail->Load_Trail("../Bin/Resources/Data/Effect/Ranrok/RanrokSide/Eye_Trail", static_cast(g_iStaticLevel));
m_pRightEye_Trail->Set_Visible(true);
- m_pLeftEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_left");
- m_pRightEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_right");
-
+ if (FAILED(Ready_SubParts())) {
+ return E_FAIL;
+ }
#pragma endregion
return S_OK;
@@ -643,6 +676,50 @@ HRESULT CRanrok::Bind_ShaderResources()
}
return S_OK;
}
+HRESULT CRanrok::Ready_SubParts()
+{
+ m_pLeftEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_left");
+ m_pRightEye_BoneMat = m_pModelCom->Get_BoneMatrixPtr("eye_right");
+
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::RIGHTWING_WRIST)] = m_pRightWingWrist_BoneMat = m_pModelCom->Get_BoneMatrixPtr("wrist_right");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::RIGHTWING_TIP)] = m_pRightWingTip_BoneMat = m_pModelCom->Get_BoneMatrixPtr("middle_05_right");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::RIGHTWING_PINKY)] = m_pRightWingPinky_BoneMat = m_pModelCom->Get_BoneMatrixPtr("pinkyelbowwing_04_right");
+
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::LEFTWING_WRIST)] = m_pLeftWingWrist_BoneMat = m_pModelCom->Get_BoneMatrixPtr("wrist_left");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::LEFTWING_TIP)] = m_pLeftWingTip_BoneMat = m_pModelCom->Get_BoneMatrixPtr("middle_05_left");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::LEFTWING_PINKY)] = m_pLeftWingPinky_BoneMat = m_pModelCom->Get_BoneMatrixPtr("pinkyelbowwing_04_left");
+
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::HEAD)] = m_pHead_BoneMat = m_pModelCom->Get_BoneMatrixPtr("head");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::BODY)] = m_pBody_BoneMat = m_pModelCom->Get_BoneMatrixPtr("chest_Main");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::TAIL0)] = m_pTail0_BoneMat = m_pModelCom->Get_BoneMatrixPtr("tail_04");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::TAIL1)] = m_pTail1_BoneMat = m_pModelCom->Get_BoneMatrixPtr("tail_08");
+ m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::TAIL2)] = m_pTail2_BoneMat = m_pModelCom->Get_BoneMatrixPtr("tail_12");
+
+ CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
+ Desc.bAutoOwnerTranslation = false;
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANROK_PROP);
+ for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pTargetableDO[i], &Desc))) {
+ return E_FAIL;
+ }
+ m_pTargetableDO[i]->Set_Kinematic(true);
+ }
+
+#ifdef _DEBUG
+ m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 6, false, false));
+ D3D11_DEPTH_STENCIL_DESC depthStencilDesc = {};
+ depthStencilDesc.DepthEnable = FALSE;
+ depthStencilDesc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ZERO;
+ depthStencilDesc.DepthFunc = D3D11_COMPARISON_ALWAYS;
+ depthStencilDesc.StencilEnable = FALSE;
+
+ HRESULT result = m_pDevice->CreateDepthStencilState(&depthStencilDesc, &m_pDepthStencilStateNone);
+ if (FAILED(result)) {
+ return E_FAIL;
+ }
+#endif // _DEBUG
+ return S_OK;
+}
HRESULT CRanrok::Render_Nonblend()
{
if (FAILED(Render_DeadDisolve())) {
@@ -725,6 +802,14 @@ HRESULT CRanrok::Render_Nonblend()
return S_OK;
}
+HRESULT CRanrok::Update_CollidersPosition()
+{
+ for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
+ m_pTargetableDO[i]->Set_Transform(XMLoadFloat4x4(m_pRanrokCombinedBoneMatrices[i]) * m_pTransformCom->Get_XMWorldMatrix(), true);
+ }
+ return S_OK;
+}
+
HRESULT CRanrok::Render_Blend()
{
_float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y);
@@ -966,7 +1051,11 @@ void CRanrok::Free()
for (auto& Props : m_pRanrok_Props) {
SAFE_RELEASE(Props);
}
+ for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
+ SAFE_RELEASE(m_pTargetableDO[i]);
+ }
m_pRanrok_Props.clear();
+ SAFE_RELEASE(m_pDepthStencilStateNone);
SAFE_RELEASE(m_pMotionTrailCom);
SAFE_RELEASE(m_pCharacter_Controller);
SAFE_RELEASE(m_pRigidBody);
@@ -990,7 +1079,13 @@ void CRanrok::Describe_Entity()
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
if (GUI::CollapsingHeader("Ranrak")) {
__super::Describe_Entity();
-
+ if (GUI::SmallButton("ResetPos")) {
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vInitialTrans), 1.f));
+ m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
+ m_pTransformCom->RotationQ(XMLoadFloat4(&m_vInitialRotQ));
+ m_iCurrentFlow = 0;
+ m_iCurrentPoint = 0;
+ }
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
GUI::Text(AnimList.c_str());
@@ -1074,10 +1169,28 @@ void CRanrok::Describe_Entity()
}
}
-
m_pTransformCom->Describe_Entity();
+ m_pModelCom->Describe_Entity();
}
GUI::End();
}
+HRESULT CRanrok::Render_Collider()
+{
+ static _bool s_bRenderCollider = { true };
+ GUI::Begin("CutScene");
+ if (GUI::TreeNode("RenderCollider")) {
+ if (true == s_bRenderCollider) {
+ for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
+ m_pTargetableDO[i]->Render([this]() {
+ m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
+ }, CMyTools::ColorRGB_A_HEXtoVECTOR(0x00ff00, 1.f));
+ }
+ }
+ GUI::TreePop();
+ }
+ GUI::End();
+ return S_OK;
+}
+
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp
index 7096a4c3d..d14e6ffe0 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp
@@ -131,7 +131,15 @@ HRESULT CRanrok_Prop::Pre_Setting(CGameObject* pObject, void* pArg)
_vector vPos = pObject->Get_WorldPostion();
- _vector vRandomPos = XMVectorSet(m_pGameInstance->Real_Random_Float(-20.f, 0.f), m_pGameInstance->Real_Random_Float(5.f, 15.f), m_pGameInstance->Real_Random_Float(-20.f, 0.f), 0.f);
+
+ _vector vForward = pObject->Get_Component()->Get_State(STATE::LOOK);
+ _vector vRight = pObject->Get_Component()->Get_State(STATE::RIGHT);
+ _vector vUp = pObject->Get_Component()->Get_State(STATE::UP);
+
+ _float randRight = m_pGameInstance->Real_Random_Float(-13.f, 13.f);
+ _float randUp = m_pGameInstance->Real_Random_Float(5.f, 15.f);
+ _float randForward = m_pGameInstance->Real_Random_Float(0.f, 5.f);
+ _vector vRandomPos = vRight * randRight + vUp * randUp + vForward * randForward;
vPos += vRandomPos;
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
index dda513b3b..48d3dc591 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
@@ -248,7 +248,8 @@ void CRanrok::Behavior_HoverEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::HOVER);
_int iRand = m_pGameInstance->Real_Random_Int(0, 1);
- switch (iRand)
+ m_iHoverDash = iRand;
+ switch (m_iHoverDash)
{
case 0:
pairAnimInfo = m_Animation[STATEANIM::HOVER_DASH_LEFT];
@@ -834,9 +835,15 @@ void CRanrok::Behavior_PulseEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::PULSE);
m_bLookAt = false;
+ m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)];
+
+ if (m_iCurrentFlow == 2) {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ return;
+ }
pairAnimInfo = m_Animation[STATEANIM::PULSE];
- m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)];
+
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
Add_Event(pairAnimInfo.first,
@@ -969,7 +976,7 @@ void CRanrok::Behavior_LandEnter()
_float fAnimSpeed = 1.f;
m_pCharacter_Controller->SetGravity(true);
if (m_pFSM->IsEnable_Previous(FSMSTATE::TUCKED)) {
- fAnimSpeed = 2.f;
+ fAnimSpeed = 3.f;
}
pairAnimInfo = m_Animation[STATEANIM::LAND];
diff --git a/Jusin154_Team3D/Client/Private/State_Block.cpp b/Jusin154_Team3D/Client/Private/State_Block.cpp
new file mode 100644
index 000000000..47b944d0c
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/State_Block.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_Block.h"
+#include "Unit.h"
+
+
+CState_Block::CState_Block()
+ :CState_Root()
+{
+}
+
+void CState_Block::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Block::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_Block::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Block::Initialize(STATE_BLOCK_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Block* CState_Block::Create(STATE_BLOCK_DESC* pDesc)
+{
+ CState_Block* pInstance = new CState_Block;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Block::Free()
+{
+ __super::Free();
+}
+
+void CState_Block::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/TriggerBox.cpp b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
new file mode 100644
index 000000000..2f4600ea4
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
@@ -0,0 +1,2 @@
+#include "pch.h"
+#include "TriggerBox.h"
diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp
index 046aa94d9..e74b0e6d4 100644
--- a/Jusin154_Team3D/Client/Private/Troll.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll.cpp
@@ -65,7 +65,7 @@ HRESULT CTroll::Initialize(void* pArg)
- m_pCharacter_Controller->Set_Position(XMVectorSet(126.464f, 30.f, 117.585f, 1.f));
+ m_pCharacter_Controller->Set_Position(XMVectorSet(110.f, 24.f, 135.f, 1.f));
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
SAFE_ADDREF(m_pEffectPool);
diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
index 7b77b206e..73c46d951 100644
--- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
@@ -59,10 +59,12 @@ HRESULT CUI_Manager::Initialize(void* pArg)
m_fAlpha = 0.f;
m_fAlphaTime = 1.f;
m_fSortZ = 0.f;
+ m_bActive = false;
m_pInfoInstance->Set_UISTATE(m_eType);
m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Canvas_Change(*reinterpret_cast(p)); });
m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(*reinterpret_cast<_bool*>(p)); });
m_pInfoInstance->Add_Event(TEXT("UIManagerFadeIn"), [this](void* p) {this->Set_Fade(); });
+ m_pInfoInstance->Add_Event(TEXT("RACEREADY"), [this](void* p) {this->Set_Race(*reinterpret_cast<_bool*>(p)); });
return S_OK;
}
@@ -138,7 +140,9 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
default:
return;
}
+ m_pInfoInstance->Event_CallBack(TEXT("Player_CanvasChange"), &m_eType);
m_pGameInstance->Toggle_MouseCenter();
+ m_pInfoInstance->Event_CallBack(TEXT("Player_CanvasChange"), &m_eType);
}
void CUI_Manager::Clear_Canvas()
@@ -175,6 +179,7 @@ void CUI_Manager::Update(_float fTimeDelta)
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
+
if (m_pGameInstance->Key_Down(DIK_T))
{
m_fAlphaVelue = 1.f;
@@ -183,45 +188,49 @@ void CUI_Manager::Update(_float fTimeDelta)
else if (m_eType == UI_STATE::SPELL)
Canvas_Change(UI_STATE::GAMEPLAYER);
}
+
- if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::QUEST)
+ if (m_bRace == false)
{
- if (m_pGameInstance->Key_Down(DIK_TAB))
+ if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::QUEST)
{
- m_fAlphaVelue = 1.f;
- if (m_bActive == false)
+ if (m_pGameInstance->Key_Down(DIK_TAB))
{
- m_bActive = true;
- m_bAlphaZero = true;
- if (m_eType == UI_STATE::GAMEPLAYER)
+ m_fAlphaVelue = 1.f;
+ if (m_bActive == false)
{
- m_eType = UI_STATE::QUEST;
+ m_bActive = true;
+ m_bAlphaZero = true;
+ if (m_eType == UI_STATE::GAMEPLAYER)
+ {
+ m_eType = UI_STATE::QUEST;
- }
- else if (m_eType == UI_STATE::QUEST)
- {
- m_eType = UI_STATE::GAMEPLAYER;
+ }
+ else if (m_eType == UI_STATE::QUEST)
+ {
+ m_eType = UI_STATE::GAMEPLAYER;
+ }
}
}
}
- }
- if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::SPELLLNEARN)
- {
- if (m_pGameInstance->Key_Down(DIK_ESCAPE))
+ if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::SPELLLNEARN)
{
- m_fAlphaVelue = 1.f;
- if (m_bActive == false)
+ if (m_pGameInstance->Key_Down(DIK_ESCAPE))
{
- m_bActive = true;
- m_bAlphaZero = true;
- if (m_eType == UI_STATE::GAMEPLAYER)
+ m_fAlphaVelue = 1.f;
+ if (m_bActive == false)
{
- m_eType = UI_STATE::SPELLLNEARN;
- }
- else if (m_eType == UI_STATE::SPELLLNEARN)
- {
- m_eType = UI_STATE::GAMEPLAYER;
+ m_bActive = true;
+ m_bAlphaZero = true;
+ if (m_eType == UI_STATE::GAMEPLAYER)
+ {
+ m_eType = UI_STATE::SPELLLNEARN;
+ }
+ else if (m_eType == UI_STATE::SPELLLNEARN)
+ {
+ m_eType = UI_STATE::GAMEPLAYER;
+ }
}
}
}
@@ -290,7 +299,7 @@ void CUI_Manager::Update(_float fTimeDelta)
m_bCgangede = true;
}
- if (m_fAlpha < 0.f)
+ if (m_fAlpha <= 0.f)
{
m_fAlpha = 0.f;
m_bActive = false;
@@ -509,6 +518,11 @@ void CUI_Manager::Change_Map()
}
}
+void CUI_Manager::Set_Race(_bool bRace)
+{
+ m_bRace = bRace;
+}
+
CUI_Manager* CUI_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CUI_Manager* pInstance = new CUI_Manager(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Private/Wand.cpp b/Jusin154_Team3D/Client/Private/Wand.cpp
index f36593714..dcb28ea4a 100644
--- a/Jusin154_Team3D/Client/Private/Wand.cpp
+++ b/Jusin154_Team3D/Client/Private/Wand.cpp
@@ -59,13 +59,11 @@ void CWand::Update(_float fTimeDelta)
void CWand::Late_Update(_float fTimeDelta)
{
-
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
}
HRESULT CWand::Render()
{
-
_matrix socketMatrix = {};
socketMatrix = XMLoadFloat4x4(m_pSocketMatrices);
diff --git a/Jusin154_Team3D/Client/Public/BroomRaceManager.h b/Jusin154_Team3D/Client/Public/BroomRaceManager.h
index df850ab42..7d2a46194 100644
--- a/Jusin154_Team3D/Client/Public/BroomRaceManager.h
+++ b/Jusin154_Team3D/Client/Public/BroomRaceManager.h
@@ -61,6 +61,9 @@ class CBroomRaceManager final : public CGameObject
_float m_fRedayTime{};
_bool m_bRaceStart = { false };
_bool m_bRaceReady = { false };
+ _float4 m_OriginPos = {};
+ _float m_fDelay = {};
+ _bool m_bRaceEnd = {};
private:
virtual HRESULT Initialize_Prototype() override;
diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Target.h b/Jusin154_Team3D/Client/Public/CamPosition_Target.h
index 2f939317d..4a9c25aa9 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition_Target.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition_Target.h
@@ -2,6 +2,10 @@
#include "Client_Define.h"
#include "CamPosition.h"
+NS_BEGIN(Engine)
+class CUnit;
+NS_END
+
NS_BEGIN(Client)
class CCamPosition_Target final : public CCamPosition
@@ -20,6 +24,10 @@ class CCamPosition_Target final : public CCamPosition
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual _vector Get_WorldPostion() override;
+ virtual void Set_WorldPostion(_vector vPos);
+ virtual _bool IsStalking();
+ virtual void Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix);
+ virtual void Stop_Stalking();
private:
virtual HRESULT Initialize_Prototype() override;
@@ -27,6 +35,8 @@ class CCamPosition_Target final : public CCamPosition
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources() override;
+ CUnit* m_pStalkingTarget = { nullptr };
+ const _float4x4* m_pTargetSocketMatrix = { nullptr };
public:
static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CCamPosition_Target* Clone(void* pArg, class CGameObject* pOWner) override;
diff --git a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
index 15d4153ca..629a5217f 100644
--- a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
+++ b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
@@ -3,7 +3,12 @@
#include "Client_Define.h"
#include "Camera.h"
+NS_BEGIN(Engine)
+class CUnit;
+NS_END
+
NS_BEGIN(Client)
+class CCamPosition_Target;
class CCamera_Cinematic final : public CCamera
{
@@ -24,34 +29,49 @@ class CCamera_Cinematic final : public CCamera
virtual void Trigger(CTimeSocket& Socket)override;
public:
+ virtual void Active_Camera(pair<_float4, _float3>& pairTransitionInfo)override;
void Update_LerpTimer(_float fTimeDelta);
void Set_Priority(_uint iPriority);
- void Set_LookTarget(CGameObject* pTarget);
- void Set_FollowTarget(CGameObject* pTarget);
+ void Set_LookTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix);
+ void Set_FollowTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix);
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Ready_SubPart();
HRESULT Bind_ShaderResources() override;
void Lerp_Translation(_float fTimeDelta);
void Start_Lerp_Translation(_float fTimeMaximum, PSX::PxTransform pxTransform);
- void Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans, _float4& vRotQ);
+ void Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans);
void Clear_Lerp_Translation();
+ void Lerp_Rotation(_float fTimeDelta);
+ void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform);
+ void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ);
+ void Clear_Lerp_Rotation();
void Lerp_FovY(_float fTimeDelta);
void Start_Lerp_FovY(_float fTimeMaximum, _float2 vRange);
void Clear_Lerp_FovY();
+ virtual void Transition(_float fTimeDelta) override;
+
+
+ void Rotation(_fvector vRotQ);
private:
CInfoInstance* m_pInfoInstance = { nullptr };
+ CCamPosition_Target* m_pLookTargetPart = { nullptr };
+ CCamPosition_Target* m_pFollowTargetPart = { nullptr };
_bool m_bLerpTranslation = { false };
_float2 m_vLerpTranslationTimer = {};
+ _bool m_bLerpRotiation = { false };
+ _float2 m_vLerpRotiationTimer = {};
+
_float3 m_vLerpTranslationStart = {};
_float3 m_vLerpTranslationEnd = {};
_float4 m_vLerpRotQStart = {};
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index a17d5ea5b..8d4265ceb 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -68,6 +68,9 @@ namespace Client
/*스크린 이펙트*/
SCREEN_WIND,
+ /* 히트 이펙트 */
+ PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT,
+
/*사이드*/
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE,
diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h
index d3fde4fa2..b9d5838d9 100644
--- a/Jusin154_Team3D/Client/Public/Client_Macro.h
+++ b/Jusin154_Team3D/Client/Public/Client_Macro.h
@@ -14,7 +14,6 @@ namespace Client {
#define FX_MESH TEXT("FX_MESH")
#define FX_POSTEX TEXT("FX_POSTEX")
#define FX_NORTEX TEXT("FX_NORTEX")
-#define FX_CELL TEXT("FX_CELL")
#define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL")
#define FX_INSTANCE_PROP_MODEL TEXT("FX_INSTANCE_PROP_MODEL")
#define FX_UIEDITOR TEXT("FX_UIEDITOR")
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index 6aeeeb7ed..6c8cc40ba 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -108,10 +108,11 @@ typedef struct tagDamageInfo
typedef struct tagObjectiveInfo
{
- _bool bClear{};
- _int iTargetID{};
- _int iRequiredCount{};
- _int iCurrentCount{};
+ _bool bClear{};
+ _int iTargetID{};
+ _wstring pQuestInfo{};
+ _int iRequiredCount{};
+ _int iCurrentCount{};
}OBJECTIVEINFO;
typedef struct tagRewardsInfo
@@ -374,6 +375,7 @@ typedef struct tagEffectInfo
struct TimeLine {
_float2 m_vTimer = {};
_uint m_eTypeTimeLine = {};
+
list m_Sockets = {};
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/CutSceneInfo.h b/Jusin154_Team3D/Client/Public/CutSceneInfo.h
index 2e56d96ac..ee38c973b 100644
--- a/Jusin154_Team3D/Client/Public/CutSceneInfo.h
+++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h
@@ -5,6 +5,7 @@
NS_BEGIN(Engine)
class CGameObject;
+class CCamera;
NS_END
@@ -36,17 +37,25 @@ class CCutSceneInfo final : public CBase
private:
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
+ void Load_CutSceneXML(const string& path);
+
#ifdef _DEBUG
public:
#endif // _DEBUG
HRESULT Clear_ActiveEvents();
HRESULT Clear_Events(map<_string, TimeLine*>&Events);
-
HRESULT Clear_AllEvents();
+ HRESULT Ready_GameplayCutScenes();
+ HRESULT Ready_FieldCutScenes();
+
public:
static CCutSceneInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
virtual void Free() override;
+#ifdef _DEBUG
+ virtual void Describe_Entity();
+#endif // _DEBUG
+
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Font.h b/Jusin154_Team3D/Client/Public/Dialogue_Font.h
index fc99d2155..18d0a0da3 100644
--- a/Jusin154_Team3D/Client/Public/Dialogue_Font.h
+++ b/Jusin154_Team3D/Client/Public/Dialogue_Font.h
@@ -59,7 +59,7 @@ class CDialogue_Font final : public CGameObject
void Shop();
void SpellLearn();
-
+ void Quest();
void ReSet();
private:
CInfoInstance* m_pInfoInstance = { nullptr };
@@ -76,15 +76,16 @@ class CDialogue_Font final : public CGameObject
_bool m_bCurrentInteract = { false };
_bool m_bEndText = { false };
_bool m_bNextText = { false };
-
+
_wstring m_pNpcName;
_wstring m_pName;
_int m_iTextID{};
_int m_iNextID{};
_int m_iType{};
- _bool m_bChoiceText = {false};
- _bool m_bCurrentChoiceText = {false};
+ _bool m_bChoiceText = { false };
+ _bool m_bCurrentChoiceText = { false };
+ _bool m_bRace = { false };
public:
static CDialogue_Font* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/Duelist_ProtegoHit.h b/Jusin154_Team3D/Client/Public/Duelist_ProtegoHit.h
new file mode 100644
index 000000000..8841fa1b4
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Duelist_ProtegoHit.h
@@ -0,0 +1,47 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CDuelist_ProtegoHit final : public CEffect_Container
+{
+private:
+ CDuelist_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CDuelist_ProtegoHit(const CDuelist_ProtegoHit& rhs);
+ virtual ~CDuelist_ProtegoHit() = 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_pHit_SphereLay = { nullptr };
+ class CEffectParts* m_pHit_Light = { nullptr };
+public:
+ static CDuelist_ProtegoHit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Goblin_Protego.h b/Jusin154_Team3D/Client/Public/Goblin_Protego.h
index 9de274855..516b45285 100644
--- a/Jusin154_Team3D/Client/Public/Goblin_Protego.h
+++ b/Jusin154_Team3D/Client/Public/Goblin_Protego.h
@@ -32,11 +32,10 @@ class CGoblin_Protego final : public CEffect_Container
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
private:
_wstring m_wstrEffectName = {};
- CRigidBody_Dynamic* m_pRigidBody = { nullptr };
- class CEffectParts* m_pSphere = { nullptr };
- class CEffectParts* m_pBottom = { nullptr };
- class CEffectParts* m_pCircle = { nullptr };
+ class CEffectParts* m_pSphere = { nullptr };
+ class CEffectParts* m_pSphereLay = { nullptr };
+ CRigidBody_Dynamic* m_pRigidBody = { nullptr };
_float m_fSizeAccTime = {};
_float m_fAmountSize = {};
_float m_fSpeed = {};
diff --git a/Jusin154_Team3D/Client/Public/Goblin_ProtegoHit.h b/Jusin154_Team3D/Client/Public/Goblin_ProtegoHit.h
new file mode 100644
index 000000000..315f42cbf
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Goblin_ProtegoHit.h
@@ -0,0 +1,47 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CGoblin_ProtegoHit final : public CEffect_Container
+{
+private:
+ CGoblin_ProtegoHit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CGoblin_ProtegoHit(const CGoblin_ProtegoHit& rhs);
+ virtual ~CGoblin_ProtegoHit() = 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_pHit_SphereLay = { nullptr };
+ class CEffectParts* m_pHit_Light = { nullptr };
+public:
+ static CGoblin_ProtegoHit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Level_Field.h b/Jusin154_Team3D/Client/Public/Level_Field.h
index 934a665f9..e2da71716 100644
--- a/Jusin154_Team3D/Client/Public/Level_Field.h
+++ b/Jusin154_Team3D/Client/Public/Level_Field.h
@@ -42,14 +42,11 @@ class CLevel_Field final : public CLevel
HRESULT Ready_Layer_Effect(const _wstring& strLayerTag);
HRESULT Ready_Layer_Monster();
HRESULT Reday_Layer_EffectPool();
- HRESULT Ready_Layer_CutScene();
public:
static pair> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
virtual void Free() override;
- void Load_CutSceneXML(const string& path, CCamera* pCamera, class CMonster* pMonster);
-
#ifdef _DEBUG
virtual void Describe_Entity();
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Public/Loader.h b/Jusin154_Team3D/Client/Public/Loader.h
index c6c51748f..e258d6697 100644
--- a/Jusin154_Team3D/Client/Public/Loader.h
+++ b/Jusin154_Team3D/Client/Public/Loader.h
@@ -6,6 +6,7 @@
NS_BEGIN(Engine)
class CGameInstance;
class CModel;
+class CShader;
class CVIBuffer_Model_Instance;
NS_END
@@ -43,6 +44,7 @@ class CLoader final : public CBase
HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent);
future*> Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag);
future*> Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag);
+ future*> Deferred_ShaderLoad(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements);
void Ready_MapModels(vector*>>& jobMapModels);
HRESULT Ready_RigidBody_Static(CVIBuffer_Model_Instance* pModel_Instance);
diff --git a/Jusin154_Team3D/Client/Public/MapElement_Static.h b/Jusin154_Team3D/Client/Public/MapElement_Static.h
index cee9aa295..8e3d7e6ae 100644
--- a/Jusin154_Team3D/Client/Public/MapElement_Static.h
+++ b/Jusin154_Team3D/Client/Public/MapElement_Static.h
@@ -23,7 +23,7 @@ class CMapElement_Static : public CMapElement
_bool m_bConverted = { false };
_float m_fRadius = {};
- vector> m_RigidBodies;
+ vector m_RigidBodies;
private:
virtual HRESULT Initialize_Prototype() override;
diff --git a/Jusin154_Team3D/Client/Public/MapObject_Collision.h b/Jusin154_Team3D/Client/Public/MapObject_Collision.h
index 0623898d3..dbcea9ea0 100644
--- a/Jusin154_Team3D/Client/Public/MapObject_Collision.h
+++ b/Jusin154_Team3D/Client/Public/MapObject_Collision.h
@@ -25,7 +25,7 @@ class CMapObject_Collision final : public CMapPartObject // 충돌용 Mesh
void ConvertToPhysX();
private:
CShader* m_pShaderCom = { nullptr };
- vector> m_RigidBodies;
+ vector m_RigidBodies;
vector m_pModelComs;
_bool m_bReadyToCreatePhysX = { false };
diff --git a/Jusin154_Team3D/Client/Public/MapObject_Render.h b/Jusin154_Team3D/Client/Public/MapObject_Render.h
index ace3bd001..35f91ed18 100644
--- a/Jusin154_Team3D/Client/Public/MapObject_Render.h
+++ b/Jusin154_Team3D/Client/Public/MapObject_Render.h
@@ -48,7 +48,7 @@ class CMapObject_Render final : public CMapPartObject // Render PartObject
CShader* m_pShaderCom = { nullptr };
CTexture* m_pDefaultGlassTextureCom = { nullptr };
vector m_pModelComs;
- vector> m_RigidBodies;
+ vector m_RigidBodies;
vector<_wstring> m_ModelPrototypeTags;
vector<_uint> m_ModelPathIndices = {};
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index 328c73c80..5d71d5a67 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -167,7 +167,8 @@ class CPlayer final : public CUnit
_bool m_bOpenDoor = { false };
_bool m_bOpeningCutScene = { false };
_float m_fAirTime = {};
-
+ _bool m_bCanParry = {};
+ _bool m_bBlock = {};
/* 무적 불 변수*/
#ifdef _DEBUG
_bool m_isDebugMode = { false };
@@ -233,9 +234,13 @@ class CPlayer final : public CUnit
void Behavior_AncientSpellExit();
void Behavior_ShieldEnter();
- HRESULT Behavior_ShieldExitCheck();
+ HRESULT Behavior_ShieldExitCheck(_float fTimeDelta);
void Behavior_ShieldExit();
+ void Behavior_BlockEnter();
+ HRESULT Behavior_BlockExitCheck(_float fTimeDelta);
+ void Behavior_BlockExit();
+
void Behavior_HitEnter();
HRESULT Behavior_HitExitCheck(_float fTimeDelta);
void Behavior_HitExit();
diff --git a/Jusin154_Team3D/Client/Public/Protego_Hit.h b/Jusin154_Team3D/Client/Public/Protego_Hit.h
new file mode 100644
index 000000000..181d98bf7
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Protego_Hit.h
@@ -0,0 +1,47 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CProtego_Hit final : public CEffect_Container
+{
+private:
+ CProtego_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CProtego_Hit(const CProtego_Hit& rhs);
+ virtual ~CProtego_Hit() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CEffectParts* m_pHit_SphereLay = { nullptr };
+ class CEffectParts* m_pHit_Light = { nullptr };
+public:
+ static CProtego_Hit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Quest_Canvas.h b/Jusin154_Team3D/Client/Public/Quest_Canvas.h
index 2f452a465..0f1a40d25 100644
--- a/Jusin154_Team3D/Client/Public/Quest_Canvas.h
+++ b/Jusin154_Team3D/Client/Public/Quest_Canvas.h
@@ -39,7 +39,6 @@ class CQuest_Canvas final : public CCanvasObject
private:
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
CGameObject* m_pQuest_Panel = { nullptr };
- CInfoInstance* m_pInfoInstance = { nullptr };
_bool m_bClick[3] = { false };
_int m_iIndex{};
public:
diff --git a/Jusin154_Team3D/Client/Public/Quest_Info.h b/Jusin154_Team3D/Client/Public/Quest_Info.h
index 062e89e10..b8fbc8db1 100644
--- a/Jusin154_Team3D/Client/Public/Quest_Info.h
+++ b/Jusin154_Team3D/Client/Public/Quest_Info.h
@@ -34,6 +34,9 @@ class CQuest_Info final : public CElementObject
public:
void Set_Hover(void* pArg);
+private:
+ void Y(_float fSizeY);
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
@@ -51,6 +54,7 @@ class CQuest_Info final : public CElementObject
_int m_iCurrentQuest{};
_int m_iPerQuestIndex{};
+ _int m_iCurrentIndex{};
public:
static CQuest_Info* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Client/Public/Quest_Panel.h b/Jusin154_Team3D/Client/Public/Quest_Panel.h
index 49a8daac2..721594c60 100644
--- a/Jusin154_Team3D/Client/Public/Quest_Panel.h
+++ b/Jusin154_Team3D/Client/Public/Quest_Panel.h
@@ -37,6 +37,7 @@ class CQuest_Panel final : public CPanelObject
void Slot_Hover(_int Index);
private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Quest_Slot.h b/Jusin154_Team3D/Client/Public/Quest_Slot.h
index 812531768..6152be07f 100644
--- a/Jusin154_Team3D/Client/Public/Quest_Slot.h
+++ b/Jusin154_Team3D/Client/Public/Quest_Slot.h
@@ -47,7 +47,7 @@ class CQuest_Slot final : public CElementObject
void Font_Setting(_int Index);
_int Mousechack(POINT Mouse);
-
+ _float Get_SlotY(_int iIndex);
public:
void Set_QuestType(_int Index);
diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h
index 691515ae9..2790e9664 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok.h
@@ -4,6 +4,7 @@
#include "Monster.h"
#include "CallBack_Monster_Behavior.h"
#include "CallBack_Ranrok_HitReport.h"
+#include "Ranrok_ENUM.h"
NS_BEGIN(Client)
@@ -60,6 +61,7 @@ class CRanrok final : public CMonster
virtual _vector Get_LockOnPos() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
+ _vector Get_BonePos(RANROK_ENUM_BONEMATRICES eType);
private:
CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
@@ -81,7 +83,9 @@ class CRanrok final : public CMonster
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components();
HRESULT Ready_Parts();
+ HRESULT Ready_SubParts();
HRESULT Bind_ShaderResources();
+ HRESULT Update_CollidersPosition();
HRESULT Render_Nonblend();
HRESULT Render_Blend();
void MoveTo(_float fTimeDelta);
@@ -92,7 +96,7 @@ class CRanrok final : public CMonster
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
-
+ HRESULT Render_Collider();
#endif // _DEBUG
private:
@@ -122,12 +126,13 @@ class CRanrok final : public CMonster
_bool m_bMotionTrail = {};
_bool m_bFireBurst = {true};
_int m_iPropSize = {};
+ _int m_iHoverDash = { };
_float2 m_vCaptureTimer = { 0.f, 0.1f };
class CEffect_Container* m_pRanrok_Point = { nullptr };
vector m_pRanrok_Props;
- _float m_fTuckedSpeed = { 90.f };
+ _float m_fTuckedSpeed = { 80.f };
class CEffectParts* m_pLeftSmoke = { nullptr };
@@ -144,6 +149,28 @@ class CRanrok final : public CMonster
const _float4x4* m_pLeftEye_BoneMat = { nullptr };
const _float4x4* m_pRightEye_BoneMat = { nullptr };
+ const _float4x4* m_pRightWingWrist_BoneMat = { nullptr };
+ const _float4x4* m_pRightWingTip_BoneMat = { nullptr };
+ const _float4x4* m_pRightWingPinky_BoneMat = { nullptr };
+ const _float4x4* m_pLeftWingWrist_BoneMat = { nullptr };
+ const _float4x4* m_pLeftWingTip_BoneMat = { nullptr };
+ const _float4x4* m_pLeftWingPinky_BoneMat = { nullptr };
+ const _float4x4* m_pHead_BoneMat = { nullptr };
+ const _float4x4* m_pBody_BoneMat = { nullptr };
+ const _float4x4* m_pTail0_BoneMat = { nullptr };
+ const _float4x4* m_pTail1_BoneMat = { nullptr };
+ const _float4x4* m_pTail2_BoneMat = { nullptr };
+ const _float4x4* m_pRanrokCombinedBoneMatrices[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr };
+ CRigidBody_Dynamic* m_pTargetableDO[ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END)] = { nullptr };
+#ifdef _DEBUG
+ unique_ptr m_pSubShape = { nullptr };
+ ID3D11DepthStencilState* m_pDepthStencilStateNone = { nullptr };
+
+ _float4 m_vInitialRotQ = {};
+ _float3 m_vInitialTrans = {};
+#endif // _DEBUG
+
+
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
void Behavior_IdleExit();
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_ENUM.h b/Jusin154_Team3D/Client/Public/Ranrok_ENUM.h
new file mode 100644
index 000000000..b9554f2fc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Ranrok_ENUM.h
@@ -0,0 +1,29 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameInstance.h"
+
+NS_BEGIN(Engine)
+
+NS_END
+NS_BEGIN(Client)
+
+enum class RANROK_ENUM_BONEMATRICES {
+ RIGHTWING_WRIST
+ , RIGHTWING_TIP
+ , RIGHTWING_PINKY
+
+ , LEFTWING_WRIST
+ , LEFTWING_TIP
+ , LEFTWING_PINKY
+
+ , HEAD
+ , BODY
+
+ , TAIL0
+ , TAIL1
+ , TAIL2
+ , END
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/State_Block.h b/Jusin154_Team3D/Client/Public/State_Block.h
new file mode 100644
index 000000000..897d7ae19
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/State_Block.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Client_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Client)
+
+class CState_Block final : public CState_Root
+{
+public:
+ typedef struct tagBlock : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_BLOCK_DESC;
+private:
+ CState_Block();
+ virtual ~CState_Block() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_BLOCK_DESC* pDesc);
+
+public:
+ static CState_Block* Create(STATE_BLOCK_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/TriggerBox.h b/Jusin154_Team3D/Client/Public/TriggerBox.h
new file mode 100644
index 000000000..be2eea670
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/TriggerBox.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameInstance.h"
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CTriggerBox final : public CBase
+{
+private:
+ CTriggerBox();
+ virtual ~CTriggerBox() = default;
+
+
+
+public:
+ static CTriggerBox Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
+ virtual void Free() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h
index c76dbd19f..f02870f2e 100644
--- a/Jusin154_Team3D/Client/Public/UI_Manager.h
+++ b/Jusin154_Team3D/Client/Public/UI_Manager.h
@@ -50,6 +50,7 @@ class CUI_Manager final : public CUIObject
void Set_Fade();
void Change_Map();
+ void Set_Race(_bool bRace);
private:
CInfoInstance* m_pInfoInstance = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
@@ -89,6 +90,8 @@ class CUI_Manager final : public CUIObject
_bool m_bAlphaZero = { false };
+ _bool m_bRace = { false };
+
public:
static CUI_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
index c68547a86..8c5eb8b85 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
@@ -56,7 +56,13 @@
-
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
index 15253a742..abcc32007 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
@@ -1,4 +1,4 @@
-
+
@@ -32,14 +32,17 @@
+
+
+
-
-
+
+
@@ -66,6 +69,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
@@ -100,41 +143,10 @@
+
+
+
-
@@ -166,44 +178,13 @@
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
+
@@ -234,10 +215,383 @@
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
@@ -270,8 +624,11 @@
+
+
+
-
+
@@ -302,10 +659,13 @@
-
+
+
+
+
-
+
@@ -338,5 +698,9 @@
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
index 5df737379..1067f2d9e 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
@@ -1,73 +1,78 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
+
-
+
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoBottom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoBottom.bin
deleted file mode 100644
index c1c6665e8..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoBottom.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:89aaf8075dcec1bb5ef633573266bb299c72e417434d9d47fe9399c6069941af
-size 1193
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoCircle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoCircle.bin
deleted file mode 100644
index dfcacc05a..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoCircle.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:2306abc678e4c8af066e3d2a6d4b0ff44d765d34db3524b78dbb90dd1211cf79
-size 1233
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin
new file mode 100644
index 000000000..c93c69a1a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d35e96ef4cec61733caa7b90101eed6fa320f144d5b8f4141521658e6c401c9f
+size 1238
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin
index 5a1258cb3..3d55bfec7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:823f85611fd0c4f63f62e23034a5e92177f35f447f85afe5074cc962a03ea0f7
-size 1213
+oid sha256:51b9af9d2826a82ab2784cd6b72221ddc3f9a196fbc36962dc4729478c7557d5
+size 1160
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Hit_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Hit_Light.bin
new file mode 100644
index 000000000..6d3c79be5
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Hit_Light.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:013074b17c836044a5879b4f6fd329f9829be39bcfb27c604fb9a4be954f8575
+size 1155
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit.bin
new file mode 100644
index 000000000..4f8af233c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:df648e3aafa70f8d8c5678651b6eeef0ebd9aa8a4e3f5e0777d1217b23147a9d
+size 1253
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit_Lay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit_Lay.bin
new file mode 100644
index 000000000..b605495b3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/ProtegoHit_Lay.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:93ac77cea8142c766c05ebbf770e79a32e4d5fb859e34f63c4f5d982cafd180a
+size 1231
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT.bin
new file mode 100644
index 000000000..ebf0f8920
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b84021dc3b3384f6c765de81dd6596a5d87bb05d20695a178b918765f15bde6
+size 1195
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT_Line.bin
new file mode 100644
index 000000000..c0093bfe2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtegoHit/Protego_HitPT_Line.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:734b67615cb359adcf3e16349e52e0167c828b6f7f1e18643ecf16e249ae8b7b
+size 1186
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego.bin
index 85dbfaf1a..09d8610ba 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:61d710662d0b5a36853d8c07a94deb5fb707601ffa2f2a4bfe17f31e9207720c
-size 232
+oid sha256:9f8507d124642ee4c8873f269ead25d3f211a0263e7a6ee4b383bad447899658
+size 153
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtegoHit.bin
new file mode 100644
index 000000000..f8aee000c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinProtegoHit.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ea27491db97f01998eadcc252cbab57c6f2fdf2c160a705d4424fe9529fdf3bd
+size 398
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin
new file mode 100644
index 000000000..869955ca3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:834f86a71e3e16529a70114b7fafd4b891502f550a091bfc230f72a47d4256f7
+size 1238
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin
new file mode 100644
index 000000000..e0e81d640
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:473ce1eeaa239aef55be2dfb73aaaeff61c6c3b566c152bed0c3e2b0a6a8588c
+size 1160
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Hit_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Hit_Light.bin
new file mode 100644
index 000000000..caddca5b9
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Hit_Light.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4f375232fd5c5401f0628b21d3d64f3a21a8cb6a984517f9a0e67ef056e78ca8
+size 1155
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit.bin
new file mode 100644
index 000000000..573129a59
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e383c4063a08fc8648944d9a4a003e0a832244b208a4c7c64e455c3ec90aea4b
+size 1253
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit_Lay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit_Lay.bin
new file mode 100644
index 000000000..a78214f05
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/ProtegoHit_Lay.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3125d16e2364f4bc154dbb5b4551276144898e2ce062f5bb57ace3fbfa275374
+size 1231
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT.bin
new file mode 100644
index 000000000..3d00caca3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:090468ab64491f3195759287fde80e79665cde2d4bf4fdf78294c703266c088a
+size 1195
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT_Line.bin
new file mode 100644
index 000000000..324fdf2a7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtegoHit/Protego_HitPT_Line.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9b92ebfc8aabdef248b53aa5d44327c65c5b924743b2d4677c2a44ea00397088
+size 1186
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtego.bin
new file mode 100644
index 000000000..5d8c666e6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtego.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:956a5d4e8e32a1a006cdd758961b51252118dfee4fd39c9335a2bd22602a6b7f
+size 133
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtegoHit.bin
new file mode 100644
index 000000000..ed1242404
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCProtegoHit.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dc5dbae5ef763c6dfbbbf666121613760046b4c28e41b9ea1720cb8b6677c238
+size 348
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin
index 19e1145e6..ad898e6e0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Protego.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a06ccfeb2395f901a63613b1be95f4bc383be13cfc3ba41132766953ffc10eaa
-size 449
+oid sha256:2e550b44443711f164ed395f5d783bd4a56053d9afa81c8c16c373fc8d730ff4
+size 127
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin
new file mode 100644
index 000000000..02021ee18
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e9d05e13a9fff7a12d10a9c4237cca60f82d7ecc50167aa7b3ac1851e1429b46
+size 333
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit.bin
deleted file mode 100644
index de7be2115..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:5b112b7c99a97571d75fc58420712b30be988d592b73f8bb28bb8afd1e78719c
-size 1229
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Lay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Lay.bin
deleted file mode 100644
index be085e55c..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Lay.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:56492fe12d281f12b53d65d445393a1ff7cdf93a6804cd4c1e5204f1d3c1c2cf
-size 1251
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Spread.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Spread.bin
deleted file mode 100644
index 95eb08fb0..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoHit_Spread.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:698fea016d7e79716c72e4541c8f4696c86ba089f50bb66a8f6a95abd8be1ba8
-size 1151
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin
index b9813cc3a..1655b1317 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoLay.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:607fc3399d690ce5490a77de27a536f20662de4b13050cae8e8a0c7e1360e6f8
-size 1244
+oid sha256:5b89db139a3c97eb4399a7a2fe9deb29c511ed480514a08cc7d9720d54870060
+size 1238
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin
index 33cf72168..59bf73bbc 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/ProtegoSphere.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:bb2879a15ba5a04f8d08ef6d1536dbc4afa878c531dfa666f5ce42bdcf77726d
+oid sha256:75534b90bc0a2454d71276a03f9d442da2f073fe7d00a4c70eb900faba717af2
size 1160
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT.bin
deleted file mode 100644
index 81e9cf820..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:0e0704640e436dc4d0ed7130c5fab411d4584cf260bd5245c8dc13364c18b619
-size 1149
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT_Line.bin
deleted file mode 100644
index da35ab19a..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Protego/Protego_HitPT_Line.bin
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:b8e5e11170bd32a27b173cb73a9ad8ceb509c6caee24f22687f5668ee7773eec
-size 1186
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Hit_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Hit_Light.bin
new file mode 100644
index 000000000..8ee1850bd
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Hit_Light.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a1903566d99c003601ab26bb8505c0cacfac742a880ef83aabae8a865965f3e
+size 1155
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit.bin
new file mode 100644
index 000000000..d8f7e325f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a0503936e377b8b84d1fd8c02da96c5a9efe0e12e59933595fa194f7d0e6e28d
+size 1253
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit_Lay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit_Lay.bin
new file mode 100644
index 000000000..da4d5d0fa
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ProtegoHit_Lay.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9b0f486fd96d913297364a7d455c38a0648de0f5c829232cc1fc0275ea8dd240
+size 1231
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT.bin
new file mode 100644
index 000000000..93a08c28d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:688fc2eba2989b8b1f0a05fb5bf143c2c9010e3af6be18a2d55c5745755bf5e1
+size 1195
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT_Line.bin
new file mode 100644
index 000000000..40984d3bb
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/Protego_HitPT_Line.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d5293e4792b5e59f7e2364fbe9a9a0f162d83b1784aaa3714aac9a9ad90ea3bd
+size 1186
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml
index c6b599976..962f6a07f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml
@@ -1,16 +1,18 @@
-
+
-
+
+
+
-
+
-
+
@@ -18,47 +20,47 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
@@ -66,7 +68,7 @@
-
+
@@ -74,7 +76,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
index d90e1bb10..7c48f0f59 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
@@ -637,7 +637,7 @@ PS_OUT PS_SPECTOR_MAIN(PS_IN In)
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = vSurface;
-
+ Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
return Out;
}
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 29bec9784..2b4ed975e 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -204,6 +204,7 @@ call Update_Shaders.bat
+
@@ -487,6 +488,7 @@ call Update_Shaders.bat
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index d2cd7dfb9..ca3a9b068 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -771,7 +771,7 @@
{8bc9a6f2-aea3-4631-83b0-1c897cc9f98c}
-
+
{a5413132-f824-4e59-b3bb-1e6ad539b274}
@@ -781,6 +781,9 @@
{0201d2a8-9187-468c-aa2f-491bd3ae6ae1}
+
+ {b8e8e46c-ec9f-4a89-a970-c9de2ac3f521}
+
@@ -1571,7 +1574,7 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Prop
-
+
50.UI\Dialogue_Canvas\Dialogue_Panel
@@ -1581,6 +1584,9 @@
50.UI\Dialogue_Canvas\Dialogue_Panel\Dialogue_Choice
+
+ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\08.Protego\Protego_Hit
+
@@ -2379,7 +2385,7 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Prop
-
+
50.UI\Dialogue_Canvas\Dialogue_Panel
@@ -2389,6 +2395,9 @@
50.UI\Dialogue_Canvas\Dialogue_Panel\Dialogue_Choice
+
+ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\08.Protego\Protego_Hit
+
diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
index 05b3c0598..a2de42e80 100644
--- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp
@@ -10,12 +10,14 @@
#include "Protego.h"
#include "Revelio.h"
#include "Levioso.h"
+#include "Protego_Hit.h"
#include "BombardSide.h"
#include "LeviosoSide.h"
#include "DecendoSide.h"
#include "NomalJapSide.h"
+
#include "Troll_Rush_Hit.h"
#include "Troll_Nomal_Smoke.h"
#include "TrollSwing.h"
@@ -229,6 +231,16 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::PROTEGO_HIT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
+
+ CProtego_Hit* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CRevelio* pEffect = nullptr;
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 63a45d6c7..7d9670f4d 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -197,6 +197,7 @@
#include "Bombard.h"
#include "Decendo.h"
#include "Protego.h"
+#include "Protego_Hit.h"
#include "EffectPool.h"
#include "Revelio.h"
#include "Levioso.h"
@@ -348,15 +349,42 @@ void CLoader::Output()
HRESULT CLoader::Loading_For_Logo()
{
+ vector*>> jobMapShaders;
+ {
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_UIEDITOR,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_UIINSTANCE,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_INSTANCE_MODEL,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_INSTANCE_PROP_MODEL,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_NPC_PBR_ANIM,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_ANIMMESH,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_POSTEX,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_NORTEX,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"), VTXNORTEX::Elements, VTXNORTEX::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_MESH,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), VTXMESH::Elements, VTXMESH::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_VTXPOS,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements));
+ }
m_strMessage = TEXT("Texture Loading..");
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Dororong"),
- CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/DororongDoro.png"), 0)))) {
- return E_FAIL;
- }
-
/* Terrain_Diffuse */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Diffuse"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_D_%d.dds"), 4, L"", ENUM_CLASS(LEVEL::LOGO))))) {
@@ -384,37 +412,6 @@ HRESULT CLoader::Loading_For_Logo()
m_strMessage = TEXT("Shader Loading..");
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_POSTEX,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"),
- VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NORTEX,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"),
- VTXNORTEX::Elements, VTXNORTEX::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"),
- VTXMESH::Elements, VTXMESH::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_ANIMMESH,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"),
- VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
- return E_FAIL;
- }
-
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_CELL,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_Cell.hlsl"),
- VTXPOS::Elements, VTXPOS::iNumElements)))) {
- return E_FAIL;
- }
-
m_strMessage = TEXT("Prototype Loading..");
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummyRect::Create(m_pDevice, m_pContext)))) {
@@ -441,6 +438,19 @@ HRESULT CLoader::Loading_For_Logo()
return E_FAIL;
}
+ {
+ m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
+ _uint iIndex = 0;
+ for (auto& JobMapShader : jobMapShaders)
+ {
+ pair<_wstring, CShader*>* pOut = JobMapShader.get();
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
+ return E_FAIL;
+ }
+ Safe_Delete(pOut);
+ }
+ }
+
m_strMessage = TEXT("Loading Success!");
m_isFinished = true;
@@ -902,11 +912,6 @@ HRESULT CLoader::Loading_For_UI()
m_strMessage = TEXT("Shader Loading..");
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"),
- VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)))) {
- return E_FAIL;
- }
m_strMessage = TEXT("Prototype Loading..");
@@ -1310,11 +1315,6 @@ HRESULT CLoader::Loading_For_UI()
HRESULT CLoader::Loading_For_Effect()
{
m_strMessage = TEXT("Shader Loading..");
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"),
- VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
- return E_FAIL;
- }
m_strMessage = TEXT("PhysX Meshes Loading..");
{
@@ -1761,11 +1761,6 @@ HRESULT CLoader::Loading_For_Effect()
return E_FAIL;
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"),
- VTXPOS::Elements, VTXPOS::iNumElements)))) {
- return E_FAIL;
- }
/* For.Prototype_Component_VIBuffer_Box */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"),
@@ -1851,12 +1846,6 @@ HRESULT CLoader::Loading_For_Effect()
m_strMessage = TEXT("Shader Loading..");
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_MODEL,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"),
- VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)))) {
- return E_FAIL;
- }
-
m_strMessage = TEXT("Prototype Loading..");
@@ -1932,6 +1921,10 @@ HRESULT CLoader::Loading_For_Effect()
if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CProtego::Create(m_pDevice, m_pContext))))
return E_FAIL;
+ if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CProtego_Hit::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
+
+
if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CRevelio::Create(m_pDevice, m_pContext))))
return E_FAIL;
@@ -2585,12 +2578,6 @@ future*> CLoader::Deferred_ModelLoad(MODEL eType, const
HRESULT CLoader::Loading_For_MapViewer()
{
#pragma region PLAYER_AND_RANROK
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"),
- VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
- return E_FAIL;
- }
-
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
// CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
// return E_FAIL;
@@ -3821,17 +3808,6 @@ if(isLoad_Map)
#pragma region SHADER
m_strMessage = TEXT("쉐이더를(을) 로딩 중 입니다.");
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"),
- VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) {
- return E_FAIL;
- }
-
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"),
- VTXPOS::Elements, VTXPOS::iNumElements)))) {
- return E_FAIL;
- }
#pragma endregion
@@ -4161,6 +4137,23 @@ if(isLoad_Map)
return S_OK;
}
+pair<_wstring, CShader*>* APIENTRY Deferred_ShaderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements)
+{
+ if (FAILED(CoInitializeEx(nullptr, 0))) {
+ assert(false);
+ return nullptr;
+ }
+
+ CShader* pShader = CShader::Create(pDevice, pContext, pShaderFilePath, pElements, iNumElements);
+
+ CoUninitialize();
+ pair<_wstring, CShader*>* Out = new pair<_wstring, CShader*>(strPrototypeTag, pShader);
+ return Out;
+}
+
+future*> CLoader::Deferred_ShaderLoad(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements) {
+ return m_pGameInstance->EnqueueJob(&Deferred_ShaderLoad_Main, pDevice, pContext, strPrototypeTag, pShaderFilePath, pElements, iNumElements);
+}
CLoader* CLoader::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID)
{
CLoader* pInstance = new CLoader(pDevice, pContext);
diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
index a42e7c10b..d1faf5677 100644
--- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
@@ -32,11 +32,6 @@ HRESULT CLoader::Loading_For_ObjectViewer()
{
m_strMessage = TEXT("Texture Loading..");
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM,
- CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"),
- VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
- return E_FAIL;
- }
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("TerrainTest"),
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds"), 0)))) {
return E_FAIL;
@@ -189,11 +184,6 @@ HRESULT CLoader::Loading_For_ObjectViewer()
TEXT("Prototype_Component_ThestralCarriage_Model")
));
- //futures.emplace_back(Deferred_ModelLoad(
- // MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student_Rct2.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
- // TEXT("Prototype_Component_ThestralCarriage_Model")
- //));
-
#pragma endregion
@@ -254,10 +244,15 @@ HRESULT CLoader::Loading_For_ObjectViewer()
- futures.emplace_back(Deferred_ModelLoad(
- MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
- TEXT("Prototype_Component_Playable_Model")
- ));
+ //futures.emplace_back(Deferred_ModelLoad(
+ // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ // TEXT("Prototype_Component_Playable_Model")
+ //));
+
+ //futures.emplace_back(Deferred_ModelLoad(
+ // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Test.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(),
+ // TEXT("Prototype_Component_Playable_Model")
+ //));
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
@@ -425,15 +420,6 @@ HRESULT CLoader::Loading_For_ObjectViewer()
#pragma endregion
- for (auto& job : futures) {
- pair<_wstring, CModel*>* pResult = job.get();
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pResult->first, pResult->second))) {
- assert(false);
- return E_FAIL;
- }
- Safe_Delete(pResult);
- }
-
m_strMessage = TEXT("Shader Loading..");
@@ -527,6 +513,14 @@ HRESULT CLoader::Loading_For_ObjectViewer()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext))))
return E_FAIL;
+ for (auto& job : futures) {
+ pair<_wstring, CModel*>* pResult = job.get();
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pResult->first, pResult->second))) {
+ assert(false);
+ return E_FAIL;
+ }
+ Safe_Delete(pResult);
+ }
m_strMessage = TEXT("Loading Success!");
m_isFinished = true;
diff --git a/Jusin154_Team3D/Editor/Private/Protego.cpp b/Jusin154_Team3D/Editor/Private/Protego.cpp
index b74a5b0bb..f8f762797 100644
--- a/Jusin154_Team3D/Editor/Private/Protego.cpp
+++ b/Jusin154_Team3D/Editor/Private/Protego.cpp
@@ -45,7 +45,7 @@ HRESULT CProtego::Initialize(void* pArg)
m_fAmountSize = 0.1f;
m_fSpeed = 5.f;
- m_fDuration = 3.f;
+ m_fDuration = 6.f;
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp b/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp
new file mode 100644
index 000000000..0cc850a06
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp
@@ -0,0 +1,176 @@
+#include "pch.h"
+#include "Protego_Hit.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+
+
+CProtego_Hit::CProtego_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CProtego_Hit::CProtego_Hit(const CProtego_Hit& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CProtego_Hit::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CProtego_Hit::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/Package/ProtegoHit")))
+ return E_FAIL;
+
+ m_wstrEffectName = L"ProtegoHit";
+
+ m_pHit_SphereLay = Get_PartObject("ProtegoHit_Lay");
+ m_pHit_Light = Get_PartObject("Hit_Light");
+
+ SAFE_ADDREF(m_pHit_SphereLay);
+ SAFE_ADDREF(m_pHit_Light);
+
+ m_fDuration = 3.f;
+
+ return S_OK;
+}
+
+void CProtego_Hit::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CProtego_Hit::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+}
+
+void CProtego_Hit::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+ _vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg));
+
+ CEditEffect* pProtego_HitPT = Get_PartObject("Protego_HitPT");
+ CEditEffect* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line");
+ CEditEffect* pProtegoHit = Get_PartObject("Protego_HitPT_Line");
+
+ m_pHit_SphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+ m_pHit_Light->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
+
+ pProtego_HitPT->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+ pProtego_HitPT_Line->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+ pProtegoHit->Get_Component()->Set_State(STATE::POSITION, vHitPos);
+
+ m_pHit_SphereLay->Set_Visible(true);
+ m_pHit_Light->Set_Visible(true);
+ pProtego_HitPT->Set_Visible(true);
+ pProtego_HitPT_Line->Set_Visible(true);
+ pProtegoHit->Set_Visible(true);
+
+
+ return S_OK;
+}
+
+HRESULT CProtego_Hit::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CProtego_Hit::Ready_Child()
+{
+ return S_OK;
+}
+
+CProtego_Hit* CProtego_Hit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CProtego_Hit* pInstance = new CProtego_Hit(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CProtego_Hit");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CProtego_Hit::Clone(void* pArg, CGameObject* pOwner)
+{
+ CProtego_Hit* pInstance = new CProtego_Hit(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CProtego_Hit");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CProtego_Hit::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CProtego_Hit::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pHit_SphereLay);
+ SAFE_RELEASE(m_pHit_Light);
+}
+#ifdef _DEBUG
+
+void CProtego_Hit::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CProtego_Hit::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index 2a14d3e3f..ea107c526 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -62,7 +62,7 @@ namespace Editor
CONJURING_SPELL, ALTERING_SPELL, EVANESCO, // 연녹색
AVADAKEDAVRA, CRUCIO, IMPERIO, // 진녹색
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색
- JAP, REVELIO, PROTEGO, STUPEFY, // 검은색
+ JAP, REVELIO, PROTEGO, STUPEFY, PROTEGO_HIT, // 검은색
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE,
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Macro.h b/Jusin154_Team3D/Editor/Public/Editor_Macro.h
index dd844afd0..b3dfbe6d3 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Macro.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Macro.h
@@ -14,7 +14,6 @@ namespace Editor {
#define FX_MESH TEXT("FX_MESH")
#define FX_POSTEX TEXT("FX_POSTEX")
#define FX_NORTEX TEXT("FX_NORTEX")
-#define FX_CELL TEXT("FX_CELL")
#define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL")
#define FX_INSTANCE_PROP_MODEL TEXT("FX_INSTANCE_PROP_MODEL")
#define FX_UIEDITOR TEXT("FX_UIEDITOR")
diff --git a/Jusin154_Team3D/Editor/Public/Loader.h b/Jusin154_Team3D/Editor/Public/Loader.h
index ee1e1ba89..b58fb4bf5 100644
--- a/Jusin154_Team3D/Editor/Public/Loader.h
+++ b/Jusin154_Team3D/Editor/Public/Loader.h
@@ -5,6 +5,8 @@
NS_BEGIN(Engine)
class CGameInstance;
+class CShader;
+class CModel;
NS_END
NS_BEGIN(Editor)
@@ -51,6 +53,7 @@ class CLoader final : public CBase
HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent);
HRESULT MapFolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector<_wstring>& ModelPrototypeTags, vector& ModelPrototypePath);
future Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector** OutContents);
+ future*> Deferred_ShaderLoad(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _wstring& strPrototypeTag, const _tchar* pShaderFilePath, const D3D11_INPUT_ELEMENT_DESC* pElements, _uint iNumElements);
future*> Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag);
public:
diff --git a/Jusin154_Team3D/Editor/Public/Protego_Hit.h b/Jusin154_Team3D/Editor/Public/Protego_Hit.h
new file mode 100644
index 000000000..be1b21237
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/Protego_Hit.h
@@ -0,0 +1,47 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CProtego_Hit final : public CEffect_Container
+{
+private:
+ CProtego_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CProtego_Hit(const CProtego_Hit& rhs);
+ virtual ~CProtego_Hit() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CEditEffect* m_pHit_SphereLay = { nullptr };
+ class CEditEffect* m_pHit_Light = { nullptr };
+public:
+ static CProtego_Hit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Engine/Private/Camera.cpp b/Jusin154_Team3D/Engine/Private/Camera.cpp
index 664d55f04..c6bad32ac 100644
--- a/Jusin154_Team3D/Engine/Private/Camera.cpp
+++ b/Jusin154_Team3D/Engine/Private/Camera.cpp
@@ -69,7 +69,7 @@ void CCamera::Transition(_float fTimeDelta)
fRatio = 1.f;
m_bIsCurrentTransition = false;
}
-
+
_vector vFollowTarget = m_pFollowTarget->Get_Component()->Get_State(STATE::POSITION);
_vector vLookTarget = m_pLookTarget->Get_Component()->Get_State(STATE::POSITION);
diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp
index 7b217543b..d30f00bed 100644
--- a/Jusin154_Team3D/Engine/Private/Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Model.cpp
@@ -256,9 +256,9 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
m_bLoopRestarted = true;
m_vPrevRootPos = { 0,0,0 };
}
- else {
+ /*else {
m_vPrevRootPos = { m_OutTranslation.x,m_OutTranslation.y,m_OutTranslation.z };
- }
+ }*/
}
@@ -501,8 +501,8 @@ void CModel::Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLo
m_bIsSecondLoop = isLoop;
m_iBoneMask = m_BoneMask[BoneIndex];
- m_fSecondBlendTime = 0.f;
- m_fSecondRatio = 0.f;
+ /*m_fSecondBlendTime = 0.f;
+ m_fSecondRatio = 0.f;*/
m_bIsSecondFinishedAnim = false;
m_Animations[m_iCurrSecondAnimIndex]->Depart_Animation();
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
index 3834a17a3..72ef5d7cb 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
@@ -22,10 +22,14 @@ CRigidBody_Dynamic::CRigidBody_Dynamic(const CRigidBody_Dynamic& rhs) :
#ifdef _DEBUG
HRESULT CRigidBody_Dynamic::Render()
{
- return Render(nullptr);
+ return Render(nullptr, CMyTools::ColorRGB_A_HEXtoVECTOR(0x2fc48000, 1.f));
}
HRESULT CRigidBody_Dynamic::Render(function custumState)
+{
+ return Render(custumState, CMyTools::ColorRGB_A_HEXtoVECTOR(0x2fc48000, 1.f));
+}
+HRESULT CRigidBody_Dynamic::Render(function custumState, _fvector vColor)
{
if (m_pOwner->isDead())
return S_OK;
@@ -34,7 +38,6 @@ HRESULT CRigidBody_Dynamic::Render(function custumState)
* XMMatrixAffineTransformation(XMVectorSet(1.f, 1.f, 1.f, 0.f), XMVectorZero(), XMLoadFloat4((_float4*)&pxTranform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTranform.p), 1.f));
_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
- _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x2fc48000, 1.f);
switch (m_eActorType)
{
case ACTOR::BOX:
diff --git a/Jusin154_Team3D/Engine/Private/Shader.cpp b/Jusin154_Team3D/Engine/Private/Shader.cpp
index 77d742124..c74a61bc0 100644
--- a/Jusin154_Team3D/Engine/Private/Shader.cpp
+++ b/Jusin154_Team3D/Engine/Private/Shader.cpp
@@ -169,7 +169,8 @@ HRESULT CShader::CreateShader(const _tchar* pShaderFilePath, const D3D11_INPUT_E
iHlslFlag = D3DCOMPILE_OPTIMIZATION_LEVEL1 | D3DCOMPILE_PACK_MATRIX_ROW_MAJOR ;
#endif
- ID3DBlob* pBlob;
+ ID3DBlob* pBlob = nullptr;
+
if (FAILED(D3DX11CompileEffectFromFile(pShaderFilePath, nullptr, D3D_COMPILE_STANDARD_FILE_INCLUDE, iHlslFlag, 0, m_pDevice, &m_pEffect, &pBlob))) {
if (pBlob) {
diff --git a/Jusin154_Team3D/Engine/Private/TimeSocket.cpp b/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
index cfd501a0e..3b932b5df 100644
--- a/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
+++ b/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
@@ -32,6 +32,7 @@ HRESULT CTimeSocket::Initialize(void* pArg)
m_Contents.vParam_10 = pDesc->vParam_10;
m_Contents.vParam_11 = pDesc->vParam_11;
m_Contents.funcEvent = pDesc->funcEvent;
+ m_Contents.vParam_12 = pDesc->vParam_12;
switch (m_Contents.eTypeParam)
{
diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp
index d4a837b51..20d5b28c3 100644
--- a/Jusin154_Team3D/Engine/Private/Unit.cpp
+++ b/Jusin154_Team3D/Engine/Private/Unit.cpp
@@ -43,6 +43,11 @@ void CUnit::Late_Update(_float fTimeDelta)
__super::Late_Update(fTimeDelta);
}
+const _float4x4* CUnit::Get_SocketMatrixPtr(const _char* pSocketName)
+{
+ return m_pModelCom->Get_BoneMatrixPtr(pSocketName);
+}
+
#ifdef _DEBUG
void CUnit::Load_KeyFrame()
{
@@ -299,7 +304,10 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
// COMBAT / SKILL
{ "COMBAT", COMBAT },
{ "SKILL", SKILL }, { "SKILL2", SKILL2 },
- { "SHIELD_BLOCK", SHIELD_BLOCK },
+ { "SHIELD_BLOCK1", SHIELD_BLOCK1 }, { "SHIELD_BLOCK2", SHIELD_BLOCK2 },
+ { "SHIELD_BLOCK3", SHIELD_BLOCK3 }, { "SHIELD_BLOCK4", SHIELD_BLOCK4 },
+ { "SHIELD_BLOCK5", SHIELD_BLOCK5 }, { "SHIELD_BLOCK6", SHIELD_BLOCK6 },
+ { "SHIELD_BLOCK7", SHIELD_BLOCK7 },
// SPELL
{ "SPELL", SPELL }, { "SPELL_180_R", SPELL_180_R },
diff --git a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h
index 70ec53eeb..31982bb57 100644
--- a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h
+++ b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h
@@ -33,6 +33,9 @@ class CPhysX_CctQueryFilterCallback final : public PSX::PxQueryFilterCallback
case PXOBJECT::JOINT_ANCHOR:
return PSX::PxQueryHitType::eNONE;
break;
+ case PXOBJECT::RANROK_PROP:
+ return PSX::PxQueryHitType::eNONE;
+ break;
case PXOBJECT::NPC:
case PXOBJECT::OLLIVANDER:
case PXOBJECT::ELEAZARFIG:
diff --git a/Jusin154_Team3D/Engine/Public/Camera.h b/Jusin154_Team3D/Engine/Public/Camera.h
index a6acf7155..27cc8c4a5 100644
--- a/Jusin154_Team3D/Engine/Public/Camera.h
+++ b/Jusin154_Team3D/Engine/Public/Camera.h
@@ -91,7 +91,7 @@ class ENGINE_DLL CCamera abstract : public CGameObject
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
HRESULT Bind_Matrices();
- void Transition(_float fTimeDelta);
+ virtual void Transition(_float fTimeDelta);
public:
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner)PURE;
diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h
index 72e0a5730..f32daeb72 100644
--- a/Jusin154_Team3D/Engine/Public/FSM.h
+++ b/Jusin154_Team3D/Engine/Public/FSM.h
@@ -57,6 +57,7 @@ enum ESTATE : _u64Flag
DASH = 1ULL << 50,
FEAR = 1ULL << 51,
CUTSCENE = 1ULL << 52,
+ BLOCK = 1ULL << 53,
END
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
index 23482af90..cb0be9b99 100644
--- a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
+++ b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
@@ -32,6 +32,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
_float3 Get_LocalTranslation() {return m_vLocalTranslation; }
virtual HRESULT Render()override;
HRESULT Render(function custumState);
+ HRESULT Render(function custumState, _fvector vColor);
#endif // _DEBUG
virtual PSX::PxRigidDynamic* Get_Actor() override { return m_pRigidBody; };
diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h
index 5d805a1ab..392653125 100644
--- a/Jusin154_Team3D/Engine/Public/State.h
+++ b/Jusin154_Team3D/Engine/Public/State.h
@@ -13,7 +13,7 @@ enum ESTATE
JUMP,JUMP_JOG,JUMP_SPRINT,FALL_LOOP,
LAND,LAND_TO_JOG,LAND_TO_SPRINT,LAND_HARD,LAND_MID,LAND_SOFT,
DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,DODGE_ATTACK,
- COMBAT, SKILL, SKILL2, SHIELD_BLOCK,
+ COMBAT, SKILL, SKILL2, SHIELD_BLOCK1, SHIELD_BLOCK2, SHIELD_BLOCK3, SHIELD_BLOCK4, SHIELD_BLOCK5, SHIELD_BLOCK6, SHIELD_BLOCK7,
SPELL, SPELL_180_R, SPELL_90_R, SPELL_90_L, SPELL_90_L2,
LIGHT_ATTACK, LIGHT_ATTACK2, LIGHT_ATTACK3, LIGHT_ATTACK4,LIGHT_ATTACK_180_R, LIGHT_ATTACK_90_L, LIGHT_ATTACK_90_R1, LIGHT_ATTACK_90_R2, LIGHT_ATTACK_90_R3,
ATTACK_END,
diff --git a/Jusin154_Team3D/Engine/Public/TimeSocket.h b/Jusin154_Team3D/Engine/Public/TimeSocket.h
index bf66c54ee..4970cb129 100644
--- a/Jusin154_Team3D/Engine/Public/TimeSocket.h
+++ b/Jusin154_Team3D/Engine/Public/TimeSocket.h
@@ -24,6 +24,8 @@ typedef enum class typeTimeSocket_Func {
// COMMON
TRANSLATION,
TRANSLATION_LERP,
+ ROTATION,
+ ROTATION_LERP,
TOGGLE_FLAGS,
// CAMERA
@@ -57,6 +59,8 @@ static constexpr pair g_SocketFuncTypeTable[ENUM_C
{
{"TRANSLATION", TIMESOCKET_FUNC::TRANSLATION},
{"TRANSLATION_LERP", TIMESOCKET_FUNC::TRANSLATION_LERP},
+ {"ROTATION", TIMESOCKET_FUNC::ROTATION},
+ {"ROTATION_LERP", TIMESOCKET_FUNC::ROTATION_LERP},
{"TOGGLE_FLAGS", TIMESOCKET_FUNC::TOGGLE_FLAGS},
{"BIND_CAMERA", TIMESOCKET_FUNC::BIND_CAMERA},
@@ -94,6 +98,7 @@ typedef struct tagSocketContents {
_boolean vFlags = {};
_uint4 vParam_10 = {};
_float4 vParam_11 = {};
+ _string vParam_12 = {};
function funcEvent = { nullptr };
}SOCKETCONTENTS;
diff --git a/Jusin154_Team3D/Engine/Public/Unit.h b/Jusin154_Team3D/Engine/Public/Unit.h
index 203419e88..15bb39876 100644
--- a/Jusin154_Team3D/Engine/Public/Unit.h
+++ b/Jusin154_Team3D/Engine/Public/Unit.h
@@ -33,6 +33,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual void Trigger(class CTimeSocket& Socket) {};
+ virtual const _float4x4* Get_SocketMatrixPtr(const _char* pSocketName);
_wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; }
_bool IsAI() { return m_bAI; }