diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index 0f9ebe921..f572ccacf 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -163,6 +163,7 @@ call Update_Resources.bat + @@ -234,6 +235,7 @@ call Update_Resources.bat + @@ -465,6 +467,7 @@ call Update_Resources.bat + @@ -536,6 +539,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index dd47c1e6c..7f0d613c5 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -920,6 +920,9 @@ 04.Mechanic\State\State_Combat\State_Block + + 02.GameObjects\Effect\Effects\Stupefy\StupefySide + 02.GameObjects\NPC\Hostile\Monster\Ranrok @@ -927,6 +930,9 @@ 02.GameObjects\Environment\03.MapElement\Balloon + + 04.Mechanic\State\State_Combat\State_Parry + @@ -1915,6 +1921,12 @@ {e198ab8c-2452-4f6e-adda-ecea58b44da9} + + {b38bbd65-c266-4117-9a36-a0ec4a8377ca} + + + {b57b393b-0e6f-47ad-9301-46b8f725a452} + @@ -2785,10 +2797,16 @@ 04.Mechanic\State\State_Combat\State_Block + + 02.GameObjects\Effect\Effects\Stupefy\StupefySide + 02.GameObjects\Environment\03.MapElement\Balloon + + 04.Mechanic\State\State_Combat\State_Parry + diff --git a/Jusin154_Team3D/Client/Private/BombardSide.cpp b/Jusin154_Team3D/Client/Private/BombardSide.cpp index 9e44140a2..70a4b8841 100644 --- a/Jusin154_Team3D/Client/Private/BombardSide.cpp +++ b/Jusin154_Team3D/Client/Private/BombardSide.cpp @@ -50,7 +50,7 @@ HRESULT CBombardSide::Initialize(void* pArg) SAFE_ADDREF(m_pWandTrail); SAFE_ADDREF(m_pWandParticle); - m_fDuration = 2.f; + m_fDuration = 3.f; m_Events.emplace(0.6f, [&]() { m_isParticleEnd = true; diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp index 8a1139d74..638fee348 100644 --- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp @@ -45,35 +45,45 @@ HRESULT CBroomRaceManager::Initialize(void* pArg) void CBroomRaceManager::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - switch (m_eRaceState) - { - case ENUM_CLASS(RACE_STATE::COUNTDOWN): - Update_Countdown(fTimeDelta); - break; - case ENUM_CLASS(RACE_STATE::RACING): - Check_RingPassed(); - 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)) - { + + switch (m_eRaceState) + { + case ENUM_CLASS(RACE_STATE::COUNTDOWN): + Update_Countdown(fTimeDelta); + break; + case ENUM_CLASS(RACE_STATE::RACING): + Check_RingPassed(); + break; + case ENUM_CLASS(RACE_STATE::FINISH): + break; + case ENUM_CLASS(RACE_STATE::END): + { + if (m_bCurrentRace == true) + { + if (m_pGameInstance->Key_Down(DIK_ESCAPE)) + { m_bRaceEnd = true; + _float Alpha = 2.f; + m_pInfoInstance->Event_CallBack(TEXT("UIFadeIn"), &Alpha); + } + + 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) + { + + } } } + } - } break; - } + } + } @@ -114,12 +124,14 @@ void CBroomRaceManager::Update(_float fTimeDelta) } } - if (m_bRaceEnd) { + 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_Broom()->Set_Move(true); racer.pRacer->Get_Component()->Change_State(FSMSTATE::IDLE); @@ -129,13 +141,13 @@ void CBroomRaceManager::Update(_float fTimeDelta) pTransform->Set_State(STATE::POSITION, XMLoadFloat4(&m_OriginPos)); m_bRaceEnd = false; m_fDelay = 0.f; + m_bCurrentRace = false; } } } } - - + m_bCurrentRace = true; #ifdef _DEBUG //Describe_Entity(); #endif // _DEBUG @@ -216,160 +228,6 @@ void CBroomRaceManager::Free() void CBroomRaceManager::Describe_Entity() { - //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(); - - 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); - //} - ////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; - //} - //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); - // //} - //} - } - //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 @@ -496,6 +354,7 @@ void CBroomRaceManager::RaceReady() { //if (GUI::Button("Race Start")) //{ + m_bCurrentRace = true; m_eRaceState = ENUM_CLASS(RACE_STATE::READY); const _float SPAWN_DISTANCE = 30.f; @@ -523,14 +382,16 @@ void CBroomRaceManager::RaceReady() return; } - CBroomRacerAI::RacerDesc Desc = {}; - for (_uint i = 1; i < 4; i++) + CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_RACERAI); + + if (nullptr != pLayer) { - Desc.pRacerManager = this; - Desc.iIndex = i; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc))) - return; + for (auto& pUnified : *pLayer->Get_Objects()) + { + dynamic_cast(pUnified)->Set_RaceInfo(); + } } + m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object()->Set_RaceInfo(); for (auto& racer : m_Racers) @@ -547,13 +408,15 @@ void CBroomRaceManager::RaceReady() 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; + racer.pAI->Get_Broom()->Get_Component(); + _float fSideRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f); + + _vector offset = XMVectorSet(0.f, 1.3f, 0.f, 0.f) + pTransform->Get_State(STATE::LOOK) * fSideRand; + + spawnPos += offset; pTransform->Set_State(STATE::POSITION, spawnPos); pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); - racer.pAI->Get_Broom()->Set_Move(false); } else if (racer.pRacer) @@ -676,7 +539,6 @@ HRESULT CBroomRaceManager::Load_RaceRing() return E_FAIL; } - return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp index 319bd3cab..8d950a3ed 100644 --- a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp @@ -38,14 +38,11 @@ HRESULT CBroomRacerAI::Initialize(void* pArg) return E_FAIL; } + m_iIndex = static_cast(pArg)->iIndex; if (FAILED(Ready_Components())) { return E_FAIL; } - m_bAI = true; - - m_iIndex = static_cast(pArg)->iIndex; - if (FAILED(Ready_Parts())) { return E_FAIL; } @@ -72,11 +69,11 @@ HRESULT CBroomRacerAI::Initialize(void* pArg) m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE); } - _float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f); - _float Y = m_pGameInstance->Real_Random_Float(-5.f, 5.f); + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-200.f, Y, 0.f, 1.f)); + m_bAI = true; #ifdef _DEBUG @@ -90,16 +87,10 @@ HRESULT CBroomRacerAI::Initialize(void* pArg) m_pBroom->Set_Ride(true); + m_pBroom->Set_Move(false); + m_pBroomRaceManager = static_cast(pArg)->pRacerManager; - CBroomRaceManager::RacerInfo Info; - - Info.pAI = this; - Info.curRing = 0; - XMStoreFloat4(&Info.prevPos,Get_WorldPostion()); - - m_pBroomRaceManager->Push_BroomRacer(Info); - m_LaneOffsetX = m_pGameInstance->Real_Random_Float(-3.f, 3.f); m_LaneOffsetY = m_pGameInstance->Real_Random_Float(-3.f, 3.f); @@ -262,17 +253,15 @@ HRESULT CBroomRacerAI::Ready_Components() return E_FAIL; } - _int iRand = m_pGameInstance->Real_Random_Int(0, 2); - - switch (iRand) + switch (m_iIndex) { - case 0: + case 1: m_strModelPrototypeTag = TEXT("Prototype_Component_VictorRookWood_Model"); break; - case 1: + case 2: m_strModelPrototypeTag = TEXT("Prototype_Component_Npc_Model"); break; - case 2: + case 3: m_strModelPrototypeTag = TEXT("Prototype_Component_ChiyoKogawa_Model"); break; default: @@ -388,6 +377,20 @@ HRESULT CBroomRacerAI::Bind_ShaderParameters(_uint iMeshOrder) return S_OK; } +void CBroomRacerAI::Set_RaceInfo() +{ + if (m_pBroomRaceManager) + { + CBroomRaceManager::RacerInfo Info; + + Info.pAI = this; + Info.curRing = 0; + XMStoreFloat4(&Info.prevPos, Get_WorldPostion()); + + m_pBroomRaceManager->Push_BroomRacer(Info); + } +} + _vector CBroomRacerAI::Get_RingForwardTarget() { _vector ringPos = m_pRaceRing->Get_WorldPostion(); @@ -728,6 +731,8 @@ void CBroomRacerAI::Add_FSM() void CBroomRacerAI::Set_Input(_float fTimeDelta) { + if (m_pRaceRing == nullptr) + return; _float targetX = ComputeTurnToRing(); _float targetY = ComputeHeightAdjust(); diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp index f984a891d..0d7c88e39 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp @@ -61,8 +61,6 @@ void CDialogue_Font::Update(_float fTimeDelta) if (m_bCurrentInteract == true) { - _int a = 10; - if (m_bChoiceText == true) { switch (m_iType) @@ -74,7 +72,6 @@ void CDialogue_Font::Update(_float fTimeDelta) CHoice(); break; case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT): - a = 10; break; case ENUM_CLASS(NPCTEXTTYPE::QUESTTEXT): @@ -82,7 +79,6 @@ void CDialogue_Font::Update(_float fTimeDelta) break; case ENUM_CLASS(NPCTEXTTYPE::SPELLLEAN): - a = 10; break; case ENUM_CLASS(NPCTEXTTYPE::BROOM): @@ -90,25 +86,38 @@ void CDialogue_Font::Update(_float fTimeDelta) m_pInfoInstance->Event_CallBack(TEXT("RACEREADY"), &m_bRace); NextText(); break; + + case ENUM_CLASS(NPCTEXTTYPE::BATTLE): + m_bBattle = true; + m_pInfoInstance->Event_CallBack(TEXT("BATTLE"), &m_bBattle); + NextText(); + break; default: break; } } else { - if (m_pGameInstance->Key_Down(DIK_RETURN) && m_bCurrentChoiceText == false) + if (m_fTime <= 0.f) { - switch (m_iType) + if (m_pGameInstance->Key_Down(DIK_RETURN) && m_bCurrentChoiceText == false) { - case ENUM_CLASS(NPCTEXTTYPE::NEXTTEXT): - NextText(); - break; - case ENUM_CLASS(NPCTEXTTYPE::CHOICE): - CHoice(); - break; - default: - break; + switch (m_iType) + { + case ENUM_CLASS(NPCTEXTTYPE::NEXTTEXT): + m_fTime = 0.5f; + NextText(); + break; + case + ENUM_CLASS(NPCTEXTTYPE::CHOICE): + m_fTime = 0.5f; + CHoice(); + break; + default: + break; + } } + } } } @@ -129,6 +138,15 @@ void CDialogue_Font::Update(_float fTimeDelta) } } } + + if (m_fTime >= 0.f) + { + m_fTime -= fTimeDelta; + } + else + { + m_fTime = 0.f; + } } void CDialogue_Font::Late_Update(_float fTimeDelta) @@ -306,6 +324,7 @@ void CDialogue_Font::ReSet() m_bChoiceText = false; m_bCurrentChoiceText = false; m_bRace = false; + m_bBattle = 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 489588548..9c4ad71b2 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp @@ -3,6 +3,9 @@ #include "GameInstance.h" #include "Dialogue_Choice.h" #include "InfoInstance.h" +#include "Player.h" +#include "Human_Duelist.h" +#include "Layer.h" CDialogue_Panel::CDialogue_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CPanelObject(pDevice, pContext) @@ -104,6 +107,11 @@ void CDialogue_Panel::Choice_Slot(CHOICEINFO Choice) m_bBroomRace = true; break; + case ENUM_CLASS(NPCTEXTTYPE::BATTLE): + m_pInfoInstance->Event_CallBack(TEXT("NPCNEXTTEXT"), &Choice); + m_bBttle = true; + break; + default: break; } @@ -122,8 +130,58 @@ void CDialogue_Panel::ReSet_Choice() } } +void CDialogue_Panel::Change_Map() +{ + m_pInfoInstance->Load_DADA_INT(); + m_pGameInstance->Setting_Volumetirc( + 3.f, + 0.01f, + 0.11f, + 1.0f, + 0.f + ); + + + CLayer* pDuelistLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_DUELIST); + if (nullptr != pDuelistLayer) { + CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object(); + pDuelist->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1016.f, 1.f)); + } + + CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER); + if (nullptr != pLayer) { + CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object(); + CPlayer* pPlayer = pLayer->Get_Object(); + pPlayer->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1008.f, 1.f)); + pPlayer->Set_Battle(true); + + _vector vPos = pPlayer->Get_WorldPostion(); + _vector vForward = XMVectorSet(0.f, 0.f, 1.f, 0.f); + + pPlayer->Get_Component()->LookAt(vPos + vForward); + + } + + + + /*CLayer* pNpcLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_NPC); + if (nullptr != pNpcLayer) { + + for (auto& pNpc : *pNpcLayer->Get_Objects()) + { + pNpc->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1016.f, 1.f)); + } + }*/ + +} + void CDialogue_Panel::Priority_Update(_float fTimeDelta) { + if (m_pGameInstance->Key_Down(DIK_J)) + { + Change_Map(); + } + if (!__super::Chack_Visible()) { return; @@ -139,15 +197,23 @@ void CDialogue_Panel::Update(_float fTimeDelta) } - if (m_bBroomRace == true) + if (m_bBroomRace == true || m_bBttle == true) { m_fTime += fTimeDelta; } if (m_fTime >= 1.f) { - m_bBroomRace = false; - m_pInfoInstance->Event_CallBack(TEXT("BROOMRACENPCINTERACT")); + if(m_bBroomRace == true) + { + m_bBroomRace = false; + m_pInfoInstance->Event_CallBack(TEXT("BROOMRACENPCINTERACT")); + } + else if (m_bBttle == true) + { + m_bBttle = false; + Change_Map(); + } } __super::Update(fTimeDelta); } diff --git a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp index 5b9021d6e..336f165c2 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp @@ -3,7 +3,7 @@ #include "GameInstance.h" #include "EffectParts.h" -#include "Human_Duelist.h" +#include "Player.h" #include "TrailObject.h" #include "Wand.h" #include "InfoInstance.h" @@ -27,6 +27,7 @@ HRESULT CDuelist_Levioso::Initialize_Prototype() return E_FAIL; return S_OK; + } HRESULT CDuelist_Levioso::Initialize(void* pArg) @@ -40,26 +41,16 @@ HRESULT CDuelist_Levioso::Initialize(void* pArg) if (FAILED(Create_Effect())) return E_FAIL; - m_iSkillType = ENUM_CLASS(SKILL_TYPE::DUELIST_LEVIOSO); + m_iSkillType = ENUM_CLASS(SKILL_TYPE::LEVIOSO); - m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); + m_pLeviosoPJ = Get_PartObject("Levioso_PJ"); - m_pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); - m_pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); - - SAFE_ADDREF(m_pLevioso_Rotate0); - SAFE_ADDREF(m_pLevioso_Rotate1); - - SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pTrail_PT_0); + SAFE_ADDREF(m_pLeviosoPJ); m_wstrEffectName = L"Levioso"; - m_fTurnSpeed = 10.f; - m_fRange = 1.f; - m_fDuration = 2.f; + m_fDuration = 6.f; @@ -70,7 +61,7 @@ void CDuelist_Levioso::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ->Get_WorldPostion()); } @@ -83,19 +74,8 @@ void CDuelist_Levioso::Update(_float fTimeDelta) Update_Event(fTimeDelta); - m_pLeviosoPJ_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - m_pTrail_PT_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix(); - - if (m_bHit == true && m_pEnemyTransform != nullptr) - { - _vector vPos = m_pEnemyTransform->Get_State(STATE::POSITION); - - m_pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vPos); - } + m_pLeviosoPJ->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -104,20 +84,15 @@ void CDuelist_Levioso::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); - if (true == m_pGameInstance->SphereCast(0.25f, XMLoadFloat4(&m_vStartPos), XMVector3Normalize(vDir), XMVectorGetX(XMVector3Length(vDir)) - , PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eSTATIC, m_Hitbuffer)) - { - - } - if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f); + ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.002f); OnCollision(this, &CollisionInfo); } @@ -131,28 +106,30 @@ HRESULT CDuelist_Levioso::Pre_Setting(CGameObject* pObject, void* pArg) if (FAILED(__super::Pre_Setting(pObject, nullptr))) return E_FAIL; - CHuman_Duelist* pDuelist = static_cast(m_pOwner); + CPlayer* pPlayer = static_cast(m_pOwner); - if (pDuelist == nullptr) + if (pPlayer == nullptr) return E_FAIL; - _vector WandPos = pDuelist->Get_WandPos().r[3]; + _vector WandPos = pPlayer->Get_WandPos().r[3]; - CEffectParts* pWandSmoke = Get_PartObject("Levioso_Wand0"); - CEffectParts* pWandLight = Get_PartObject("Levioso_Wand_Light"); + CEffectParts* pWandSmoke = Get_PartObject("Wand_Smoke"); + CEffectParts* pWandLight = Get_PartObject("Wand_Light_P"); + CEffectParts* pSpread_Circle = Get_PartObject("Spread_Circle"); - m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pDuelist->Get_PartObject()->Get_WorldPostion()); - pWandLight->Get_Component()->Set_State(STATE::POSITION, pDuelist->Get_PartObject()->Get_WorldPostion()); - m_pLeviosoPJ_0->Set_Visible(true); - m_pTrail_PT_0->Set_Visible(true); + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, WandPos); + + pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pSpread_Circle->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + + m_pLeviosoPJ->Set_Visible(true); pWandSmoke->Set_Visible(true); pWandLight->Set_Visible(true); + pSpread_Circle->Set_Visible(true); - - m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK))); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); XMStoreFloat3(&m_vCameraLook, vDirection); @@ -162,16 +139,11 @@ HRESULT CDuelist_Levioso::Pre_Setting(CGameObject* pObject, void* pArg) { /* 대상 위치 지정 */ - CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first; + m_pInfoInstance->Get_LockOnInfo(m_Info); - if (pPlayer == nullptr) - return E_FAIL; + if (nullptr != m_Info.pUnit) { - _vector vPlayerPos = pPlayer->Get_Component()->Get_Position(); - - if (nullptr != pPlayer) { - - XMStoreFloat4(&m_vTargetPos, vPlayerPos); + XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos()); XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); } @@ -182,15 +154,6 @@ HRESULT CDuelist_Levioso::Pre_Setting(CGameObject* pObject, void* pArg) } - _vector vDir = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); - - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir)); - - _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vDir)); - - _matrix ProjMat = _matrix(vRight, vUp, vDir, vStartPos); - - m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(ProjMat); return S_OK; } @@ -246,17 +209,19 @@ void CDuelist_Levioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - m_fAccTime = 0.f; m_fDuration = 3.5f; //적중하면 지속시간 3초 + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + CEffectParts* pLevioso_Spline = Get_PartObject("Levioso_Spline"); + CEffectParts* pLevioso_Hit0 = Get_PartObject("Levioso_Hit0"); + + pLevioso_Hit0->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pLevioso_Spline->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + pLevioso_Hit0->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); /* 바람과 파티클은 풋포지션 */ CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); @@ -265,50 +230,38 @@ void CDuelist_Levioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vFootPos = pHitCCT->Get_FootPosition(); CEffectParts* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + CEffectParts* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + CEffectParts* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); CEffectParts* pLevioso_Bottom_PT = Get_PartObject("Levioso_Bottom_PT"); + CEffectParts* pLevioso_Spline = Get_PartObject("Levioso_Spline"); - m_pEnemyTransform = CollisionDesc.pObject->Get_Component(); pLevioso_Tornado->Get_Component()->Set_State(STATE::POSITION, vFootPos); - pLevioso_Bottom_Wind->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vFootPos); pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Tornado->Set_Visible(true); + pLevioso_Rotate0->Set_Visible(true); + pLevioso_Rotate1->Set_Visible(true); + pLevioso_Bottom_PT->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); } - //Get_PartObject("Levioso_Tornado") - //CEffectParts* pLevioso_Hit = Get_PartObject("Levioso_Hit"); - //CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); - - - - m_pLeviosoPJ_0->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - //m_pLeviosoTrail->Set_Visible(false); } void CDuelist_Levioso::Free() { __super::Free(); - SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pTrail_PT_0); - - SAFE_RELEASE(m_pLevioso_Rotate0); - SAFE_RELEASE(m_pLevioso_Rotate1); + SAFE_RELEASE(m_pLeviosoPJ); } #ifdef _DEBUG void CDuelist_Levioso::Describe_Entity() { - GUI::Begin("LEVIOSO", 0, IMGUI_GLOBAL_BEGIN_FLAG); - - GUI::DragFloat("TURN SPEED", &m_fTurnSpeed); - GUI::DragFloat("RANGE", &m_fRange); - GUI::End(); - } #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp index 8b7648f04..033f89984 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp @@ -297,17 +297,25 @@ void CDuelist_NormalJap::OnCollision(CGameObject* pOther, void* pDesc) } if (m_bHitShield) { - _vector vDir = m_pTransformCom->Get_State(STATE::LOOK); - vDir = XMVector3Normalize(vDir); + _vector vIncident = XMVector3Normalize(XMLoadFloat4(&CollisionDesc.vHitDir)); - _float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 180.f)); + _vector vNormal = XMVector3Normalize(XMLoadFloat4(&CollisionDesc.vWorldNomal)); - _matrix rotX = XMMatrixRotationX(fRandAngle); - _vector vRandDir = XMVector3TransformNormal(vDir, rotX); + _vector vReflect = XMVector3Reflect(vIncident, vNormal); - XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(vRandDir)); + _float y = XMVectorGetY(vReflect); + if (y < 0.f) + vReflect = XMVectorSetY(vReflect, 0.f); - m_fLinearSpeed = 15.f; + _vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); + _vector vFinal = XMVector3Normalize( + vReflect * (1.f - 0.25f) + vUp * 0.25f + ); + + XMStoreFloat3(&m_vCameraLook, vFinal); + + + m_fLinearSpeed = 30.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 d128fd096..8259220b0 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp @@ -106,6 +106,8 @@ HRESULT CDuelist_Protego::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()); @@ -139,7 +141,7 @@ HRESULT CDuelist_Protego::Ready_Components(void* pArg) return E_FAIL; } - m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); } return S_OK; @@ -195,10 +197,12 @@ void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc) case ENUM_CLASS(SKILL_TYPE::LEVIOSO): m_pOwner->OnCollision(pOther, CollisionDesc); m_bVisible = false; + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; case ENUM_CLASS(SKILL_TYPE::STUPEFY): m_pOwner->OnCollision(pOther, CollisionDesc); m_bVisible = false; + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; } } diff --git a/Jusin154_Team3D/Client/Private/EffectInfo.cpp b/Jusin154_Team3D/Client/Private/EffectInfo.cpp index 41b28f264..92582e3c2 100644 --- a/Jusin154_Team3D/Client/Private/EffectInfo.cpp +++ b/Jusin154_Team3D/Client/Private/EffectInfo.cpp @@ -57,6 +57,8 @@ Client::CEffect_Container* CEffectInfo::Get_LockOnEffect() HRESULT CEffectInfo::Refresh_LockOnEffects() { + if (!m_pInfoInstance->Get_SearchLockonFloag()) + return S_OK; SAFE_RELEASE(m_pLockOnEffect); _vector vCameraLook = m_pGameInstance->Get_CameraLook(); _vector vCameraPos = m_pGameInstance->Get_CamXMPosition(); diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp index 02553833d..416db96f1 100644 --- a/Jusin154_Team3D/Client/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp @@ -395,6 +395,12 @@ HRESULT CEffectObject::Load(CEffect_Container::EFFECT_SAVE_INFO EffectSaveInfo, m_pInstance_ModelCom->Load_InstanceModel(EffectSaveInfo.InstanceModelInfo); + if (m_EffectInfo.isScreenFX == true) + { + XMStoreFloat4x4(&m_ScreenViewMatrix, XMMatrixIdentity()); + XMStoreFloat4x4(&m_OrthographicMatrix, XMMatrixOrthographicLH(g_iWinSizeX, g_iWinSizeY, 0.f, 1.f)); + } + return S_OK; } @@ -769,11 +775,31 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { - return E_FAIL; + if (m_EffectInfo.isScreenFX == false) + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { + return E_FAIL; + } } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { - return E_FAIL; + else + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_OrthographicMatrix))) { + return E_FAIL; + } } if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 62ae635e2..99c5308b9 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -18,6 +18,7 @@ #include "LeviosoSide.h" #include "DecendoSide.h" #include "AvadakedavraSide.h" +#include "StupefySide.h" #include "TransformationSide.h" #include "NomalJapSide.h" @@ -511,7 +512,15 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; - + if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY_SIDE, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CStupefySide* 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 cdae2fa61..89f5f376a 100644 --- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp +++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp @@ -730,6 +730,8 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End PHYSX_USERDATA* pUserData = static_cast(pActor->userData); tagCollInfo.pObject = pUserData->pOwner; + tagCollInfo.eCollisionType = ENUM_CLASS(PXOBJECT(pUserData->iSubKind)); + switch (pUserData->eKind) { case PHYSX_KIND::BODY_DYNAMIC: @@ -740,13 +742,6 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End pUserData->pOwner->OnCollision(this, &tagCollInfo); m_bHit = true; m_bHitShield = true; - if (!pUserData->pOwner->Get_Visible()) { - if (pUserData->pOwner->Get_Owner() != nullptr) - { - m_bHitShield = false; - pUserData->pOwner->Get_Owner()->OnCollision(this, &tagCollInfo); - } - } } break; } @@ -757,13 +752,6 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End pUserData->pOwner->OnCollision(this, &tagCollInfo); m_bHit = true; m_bHitShield = true; - if (!pUserData->pOwner->Get_Visible()) { - if (pUserData->pOwner->Get_Owner() != nullptr) - { - m_bHitShield = false; - pUserData->pOwner->Get_Owner()->OnCollision(this, &tagCollInfo); - } - } } break; case PXOBJECT::RANROK_PROP: diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp index a65ae99e4..9423c8b46 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp @@ -35,6 +35,7 @@ void CGoblin_Assassin::Behavior_IdleEnter() HRESULT CGoblin_Assassin::Behavior_IdleExitCheck() { + pair<_uint, _bool> pairAnimInfo; if (m_fTargetDistance <= 20.f && m_fTargetDistance > 10.f) { m_bLookAt = false; @@ -48,6 +49,7 @@ HRESULT CGoblin_Assassin::Behavior_IdleExitCheck() { m_bLookAt = true; m_pFSM->Change_State(FSMSTATE::MOVE); + m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_PROTEGO, this); return E_FAIL; } else if (m_fTargetDistance >= 25.f) @@ -519,7 +521,7 @@ void CGoblin_Assassin::Behavior_HitEnter() pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; fAnimSpeed = 2.f; Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); m_pCharacter_Controller->SetGravity(false); m_bAir = true; @@ -537,7 +539,7 @@ void CGoblin_Assassin::Behavior_HitEnter() 0.75f); Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_bAir = false; m_pCharacter_Controller->SetGravity(true); @@ -545,7 +547,7 @@ void CGoblin_Assassin::Behavior_HitEnter() 0.96f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, 0.95f); @@ -645,7 +647,7 @@ HRESULT CGoblin_Assassin::Behavior_HitExitCheck(_float fTimeDelta) if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first) { Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, + [this]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, 0.17f); } @@ -669,11 +671,11 @@ HRESULT CGoblin_Assassin::Behavior_HitExitCheck(_float fTimeDelta) Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, + [this]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, 0.21f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); m_fAirTime = 0.f; }, 0.95f); @@ -826,7 +828,7 @@ void CGoblin_Assassin::HitState_Behavior(_float fTimeDelta) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); m_pCharacter_Controller->SetGravity(false); m_bAir = true; @@ -844,7 +846,7 @@ void CGoblin_Assassin::HitState_Behavior(_float fTimeDelta) 0.75f); Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_bAir = false; m_pCharacter_Controller->SetGravity(true); @@ -852,7 +854,7 @@ void CGoblin_Assassin::HitState_Behavior(_float fTimeDelta) 0.96f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, 0.95f); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp index 9bc5d9b0d..93f778370 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp @@ -410,7 +410,7 @@ void CGoblin_Mage::Behavior_HitEnter() fAnimSpeed = 2.f; Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); m_pCharacter_Controller->SetGravity(false); m_bAir = true; @@ -418,7 +418,7 @@ void CGoblin_Mage::Behavior_HitEnter() 0.3f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { + [this]() { CameraShake(10.f, 1.f, 2.f, 0.3f); }, 0.27f); @@ -428,7 +428,7 @@ void CGoblin_Mage::Behavior_HitEnter() 0.75f); Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_bAir = false; m_pCharacter_Controller->SetGravity(true); @@ -436,12 +436,12 @@ void CGoblin_Mage::Behavior_HitEnter() 0.96f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, 0.95f); Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, - [&]() {m_bLookAt = true; }, + [this]() {m_bLookAt = true; }, 0.7f); break; @@ -536,7 +536,7 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta) if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first) { Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, + [this]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, 0.17f); } @@ -560,11 +560,11 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta) Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, + [this]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, 0.21f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); m_fAirTime = 0.f; }, 0.95f); @@ -716,7 +716,7 @@ void CGoblin_Mage::HitState_Behavior(_float fTimeDelta) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); m_pCharacter_Controller->SetGravity(false); m_bAir = true; @@ -724,7 +724,7 @@ void CGoblin_Mage::HitState_Behavior(_float fTimeDelta) 0.3f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { + [this]() { CameraShake(10.f, 1.f, 2.f, 0.3f); }, 0.27f); @@ -734,7 +734,7 @@ void CGoblin_Mage::HitState_Behavior(_float fTimeDelta) 0.75f); Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_bAir = false; m_pCharacter_Controller->SetGravity(true); @@ -742,12 +742,12 @@ void CGoblin_Mage::HitState_Behavior(_float fTimeDelta) 0.96f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, 0.95f); Add_Event(m_Animation[STATEANIM::GETUP_BWD].first, - [&]() {m_bLookAt = true; }, + [this]() {m_bLookAt = true; }, 0.7f); } break; diff --git a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp index 21234be26..d4bd1a5bf 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp @@ -107,6 +107,8 @@ HRESULT CGoblin_Protego::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()); @@ -140,7 +142,7 @@ HRESULT CGoblin_Protego::Ready_Components(void* pArg) return E_FAIL; } - m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); } return S_OK; @@ -180,6 +182,8 @@ 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); @@ -194,14 +198,17 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc) case ENUM_CLASS(SKILL_TYPE::BOMBARDA): m_pOwner->OnCollision(pOther, CollisionDesc); m_bVisible = false; + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA): m_pOwner->OnCollision(pOther, CollisionDesc); m_bVisible = false; + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC): m_pOwner->OnCollision(pOther, CollisionDesc); m_bVisible = false; + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; } } @@ -211,6 +218,7 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc) if (pProps != nullptr) { m_pOwner->OnCollision(pOther, CollisionDesc); + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); m_bVisible = false; } } diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp index 39d6534f2..e4f3ca7fc 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp @@ -272,7 +272,7 @@ void CGoblin::Behavior_SwingEnter() 0.28f); Add_Event(pairAnimInfo.first, - [&]() { m_bLookAt = true; + [this]() { m_bLookAt = true; m_bStep = true; m_pGoblinSpector->Set_Visible(false); m_pGoblinSpector->Spector_Trail_Visible(false); @@ -499,7 +499,7 @@ void CGoblin::Behavior_HitEnter() pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; fAnimSpeed = 2.f; Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); m_pCharacter_Controller->SetGravity(false); m_bAir = true; @@ -517,7 +517,7 @@ void CGoblin::Behavior_HitEnter() 0.75f); Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_bAir = false; m_pCharacter_Controller->SetGravity(true); @@ -525,7 +525,7 @@ void CGoblin::Behavior_HitEnter() 0.96f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, 0.95f); @@ -625,7 +625,7 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta) if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first) { Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, + [this]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, 0.17f); } @@ -649,11 +649,11 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta) Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, + [this]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); }, 0.21f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); m_fAirTime = 0.f; }, 0.95f); @@ -806,7 +806,7 @@ void CGoblin::HitState_Behavior(_float fTimeDelta) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f); m_pCharacter_Controller->SetGravity(false); m_bAir = true; @@ -824,7 +824,7 @@ void CGoblin::HitState_Behavior(_float fTimeDelta) 0.75f); Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_bAir = false; m_pCharacter_Controller->SetGravity(true); @@ -832,7 +832,7 @@ void CGoblin::HitState_Behavior(_float fTimeDelta) 0.96f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); }, 0.95f); diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index 407af3a78..e8f82652e 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -87,10 +87,6 @@ void CHuman_Duelist::Priority_Update(_float fTimeDelta) void CHuman_Duelist::Update(_float fTimeDelta) { - if (m_pGameInstance->Key_Up(DIK_J)) - { - m_pCharacter_Controller->Set_Position(XMVectorSet(1007.f, 6.f, 1016.f, 1.f)); - } m_pFSM->Update_State(fTimeDelta); m_pModelCom->Play_Animation(fTimeDelta *m_fEasing, m_pTransformCom); @@ -172,9 +168,19 @@ HRESULT CHuman_Duelist::Render() m_pModelCom->Bind_OutPut_SRV_VS(26, 0); m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + if (true == m_bDrawOutLine) { + m_pGameInstance->Begin_OutLine_Write(2); + } if (FAILED(m_pModelCom->Render(i))) { return E_FAIL; } + if (true == m_bDrawOutLine) { + m_pGameInstance->End_OutLine_Write(); + } + + if (true == m_bDrawOutLine) { + Render_OutLine(); + } } #ifdef _DEBUG //m_pCharacter_Controller->Render(); @@ -215,16 +221,9 @@ HRESULT CHuman_Duelist::Render_Shadow(SHADOW eType) if (FAILED(Bind_ShaderParameters(i))) { return E_FAIL; } - if (i == ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)) { - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW_LEGACY)))) { - return E_FAIL; - } - } - else { - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) { - return E_FAIL; - } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) { + return E_FAIL; } m_pModelCom->Bind_OutPut_SRV_VS(26, 0); m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); @@ -235,6 +234,79 @@ HRESULT CHuman_Duelist::Render_Shadow(SHADOW eType) } return S_OK; } + +HRESULT CHuman_Duelist::Render_OutLine() +{ + m_bDrawOutLine = false; + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + Compute_Depth(); + _float fCamFar = *m_pGameInstance->Get_CurrentCameraFar(); + _float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar))); + m_fOutLineThickness = CMyTools::Lerp_f1D(0.03f, 0.08f, fRatio); + if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) { + return E_FAIL; + } + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pShaderCom->Bind_Matrices( + "g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size() + ))) + { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::OUTLINE_READ)))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + return S_OK; +} + +_vector CHuman_Duelist::Get_LockOnPos() +{ + return m_pCharacter_Controller->Get_Position(); +} + + void CHuman_Duelist::OnCollision(CGameObject* pOther, void* pDesc) { ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp index 876011eb1..d230adfc0 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp @@ -86,26 +86,33 @@ void CHuman_Duelist::Behavior_CombatEnter() HRESULT CHuman_Duelist::Behavior_CombatExitCheck() { - if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)] <= 0.f) - { - m_pFSM->Change_State(FSMSTATE::SPELL); - return E_FAIL; - } - else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)] <= 0.f) - { - m_pFSM->Change_State(FSMSTATE::SHIELD); - return E_FAIL; - } - else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] <= 0.f) - { - m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK); - return E_FAIL; + if (m_fTargetDistance <= 20.f) { + if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::SPELL); + return E_FAIL; + } + else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::SHIELD); + return E_FAIL; + } + else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK); + return E_FAIL; + } + else { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } } else { m_pFSM->Change_State(FSMSTATE::IDLE); return E_FAIL; } + return S_OK; } @@ -142,12 +149,18 @@ void CHuman_Duelist::Behavior_LightAttackEnter() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, - [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAP, Get_PartObject(), &iIndex); - /*m_pGameInstance->SlowMotion(0.5f, 0.4f);*/ }, + [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAP, Get_PartObject(), &iIndex);}, fRatio); Add_Event(pairAnimInfo.first, - [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAPSIDE, Get_PartObject()); }, + [this, fRatio]() { + _float OffsetRatio = 0.1f; + m_pGameInstance->SlowMotion(0.2f, 0.3f); }, + 0.f); + + Add_Event(pairAnimInfo.first, + [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAPSIDE, Get_PartObject()); + }, 0.0f); m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)]; @@ -245,35 +258,35 @@ void CHuman_Duelist::Behavior_HitEnter() { case ENUM_CLASS(SKILL_TYPE::JAP): pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); break; case ENUM_CLASS(SKILL_TYPE::LEVIOSO): pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); break; case ENUM_CLASS(SKILL_TYPE::STUPEFY): pairAnimInfo = m_Animation[STATEANIM::DAZED_START]; - + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f); Add_Event(pairAnimInfo.first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::DAZED_LOOP]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::DAZED_LOOP]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_eHitState = ENUM_CLASS(HIT_STATE::STUN); }, 0.95f); Add_Event(m_Animation[STATEANIM::DAZED_LOOP].first, - [&]() { + [this]() { _string strBoneName = "HeadEnd"; m_pEffectPool->Use_Skill(SKILL_TYPE::STUN, this, &strBoneName); }, 0.1f); Add_Event(m_Animation[STATEANIM::DAZED_LOOP].first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::DAZED_END1]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::DAZED_END1]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, 0.95f); break; } - - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - } HRESULT CHuman_Duelist::Behavior_HitExitCheck(_float fTimeDelta) @@ -337,6 +350,7 @@ void CHuman_Duelist::Hit_Levioso(_float fTimeDelta) void CHuman_Duelist::HitState_Behavior(_float fTimeDelta) { pair<_uint, _bool> pairAnimInfo = {}; + CTransform* pTransform = m_pTarget->Get_Component(); _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); @@ -346,35 +360,94 @@ void CHuman_Duelist::HitState_Behavior(_float fTimeDelta) { case ENUM_CLASS(SKILL_TYPE::JAP): { - if (iCurrAnimIndex != m_Animation[STATEANIM::TUMBLE].first) { - pairAnimInfo = m_Animation[STATEANIM::TUMBLE]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + if (iCurrAnimIndex != m_Animation[STATEANIM::TUMBLE_FWD].first) { + pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, false, 1.3f); + + Add_Event(pairAnimInfo.first, + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pCharacter_Controller->SetGravity(true); + m_pCharacter_Controller->Set_GravityAmount(1.4f); + m_eHitState = ENUM_CLASS(HIT_STATE::END); }, + 0.7f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT].first, + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + }, + 0.95f); } else { - pairAnimInfo = m_Animation[STATEANIM::TUMBLE2]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + pairAnimInfo = m_Animation[STATEANIM::TUMBLE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, false, 1.3f); + m_bHitJap = true; + Add_Event(pairAnimInfo.first, + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pCharacter_Controller->SetGravity(true); + m_pCharacter_Controller->Set_GravityAmount(1.4f); + m_eHitState = ENUM_CLASS(HIT_STATE::END); }, + 0.7f); + + Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + }, + 0.95f); } - - Add_Event(pairAnimInfo.first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_pCharacter_Controller->SetGravity(true); - m_pCharacter_Controller->Set_GravityAmount(1.2f); }, - 0.8f); - - Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, - 0.95f); - m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); } break; } } + if (m_eHitState == ENUM_CLASS(HIT_STATE::STUN)) + { + switch (m_eHitSpell) + { + case ENUM_CLASS(SKILL_TYPE::JAP): + { + pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + break; + case ENUM_CLASS(SKILL_TYPE::LEVIOSO): + { + pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_fAirTime = 0.f; + } + break; + } + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); + } + + if (m_bHitJap) { + m_fHitTimer += fTimeDelta; + if (m_fHitTimer <= 0.4f) + { + _vector vPlayerLook = pTransform->Get_State(STATE::LOOK); + vPlayerLook = XMVector4Normalize(vPlayerLook); + _vector vPos = m_pCharacter_Controller->Get_Position(); + + _float t = clamp(m_fHitTimer, 0.f, 1.f); + _float ease = 1.f - (t * t); + _vector Force = vPlayerLook * fTimeDelta * 3.f * ease; + + m_pCharacter_Controller->Set_Position(vPos + Force); + } + else { + m_fHitTimer = 0.f; + m_bHitJap = false; + } + } + + } void CHuman_Duelist::Add_FSM() diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index 01348aa8f..746bb26ca 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -113,9 +113,6 @@ HRESULT CInfoInstance::Deregist_ActiveMonster(CMonster* pUnit) void CInfoInstance::Get_LockOnInfo(LOCKON_INFO& Info) { - if (false == m_bSearchLockOnTarget) { - return; - } Info.pUnit = m_pMonsterInfo->Get_LockOnUnit(); Info.pInteractive = m_pInteractiveInfo->Get_LockOnUnit(); Info.pEffect = m_pEffectInfo->Get_LockOnEffect(); diff --git a/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp b/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp index 25e9df4c0..c1948049d 100644 --- a/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp +++ b/Jusin154_Team3D/Client/Private/InteractiveInfo.cpp @@ -77,6 +77,8 @@ CMapElement_Interactable* CInteractiveInfo::Get_LockOnUnit() HRESULT CInteractiveInfo::Refresh_LockOnTarget() { + if (!m_pInfoInstance->Get_SearchLockonFloag()) + return S_OK; SAFE_RELEASE(m_pLockOnInteractive); _vector vCameraLook = m_pGameInstance->Get_CameraLook(); _vector vCameraPos = m_pGameInstance->Get_CamXMPosition(); diff --git a/Jusin154_Team3D/Client/Private/Item_Potion.cpp b/Jusin154_Team3D/Client/Private/Item_Potion.cpp index 1609a2c54..cfcbd8f72 100644 --- a/Jusin154_Team3D/Client/Private/Item_Potion.cpp +++ b/Jusin154_Team3D/Client/Private/Item_Potion.cpp @@ -2,7 +2,8 @@ #include "Item_Potion.h" #include "GameInstance.h" - +#include "EffectPool.h" +#include "Layer.h" CItem_Potion::CItem_Potion(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CPartObject(pDevice, pContext) { @@ -32,12 +33,16 @@ HRESULT CItem_Potion::Initialize(void* pArg) return E_FAIL; } + + m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + SAFE_ADDREF(m_pEffectPool); + return S_OK; } void CItem_Potion::Priority_Update(_float fTimeDelta) { - + XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION)); #ifdef _DEBUG Describe_Entity(); @@ -56,14 +61,18 @@ void CItem_Potion::Late_Update(_float fTimeDelta) if (m_bVisible) { m_fTimer += fTimeDelta; - if (m_fTimer >= 1.7f) { + if (m_fTimer >= 1.6f) { + m_bAttach = false; + } + if (m_fTimer >= 3.f) { m_fTimer = 0.f; m_bVisible = false; + m_bAttach = true; } - } if (m_bAttach) { + m_bHit = false; _matrix socketMatrix = {}; socketMatrix = XMLoadFloat4x4(m_pSocketMatrices); @@ -74,10 +83,23 @@ void CItem_Potion::Late_Update(_float fTimeDelta) m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr())); } + else + { + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + _matrix world = XMLoadFloat4x4(m_pTransformCom->Get_WorldMatrixPtr()); + m_pTransformCom->Set_WorldMatrix(world); + + m_pTransformCom->Go_Right(fTimeDelta); + + } + if (false == m_bHit) { + Check_GroundCollision(); + } m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); } + HRESULT CItem_Potion::Render() { @@ -108,9 +130,68 @@ HRESULT CItem_Potion::Render() } } +#ifdef _DEBUG + m_pRigidBody->Render(); +#endif // _DEBUG + + return S_OK; } +void CItem_Potion::Check_GroundCollision() +{ + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = m_pTransformCom->Get_State(STATE::POSITION); + _vector vDir = vEndPos - vStartPos; + _float fLength = XMVectorGetX(XMVector4Length(vDir)); + vDir = XMVector4Normalize(vDir); + m_SweepBuffer = {}; + _bool bHit = m_pGameInstance->SphereCast(0.02f, vStartPos, vDir, fLength, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eSTATIC, m_SweepBuffer); + if (true == bHit) { + vector Hits; + _uint iHitCount = m_SweepBuffer.nbTouches; + if (true == m_SweepBuffer.hasBlock) { + iHitCount += 1; + Hits.reserve(iHitCount); + Hits.emplace_back(&m_SweepBuffer.block); + } + else { + Hits.reserve(iHitCount); + } + for (_uint i = 0; i < m_SweepBuffer.nbTouches; ++i) { + Hits.emplace_back(&m_SweepBuffer.touches[i]); + } + + for (_uint i = 0; i < Hits.size(); ++i) { + PSX::PxSweepHit* pHit = Hits[i]; + PSX::PxActor* pActor = pHit->actor; + if (nullptr != pActor && nullptr != pActor->userData) { + const PSX::PxSweepHit& hit = m_SweepBuffer.block; + PSX::PxShape* pShape = hit.shape; + + PHYSX_USERDATA* pUserData = static_cast(pActor->userData); + + + switch (PXOBJECT(pUserData->iSubKind)) + { + case PXOBJECT::TERRAIN: + { + OnCollision(this); + m_bHit = true; + break; + } + } + } + } + } +} + + +void CItem_Potion::OnCollision(CGameObject* pOther, void* pDesc) +{ + m_bHit = false; +} + void CItem_Potion::Set_Attach(_bool Attach) { m_bAttach = Attach; @@ -119,7 +200,14 @@ void CItem_Potion::Set_Attach(_bool Attach) HRESULT CItem_Potion::Ready_Components() { - __super::Ready_Components(nullptr); + + CTransform::TRANSFORM_DESC Desc = {}; + + Desc.fSpeedPerSec = 10.f; + Desc.fRotationPerSec = XMConvertToRadians(180.0f); + Desc.fRadius = 10.f; + + __super::Ready_Components(&Desc); /* Com_Model */ @@ -132,6 +220,16 @@ HRESULT CItem_Potion::Ready_Components() reinterpret_cast(&m_pShaderCom)))) return E_FAIL; + { // DO + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::POTION); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_POTION"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + } + return S_OK; } @@ -188,6 +286,8 @@ void CItem_Potion::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pRigidBody); + SAFE_RELEASE(m_pEffectPool); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 5d18ce973..4e796129a 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -119,10 +119,24 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) return E_FAIL; } + if (FAILED(Ready_Layer_RacerAI(LAYER_RACERAI))) { + return E_FAIL; + } + + if (FAILED(Ready_Layer_Monster())) { return E_FAIL; } + if (FAILED(Ready_Layer_Duelist())) { + return E_FAIL; + } + + if (FAILED(Ready_Layer_Npc())) { + return E_FAIL; + } + + if (FAILED(m_pInfoInstance->Late_Initialize())) return E_FAIL; @@ -932,75 +946,19 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) return E_FAIL; } + return S_OK; +} - _bool isLoad_NPC = { true }; - _bool isLoad_RandomNPC = { true }; -#ifdef _DEBUG -#ifdef gimch - isLoad_NPC = true; - isLoad_RandomNPC = true; -#endif // gimch -#ifdef 진우 - isLoad_RandomNPC = true; - isLoad_NPC = true; -#endif // -#ifdef 기무리 - isLoad_NPC = true; - isLoad_RandomNPC = true; -#endif // -#ifdef 나 - isLoad_RandomNPC = true; -#endif // -#ifdef Bin - isLoad_NPC = true; - isLoad_RandomNPC = true; -#endif // Bin -#endif // _DEBUG - - if (true == isLoad_NPC) +HRESULT CLevel_GamePlay::Ready_Layer_RacerAI(const _wstring& strLayerTag) +{ + CBroomRacerAI::RacerDesc Desc = {}; + for (_uint i = 1; i < 4; i++) { - { - CNPC_Ollivander::NPCDESC NPCDesc{}; - NPCDesc.vPos = _float4(40.f, 4.f, 68.9f, 1.f); - NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &NPCDesc))) { - return E_FAIL; - } - } - { - CNPC_EleazarFig::NPCDESC NPCDesc{}; - NPCDesc.vPos = _float4(101.f, 14.f, 100.f, 1.f); - NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &NPCDesc))) { - return E_FAIL; - } - } - } - - if (true == isLoad_RandomNPC) - { - for (_uint i = 0; i < 11; i++) - { - { - CRandomNpc::NPCDESC NPCDesc{}; - _float X = m_pGameInstance->Real_Random_Float(22.f, 29.f); - _float Z = m_pGameInstance->Real_Random_Float(20.f, 29.f); - NPCDesc.vPos = _float4(X, 1.f, Z, 1.f); - NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); - NPCDesc.iIndex = i; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &NPCDesc))) { - return E_FAIL; - } - } - } - CHuman_Duelist::DUELISTDESC DuelistDesc = {}; - DuelistDesc.vPos = _float4(1007.f, 6.f, 1016.f, 1.f); - DuelistDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &DuelistDesc))) { + Desc.pRacerManager = m_pBroomRaceManager; + Desc.iIndex = i; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, &Desc))) return E_FAIL; - } } - return S_OK; } @@ -1128,6 +1086,84 @@ HRESULT CLevel_GamePlay::Bind_InstanceProp(map<_string, class CLand*>* Lands, CI return S_OK; } +HRESULT CLevel_GamePlay::Ready_Layer_Duelist() +{ + + CHuman_Duelist::DUELISTDESC DuelistDesc = {}; + DuelistDesc.vPos = _float4(1007.f, 6.f, 1016.f, 1.f); + DuelistDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_DUELIST, &DuelistDesc))) { + return E_FAIL; + } + return S_OK; +} + +HRESULT CLevel_GamePlay::Ready_Layer_Npc() +{ + _bool isLoad_NPC = { true }; + _bool isLoad_RandomNPC = { true }; +#ifdef _DEBUG +#ifdef gimch + isLoad_NPC = true; + isLoad_RandomNPC = true; +#endif // gimch +#ifdef 진우 + isLoad_RandomNPC = true; + isLoad_NPC = true; +#endif // +#ifdef 기무리 + isLoad_NPC = true; + isLoad_RandomNPC = true; +#endif // +#ifdef 나 + isLoad_RandomNPC = true; +#endif // +#ifdef Bin + isLoad_NPC = true; + isLoad_RandomNPC = true; +#endif // Bin +#endif // _DEBUG + + if (true == isLoad_NPC) + { + { + CNPC_Ollivander::NPCDESC NPCDesc{}; + NPCDesc.vPos = _float4(40.f, 4.f, 68.9f, 1.f); + NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) { + return E_FAIL; + } + } + { + CNPC_EleazarFig::NPCDESC NPCDesc{}; + NPCDesc.vPos = _float4(101.f, 14.f, 100.f, 1.f); + NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) { + return E_FAIL; + } + } + } + + if (true == isLoad_RandomNPC) + { + for (_uint i = 0; i < 11; i++) + { + { + CRandomNpc::NPCDESC NPCDesc{}; + _float X = m_pGameInstance->Real_Random_Float(22.f, 29.f); + _float Z = m_pGameInstance->Real_Random_Float(20.f, 29.f); + NPCDesc.vPos = _float4(X, 1.f, Z, 1.f); + NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); + NPCDesc.iIndex = i; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) { + return E_FAIL; + } + } + } + } + return S_OK; +} + pair> CLevel_GamePlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg) { CLevel_GamePlay* pInstance = new CLevel_GamePlay(pDevice, pContext, eLevelID); diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp index 4119b3388..63af4dc63 100644 --- a/Jusin154_Team3D/Client/Private/Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Levioso.cpp @@ -27,6 +27,7 @@ HRESULT CLevioso::Initialize_Prototype() return E_FAIL; return S_OK; + } HRESULT CLevioso::Initialize(void* pArg) @@ -42,24 +43,14 @@ HRESULT CLevioso::Initialize(void* pArg) m_iSkillType = ENUM_CLASS(SKILL_TYPE::LEVIOSO); - m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); + m_pLeviosoPJ = Get_PartObject("Levioso_PJ"); - m_pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); - m_pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); - - SAFE_ADDREF(m_pLevioso_Rotate0); - SAFE_ADDREF(m_pLevioso_Rotate1); - - SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pTrail_PT_0); + SAFE_ADDREF(m_pLeviosoPJ); m_wstrEffectName = L"Levioso"; - m_fTurnSpeed = 10.f; - m_fRange = 1.f; - m_fDuration = 2.f; + m_fDuration = 6.f; @@ -70,7 +61,7 @@ void CLevioso::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ->Get_WorldPostion()); } @@ -83,19 +74,8 @@ void CLevioso::Update(_float fTimeDelta) Update_Event(fTimeDelta); - m_pLeviosoPJ_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - m_pTrail_PT_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix(); - - if (m_bHit == true && m_pEnemyTransform != nullptr) - { - _vector vPos = m_pEnemyTransform->Get_State(STATE::POSITION); - - m_pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vPos); - } + m_pLeviosoPJ->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -104,17 +84,17 @@ void CLevioso::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); - if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); - OnCollision(this , &CollisionInfo); + OnCollision(this, &CollisionInfo); } __super::Late_Update(fTimeDelta); @@ -133,21 +113,23 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) _vector WandPos = pPlayer->Get_WandPos().r[3]; - CEffectParts* pWandSmoke = Get_PartObject("Levioso_Wand0"); - CEffectParts* pWandLight = Get_PartObject("Levioso_Wand_Light"); + CEffectParts* pWandSmoke = Get_PartObject("Wand_Smoke"); + CEffectParts* pWandLight = Get_PartObject("Wand_Light_P"); + CEffectParts* pSpread_Circle = Get_PartObject("Spread_Circle"); + + + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pSpread_Circle->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); - m_pLeviosoPJ_0->Set_Visible(true); - m_pTrail_PT_0->Set_Visible(true); + m_pLeviosoPJ->Set_Visible(true); pWandSmoke->Set_Visible(true); pWandLight->Set_Visible(true); + pSpread_Circle->Set_Visible(true); - - m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + XMStoreFloat3(&m_vCameraLook , XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK))); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); XMStoreFloat3(&m_vCameraLook, vDirection); @@ -159,9 +141,9 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) m_pInfoInstance->Get_LockOnInfo(m_Info); - if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) { + if (nullptr != m_Info.pUnit) { - XMStoreFloat4(&m_vTargetPos, Get_LockOnPos(m_Info)); + XMStoreFloat4(&m_vTargetPos, m_Info.pUnit->Get_LockOnPos()); XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); } @@ -172,15 +154,6 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) } - _vector vDir = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); - - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir)); - - _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vDir)); - - _matrix ProjMat = _matrix(vRight, vUp, vDir, vStartPos); - - m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(ProjMat); return S_OK; } @@ -236,69 +209,86 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - m_fAccTime = 0.f; m_fDuration = 3.5f; //적중하면 지속시간 3초 + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - /* 바람과 파티클은 풋포지션 */ CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); + + if (pHitCCT != nullptr) { - _vector vFootPos = pHitCCT->Get_FootPosition(); + CEffectParts* pLevioso_Spline = Get_PartObject("Levioso_Spline"); + CEffectParts* pLevioso_Hit0 = Get_PartObject("Levioso_Hit0"); + + pLevioso_Hit0->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pLevioso_Spline->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + pLevioso_Hit0->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); + + /* 바람과 파티클은 풋포지션 */ + + + _vector vFootPos = pHitCCT->Get_FootPosition(); CEffectParts* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + CEffectParts* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + CEffectParts* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); CEffectParts* pLevioso_Bottom_PT = Get_PartObject("Levioso_Bottom_PT"); - m_pEnemyTransform = CollisionDesc.pObject->Get_Component(); - pLevioso_Tornado->Get_Component()->Set_State(STATE::POSITION, vFootPos); - pLevioso_Bottom_Wind->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vFootPos); pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + _float3 vScale = _float3(1.f, 1.f, 1.f); + pLevioso_Tornado->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate0->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate1->Get_Component()->Set_Scale(vScale); + pLevioso_Bottom_PT->Get_Component()->Set_Scale(vScale); + + switch (static_cast(CollisionDesc.eCollisionType)) + { + case PXOBJECT::GOBLIN_MAGICIAN: + case PXOBJECT::GOBLIN_ASSASSIN: + case PXOBJECT::GOBLIN_WARRIOR: + { + _float3 vScale = _float3(0.7f, 0.7f, 0.7f); + pLevioso_Tornado->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate0->Get_Component()->Set_Scale(vScale); + pLevioso_Rotate1->Get_Component()->Set_Scale(vScale); + pLevioso_Bottom_PT->Get_Component()->Set_Scale(vScale); + break; + } + + default: + break; + } + + pLevioso_Tornado->Set_Visible(true); + pLevioso_Rotate0->Set_Visible(true); + pLevioso_Rotate1->Set_Visible(true); + pLevioso_Bottom_PT->Set_Visible(true); } + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); - - //Get_PartObject("Levioso_Tornado") - //CEffectParts* pLevioso_Hit = Get_PartObject("Levioso_Hit"); - //CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); - - - - m_pLeviosoPJ_0->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - //m_pLeviosoTrail->Set_Visible(false); } void CLevioso::Free() { __super::Free(); - SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pTrail_PT_0); - - SAFE_RELEASE(m_pLevioso_Rotate0); - SAFE_RELEASE(m_pLevioso_Rotate1); + SAFE_RELEASE(m_pLeviosoPJ); } #ifdef _DEBUG void CLevioso::Describe_Entity() { - GUI::Begin("LEVIOSO", 0, IMGUI_GLOBAL_BEGIN_FLAG); - - GUI::DragFloat("TURN SPEED", &m_fTurnSpeed); - GUI::DragFloat("RANGE", &m_fRange); - GUI::End(); - } #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/LeviosoSide.cpp b/Jusin154_Team3D/Client/Private/LeviosoSide.cpp index 77f3a1dc6..9c0bbddcf 100644 --- a/Jusin154_Team3D/Client/Private/LeviosoSide.cpp +++ b/Jusin154_Team3D/Client/Private/LeviosoSide.cpp @@ -47,7 +47,12 @@ HRESULT CLeviosoSide::Initialize(void* pArg) SAFE_ADDREF(m_pWandLight); SAFE_ADDREF(m_pWandTrail); - m_fDuration = 1.f; + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); return S_OK; } @@ -75,7 +80,7 @@ void CLeviosoSide::Update(_float fTimeDelta) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - m_pWandTrail->Get_Component()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix()); + m_pWandTrail->Oneside_Rope_Trail_Update(pWand->Get_WorldMatrix() , fTimeDelta); } diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index a42a2ec55..25b7e6df0 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -244,6 +244,7 @@ #include "Barral_Splesh.h" #include "Screen_Wind.h" #include "Stupefy.h" +#include "StupefySide.h" #include "Lightning.h" #include "LightningSide.h" #include "Transformation.h" @@ -374,6 +375,55 @@ HRESULT CLoader::Loading_For_Logo() m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); +#if 진우 +#pragma region SHADER + 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)); + } + + 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); + } + +#endif + +#pragma endregion m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다."); @@ -397,6 +447,8 @@ HRESULT CLoader::Loading_For_Logo() return E_FAIL; } + + m_strMessage = TEXT("로딩이 완료되었습니다.."); m_isFinished = true; @@ -1084,6 +1136,7 @@ HRESULT CLoader::Loading_For_GamePlay() } } +#ifndef 진우 #pragma region SHADER { @@ -1120,6 +1173,7 @@ HRESULT CLoader::Loading_For_GamePlay() } #pragma endregion +#endif /* LAND_MODEL */ { /* For.Prototype_Component_South_Hogwart_Land_LOD1 */ @@ -2181,6 +2235,23 @@ HRESULT CLoader::Loading_For_GamePlay() Desc1.vLocalTranslation = { 0.f, 0.f, 0.f }; } + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC PotionDesc{}; + { + PotionDesc.eType = ACTOR::SPHERE; + PotionDesc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC }; + PotionDesc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE }; + PotionDesc.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; + PotionDesc.vMatInfo = { 0.5f, 0.5f, 0.6f }; + PotionDesc.fContactOffset = { 0.05f }; + PotionDesc.vhalfGeometryInfo = { 0.07f, 0.07f, 0.07f }; + PotionDesc.fDensity = 1.f; + PotionDesc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); + PotionDesc.eLockFlag = {}; + PotionDesc.vAutoDamping = { 1.f, 1.f }; + PotionDesc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f }; + PotionDesc.vLocalTranslation = { 0.f, 0.f, 0.f }; + } + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC RanrokDesc{}; { @@ -2208,6 +2279,11 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc1)))) { return E_FAIL; } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_POTION"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, PotionDesc)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, RanrokDesc)))) { return E_FAIL; } @@ -2541,13 +2617,19 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLeviosoSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBombardSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDecendoSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CStupefySide::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTransformationSide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -3790,22 +3872,10 @@ HRESULT CLoader::Loading_For_GamePlay() } -#pragma region RECEIVE_THREAD - { - 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); - } - } /* 쉐이더 로딩 종료 이후 로딩*/ +#pragma region RECEIVE_THREAD { // MapModels m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); @@ -3830,7 +3900,23 @@ HRESULT CLoader::Loading_For_GamePlay() Safe_Delete(pOut); } } + + + { + 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); + } + } + #pragma endregion + m_strMessage = TEXT("정보를 불러오는 중입니다."); m_strMessage = TEXT("모델을 다시 불러오는 중입니다. "); diff --git a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp index 0930f3ed7..c2232d956 100644 --- a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp +++ b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp @@ -119,6 +119,8 @@ CMonster* CMonsterInfo::Get_TargetMonster() HRESULT CMonsterInfo::Refresh_LockOnMonsters() { + if (!m_pInfoInstance->Get_SearchLockonFloag()) + return S_OK; SAFE_RELEASE(m_pLockOnMonster); _vector vCameraLook = m_pGameInstance->Get_CameraLook(); _vector vCameraPos = m_pGameInstance->Get_CamXMPosition(); diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index 524009623..9456e9d98 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -277,6 +277,7 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); for (auto& pPair : m_PartObjects) @@ -293,15 +294,23 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) } if (m_bHitShield) { - _vector vDir = m_pTransformCom->Get_State(STATE::LOOK); - vDir = XMVector3Normalize(vDir); + _vector vIncident = XMVector3Normalize(XMLoadFloat4(&CollisionDesc.vHitDir)); - _float fRandAngle = XMConvertToRadians(m_pGameInstance->Real_Random_Float(-180.f, 180.f)); + _vector vNormal = XMVector3Normalize(XMLoadFloat4(&CollisionDesc.vWorldNomal)); - _matrix rotX = XMMatrixRotationX(fRandAngle); - _vector vRandDir = XMVector3TransformNormal(vDir, rotX); + _vector vReflect = XMVector3Reflect(vIncident, vNormal); + + _float y = XMVectorGetY(vReflect); + if (y < 0.f) + vReflect = XMVectorSetY(vReflect, 0.f); + + _vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); + _vector vFinal = XMVector3Normalize( + vReflect * (1.f - 0.25f) + vUp * 0.25f + ); + + XMStoreFloat3(&m_vCameraLook, vFinal); - XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(vRandDir)); m_fLinearSpeed = 15.f; } diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index a45673d4b..f31eb87af 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -171,6 +171,9 @@ void CPlayer::Update(_float fTimeDelta) m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bNpcInteraction); } } + if (m_bGuarding) { + m_fParryTimer += fTimeDelta; + } m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION)); } @@ -205,6 +208,8 @@ void CPlayer::Late_Update(_float fTimeDelta) m_pTransformCom->LookAt_Horizontal_Lerp(m_LockOnInfo.pUnit->Get_WorldPostion(), fTimeDelta, 5.f); } + + Player_PixRot(); } @@ -439,11 +444,19 @@ void CPlayer::OnCollision(CGameObject* pOther, void* pDesc) iCurrAnim == m_Animation[STATEANIM::ANCIENT_THROW].first) return; - if (m_bShield) - { - m_pFSM->Change_State(FSMSTATE::BLOCK); - return; + if (m_bShield) { + if (IsParryWindow()) + { + m_pFSM->Change_State(FSMSTATE::PARRY); + m_fParryTimer = 0.f; + return; + } + else { + m_pFSM->Change_State(FSMSTATE::BLOCK); + return; + } } + #ifdef _DEBUG if (m_isDebugMode == true) @@ -544,6 +557,12 @@ void CPlayer::Set_RaceInfo() } } +_bool CPlayer::IsParryWindow() +{ + return m_fParryTimer <= 0.15f; +} + + HRESULT CPlayer::Ready_Components() { CTransform::TRANSFORM_DESC Desc = {}; @@ -1109,6 +1128,7 @@ void CPlayer::Describe_Entity() GUI::Text("dot RU %.4f | UL %.4f | LR %.4f\n", dotRU, dotUL, dotLR); + m_pLightCom->Describe_Entity(); for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++) { diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index d129a51c6..db4a012bb 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -33,6 +33,7 @@ #include "State_AncientSpell.h" #include "State_Shield.h" #include "State_Block.h" +#include "State_Parry.h" #include "State_Hit.h" #include "State_Broom_Ride.h" #include "State_Broom_Ride_Move.h" @@ -62,9 +63,11 @@ HRESULT CPlayer::InputAction() { if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) && m_eUIState !=ENUM_CLASS(UI_STATE::QUEST) && - m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN)) { + m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) && + m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) + { if ( - m_pGameInstance->Key_Down(DIK_SPACE) + m_pGameInstance->Key_Down(DIK_SPACE) || m_pGameInstance->Key_Down(DIK_LCONTROL) || m_pGameInstance->Key_Down(DIK_E) || m_pGameInstance->Key_Down(DIK_R) @@ -109,8 +112,10 @@ HRESULT CPlayer::InputMove() { if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) && m_eUIState != ENUM_CLASS(UI_STATE::QUEST) && - m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN)) { - + m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) && + !m_bDuel_ZOnlyMove && + m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) + { if (m_pGameInstance->Key_Pressing(DIK_W) || m_pGameInstance->Key_Pressing(DIK_A) || m_pGameInstance->Key_Pressing(DIK_S) @@ -127,7 +132,10 @@ HRESULT CPlayer::InputKeyUpMove() { if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) && m_eUIState != ENUM_CLASS(UI_STATE::QUEST) && - m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN)) { + m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) && + !m_bDuel_ZOnlyMove && + m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) + { if (m_pGameInstance->Key_Up(DIK_W) || m_pGameInstance->Key_Up(DIK_A) || m_pGameInstance->Key_Up(DIK_S) @@ -143,7 +151,8 @@ HRESULT CPlayer::InputSpell() { if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) && m_eUIState != ENUM_CLASS(UI_STATE::QUEST) && - m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN)) { + m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) && + m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) { if ( m_pGameInstance->Key_Down(DIK_1) || m_pGameInstance->Key_Down(DIK_2) @@ -165,11 +174,16 @@ HRESULT CPlayer::InputSpell() HRESULT CPlayer::InputAim() { - if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON) || - m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) - { - if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON)) {m_bAim = true;} - return S_OK; + if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) && + m_eUIState != ENUM_CLASS(UI_STATE::QUEST) && + m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) && + m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) { + if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON) || + m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) + { + if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON)) { m_bAim = true; } + return S_OK; + } } return E_FAIL; } @@ -190,6 +204,7 @@ void CPlayer::Behavior_IdleEnter() { m_pFSM->Enable_State(FSMSTATE::IDLE); m_bSprintToggle = false; m_bWalkToggle = false; + m_bOnce = false; pairAnimInfo = m_Animation[STATEANIM::IDLE]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); @@ -591,7 +606,6 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) if (m_pGameInstance->Key_Pressing(DIK_D)) xmvInputDir += xmvCamRight; - if (XMVector3Equal(xmvInputDir, XMVectorZero())) return S_OK; @@ -604,7 +618,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) _float vDir = CMyTools::Get_Direction2D(vCurLook, vInputDir); m_fabsDir = fabsf(vDir); - m_fCross = vCurLook.x * vInputDir.y - vCurLook.y * vInputDir.x; + _float Cross = vCurLook.x * vInputDir.y - vCurLook.y * vInputDir.x; _float2 fCamLook = { XMVectorGetX(xmvCamLook), XMVectorGetZ(xmvCamLook) }; @@ -634,7 +648,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) } } else if (absDir < XMConvertToRadians(160.f)) { - if (m_fCross > 0) + if (Cross > 0) { pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; m_fAmount = 1.f; @@ -663,8 +677,6 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) return S_OK; } - - else if (m_pFSM->IsEnable(FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::SPRINT) || !SUCCEEDED(InputMove())) { if (!m_pFSM->IsEnable(FSMSTATE::STOP)) @@ -673,29 +685,15 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) if (m_pFSM->IsEnable(FSMSTATE::WALK) || m_fMoveTime <= 0.13f) { m_bWalkToggle = false; m_pFSM->Disable_State(FSMSTATE::WALK); - if (m_fabsDir < XMConvertToRadians(45.f)) + + _int iRand = m_pGameInstance->Real_Random_Int(0, 1); + if (iRand == 0) { - if (iCurrentAnimIndex == m_Animation[STATEANIM::WALK_STOP_L].first) - { - pairAnimInfo = m_Animation[STATEANIM::WALK_STOP_R]; - } - else { - pairAnimInfo = m_Animation[STATEANIM::WALK_STOP_L]; - } - } - else if (m_fabsDir < XMConvertToRadians(135.f)) - { - if (m_fCross > 0.f) { - pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_L]; - } - else { - pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_R]; - } + pairAnimInfo = m_Animation[STATEANIM::WALK_STOP_R]; } else { - pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_BWD]; + pairAnimInfo = m_Animation[STATEANIM::WALK_STOP_L]; } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } else if (m_pFSM->IsEnable(FSMSTATE::SPRINT)) { @@ -914,7 +912,7 @@ void CPlayer::Behavior_BlinkEnter() m_bVisible = false; Get_PartObject()->Set_Visible(false); Add_Event(m_Animation[STATEANIM::DODGE].first, - [&]() { + [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::BLINK, this); }, 0.1f); @@ -976,7 +974,7 @@ void CPlayer::Behavior_SlideEnter() pairAnimInfo = m_Animation[STATEANIM::SLIDE_START_R]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::SLIDE_LOOP_R]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::SLIDE_LOOP_R]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, 0.95f); } @@ -1199,25 +1197,13 @@ void CPlayer::Behavior_LightAttackEnter() 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); + Calc_CameraPlayerAngle(); - 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) + if (m_fDegree <= 30.f) { pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; } - else if (Degree <= 80.f) + else if (m_fDegree <= 80.f) { pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; Add_Event(pairAnimInfo.first, @@ -1225,9 +1211,9 @@ void CPlayer::Behavior_LightAttackEnter() }, 0.01f); } - else if (Degree <= 135.f) + else if (m_fDegree <= 135.f) { - if (Cross < 0.f) + if (m_fCross < 0.f) { pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK_90_L]; fRatio = 0.15f; @@ -1390,26 +1376,14 @@ void CPlayer::Behavior_SpellEnter() { 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); + Calc_CameraPlayerAngle(); - 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) + if (m_fDegree <= 30.f) { pairAnimInfo = m_Animation[STATEANIM::SPELL]; fRatio = 0.2f; } - else if (Degree <= 60.f) + else if (m_fDegree <= 60.f) { pairAnimInfo = m_Animation[STATEANIM::SPELL]; fRatio = 0.2f; @@ -1418,9 +1392,9 @@ void CPlayer::Behavior_SpellEnter() }, 0.01f); } - else if (Degree <= 120.f) + else if (m_fDegree <= 120.f) { - if (Cross < 0.f) + if (m_fCross < 0.f) { _int iRand = m_pGameInstance->Real_Random_Int(0, 1); switch (iRand) @@ -1453,7 +1427,7 @@ void CPlayer::Behavior_SpellEnter() case 1: pairAnimInfo = m_Animation[STATEANIM::SPELL_90_R]; fRatio = 0.14f; - if (Degree >= 120.f) + if (m_fDegree >= 120.f) { Add_Event(pairAnimInfo.first, [this]() {m_bLookAt = true; @@ -1634,7 +1608,7 @@ void CPlayer::Behavior_AncientSpellEnter() m_pFSM->Enable_State(FSMSTATE::ANCIENT_SPELL); pairAnimInfo = m_Animation[STATEANIM::ANCIENT_LIGHTNING]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - //m_pInfoInstance->Set_SearchLockOnFlag(false); + m_pInfoInstance->Set_SearchLockOnFlag(false); if (m_LockOnInfo.pUnit) m_pTransformCom->LookAt(m_LockOnInfo.pUnit->Get_WorldPostion()); @@ -1677,6 +1651,7 @@ HRESULT CPlayer::Behavior_AncientSpellExitCheck() void CPlayer::Behavior_AncientSpellExit() { m_pFSM->Disable_State(FSMSTATE::ANCIENT_SPELL); + m_pInfoInstance->Set_SearchLockOnFlag(true); Reset_Event(); m_bLookAt = false; } @@ -1690,6 +1665,9 @@ void CPlayer::Behavior_ShieldEnter() pairAnimInfo = m_Animation[STATEANIM::SKILL2]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.3f); + m_bGuarding = true; + m_fParryTimer = 0.f; + Add_Event(pairAnimInfo.first, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); }, 0.1f); @@ -1714,28 +1692,12 @@ HRESULT CPlayer::Behavior_ShieldExitCheck(_float fTimeDelta) } } - if (m_pFSM->IsEnable(FSMSTATE::PARRY)) - { - if (fRatio >= 0.35f) - { - 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_ShieldExit() { m_pFSM->Disable_State(FSMSTATE::SHIELD); - m_pFSM->Disable_State(FSMSTATE::PARRY); Reset_Event(); m_bLookAt = false; } @@ -1747,34 +1709,80 @@ void CPlayer::Behavior_BlockEnter() 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; + Calc_CameraPlayerAngle(); + + if (m_fDegree <= 60.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; + } } + else if (m_fDegree <= 120.f) { + if (m_fCross < 0.f) + { + _int iRand = m_pGameInstance->Real_Random_Int(0, 1); - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, true, false, false); + switch (iRand) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_90_L1]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_90_L2]; + break; + } + } + else if (m_fCross > 0.f) + { + _int iRand = m_pGameInstance->Real_Random_Int(0, 1); + + switch (iRand) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_90_R1]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_90_R2]; + break; + } + } + } + else { + if (m_fCross > 0.f) + { + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_180_L]; + } + else if (m_fCross < 0.f) + { + pairAnimInfo = m_Animation[STATEANIM::SHIELD_BLOCK_180_R]; + } + } + + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, true, false, false); } } @@ -1784,62 +1792,18 @@ HRESULT CPlayer::Behavior_BlockExitCheck(_float fTimeDelta) _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)) + if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction())) { - m_bBlock = false; - m_pFSM->Enable_State(FSMSTATE::PARRY); - if (m_LockOnInfo.pUnit) + if (fRatio >= 0.6f) { - _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); + if (SUCCEEDED(InputAction())) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; } - 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); + if (SUCCEEDED(InputMove())) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; } } else { @@ -1848,7 +1812,7 @@ HRESULT CPlayer::Behavior_BlockExitCheck(_float fTimeDelta) } Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); }, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY_SIDE, Get_PartObject()); }, 0.01f); @@ -1861,10 +1825,7 @@ HRESULT CPlayer::Behavior_BlockExitCheck(_float fTimeDelta) return S_OK; } - - - - if (m_pModelCom->IsFinishedAnim()) { + if (fRatio >= 0.9f) { if (SUCCEEDED(InputMove())) { m_pFSM->Change_State(FSMSTATE::MOVE); @@ -1884,6 +1845,128 @@ void CPlayer::Behavior_BlockExit() m_bShield = false; } +void CPlayer::Behavior_ParryEnter() +{ + pair<_uint, _bool> pairAnimInfo; + _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + _float fEventRatio = 0.2f; + m_bGuarding = 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) + { + _int iRand = m_pGameInstance->Real_Random_Int(0, 2); + switch (iRand) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::PARRY4]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::PARRY5]; + break; + case 2: + pairAnimInfo = m_Animation[STATEANIM::PARRY6]; + break; + } + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false, 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, false, 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, false, false, false); + } + else { + pairAnimInfo = m_Animation[STATEANIM::PARRY3]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f, false, 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, false, false, false); + } + } + else { + pairAnimInfo = m_Animation[STATEANIM::PARRY4]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.3f, false, false, false); + } + + 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_bShield = false; + +} + +HRESULT CPlayer::Behavior_ParryExitCheck(_float fTimeDelta) +{ + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction())) + { + if (fRatio >= 0.6f) + { + if (SUCCEEDED(InputAction())) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + if (SUCCEEDED(InputMove())) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + } + } + + if (fRatio >= 0.9f) { + 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_ParryExit() +{ + m_pFSM->Disable_State(FSMSTATE::PARRY); +} + void CPlayer::Behavior_HitEnter() { m_pBroom->Set_Ride(false); @@ -1897,7 +1980,7 @@ void CPlayer::Behavior_HitEnter() { pairAnimInfo = m_Animation[STATEANIM::HIT_BWD]; m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END); - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,0.5f); return; } break; @@ -1946,12 +2029,14 @@ HRESULT CPlayer::Behavior_HitExitCheck(_float fTimeDelta) if (SUCCEEDED(InputMove())) { - if (fRatio >= 0.6f) { - m_pFSM->Change_State(FSMSTATE::MOVE); - return E_FAIL; + if (iCurrAnimIndex != m_Animation[STATEANIM::HIT_LEVIOSO].first) { + if (fRatio >= 0.6f) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } } } - else if (m_pModelCom->IsFinishedAnim()) { + else if (fRatio >= 0.9f) { m_pFSM->Change_State(FSMSTATE::IDLE); return E_FAIL; } @@ -2294,7 +2379,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta) if (iCurrAnimIndex != pairAnimInfo.first) { - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false, true); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true); } } else { @@ -2303,7 +2388,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta) if (iCurrAnimIndex != pairAnimInfo.first) { - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false, true); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true); } } @@ -2447,7 +2532,7 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta) if (iCurrAnimIndex != pairAnimInfo.first) { - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first,pairAnimInfo.second,1.f, false, 1.f, false,true); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true); } } else { @@ -2456,7 +2541,7 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta) if (iCurrAnimIndex != pairAnimInfo.first) { - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first,pairAnimInfo.second,1.f, false, 1.f, false, true); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true); } } } @@ -2500,16 +2585,6 @@ 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 worldUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); - - //_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_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.6f); } @@ -2551,6 +2626,7 @@ void CPlayer::Behavior_Broom_DismountExit() { m_pFSM->Disable_State(FSMSTATE::BROOM_DISMOUNT); Reset_Event(); + m_bOnce = false; } void CPlayer::Player_InterpTurn(_float fTimeDelta) @@ -2724,14 +2800,16 @@ void CPlayer::ProcessHitBehavior() pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD]; Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD].first, - [&]() {pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_pCharacter_Controller->SetGravity(true); m_eHitType = ENUM_CLASS(HIT_TYPE::END); }, 0.9f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first, - [&]() {pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f); }, 0.5f); } @@ -2739,14 +2817,16 @@ void CPlayer::ProcessHitBehavior() pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_FWD]; Add_Event(m_Animation[STATEANIM::KNOCKDOWN_FWD].first, - [&]() {pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_pCharacter_Controller->SetGravity(true); m_eHitType = ENUM_CLASS(HIT_TYPE::END); }, 0.9f); Add_Event(m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT].first, - [&]() {pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f); }, 0.5f); } @@ -2757,6 +2837,23 @@ void CPlayer::ProcessHitBehavior() } } +void CPlayer::Calc_CameraPlayerAngle() +{ + _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); + m_fDegree = XMConvertToDegrees(fAngleRad); + _vector vCross = XMVector3Cross(vLook, vCameraLook); + m_fCross = XMVectorGetY(vCross); +} + void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) { pair<_uint, _bool> pairAnimInfo; @@ -2854,12 +2951,14 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); Add_Event(pairAnimInfo.first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::REPARO_LOOP]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::REPARO_LOOP]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); }, 0.95f); Add_Event(m_Animation[STATEANIM::REPARO_LOOP].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::REPARO_END]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::REPARO_END]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); }, 0.95f); } @@ -2977,7 +3076,7 @@ void CPlayer::Hit_Levioso(_float fTimeDelta) else { m_pCharacter_Controller->Set_Position(vPos); } - if (m_fAirTime > 2.3f) + if (m_fAirTime > 2.1f) { pairAnimInfo = m_Animation[STATEANIM::LEVIOSO_LAND]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); @@ -3270,6 +3369,17 @@ void CPlayer::Add_FSM() Desc.funcLateUpdate = nullptr; m_States.emplace(FSMSTATE::BLOCK, CState_Block::Create(&Desc)); } + + { + CState_Parry::STATE_PARRY_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_ParryEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_ParryExitCheck(fTimedelta); }; + Desc.funcExitEvent = [this]() { Behavior_ParryExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::PARRY, CState_Parry::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 6250fe075..851ee14c1 100644 --- a/Jusin154_Team3D/Client/Private/Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Protego.cpp @@ -145,7 +145,7 @@ HRESULT CProtego::Ready_Components(void* pArg) return E_FAIL; } - m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); } return S_OK; diff --git a/Jusin154_Team3D/Client/Private/Protego_Hit.cpp b/Jusin154_Team3D/Client/Private/Protego_Hit.cpp index 6edfd4e37..78fb49871 100644 --- a/Jusin154_Team3D/Client/Private/Protego_Hit.cpp +++ b/Jusin154_Team3D/Client/Private/Protego_Hit.cpp @@ -94,6 +94,7 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) CEffectParts* pProtego_HitPT = Get_PartObject("Protego_HitPT"); CEffectParts* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line"); CEffectParts* pProtegoHit = Get_PartObject("ProtegoHit"); + CEffectParts* pScreenFX_Hit = Get_PartObject("ScreenFX_Hit"); 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()); @@ -109,7 +110,7 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) pProtego_HitPT->Set_Visible(true); pProtego_HitPT_Line->Set_Visible(true); pProtegoHit->Set_Visible(true); - + pScreenFX_Hit->Set_Visible(true); diff --git a/Jusin154_Team3D/Client/Private/Quest_Data.cpp b/Jusin154_Team3D/Client/Private/Quest_Data.cpp index 70959070d..eedfdcc01 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Data.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Data.cpp @@ -8,7 +8,7 @@ #include "GameInstance.h" CQuest_Data::CQuest_Data() - : m_pInfoInstance(CInfoInstance::GetInstance()) , + : m_pInfoInstance(CInfoInstance::GetInstance()), m_pGameInstance(CGameInstance::GetInstance()) { } @@ -79,8 +79,8 @@ HRESULT CQuest_Data::Load_QuestInfo(const _char* pFilePath) { REWARDSINFO reward{}; - pReward->QueryIntAttribute("RequiredCount", &reward.iRewardType); - pReward->QueryIntAttribute("CurrentCount", &reward.iRewardID); + pReward->QueryIntAttribute("Type", &reward.iRewardType); + pReward->QueryIntAttribute("Value", &reward.iRewardID); quest.RewardsInfo.push_back(reward); @@ -103,7 +103,7 @@ QUESTINFO CQuest_Data::Get_Quest(_int QuestType, _int QuestID) case 0: return QuestInfos[QuestID]; case 1: - return m_QuestAcceptedInfos[QuestID]; + return m_QuestAcceptedInfos[QuestID].QeustInfo; case 2: return m_QuestEndInfos[QuestID]; default: @@ -122,9 +122,14 @@ const vector& CQuest_Data::Get_ClearQuest() const return m_QuestEndInfos; } -const vector& CQuest_Data::Get_AcceptQuest() const +vector& CQuest_Data::Get_AcceptQuest() { - return m_QuestAcceptedInfos; + m_QuestAcceptedInfo.reserve(m_QuestAcceptedInfos.size()); + + for (const auto& q : m_QuestAcceptedInfos) + m_QuestAcceptedInfo.push_back(q.QeustInfo); + + return m_QuestAcceptedInfo; } _int CQuest_Data::Get_Count(_int Index) @@ -156,8 +161,9 @@ HRESULT CQuest_Data::Set_AcceptQuest(_int Index) return E_FAIL; } m_pInfoInstance->Add_Event(TEXT("MonsterDead"), [this](void* p) {this->Update_AcceptQuest(*reinterpret_cast<_int*>(p)); }); - m_QuestAcceptedInfoObject.push_back(m_pQuestInstance); - m_QuestAcceptedInfos.push_back(QuestInfos[Index]); + m_AcceptedInfo.QeustData = m_pQuestInstance; + m_AcceptedInfo.QeustInfo = QuestInfos[Index]; + m_QuestAcceptedInfos.push_back(m_AcceptedInfo); m_iAcceptQeustCount++; return S_OK; } @@ -176,23 +182,29 @@ void CQuest_Data::Set_ClearQuest(_int Index) void CQuest_Data::Update_AcceptQuest(_int MonsterID) { - vector<_int> toRemoveIndex; - - _int index = 0; - for (auto* instance : m_QuestAcceptedInfoObject) + for (auto it = m_QuestAcceptedInfos.begin(); it != m_QuestAcceptedInfos.end(); ) { - if (static_cast(instance)->Update_Objective(MonsterID)) + auto* quest = static_cast(it->QeustData); + auto& info = it->QeustInfo; + + _bool QuestClear = static_cast(quest)->Update_Objective(MonsterID); + + if (QuestClear == true) { - Set_ClearQuest(static_cast(instance)->Get_QuestID()); - toRemoveIndex.push_back(index); + Set_ClearQuest(quest->Get_QuestID()); + it = m_QuestAcceptedInfos.erase(it); + } + else + { + for (auto& obj : info.ObjectiveInfo) + { + if (obj.iTargetID == MonsterID) + { + obj.iCurrentCount++; + } + } + ++it; } - index++; - } - - for (auto it = toRemoveIndex.rbegin(); it != toRemoveIndex.rend(); ++it) - { - m_QuestAcceptedInfoObject.erase(m_QuestAcceptedInfoObject.begin() + *it); - m_QuestAcceptedInfos.erase(m_QuestAcceptedInfos.begin() + *it); } } diff --git a/Jusin154_Team3D/Client/Private/Quest_Info.cpp b/Jusin154_Team3D/Client/Private/Quest_Info.cpp index 50bee1036..aa76f638c 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Info.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Info.cpp @@ -48,8 +48,9 @@ HRESULT CQuest_Info::Initialize(void* pArg) SizeUpY(m_fOriginPerviewSize); m_fSortZ = 0.02f; m_fFontX = 530.f; - m_fFontY = 500.f; + m_fFontY = 530.f; m_iPerQuestIndex = -1; + m_iCurrentIndex = -1; Visible(false); static_cast(m_pOwner)->Add_Function(TEXT("QuestListHover"), [this](void* p) {this->Set_Hover(p); }); return S_OK; @@ -101,8 +102,17 @@ void CQuest_Info::Update(_float fTimeDelta) if (m_iCurrentIndex != m_iQuest_Index) { - Y(m_fOriginPerviewSize + (m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size() * 50.f)); + Y(m_fOriginPerviewSize + (m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size() * 30.f)); m_iCurrentIndex = m_iQuest_Index; + vector Texts; + Text Textinfo; + m_Text.swap(Texts); + for (_int i = 0; i < m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo.size(); ++i) + { + Textinfo.pCurrentText = to_wstring(m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo[i].iCurrentCount); + Textinfo.pRequiredText = to_wstring(m_pInfoInstance->Get_Quest(m_iCurrentQuest, m_iQuest_Index).ObjectiveInfo[i].iRequiredCount); + m_Text.push_back(Textinfo); + } } m_fTime += fTimeDelta * m_fTimeMult; @@ -138,11 +148,14 @@ HRESULT CQuest_Info::Render() 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)); + 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_fOriginPerviewSize), 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)); + 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_fOriginPerviewSize + 80 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); + m_pGameInstance->Render_Text(TEXT("Font_size20"), m_Text[i].pCurrentText.c_str(), _float2(m_fFontX + m_fX + 800.f, m_fFontY - m_fOriginPerviewSize + 80 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); + m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("/"), _float2(m_fFontX + m_fX + 830.f, m_fFontY - m_fOriginPerviewSize + 80 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); + m_pGameInstance->Render_Text(TEXT("Font_size20"), m_Text[i].pRequiredText.c_str(), _float2(m_fFontX + m_fX + 860.f, m_fFontY - m_fOriginPerviewSize + 80 + (50.f * i)), XMVectorSet(1.f * m_fAlpha, 1.f * m_fAlpha, 1.f * m_fAlpha, m_fAlpha)); } } @@ -247,6 +260,16 @@ void CQuest_Info::Set_Hover(void* pArg) Visible(true); } +void CQuest_Info::Set_QuestType(_int Index) +{ + m_iQuestSlot = Index; + if (m_iCurrentQeustSlot != m_iQuestSlot) + { + m_iCurrentQeustSlot = m_iQuestSlot; + m_iCurrentIndex = -1; + } +} + void CQuest_Info::Y(_float fSizeY) { m_fSizeY = fSizeY; diff --git a/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp b/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp index 890dae0b8..f1ceeb3fa 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Info_Header.cpp @@ -231,6 +231,16 @@ void CQuest_Info_Header::Set_Hover(void* pArg) Visible(true); } +void CQuest_Info_Header::Set_QuestType(_int Index) +{ + m_iQuestSlot = Index; + if (m_iQuestSlot != m_iCurrentQeustSlot) + { + m_iCurrentQeustSlot = m_iQuestSlot; + m_iQuest_Index = -1; + } +} + CQuest_Info_Header* CQuest_Info_Header::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CQuest_Info_Header* pInstance = new CQuest_Info_Header(pDevice, pContext); diff --git a/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp b/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp index c3d12233d..68a3cfdeb 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Info_Line.cpp @@ -216,6 +216,8 @@ void CQuest_Info_Line::Set_Hover(void* pArg) Visible(true); } + + CQuest_Info_Line* CQuest_Info_Line::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CQuest_Info_Line* pInstance = new CQuest_Info_Line(pDevice, pContext); diff --git a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp index e842d8608..31de7eb35 100644 --- a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp @@ -54,11 +54,11 @@ HRESULT CQuest_Panel::Initialize(void* pArg) Visible(true); ElementAllVisible(true); Set_Status(); - //m_pInfoInstance->Set_AcceptQuest(0); + 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)); }); + static_cast(m_pOwner)->Add_Function(TEXT("QuestPanelClose"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); }); return S_OK; } @@ -260,6 +260,8 @@ void CQuest_Panel::Slot_Hover(_int Index) static_cast(m_pQuest_Status3)->Set_Click(m_bClick[2]); static_cast(m_pQuest_Slot)->Set_QuestType(iIndex); + static_cast(m_pQuest_Info)->Set_QuestType(iIndex); + static_cast(m_pQuest_Info_Header)->Set_QuestType(iIndex); } CQuest_Panel* CQuest_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) diff --git a/Jusin154_Team3D/Client/Private/RandomNpc.cpp b/Jusin154_Team3D/Client/Private/RandomNpc.cpp index de1780a51..122af1699 100644 --- a/Jusin154_Team3D/Client/Private/RandomNpc.cpp +++ b/Jusin154_Team3D/Client/Private/RandomNpc.cpp @@ -81,8 +81,6 @@ void CRandomNpc::Update(_float fTimeDelta) m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true); - //m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION)); - _vector vCurrentPos = Get_WorldPostion(); pair pairTarget = m_pInfoInstance->Get_NearestPlayerAlly(vCurrentPos); if (nullptr != pairTarget.first) { diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index f1971b2d3..cd45ac499 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -483,6 +483,8 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) #endif 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; } @@ -1058,7 +1060,9 @@ void CRanrok::Free() m_pRanrok_Props.clear(); #ifdef _DEBUG SAFE_RELEASE(m_pDepthStencilStateNone); -#endif +#endif // _DEBUG + + SAFE_RELEASE(m_pMotionTrailCom); SAFE_RELEASE(m_pCharacter_Controller); SAFE_RELEASE(m_pRigidBody); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp index 9108e575d..b25c6ae1d 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp @@ -89,8 +89,6 @@ void CRanrok_Breath::Update(_float fTimeDelta) _matrix CombinedMat = BoneMat * WorldMat; - - m_pBreath->Get_Component()->Set_WorldMatrix(CombinedMat); m_pBreath_Black->Get_Component()->Set_WorldMatrix(CombinedMat); m_pBreathSlog->Get_Component()->Set_WorldMatrix(CombinedMat); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp index d14e6ffe0..2f1f432f2 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp @@ -138,7 +138,7 @@ HRESULT CRanrok_Prop::Pre_Setting(CGameObject* pObject, void* pArg) _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); + _float randForward = m_pGameInstance->Real_Random_Float(5.f, 7.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 48d3dc591..249314b7c 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp @@ -336,16 +336,16 @@ void CRanrok::Behavior_FireBreathEnter() pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_WINDUP_A]; Add_Event(pairAnimInfo.first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)]; m_bLookAt = false; }, 0.95f); Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first, - [&]() { - pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A]; + [this]() { + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_bLookAt = true; }, 0.95f); @@ -353,8 +353,6 @@ void CRanrok::Behavior_FireBreathEnter() Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first, [this]() { - - CRanrok_Breath::BREATH_INFO BreathDesc; BreathDesc.fTime = 1.f; @@ -363,11 +361,6 @@ void CRanrok::Behavior_FireBreathEnter() m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc); }, 0.1f); - - /*Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first, - [this]() { - m_pModelCom->Play_HeadBone(true); - }, 0.2f);*/ } else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND)) { @@ -401,7 +394,7 @@ HRESULT CRanrok::Behavior_FireBreathExitCheck(_float fTimeDelta) _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); if (m_pModelCom->Get_PlayHeadBone()) { - m_fHeadAimWeight += fTimeDelta *0.3f; + m_fHeadAimWeight += fTimeDelta * 0.3f; if (m_fHeadAimWeight >= 0.7f) { m_fHeadAimWeight = 0.7f; @@ -453,22 +446,20 @@ void CRanrok::Behavior_FireSweepEnter() pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_WINDUP_A]; Add_Event(pairAnimInfo.first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_A]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_A]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)]; m_bLookAt = false; }, 0.95f); Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first, - [&]() { pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_COOLDOWN_A]; + [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_COOLDOWN_A]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, 0.95f); Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first, [this]() { - - CRanrok_Breath::BREATH_INFO BreathDesc; BreathDesc.fTime = 2.5f; @@ -486,26 +477,26 @@ void CRanrok::Behavior_FireSweepEnter() } else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND)) { - pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_G]; + _int iRand = m_pGameInstance->Real_Random_Int(0, 1); + if (iRand == 0) { + pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_G_L]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_G_R]; + } m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)]; - Add_Event(m_Animation[STATEANIM::FIRESWEEP_G].first, + Add_Event(pairAnimInfo.first, [this]() { CRanrok_Breath::BREATH_INFO BreathDesc; - BreathDesc.fTime = 3.f; + BreathDesc.fTime = 1.2f; BreathDesc.iPase = ENUM_CLASS(m_ePhase); m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this, &BreathDesc); m_bLookAt = false; - }, 0.2f); - - - Add_Event(m_Animation[STATEANIM::FIRESWEEP_G].first, - [this]() { - m_pModelCom->Play_HeadBone(true); - }, 0.3f); + }, 0.4f); } m_iBreathRand = (m_pGameInstance->Real_Random_Int(0, 1) == 0) ? -1 : 1; @@ -1061,7 +1052,7 @@ void CRanrok::Behavior_DeadEnter() m_pRightPt->Set_Visible(false); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { _vector vPos = m_pCharacter_Controller->Get_Position(); _float4 vPosFloat4 = {}; @@ -1072,7 +1063,7 @@ void CRanrok::Behavior_DeadEnter() }, 0.f); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("pinky_06_right")) * m_pTransformCom->Get_XMWorldMatrix(); @@ -1084,7 +1075,7 @@ void CRanrok::Behavior_DeadEnter() }, 0.2f); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("elbow_left")) * m_pTransformCom->Get_XMWorldMatrix(); @@ -1097,7 +1088,7 @@ void CRanrok::Behavior_DeadEnter() }, 0.34f); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix(); @@ -1110,7 +1101,7 @@ void CRanrok::Behavior_DeadEnter() }, 0.44f); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix(); @@ -1123,7 +1114,7 @@ void CRanrok::Behavior_DeadEnter() }, 0.6f); Add_Event(pairAnimInfo.first, - [&]() { + [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_IMPACT, this); @@ -1174,10 +1165,10 @@ void CRanrok::Update_BehaviorByHPRatio(ON_COLLISION_INFO* CollisionInfo) m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &CollisionInfo->vWorldPos); Add_Event(pairAnimInfo.first, - [&]() {m_bDisolve = true; }, + [this]() {m_bDisolve = true; }, 0.25f); Add_Event(pairAnimInfo.first, - [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, + [this]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; @@ -1190,10 +1181,10 @@ void CRanrok::Update_BehaviorByHPRatio(ON_COLLISION_INFO* CollisionInfo) m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &CollisionInfo->vWorldPos); Add_Event(pairAnimInfo.first, - [&]() {m_bDisolve = true; }, + [this]() {m_bDisolve = true; }, 0.25f); Add_Event(pairAnimInfo.first, - [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, + [this]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; @@ -1207,10 +1198,10 @@ void CRanrok::Update_BehaviorByHPRatio(ON_COLLISION_INFO* CollisionInfo) m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &CollisionInfo->vWorldPos); Add_Event(pairAnimInfo.first, - [&]() {m_bDisolve = true; }, + [this]() {m_bDisolve = true; }, 0.25f); Add_Event(pairAnimInfo.first, - [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, + [this]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; diff --git a/Jusin154_Team3D/Client/Private/State_Parry.cpp b/Jusin154_Team3D/Client/Private/State_Parry.cpp new file mode 100644 index 000000000..8e30f0278 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_Parry.cpp @@ -0,0 +1,64 @@ +#include "pch.h" +#include "State_Parry.h" +#include "Unit.h" + + +CState_Parry::CState_Parry() + :CState_Root() +{ +} + +void CState_Parry::Enter() +{ + __super::Enter(); +} + +HRESULT CState_Parry::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_Parry::Exit() +{ + __super::Exit(); +} + +HRESULT CState_Parry::Initialize(STATE_PARRY_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_Parry* CState_Parry::Create(STATE_PARRY_DESC* pDesc) +{ + CState_Parry* pInstance = new CState_Parry; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_Parry::Free() +{ + __super::Free(); +} + +void CState_Parry::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp index e8e7656b8..400a2ee64 100644 --- a/Jusin154_Team3D/Client/Private/Stupefy.cpp +++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp @@ -43,11 +43,12 @@ HRESULT CStupefy::Initialize(void* pArg) m_wstrEffectName = L"Stupefy"; - m_pProjectile0 = Get_PartObject("Stupefy_PJ0"); - SAFE_ADDREF(m_pProjectile0); + m_pProjectile = Get_PartObject("Stupefy_PJ"); + SAFE_ADDREF(m_pProjectile); + + m_pProjectile2 = Get_PartObject("Stupefy_PJ2"); + SAFE_ADDREF(m_pProjectile2); - m_pProjectile1 = Get_PartObject("Stupefy_PJ1"); - SAFE_ADDREF(m_pProjectile1); m_pStupefy_PJ_PT = Get_PartObject("Stupefy_PJ_PT"); SAFE_ADDREF(m_pStupefy_PJ_PT); @@ -74,8 +75,8 @@ void CStupefy::Update(_float fTimeDelta) Update_Event(fTimeDelta); m_pStupefy_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - + m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); + m_pProjectile2->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } void CStupefy::Late_Update(_float fTimeDelta) @@ -112,9 +113,6 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) - - CEffectParts* pStupefy_PJ0 = Get_PartObject("Stupefy_PJ0"); - CEffectParts* pStupefy_PJ1 = Get_PartObject("Stupefy_PJ1"); CEffectParts* pWand_Distortion = Get_PartObject("Wand_Distortion"); CEffectParts* pStupefy_Light_Long = Get_PartObject("Stupefy_Light_Long"); @@ -122,13 +120,13 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) CEffectParts* pStupefy_Smoke = Get_PartObject("Stupefy_Smoke"); - pStupefy_PJ0->Set_Visible(true); - pStupefy_PJ1->Set_Visible(true); pWand_Distortion->Set_Visible(true); pStupefy_Light_Long->Set_Visible(true); pBodyFlare->Set_Visible(true); pStupefy_Smoke->Set_Visible(true); - m_pStupefy_PJ_PT->Set_Visible(true); + //m_pStupefy_PJ_PT->Set_Visible(true); + m_pProjectile->Set_Visible(true); + m_pProjectile2->Set_Visible(true); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); @@ -136,10 +134,10 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) _vector vWandPos = pWand->Get_WorldPostion(); - pStupefy_PJ0->Get_Component()->Set_State(STATE::POSITION, vWandPos); - pStupefy_PJ1->Get_Component()->Set_State(STATE::POSITION, vWandPos); m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile2->Get_Component()->Set_State(STATE::POSITION, vWandPos); pStupefy_Light_Long->Get_Component()->Set_State(STATE::POSITION, vWandPos); pBodyFlare->Get_Component()->Set_State(STATE::POSITION, vWandPos); @@ -153,7 +151,7 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) _vector vPlayerFootPos = m_pOwner->Get_Component()->Get_FootPosition(); - pStupefy_Smoke->Get_Component()->Set_State(STATE::POSITION, vPlayerFootPos + XMVectorSet(0.f ,1.f ,0.f ,0.f)); + pStupefy_Smoke->Get_Component()->Set_State(STATE::POSITION, vPlayerFootPos); @@ -179,22 +177,14 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) } - /* PJ 월드 구성하기 */ - - _float fLength = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - vPlayerPos)); - - CTransform* pPJ0_Transform = pStupefy_PJ0->Get_Component(); - CTransform* pPJ1_Transform = pStupefy_PJ1->Get_Component(); - - _vector vUp = XMVector3Normalize(vDirection) * fLength; - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 0.f, 1.f, 0.f) , vUp)); - _vector vLook = XMVector3Normalize(XMVector3Cross(vUp, vRight)); - _vector vPos = vPlayerPos; + _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); + _vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook)); + _vector vPos = pWand->Get_WorldPostion(); _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; - pPJ0_Transform->Set_WorldMatrix(PJ_WorldMat); - pPJ1_Transform->Set_WorldMatrix(PJ_WorldMat); + m_pProjectile2->Get_Component()->Set_WorldMatrix(PJ_WorldMat); return S_OK; } @@ -263,11 +253,8 @@ void CStupefy::OnCollision(CGameObject* pOther, void* pDesc) - m_pProjectile0->Set_Visible(false); - m_pProjectile1->Set_Visible(false); - - /*맞는순간 위로 올리기*/ - m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 500.f, 0.f, 1.f)); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); + m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); } @@ -276,9 +263,10 @@ void CStupefy::Free() { __super::Free(); - SAFE_RELEASE(m_pProjectile0); - SAFE_RELEASE(m_pProjectile1); + SAFE_RELEASE(m_pProjectile); + SAFE_RELEASE(m_pProjectile2); SAFE_RELEASE(m_pStupefy_PJ_PT); + } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/StupefySide.cpp b/Jusin154_Team3D/Client/Private/StupefySide.cpp new file mode 100644 index 000000000..550b84866 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/StupefySide.cpp @@ -0,0 +1,223 @@ +#include "pch.h" +#include "StupefySide.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Player.h" +#include "Wand.h" +#include "TrailObject.h" + + +CStupefySide::CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CStupefySide::CStupefySide(const CStupefySide& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CStupefySide::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/StupefySide"))) + return E_FAIL; + + + return S_OK; + +} + +HRESULT CStupefySide::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"BombardSide"; + + + m_pWandParticle = Get_PartObject("Wand_Particle_B"); + m_pWandLight = Get_PartObject("Wand_Light_B"); + m_pWandTrail = Get_PartObject(); + + SAFE_ADDREF(m_pWandLight); + SAFE_ADDREF(m_pWandTrail); + SAFE_ADDREF(m_pWandParticle); + + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + //m_isTrailEnd = true; + + XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + }); + + m_Events.emplace(1.3f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); + + + return S_OK; +} + +void CStupefySide::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CStupefySide::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + // 파티클생성이 막히면 실행되지 않음 + if (m_isParticleEnd == false) + m_pWandParticle->Get_Component()->Set_WorldMatrix(pWand->Get_WorldMatrix()); + + // 트레일이 종료되면 위치를 고정함 + _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); + +} + +void CStupefySide::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return E_FAIL; + + m_pWandParticle->Set_Visible(true); + m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고 + + m_pWandLight->Set_Visible(true); + + /*트레일 초기화 */ + m_pWandTrail->Set_Visible(true); + m_isTrailEnd = false; + m_pWandTrail->Get_Component()->Reset_Trail(); + + /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + m_pWandTrail->SetDissolve(false); + + return S_OK; +} + +HRESULT CStupefySide::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CStupefySide::Ready_Child() +{ + return S_OK; +} + +CStupefySide* CStupefySide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CStupefySide* pInstance = new CStupefySide(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CStupefySide::Clone(void* pArg, CGameObject* pOwner) +{ + CStupefySide* pInstance = new CStupefySide(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CStupefySide::OnCollision(CGameObject* pOther, void* pDesc) +{ + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CStupefySide::Free() +{ + __super::Free(); + + + Safe_Release(m_pWandLight); + Safe_Release(m_pWandTrail); + Safe_Release(m_pWandParticle); +} +#ifdef _DEBUG + +void CStupefySide::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CStupefySide::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp index ef3398dd8..17c0fe90e 100644 --- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp +++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp @@ -14,8 +14,6 @@ #include "Interaction_Key.h" #include "NPCInteraction.h" #include "Broom_TargetGate.h" -#include "Player.h" -#include "Layer.h" CUI_Manager::CUI_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CUIObject(pDevice, pContext) @@ -64,7 +62,9 @@ HRESULT CUI_Manager::Initialize(void* pArg) 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("UIFadeIn"), [this](void* p) {this->FadeIn(*reinterpret_cast<_float*>(p)); }); m_pInfoInstance->Add_Event(TEXT("RACEREADY"), [this](void* p) {this->Set_Race(*reinterpret_cast<_bool*>(p)); }); + m_pInfoInstance->Add_Event(TEXT("BATTLE"), [this](void* p) {this->Set_Battle(*reinterpret_cast<_bool*>(p)); }); return S_OK; } @@ -84,6 +84,7 @@ void CUI_Manager::Canvas_Change(UI_STATE eType) static_cast(m_pDialogue_Canvas)->Visible(false); static_cast(m_pInteraction_Key)->Set_Visible(true); static_cast(m_pNPCInteraction)->Set_Visible(true); + static_cast(m_pBroom_TargetGate)->Set_Visible(false); break; case UI_STATE::SPELL: @@ -188,9 +189,9 @@ void CUI_Manager::Update(_float fTimeDelta) else if (m_eType == UI_STATE::SPELL) Canvas_Change(UI_STATE::GAMEPLAYER); } - - if (m_bRace == false) + + if (m_bRace == false && m_bCurrentNPCInteract == false) { if (m_eType == UI_STATE::GAMEPLAYER || m_eType == UI_STATE::QUEST) { @@ -313,11 +314,13 @@ void CUI_Manager::Update(_float fTimeDelta) } } - if (m_pGameInstance->Key_Down(DIK_J)) + if (m_bBattle == true) { - Change_Map(); + if (m_fAlpha >= 1.f) + Change_Map(); } + __super::Update(fTimeDelta); } @@ -495,7 +498,7 @@ void CUI_Manager::NpcInteract(_bool bInteract) void CUI_Manager::Set_Fade() { - m_fAlphaVelue = 1.5f; + m_fAlpha = 1.5f; m_bActive = true; m_bHover = true; m_bCgangede = true; @@ -503,30 +506,28 @@ void CUI_Manager::Set_Fade() void CUI_Manager::Change_Map() { - if (FAILED(m_pInfoInstance->Load_DADA_INT())) - return; - - if (FAILED(m_pInfoInstance->Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire"))) - return; - CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_PLAYER); - if (nullptr != pLayer) { - CPlayer* pPlayer = pLayer->Get_Object(); - pPlayer->Get_Component()->Set_Position(XMVectorSet(1003.f, 5.f, 1005.f, 1.f)); - } - - m_pGameInstance->Setting_Volumetirc( - 3.f, - 0.01f, - 0.11f, - 1.0f, - 0.f - ); } void CUI_Manager::Set_Race(_bool bRace) { m_bRace = bRace; + static_cast(m_pBroom_TargetGate)->Set_Visible(bRace); +} + +void CUI_Manager::Set_Battle(_bool bBattle) +{ + m_bBattle = bBattle; + //FadeIn(1.5f); +} + +void CUI_Manager::FadeIn(_float fAlphaVelue) +{ + m_fAlphaVelue = fAlphaVelue; + m_bActive = true; + m_bHover = false; + m_bCgangede = true; + m_bAlphaZero = true; } CUI_Manager* CUI_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) diff --git a/Jusin154_Team3D/Client/Public/BroomRaceManager.h b/Jusin154_Team3D/Client/Public/BroomRaceManager.h index 24c997402..fbb2b7251 100644 --- a/Jusin154_Team3D/Client/Public/BroomRaceManager.h +++ b/Jusin154_Team3D/Client/Public/BroomRaceManager.h @@ -66,6 +66,8 @@ class CBroomRaceManager final : public CGameObject _float m_fDelay = {}; _bool m_bRaceEnd = {}; + _bool m_bReturnPosition = { false }; + _bool m_bCurrentRace = { false }; private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Client/Public/BroomRacerAI.h b/Jusin154_Team3D/Client/Public/BroomRacerAI.h index 7222304c3..5664ad1e7 100644 --- a/Jusin154_Team3D/Client/Public/BroomRacerAI.h +++ b/Jusin154_Team3D/Client/Public/BroomRacerAI.h @@ -47,6 +47,7 @@ class CBroomRacerAI final : public CUnit virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override; void Set_RaceRing(class CRaceRing* pRaceRing) {m_pRaceRing = pRaceRing;} class CBroom* Get_Broom() { return m_pBroom; } + void Set_RaceInfo(); private: CLight* m_pLightCom = { nullptr }; LIGHT_DESC LightDesc = {}; diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index c366f9f10..3536cc84a 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -43,7 +43,7 @@ namespace Client enum class QUESTTYPE { MAIN, SUB, END }; enum class QUESTSTATE { NONE, ACCEPTED, CLEARED, END }; - enum class NPCTEXTTYPE { NEXTTEXT, CHOICE, SHOPTEXT, QUESTTEXT, SPELLLEAN, BROOM, END }; + enum class NPCTEXTTYPE { NEXTTEXT, CHOICE, SHOPTEXT, QUESTTEXT, SPELLLEAN, BROOM, BATTLE, END }; enum class EFFECT_TYPE { EFFECT, TRAIL, END }; @@ -72,7 +72,7 @@ namespace Client PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT, /*사이드*/ - JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, + JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, STUPEFY_SIDE, /*트롤*/ TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO, diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h index b9d5838d9..358d0821e 100644 --- a/Jusin154_Team3D/Client/Public/Client_Macro.h +++ b/Jusin154_Team3D/Client/Public/Client_Macro.h @@ -69,6 +69,8 @@ namespace Client { #define LAYER_RING TEXT("Layer_Ring") #define LAYER_RACERAI TEXT("Layer_RacerAI") #define LAYER_DADA_INT TEXT("Layer_DADA_INT") +#define LAYER_DUELIST TEXT("Layer_Duelist") +#define LAYER_NPC TEXT("Layer_Npc") #define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager") diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h index 5e28ae2b9..6e63673dd 100644 --- a/Jusin154_Team3D/Client/Public/Client_Struct.h +++ b/Jusin154_Team3D/Client/Public/Client_Struct.h @@ -279,19 +279,25 @@ typedef struct tagEffectInfo _bool isNonSoftEffect = {}; _float2 vDissolveSmoothRange = { 0.1f , 0.1f }; - _float2 vPadding0 = {}; + + _float fPadding1 = {}; + + _bool isScreenFX = {}; + _bool isPadding0 = {}; + _bool isPadding1 = {}; + _bool isPadding2 = {}; _bool isRimLight = {}; _bool isMask_G = {}; _bool isMask_B = {}; _bool isDissolve_B = {}; - _float4 vPadding1 = {}; - _float4 vPadding2 = {}; - _float4 vPadding3 = {}; - _float4 vPadding4 = {}; - _float4 vPadding5 = {}; - _float4 vPadding6 = {}; + _float4 vPadding1 = {}; + _float4 vPadding2 = {}; + _float4 vPadding3 = {}; + _float4 vPadding4 = {}; + _float4 vPadding5 = {}; + _float4 vPadding6 = {}; }EFFECT_INFO; typedef struct tagTrailInfo diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Font.h b/Jusin154_Team3D/Client/Public/Dialogue_Font.h index 18d0a0da3..09f691c71 100644 --- a/Jusin154_Team3D/Client/Public/Dialogue_Font.h +++ b/Jusin154_Team3D/Client/Public/Dialogue_Font.h @@ -86,6 +86,9 @@ class CDialogue_Font final : public CGameObject _bool m_bChoiceText = { false }; _bool m_bCurrentChoiceText = { false }; _bool m_bRace = { false }; + _bool m_bBattle = { false }; + + _float m_fTime{}; public: static CDialogue_Font* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Panel.h b/Jusin154_Team3D/Client/Public/Dialogue_Panel.h index 1c6066029..3771b4001 100644 --- a/Jusin154_Team3D/Client/Public/Dialogue_Panel.h +++ b/Jusin154_Team3D/Client/Public/Dialogue_Panel.h @@ -39,7 +39,7 @@ class CDialogue_Panel final : public CPanelObject void Choice_Slot(CHOICEINFO Choice); void ReSet_Choice(); - + void Change_Map(); private: CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; CTexture* m_pDiffuse_TextureCom = { nullptr }; @@ -55,6 +55,7 @@ class CDialogue_Panel final : public CPanelObject _int m_iChoiceCount{}; _bool m_bBroomRace = { false }; + _bool m_bBttle = { false }; public: static CDialogue_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Duelist_Levioso.h b/Jusin154_Team3D/Client/Public/Duelist_Levioso.h index 8b28a3824..01e917975 100644 --- a/Jusin154_Team3D/Client/Public/Duelist_Levioso.h +++ b/Jusin154_Team3D/Client/Public/Duelist_Levioso.h @@ -34,26 +34,14 @@ class CDuelist_Levioso final : public CEffect_Container private: class CInfoInstance* m_pInfoInstance = { nullptr }; private: - _wstring m_wstrEffectName = {}; - class CPlayer* m_pPlayer = {}; + _wstring m_wstrEffectName = {}; + class CPlayer* m_pPlayer = {}; - class CEffectParts* m_pLeviosoPJ_0 = { nullptr }; - class CEffectParts* m_pLeviosoPJ_1 = { nullptr }; - class CEffectParts* m_pTrail_PT_0 = { nullptr }; - - class CEffectParts* m_pLevioso_Rotate0 = { nullptr }; - class CEffectParts* m_pLevioso_Rotate1 = { nullptr }; - - class CTransform* m_pEnemyTransform = { nullptr }; - - _vector m_vOwnerLook = {}; - _float m_fAccRotateTime = {}; - _float m_fTurnSpeed = {}; - _float m_fRange = {}; + class CEffectParts* m_pLeviosoPJ = { nullptr }; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.25f; + _float m_fLinearSpeed = 0.75f; _float3 m_vCameraLook = {}; public: static CDuelist_Levioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/EffectObject.h b/Jusin154_Team3D/Client/Public/EffectObject.h index b4032a504..effac5751 100644 --- a/Jusin154_Team3D/Client/Public/EffectObject.h +++ b/Jusin154_Team3D/Client/Public/EffectObject.h @@ -57,7 +57,10 @@ class CEffectObject abstract : public CPartObject CInstance_Model* m_pInstance_ModelCom = { nullptr }; const _float4x4* m_pParentMatrix = { nullptr }; - _float4x4 m_FinalParentMatrix; + + _float4x4 m_ScreenViewMatrix = {}; + _float4x4 m_OrthographicMatrix = {}; + _float4x4 m_FinalParentMatrix; protected: EFFECT_INFO m_EffectInfo = {}; diff --git a/Jusin154_Team3D/Client/Public/Human_Duelist.h b/Jusin154_Team3D/Client/Public/Human_Duelist.h index 3d1264441..2bad4aa77 100644 --- a/Jusin154_Team3D/Client/Public/Human_Duelist.h +++ b/Jusin154_Team3D/Client/Public/Human_Duelist.h @@ -32,6 +32,8 @@ class CHuman_Duelist final : public CMonster virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; virtual HRESULT Render_Shadow(SHADOW eType) override; + HRESULT Render_OutLine(); + virtual _vector Get_LockOnPos() override; virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override; virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override; void Set_SpellHit(_bool bHit) { m_bSpellHit = bHit; } @@ -71,6 +73,9 @@ class CHuman_Duelist final : public CMonster _bool m_bSpellHit = {}; _bool m_bShield = { false }; _float m_fAirTime = {}; + _float m_fBlendTime = { }; + _float m_fHitTimer = {}; + _bool m_bHitJap = {}; _float m_fSkillCoolTime[ENUM_CLASS(SKILL::END)] = {}; diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h index f27e09c42..ccb5cbbad 100644 --- a/Jusin154_Team3D/Client/Public/InfoInstance.h +++ b/Jusin154_Team3D/Client/Public/InfoInstance.h @@ -26,6 +26,7 @@ DECLARE_SINGLETON(CInfoInstance) HRESULT Late_Initialize(); // GamePlay Initialize 할 때 void Release_Information(); LEVEL Get_RestartLevel(); + _bool Get_SearchLockonFloag() { return m_bSearchLockOnTarget; } public: void Update(_float fTimeDelta); void Change_Level(); diff --git a/Jusin154_Team3D/Client/Public/Item_Potion.h b/Jusin154_Team3D/Client/Public/Item_Potion.h index 983d862fd..1f4333ee3 100644 --- a/Jusin154_Team3D/Client/Public/Item_Potion.h +++ b/Jusin154_Team3D/Client/Public/Item_Potion.h @@ -24,6 +24,8 @@ class CItem_Potion final : public CPartObject virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; + void Check_GroundCollision(); + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; void Set_Attach(_bool Attach); public: @@ -31,11 +33,18 @@ class CItem_Potion final : public CPartObject const _float4x4* m_pSocketMatrices = { }; CShader* m_pShaderCom = { nullptr }; CModel* m_pModelCom = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + + _float4 m_vStartPos = {}; + PSX::PxSweepBufferN<12> m_SweepBuffer = {}; + + class CEffectPool* m_pEffectPool = nullptr; _float4x4 m_pWandTipMatrix = {}; _float3 m_Offset = {}; _bool m_bAttach = { true }; - _float m_fTimer = {}; + _float m_fTimer = {}; + _bool m_bHit = {}; private: HRESULT Ready_Components(); diff --git a/Jusin154_Team3D/Client/Public/Level_GamePlay.h b/Jusin154_Team3D/Client/Public/Level_GamePlay.h index a9df049af..89188103b 100644 --- a/Jusin154_Team3D/Client/Public/Level_GamePlay.h +++ b/Jusin154_Team3D/Client/Public/Level_GamePlay.h @@ -40,12 +40,15 @@ class CLevel_GamePlay final : public CLevel HRESULT Ready_Layer_Camera(); HRESULT Ready_Layer_Sound(); HRESULT Ready_Layer_Player(const _wstring& strLayerTag); + HRESULT Ready_Layer_RacerAI(const _wstring& strLayerTag); HRESULT Ready_Layer_Item(const _wstring& strLayerTag); HRESULT Ready_Layer_ReparoObject(const _wstring& strLayerTag); HRESULT Ready_Layer_SkyBox(const _wstring& strLayerTag); HRESULT Ready_Layer_Monster(); HRESULT Ready_Layer_Manager(const _wstring& strLayerTag); HRESULT Reday_Layer_EffectPool(); + HRESULT Ready_Layer_Duelist(); + HRESULT Ready_Layer_Npc(); HRESULT Bind_InstanceProp(map<_string, class CLand*>* Lands, class CInstancedProp* pInstnace, const _char* LandTag); public: diff --git a/Jusin154_Team3D/Client/Public/Levioso.h b/Jusin154_Team3D/Client/Public/Levioso.h index 0e0bf441d..e0fdd493b 100644 --- a/Jusin154_Team3D/Client/Public/Levioso.h +++ b/Jusin154_Team3D/Client/Public/Levioso.h @@ -37,23 +37,11 @@ class CLevioso final : public CEffect_Container _wstring m_wstrEffectName = {}; class CPlayer* m_pPlayer = {}; - class CEffectParts* m_pLeviosoPJ_0 = { nullptr }; - class CEffectParts* m_pLeviosoPJ_1 = { nullptr }; - class CEffectParts* m_pTrail_PT_0 = { nullptr }; - - class CEffectParts* m_pLevioso_Rotate0 = { nullptr }; - class CEffectParts* m_pLevioso_Rotate1 = { nullptr }; - - class CTransform* m_pEnemyTransform = { nullptr }; - - _vector m_vOwnerLook = {}; - _float m_fAccRotateTime = {}; - _float m_fTurnSpeed = {}; - _float m_fRange = {}; + class CEffectParts* m_pLeviosoPJ = { nullptr }; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.25f; + _float m_fLinearSpeed = 0.75f; _float3 m_vCameraLook = {}; public: static CLevioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Monster.h b/Jusin154_Team3D/Client/Public/Monster.h index 1c9329b47..010758561 100644 --- a/Jusin154_Team3D/Client/Public/Monster.h +++ b/Jusin154_Team3D/Client/Public/Monster.h @@ -12,7 +12,7 @@ class CMonster abstract : public CUnit { GROUND, AIR_LEVIOSO, - AIR_KNOCKBACK, + STUN, END }; diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 5d71d5a67..fb2b8d43b 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -36,12 +36,14 @@ class CPlayer final : public CUnit void Set_RaceRing(class CRaceRing* pRaceRing); class CBroom* Get_Broom() { return m_pBroom; } void Set_RaceInfo(); + _bool IsParryWindow(); _bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; } _matrix Get_WandPos(); void Set_OpenDoor(_bool bOpen) { m_bOpenDoor = bOpen; } void UpdateGrapInteractive(_float fTimeDelta); void Update_CameraShake(_float fTimeDelta); HRESULT Update_RaycastElements(); + void Set_Battle(_bool bBattle) { m_bDuel_ZOnlyMove = bBattle; } #ifdef _DEBUG void Render_CameraCoordinateSystem(); #endif // _DEBUG @@ -169,6 +171,12 @@ class CPlayer final : public CUnit _float m_fAirTime = {}; _bool m_bCanParry = {}; _bool m_bBlock = {}; + _bool m_bDuel_ZOnlyMove = {}; + _float m_fDegree = {}; + _bool m_bGuarding = {}; + _float m_fParryTimer = {}; + + /* 무적 불 변수*/ #ifdef _DEBUG _bool m_isDebugMode = { false }; @@ -241,6 +249,10 @@ class CPlayer final : public CUnit HRESULT Behavior_BlockExitCheck(_float fTimeDelta); void Behavior_BlockExit(); + void Behavior_ParryEnter(); + HRESULT Behavior_ParryExitCheck(_float fTimeDelta); + void Behavior_ParryExit(); + void Behavior_HitEnter(); HRESULT Behavior_HitExitCheck(_float fTimeDelta); void Behavior_HitExit(); @@ -273,6 +285,8 @@ class CPlayer final : public CUnit void Throwing_Interactive(); void Attach_Broom(); void ProcessHitBehavior(); + void Calc_CameraPlayerAngle(); + #pragma endregion #pragma region HITBEHAVIOR diff --git a/Jusin154_Team3D/Client/Public/Quest_Data.h b/Jusin154_Team3D/Client/Public/Quest_Data.h index eb283bcbd..c33d834fe 100644 --- a/Jusin154_Team3D/Client/Public/Quest_Data.h +++ b/Jusin154_Team3D/Client/Public/Quest_Data.h @@ -12,6 +12,12 @@ NS_BEGIN(Client) class CQuest_Data final : public CBase { +private: + struct QuestAccepted + { + CGameObject* QeustData; + QUESTINFO QeustInfo; + }; private: CQuest_Data(); ~CQuest_Data() = default; @@ -29,9 +35,9 @@ class CQuest_Data final : public CBase _int Get_Count(_int Index); const vector& Get_AllQuest() const; const vector& Get_ClearQuest() const; - const vector& Get_AcceptQuest() const; + vector& Get_AcceptQuest(); HRESULT Set_AcceptQuest(_int index); - + private: CInfoInstance* m_pInfoInstance = { nullptr }; CGameObject* m_pQuestInstance = { nullptr }; @@ -41,10 +47,12 @@ class CQuest_Data final : public CBase OBJECTIVEINFO ObjectiveInfo = {}; REWARDSINFO RewardsInfo = {}; + QuestAccepted m_AcceptedInfo{}; + vector QuestInfos; vector m_QuestNoneInfos; - vector m_QuestAcceptedInfoObject; - vector m_QuestAcceptedInfos; + vector m_QuestAcceptedInfos; + vector m_QuestAcceptedInfo; vector m_QuestEndInfos; _int m_iQuest_Count{}; diff --git a/Jusin154_Team3D/Client/Public/Quest_Info.h b/Jusin154_Team3D/Client/Public/Quest_Info.h index b8fbc8db1..c51405fdf 100644 --- a/Jusin154_Team3D/Client/Public/Quest_Info.h +++ b/Jusin154_Team3D/Client/Public/Quest_Info.h @@ -13,6 +13,12 @@ NS_BEGIN(Client) class CQuest_Info final : public CElementObject { +private: + struct Text + { + _wstring pCurrentText; + _wstring pRequiredText; + }; private: CQuest_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CQuest_Info(const CQuest_Info& rhs); @@ -33,6 +39,7 @@ class CQuest_Info final : public CElementObject public: void Set_Hover(void* pArg); + void Set_QuestType(_int Index); private: void Y(_float fSizeY); @@ -44,17 +51,23 @@ class CQuest_Info final : public CElementObject CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; CInfoInstance* m_pInfoInstance = { nullptr }; - _wstring m_pQuest_Info; + _wstring m_pQuest_Info; - _float m_fOriginPerviewSize{}; - _float m_fPreviewOffSet{}; - _float4 m_vHeaderBack{}; + _float m_fOriginPerviewSize{}; + _float m_fPreviewOffSet{}; + _float4 m_vHeaderBack{}; - _int m_iQuest_Index{}; - _int m_iCurrentQuest{}; + _int m_iQuest_Index{}; + _int m_iCurrentQuest{}; + + _int m_iPerQuestIndex{}; + _int m_iCurrentIndex{}; + + vector m_Text{}; + + _int m_iQuestSlot{}; + _int m_iCurrentQeustSlot{}; - _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_Info_Header.h b/Jusin154_Team3D/Client/Public/Quest_Info_Header.h index c40271cf7..4c4541e2d 100644 --- a/Jusin154_Team3D/Client/Public/Quest_Info_Header.h +++ b/Jusin154_Team3D/Client/Public/Quest_Info_Header.h @@ -33,6 +33,7 @@ class CQuest_Info_Header final : public CElementObject public: void Set_Hover(void* pArg); + void Set_QuestType(_int Index); private: CTexture* m_pDiffuse_TextureCom = { nullptr }; @@ -43,6 +44,10 @@ class CQuest_Info_Header final : public CElementObject _int m_iColor = true; _int m_iQuest_Index{}; _int m_iCurrentQuest{}; + + _int m_iQuestSlot{}; + _int m_iCurrentQeustSlot{}; + public: static CQuest_Info_Header* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Client/Public/Quest_Info_Line.h b/Jusin154_Team3D/Client/Public/Quest_Info_Line.h index 4eb33ea1b..23a7e7362 100644 --- a/Jusin154_Team3D/Client/Public/Quest_Info_Line.h +++ b/Jusin154_Team3D/Client/Public/Quest_Info_Line.h @@ -42,6 +42,7 @@ class CQuest_Info_Line final : public CElementObject _int m_iColor = { false }; _int m_iQuest_Index{}; _int m_iCurrentQuest{}; + public: static CQuest_Info_Line* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Client/Public/State_Parry.h b/Jusin154_Team3D/Client/Public/State_Parry.h new file mode 100644 index 000000000..d6bdf4fd6 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_Parry.h @@ -0,0 +1,36 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_Parry final : public CState_Root +{ +public: + typedef struct tagParry : public CState_Root::STATE_ROOT_DESC { + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_PARRY_DESC; +private: + CState_Parry(); + virtual ~CState_Parry() = 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_PARRY_DESC* pDesc); + +public: + static CState_Parry* Create(STATE_PARRY_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Stupefy.h b/Jusin154_Team3D/Client/Public/Stupefy.h index e2b3fd52c..5b1313303 100644 --- a/Jusin154_Team3D/Client/Public/Stupefy.h +++ b/Jusin154_Team3D/Client/Public/Stupefy.h @@ -35,13 +35,12 @@ class CStupefy final : public CEffect_Container class CInfoInstance* m_pInfoInstance = { nullptr }; private: _wstring m_wstrEffectName = {}; - class CEffectParts* m_pProjectile0 = {}; - class CEffectParts* m_pProjectile1 = {}; + class CEffectParts* m_pProjectile = {}; class CEffectParts* m_pStupefy_PJ_PT = {}; - + class CEffectParts* m_pProjectile2 = {}; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.7f; + _float m_fLinearSpeed = 1.f; _float3 m_vCameraLook = {}; public: static CStupefy* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/StupefySide.h b/Jusin154_Team3D/Client/Public/StupefySide.h new file mode 100644 index 000000000..e98a245ec --- /dev/null +++ b/Jusin154_Team3D/Client/Public/StupefySide.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CStupefySide final : public CEffect_Container +{ +private: + CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CStupefySide(const CStupefySide& rhs); + virtual ~CStupefySide() = 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 = {}; + + _bool m_isParticleEnd = {}; + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + + class CEffectParts* m_pWandLight = { nullptr }; + class CTrailObject* m_pWandTrail = { nullptr }; + class CEffectParts* m_pWandParticle = { nullptr }; + +public: + static CStupefySide* 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/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h index f02870f2e..3f896b725 100644 --- a/Jusin154_Team3D/Client/Public/UI_Manager.h +++ b/Jusin154_Team3D/Client/Public/UI_Manager.h @@ -51,6 +51,8 @@ class CUI_Manager final : public CUIObject void Set_Fade(); void Change_Map(); void Set_Race(_bool bRace); + void Set_Battle(_bool bBattle); + void FadeIn(_float fAlphaVelue); private: CInfoInstance* m_pInfoInstance = { nullptr }; CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; @@ -91,7 +93,7 @@ class CUI_Manager final : public CUIObject _bool m_bAlphaZero = { false }; _bool m_bRace = { false }; - + _bool m_bBattle = { 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/Human_Duelist.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml index 76ecd9138..65c3a254b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml @@ -25,6 +25,7 @@ + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml index 8c5eb8b85..109c05c93 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml @@ -64,6 +64,15 @@ + + + + + + + + + @@ -108,6 +117,8 @@ + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Ranrok.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Ranrok.xml index 1277384b9..4012e1b07 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Ranrok.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Ranrok.xml @@ -39,6 +39,9 @@ + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml index 1067f2d9e..c8096c2ad 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml @@ -64,8 +64,11 @@ - - + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin index cc4462588..1e1ffa5cf 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87dc61563f7386bdd600d7da84ab8f4b358e05ddafaffa62db29236333378755 +oid sha256:2ef6ed200f4e9ab5ee03e05cb96692f5a854c222b75116f9a044e4a49afb7e06 size 1165 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_Wind.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_Wind.bin deleted file mode 100644 index 20e29962f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Bottom_Wind.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2aad5dff0889db1d7985349f737a7c96722b79f155576a9ab5c072cf1493158b -size 1204 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit.bin deleted file mode 100644 index a62774e61..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:095e59e449f59358f23ca6bdacb586ee2a540885011318b374633cc3cc3f606a -size 1251 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit0.bin new file mode 100644 index 000000000..b15d91405 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Hit0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a05561f06e3503b1f0cc9f4a1b64bf42de75c383ed1865b073303dc616b6ad35 +size 1253 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ.bin new file mode 100644 index 000000000..1a673fe5b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:829af44b129883d9ad6988a32b0a4b32d2dd6a47f5724bbcb1a6351e96dcfc1b +size 1250 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin deleted file mode 100644 index b9248ccd2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_PJ0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0bdf0bfea70a3d7fe55ac923f99742c48fe5478b5e87e68243a22c95d6235ab7 -size 1165 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin index 0eaa8dc74..d2369a17f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:43c4e97125ff00a6b01ec5dca8fd388d016873526865f7d9ae84fa6c1f9f83c6 -size 1158 +oid sha256:cd88edc0d87bd99f12d7750d45df7bfe07a15688378148d2c8c7db6ec326d96b +size 1205 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin index f7dd40d6d..549ff0172 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Rotate1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e03dc212166ae87ff83375abfd1901fa8656de70a3a2fb3aa1c7873ea84f5eaa -size 1158 +oid sha256:33f44b325c6d9dad348fe07a6c9ee332140e90567e8ad4ced6fdac278a040c45 +size 1205 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin new file mode 100644 index 000000000..cf7e4756c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Spline.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15191901df0a291039dc63271d4c0d3526e3a39db8f33608a835f1725b47c3d0 +size 1211 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin index 124d7d888..1dcb3d954 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Tornado.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0a7aba137c53306c7451b760eb809e8bc6fe0c8379c766976465b677232a6024 -size 1220 +oid sha256:6d30a41bf07e1367520482cf73b0ffeaf325acdd0e6a71f851c98616a9df892b +size 1219 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail index f83c08f63..f314332fa 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Trail.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin deleted file mode 100644 index 09ee5477a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b5486e56e36e161b996225ede86832abf1db6e3e1239021e0e33c1d7aab22fcf -size 1197 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin deleted file mode 100644 index 5eae80ac7..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d86b77b6ac7dda9b3dc2028af8b11b705dd76271879ed35f25dda7602aa958c2 -size 1334 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Spread_Circle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Spread_Circle.bin new file mode 100644 index 000000000..0e8cfb3e1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Spread_Circle.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4397ec9a2372621b95584fb5c639e4c1373385077d66d3844e733cbc492553a +size 1244 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin deleted file mode 100644 index 25b037b0f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Trail_PT0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3d22785083a70649bc4da5760e998517b9530fe3e45149aa9a949216738862c1 -size 1179 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin new file mode 100644 index 000000000..810d67d4f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Light_P.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b258f9b40f22c59db9e936497e79f846c9f8b2a338d59a443589edee594f6ef +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Smoke.bin new file mode 100644 index 000000000..b44562941 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Wand_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e6a6b8e0a807c1dc028102c4cc240df07b973c9f29a2e80c639fa2ea234717b +size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Trail_P.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Trail_P.trail index 7a7aaf91a..85574a148 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Trail_P.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Trail_P.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin index 39c7f067c..61bfacecf 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LeviosoSide/Wand_Light_P.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c91832482aec9e9008a23900a48ed91867c91f964406108325e5eb606ddc2cf3 -size 1200 +oid sha256:ca923ddbb840314fbab63149019fa8078a5d53b2b9c3ef926a3345ebff72bcc3 +size 1145 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin index c59807f34..563cf2020 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b599b9606464cc8a8a0d753b09a8626823c97bab27709007a6bf4782861ec13d +oid sha256:9e5cc31e2aab8ed53c1da2bae9a267e2ede7ec59e2837e0b845e1ab136e23a29 size 1229 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin index 838d1e157..d04d6215f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4895e8e3d74d359a3f24354c809953d67032f5fdc68ac865e2815a2bbe45e74b +oid sha256:c910f305f1540af566b0306b497d6447a098f3123728f695656b32710c276738 size 1229 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin index 64a94d8e7..19b881d54 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a23d45392df0be03277cf46c58d3c0a0b9945f0fed8a48b90e73869fde5375e8 +oid sha256:6430c4b06a14b73b1115f234c7e13c54b3c27760ab31f7f945ce32c93a9e82a9 size 1231 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin index 0313ac077..2a7f0e923 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6f5b24c71bd7515777821be62cbcfb0e602e795cf5cac7ea117a8f81edae71a8 +oid sha256:09584e7e4ea78c06785371fd359f09d5b256ce6a9419d9a6d81a46992594e44d size 1231 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin index bdd39a614..3f3845faa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3d83b19cdaa30e7a5e8d3e564939973d1d0a5b8947caacd2dcc6b9ffab7c2048 +oid sha256:d3802b7e833701e65a5e93b6bb80bc0158926b15bc233ca3fb6cbb9d68feedfa size 1214 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red1.bin new file mode 100644 index 000000000..957a93373 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70e327c3b8af9cdd5a8a809c3fc68e8465105a5a6d012724a0a09b366f52d707 +size 1294 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin index 24957383b..f66063e5d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e7392a101f23639921ab9f6c35f1dfdd767d491f94df486b9f07af294447e880 -size 712 +oid sha256:c3f23491a4cf021055b8a80968779ddf3fd29e074a6202413031ca4de0b0015c +size 702 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin index 02021ee18..da222fe2b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/ProtegoHit.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e9d05e13a9fff7a12d10a9c4237cca60f82d7ecc50167aa7b3ac1851e1429b46 -size 333 +oid sha256:2329ed39038a9b733a32c8a6bd004b1d774b3bd8e85b0fef9d09d6d892931391 +size 398 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin index 58a1dac3c..bc9c3873b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dd7aa69103b5f95090b66b0d3327b62f6a57155b24c8a6ab3fd38a613955933c -size 631 +oid sha256:aea4f8f9c4b314cdf077e969b416eddc5b792ea0b3e5cbeb4dafb5b45989afda +size 630 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin new file mode 100644 index 000000000..c5ffa3902 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/StupefySide.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb0d150bb6e87ae13f391e22f1e29a1757113db0ae89ea77cd55e5a60b80ea31 +size 202 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin new file mode 100644 index 000000000..f829c835c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ProtegoHit/ScreenFX_Hit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8c9bcf30d20800a50aec55d63608b8e78b920a28cb4d748c88d85d6c33b8d9c +size 1169 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin index 867903a1c..7edd74e3d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a53855eb8aca50722e420c0036a2e83bababc5e73e9c86c5062265c78a232b2f -size 1247 +oid sha256:58a884e377b191ef0d355a15006c1d8b2117b7c1cdfe18ebde58e44850793bdc +size 1249 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin index 42d73f8f6..cd2584bb0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8a9c812466b7c10bbf7b4fba98d34eb918ecba87e5390f176d261ee0494f9294 +oid sha256:23b18c353afee35d4db439e8078af06c09812786e5ce6b782a43ebceb25c9a3e size 1175 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin new file mode 100644 index 000000000..b66edb0ea --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:264978b7dcde1ac9015818f70f0e500fc72df11a5837a6ee51b01b5df447d601 +size 1239 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin deleted file mode 100644 index e9a34808f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6ee4b8b35fa425653e6e70f228d9bdffb3988ff9f4d1edac1176d5a9bae821e -size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin deleted file mode 100644 index 39d8afaf6..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e1f2980c52690ed8519c6cbfdf399f6d00b9fa1ec45a68621a9f55ecc653107e -size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ2.bin new file mode 100644 index 000000000..63ce95576 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3abd55a1ceae62c6c9afe8063d9ced6796be2c250a5d1e4a566f5e153c857989 +size 1185 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin index aba1f8d09..5cd7f2af2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b4991be0d9220894a36fcada332cc7a34b24d927f772b025c26c3102fd8d9d32 +oid sha256:f1d764f094e11048ce8bfe3cb26eda1f44fb52e9e5c8ee44acbd3b4b1fed244b size 1177 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin index 8802f26a9..663a8339e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0a6eab9501cc6388353ca7157bcf14d74f946a410376d11bd58b9efda9079d7d -size 1196 +oid sha256:2e193683c2e5717020523aab587f765f7ca93678aac0e57cab703d3fa227f40c +size 1191 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Trail_B.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Trail_B.trail new file mode 100644 index 000000000..b920a9502 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Trail_B.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Light_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Light_B.bin new file mode 100644 index 000000000..607ccc710 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Light_B.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ab86dbc400f33329663c7e2109727bf1f2c8e4753526d2613b48fd7c56e8165 +size 1153 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Particle_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Particle_B.bin new file mode 100644 index 000000000..194c12dad --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/StupefySide/Wand_Particle_B.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34ba39522d3a69e3687333d492b23305e33c8e397207ce56e7b9064c061e7b7c +size 1225 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml index 962f6a07f..987e7291a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Quest/QuestData.xml @@ -3,8 +3,8 @@ - - + + @@ -26,7 +26,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.bin new file mode 100644 index 000000000..ed980f51e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd2794ae2af894c0c15cb4e1efbf1e524ec90766abead97541e7c2a0a1ce742a +size 8541 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.fbx new file mode 100644 index 000000000..30b47c737 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_002.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9de500a68c8f09d40c69a82cdf05db3f48eb871029de152317502b4646e5ff7 +size 18412 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.bin new file mode 100644 index 000000000..049b7ba12 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1935ed996b1be776da79656830bc55f7e11582335b9c7749f63b6305db30e00 +size 13069 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.fbx new file mode 100644 index 000000000..a5c6ff70f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_c_screwup_003.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21b3ee737b9760cca123f50da204b6d746748ec0212cd13f8dd2b696cf0eec81 +size 19852 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.bin new file mode 100644 index 000000000..456a2a235 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9289f21697104ad19f1dc3195922483469183db2546c63b6555fe679cfa7d7f4 +size 13619 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.fbx new file mode 100644 index 000000000..b5ececed3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_d_screw_004.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce99e738936b5dbccf33e455df8a920f653a8c94f14b6776038ae75d8b8e6a84 +size 21388 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.bin new file mode 100644 index 000000000..353a4164c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7e85f795c8a6d23854cc08cedcf649fc4bd204e46fbcdca7e60ba32b048f954 +size 4563 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.fbx new file mode 100644 index 000000000..6a7e37b87 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_008.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:913d95acf394b422a7d19f08bc65d9ebdcab9006cc167d618da76dd645339d06 +size 16748 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.bin new file mode 100644 index 000000000..65aae3ecd --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56089733703340e978eec534ed9f679dc0460593ff5563fe1230c7ff08bbec87 +size 13861 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.fbx new file mode 100644 index 000000000..651e544e8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_e_screw_010_1.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9ede2a2a8189c5d94ca853d709f02e2cc85cc6bbcfb1dad3bfbce5b1bae495c +size 17996 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.bin new file mode 100644 index 000000000..a5347de34 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16b144696f871b04200a9520b9f29561d786032389d51d04bc3764b1306def36 +size 228986 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.fbx new file mode 100644 index 000000000..be0e5065d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_03_1.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8709c099f2c3928cc3c4b035a2a8430ba3fe2b6ea2e90b8abfbea2669fa4199e +size 101660 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.bin new file mode 100644 index 000000000..e3a6c1ca3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a03e5de50bd0767a2672ce94b5c8842a44366649cb023ade8ae6093de914026 +size 232850 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.fbx new file mode 100644 index 000000000..c03a2cd0a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_04_1.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61060d71edfea8542887e63a8596b5c234b8248ae0f2d95138d69db20234e107 +size 101692 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.bin new file mode 100644 index 000000000..16d5e9ebe --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8438f64cfbd547747628d535104744089329b331d55847e43a1e1db0d8adcae5 +size 177750 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.fbx new file mode 100644 index 000000000..20286a501 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_1.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b5ffda651a2618f5e76c6a68d7dc426aa70d6f5d8d5cb65b88540785c041b7c +size 111356 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.bin new file mode 100644 index 000000000..807626e8e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6cdab8dac77590b30dfa0e8d4c6df0e9d83691bb327046128dca898d1a91bd67 +size 109338 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.fbx new file mode 100644 index 000000000..e5e34879e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_h_tornado_08_2.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ab5abb22d1c57179d184d1524c79dfa58177fa63b175c02e60344fc4de0c288 +size 60588 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.bin new file mode 100644 index 000000000..831728739 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:526547f85e81657d8c67b5971ac4b2909be82fb37b2ee43b7e9864b77f5168fc +size 227040 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.fbx new file mode 100644 index 000000000..1f642d24b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fm_o_tornado_01.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55055221c074a4d4fa8079db84e93534058b8fb2c998ac340bbe9cf3c9644d8c +size 65772 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.bin new file mode 100644 index 000000000..dd4513f57 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c48694d504b2bb83c5c2944a75451e28a7b4dfa679a2f10c4cbc65f94616335 +size 43019 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.fbx new file mode 100644 index 000000000..97c0b9c68 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/fn_m_screw_001.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff456145123f54aea837fc1fafed7fe64000436331fb77338edc101191ac4953 +size 37756 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.bin new file mode 100644 index 000000000..88ba3ba81 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8c661ace4e2e2d18bd6c306b7740c11ff0304f4b47fe22716194edb551c3295 +size 466591 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.fbx new file mode 100644 index 000000000..7bf1ce305 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_01.001.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:970139201d8a86cb0bd7351a95d6aa7c485c6b9f5b3f75a40552c03620f1f528 +size 160140 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.bin new file mode 100644 index 000000000..a5f524e6f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92c12199e43b1845295e58ddf4f7317b33589e243cb34d242fd29746fad886d1 +size 93343 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.fbx new file mode 100644 index 000000000..17e0dbdbe --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/thunder_02.002.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12ba8b78abfa8a027487afa942edd5d9b3634975f4106051e159d9687a8a7a4a +size 39020 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index b4f47f4c3..d76e4d6de 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -93,7 +93,7 @@ float g_fWinSizeY; /* 소프트 이펙트 */ bool g_isNonSoftEffect; - +bool g_isScreenFX; /* 디퓨즈 */ float4 g_vColor; float g_fDiffuseAlpha; diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 0d380384f..8645dc4c6 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -272,6 +272,8 @@ call Update_Shaders.bat + + @@ -558,6 +560,8 @@ call Update_Shaders.bat + + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index 259675803..af32c686d 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -787,6 +787,12 @@ {6c70f152-f512-4622-b6ef-27931092deed} + + {546b1677-5dbb-45dd-a152-5b216655e51f} + + + {d84324ea-6303-442d-8f00-ed6555e6b02b} + @@ -1593,6 +1599,12 @@ 02.GameObjects\Env\03.MapElement\Balloon + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy\StupefySide + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy + @@ -2407,6 +2419,12 @@ 02.GameObjects\Env\03.MapElement\Balloon + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy\StupefySide + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy + diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index b0a9093d7..717c10efb 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -32,6 +32,11 @@ HRESULT CEditEffect::Initialize(void* pArg) m_bVisible = false; + + XMStoreFloat4x4(&m_ScreenViewMatrix, XMMatrixIdentity()); + XMStoreFloat4x4(&m_OrthographicMatrix, XMMatrixOrthographicLH(g_iWinSizeX, g_iWinSizeY, 0.f, 1.f)); + + return S_OK; } @@ -524,7 +529,7 @@ void CEditEffect::Describe_Entity() GUI::Checkbox("NonSoftEffect", &m_EffectInfo.isNonSoftEffect); - + GUI::Checkbox("ScreenFX", &m_EffectInfo.isScreenFX); GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp index d974af399..7bb4a11fe 100644 --- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp @@ -867,19 +867,31 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { - return E_FAIL; - } + if (m_EffectInfo.isScreenFX == false) + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { - return E_FAIL; - } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) { + return E_FAIL; + } - if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { - return E_FAIL; + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) { + return E_FAIL; + } + } + else + { + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ScreenViewMatrix))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_OrthographicMatrix))) { + return E_FAIL; + } } _float4x4 WorldInv = {}; @@ -1205,9 +1217,11 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_RawValue("g_isScreenFX", &m_EffectInfo.isScreenFX, sizeof(_bool)))) { + return E_FAIL; + } - if (m_pDiffuse_TextureCom != nullptr) { if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DiffuseTexture", 0))) { diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index a2de42e80..1b9428398 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -16,6 +16,8 @@ #include "LeviosoSide.h" #include "DecendoSide.h" #include "NomalJapSide.h" +#include "Stupefy.h" +#include "StupefySide.h" #include "Troll_Rush_Hit.h" @@ -307,6 +309,24 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CStupefy* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::STUPEFY_SIDE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CStupefySide* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 9c5261843..4105053ce 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -88,8 +88,8 @@ HRESULT CLevel_EffectViewer::Initialize() // return E_FAIL; //} - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) - // return E_FAIL; +/* if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) + return E_FAIL;*/ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) // return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/Levioso.cpp b/Jusin154_Team3D/Editor/Private/Levioso.cpp index e415244e8..a46f0840b 100644 --- a/Jusin154_Team3D/Editor/Private/Levioso.cpp +++ b/Jusin154_Team3D/Editor/Private/Levioso.cpp @@ -41,24 +41,14 @@ HRESULT CLevioso::Initialize(void* pArg) if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso"))) return E_FAIL; - m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); - m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); + m_pLeviosoPJ = Get_PartObject("Levioso_PJ"); - m_pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); - m_pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); - - SAFE_ADDREF(m_pLevioso_Rotate0); - SAFE_ADDREF(m_pLevioso_Rotate1); - - SAFE_ADDREF(m_pLeviosoPJ_0); - SAFE_ADDREF(m_pTrail_PT_0); + SAFE_ADDREF(m_pLeviosoPJ); m_wstrEffectName = L"Levioso"; - m_fTurnSpeed = 10.f; - m_fRange = 1.f; - m_fDuration = 2.f; + m_fDuration = 6.f; @@ -69,7 +59,7 @@ void CLevioso::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); - XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ->Get_WorldPostion()); } @@ -82,19 +72,8 @@ void CLevioso::Update(_float fTimeDelta) Update_Event(fTimeDelta); - m_pLeviosoPJ_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - m_pTrail_PT_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - - _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix(); - - if (m_bHit == true && m_pEnemyTransform != nullptr) - { - _vector vPos = m_pEnemyTransform->Get_State(STATE::POSITION); - - m_pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vPos); - m_pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vPos); - } + m_pLeviosoPJ->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -103,11 +82,12 @@ void CLevioso::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion()); + XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); @@ -131,19 +111,21 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) _vector WandPos = pPlayer->Get_WandPos().r[3]; - CEditEffect* pWandSmoke = Get_PartObject("Levioso_Wand0"); - CEditEffect* pWandLight = Get_PartObject("Levioso_Wand_Light"); + CEditEffect* pWandSmoke = Get_PartObject("Wand_Smoke"); + CEditEffect* pWandLight = Get_PartObject("Wand_Light_P"); + CEditEffect* pSpread_Circle = Get_PartObject("Spread_Circle"); + + + m_pLeviosoPJ->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); - m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pSpread_Circle->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); - m_pLeviosoPJ_0->Set_Visible(true); - m_pTrail_PT_0->Set_Visible(true); + m_pLeviosoPJ->Set_Visible(true); pWandSmoke->Set_Visible(true); pWandLight->Set_Visible(true); - + pSpread_Circle->Set_Visible(true); m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); @@ -170,15 +152,6 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg) } - _vector vDir = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); - - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir)); - - _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vDir)); - - _matrix ProjMat = _matrix(vRight, vUp, vDir, vStartPos); - - m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(ProjMat); return S_OK; } @@ -234,17 +207,19 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - m_fAccTime = 0.f; m_fDuration = 3.5f; //적중하면 지속시간 3초 + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + CEditEffect* pLevioso_Spline = Get_PartObject("Levioso_Spline"); + CEditEffect* pLevioso_Hit0 = Get_PartObject("Levioso_Hit0"); + + pLevioso_Hit0->Get_Component()->Set_State(STATE::POSITION, vHitPos); + pLevioso_Spline->Get_Component()->Set_State(STATE::POSITION, vHitPos); + + pLevioso_Hit0->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); /* 바람과 파티클은 풋포지션 */ CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); @@ -253,50 +228,38 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) _vector vFootPos = pHitCCT->Get_FootPosition(); CEditEffect* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); - CEditEffect* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + CEditEffect* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + CEditEffect* pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); CEditEffect* pLevioso_Bottom_PT = Get_PartObject("Levioso_Bottom_PT"); + CEditEffect* pLevioso_Spline = Get_PartObject("Levioso_Spline"); - m_pEnemyTransform = CollisionDesc.pObject->Get_Component(); pLevioso_Tornado->Get_Component()->Set_State(STATE::POSITION, vFootPos); - pLevioso_Bottom_Wind->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vFootPos); pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Tornado->Set_Visible(true); + pLevioso_Rotate0->Set_Visible(true); + pLevioso_Rotate1->Set_Visible(true); + pLevioso_Bottom_PT->Set_Visible(true); + pLevioso_Spline->Set_Visible(true); } - //Get_PartObject("Levioso_Tornado") - //CEditEffect* pLevioso_Hit = Get_PartObject("Levioso_Hit"); - //CEditEffect* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); - - - - m_pLeviosoPJ_0->Set_Visible(false); - m_pTrail_PT_0->Set_Visible(false); - //m_pLeviosoTrail->Set_Visible(false); } void CLevioso::Free() { __super::Free(); - SAFE_RELEASE(m_pLeviosoPJ_0); - SAFE_RELEASE(m_pTrail_PT_0); - - SAFE_RELEASE(m_pLevioso_Rotate0); - SAFE_RELEASE(m_pLevioso_Rotate1); + SAFE_RELEASE(m_pLeviosoPJ); } #ifdef _DEBUG void CLevioso::Describe_Entity() { - GUI::Begin("LEVIOSO"); - - GUI::DragFloat("TURN SPEED", &m_fTurnSpeed); - GUI::DragFloat("RANGE", &m_fRange); - GUI::End(); - } #endif // _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp b/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp index aa618c7d4..c6f5a29f3 100644 --- a/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp +++ b/Jusin154_Team3D/Editor/Private/LeviosoSide.cpp @@ -46,7 +46,12 @@ HRESULT CLeviosoSide::Initialize(void* pArg) SAFE_ADDREF(m_pWandLight); SAFE_ADDREF(m_pWandTrail); - m_fDuration = 1.f; + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); return S_OK; } @@ -74,7 +79,7 @@ void CLeviosoSide::Update(_float fTimeDelta) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - m_pWandTrail->Get_Component()->Trail_Update(fTimeDelta, pWand->Get_WorldMatrix()); + m_pWandTrail->Oneside_Rope_Trail_Update(pWand->Get_WorldMatrix() , fTimeDelta); } diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 43cd2bd22..59fe6c859 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -207,6 +207,8 @@ #include "LeviosoSide.h" #include "DecendoSide.h" #include "NomalJapSide.h" +#include "Stupefy.h" +#include "StupefySide.h" #include "TrollSwing.h" #include "Troll_Nomal_Smoke.h" @@ -1981,6 +1983,14 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CStupefy::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CStupefySide::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_FireBall::Create(m_pDevice, m_pContext)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index d1faf5677..2bf9bb306 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -69,10 +69,10 @@ HRESULT CLoader::Loading_For_ObjectViewer() } vector*>> futures = {}; - /*futures.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "C:/MeshTable\\Game\\RiggedObjects\\Characters\\Creatures\\Goblins\\OneOff\\T4Goblin_Melee_INST_A\\SK_GOB_M_T4Melee_INST_A_Master_ReverseTumble.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + futures.emplace_back(Deferred_ModelLoad( + MODEL::NONANIM_LOCAL, "C:/MeshTable\\Game\\RiggedObjects\\Characters\\Creatures\\Goblins\\OneOff\\T4Goblin_Melee_INST_A\\SK_GOB_M_T4Melee_INST_A_Master_ReverseTumble.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model") - ));*/ + )); #pragma region MONSTER diff --git a/Jusin154_Team3D/Editor/Private/Player_States.cpp b/Jusin154_Team3D/Editor/Private/Player_States.cpp index c850f6412..edb06a43c 100644 --- a/Jusin154_Team3D/Editor/Private/Player_States.cpp +++ b/Jusin154_Team3D/Editor/Private/Player_States.cpp @@ -832,19 +832,25 @@ void CPlayer::Behavior_CombatEnter() Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); }, 0.0f); } else if (SUCCEEDED(InputSpell())) { + m_pFSM->Enable_State(FSMSTATE::SPELL); + _float fEventRatio = 0.2f; + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END)) { - pairAnimInfo = m_Animation[STATEANIM::SPELL]; switch (m_eSpell) { case ENUM_CLASS(SKILL_TYPE::BOMBARDA): Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); }, - 0.2f); + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); }, + 0.01f); + + Add_Event(pairAnimInfo.first, - [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); }, - 0.f); + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); }, + 0.2f); + break; case ENUM_CLASS(SKILL_TYPE::DESCENDO): Add_Event(pairAnimInfo.first, diff --git a/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp b/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp index 0cc850a06..4e8e8c4c9 100644 --- a/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp +++ b/Jusin154_Team3D/Editor/Private/Protego_Hit.cpp @@ -86,6 +86,8 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) CEditEffect* pProtego_HitPT = Get_PartObject("Protego_HitPT"); CEditEffect* pProtego_HitPT_Line = Get_PartObject("Protego_HitPT_Line"); CEditEffect* pProtegoHit = Get_PartObject("Protego_HitPT_Line"); + CEditEffect* pScreenFX_Hit = Get_PartObject("ScreenFX_Hit"); + 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()); @@ -100,6 +102,8 @@ HRESULT CProtego_Hit::Pre_Setting(CGameObject* pObject, void* pArg) pProtego_HitPT_Line->Set_Visible(true); pProtegoHit->Set_Visible(true); + pScreenFX_Hit->Set_Visible(true); + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Stupefy.cpp b/Jusin154_Team3D/Editor/Private/Stupefy.cpp new file mode 100644 index 000000000..22e3dbf11 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Stupefy.cpp @@ -0,0 +1,284 @@ +#include "pch.h" +#include "Stupefy.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CStupefy::CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CStupefy::CStupefy(const CStupefy& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ +} + +HRESULT CStupefy::Initialize_Prototype() +{ + + + return S_OK; + +} + +HRESULT CStupefy::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/Stupefy"))) + return E_FAIL; + m_iSkillType = ENUM_CLASS(SKILL_TYPE::STUPEFY); + + m_wstrEffectName = L"Stupefy"; + + m_pProjectile = Get_PartObject("Stupefy_PJ"); + SAFE_ADDREF(m_pProjectile); + + m_pProjectile2 = Get_PartObject("Stupefy_PJ2"); + SAFE_ADDREF(m_pProjectile2); + + + m_pStupefy_PJ_PT = Get_PartObject("Stupefy_PJ_PT"); + SAFE_ADDREF(m_pStupefy_PJ_PT); + + m_fDuration = 4.5f; + + return S_OK; +} + +void CStupefy::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + + XMStoreFloat4(&m_vStartPos, m_pStupefy_PJ_PT->Get_WorldPostion()); +} + +void CStupefy::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + m_pStupefy_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); + m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); + m_pProjectile2->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); +} + +void CStupefy::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + XMStoreFloat4(&m_vEndPos, m_pStupefy_PJ_PT->Get_WorldPostion()); + + _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); + + + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); + + OnCollision(this, &CollisionInfo); + } + +} + +HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CWand* pWand = static_cast(m_pOwner)->Get_PartObject(); + + if (pWand == nullptr) + return E_FAIL; + + + + CEditEffect* pWand_Distortion = Get_PartObject("Wand_Distortion"); + + CEditEffect* pStupefy_Light_Long = Get_PartObject("Stupefy_Light_Long"); + CEditEffect* pBodyFlare = Get_PartObject("BodyFlare"); + + CEditEffect* pStupefy_Smoke = Get_PartObject("Stupefy_Smoke"); + + pWand_Distortion->Set_Visible(true); + pStupefy_Light_Long->Set_Visible(true); + pBodyFlare->Set_Visible(true); + pStupefy_Smoke->Set_Visible(true); + //m_pStupefy_PJ_PT->Set_Visible(true); + m_pProjectile->Set_Visible(true); + m_pProjectile2->Set_Visible(true); + + _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + /*완드 포지션*/ + + _vector vWandPos = pWand->Get_WorldPostion(); + + + m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile2->Get_Component()->Set_State(STATE::POSITION, vWandPos); + + pStupefy_Light_Long->Get_Component()->Set_State(STATE::POSITION, vWandPos); + pBodyFlare->Get_Component()->Set_State(STATE::POSITION, vWandPos); + // + /*몸통 포지션*/ + + _vector vPlayerPos = m_pOwner->Get_Component()->Get_Position() + vDirection * -0.1f; + + pWand_Distortion->Get_Component()->Set_State(STATE::POSITION, vPlayerPos); + + /*발 포지션*/ + + _vector vPlayerFootPos = m_pOwner->Get_Component()->Get_FootPosition(); + + pStupefy_Smoke->Get_Component()->Set_State(STATE::POSITION, vPlayerFootPos); + + + + + XMStoreFloat3(&m_vCameraLook, vDirection); + + _vector vStartPos = vWandPos; + XMStoreFloat4(&m_vStartPos, vStartPos); + + { /* 대상 위치 지정 */ + // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정 + XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f); + + m_pInfoInstance->Get_LockOnInfo(m_Info); + //if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) { + + // //XMStoreFloat4(&m_vTargetPos,Get_LockOnPos(m_Info)); + + // //XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); + //} + //else { + + //} + } + + + _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); + _vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook)); + _vector vPos = pWand->Get_WorldPostion(); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pProjectile2->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + + return S_OK; +} + +HRESULT CStupefy::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CStupefy::Ready_Child() +{ + return S_OK; +} + +CStupefy* CStupefy::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CStupefy* pInstance = new CStupefy(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CStupefy"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CStupefy::Clone(void* pArg, CGameObject* pOwner) +{ + CStupefy* pInstance = new CStupefy(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CStupefy"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CStupefy::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + CEditEffect* pStupefy_Hit_PT = Get_PartObject("Stupefy_Hit_PT"); + CEditEffect* pStupefy_Circle0 = Get_PartObject("Stupefy_Circle0"); + CEditEffect* pHitFlare = Get_PartObject("HitFlare"); + + + pStupefy_Hit_PT->Set_Visible(true); + pStupefy_Hit_PT->Get_Component()->Set_State(STATE::POSITION, vPos); + pStupefy_Circle0->Set_Visible(true); + pStupefy_Circle0->Get_Component()->Set_State(STATE::POSITION, vPos); + pHitFlare->Set_Visible(true); + pHitFlare->Get_Component()->Set_State(STATE::POSITION, vPos); + + + + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); + m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); + + +} + +void CStupefy::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pProjectile); + SAFE_RELEASE(m_pProjectile2); + SAFE_RELEASE(m_pStupefy_PJ_PT); + +} + +#ifdef _DEBUG +void CStupefy::Describe_Entity() +{ + +} +#endif + +HRESULT CStupefy::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/StupefySide.cpp b/Jusin154_Team3D/Editor/Private/StupefySide.cpp new file mode 100644 index 000000000..dc821f5c6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/StupefySide.cpp @@ -0,0 +1,221 @@ +#include "pch.h" +#include "StupefySide.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Player.h" +#include "Wand.h" +#include "TrailObject.h" + + +CStupefySide::CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CStupefySide::CStupefySide(const CStupefySide& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CStupefySide::Initialize_Prototype() +{ + + + + + return S_OK; + +} + +HRESULT CStupefySide::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/StupefySide"))) + return E_FAIL; + + m_wstrEffectName = L"BombardSide"; + + + m_pWandParticle = Get_PartObject("Wand_Particle_B"); + m_pWandLight = Get_PartObject("Wand_Light_B"); + m_pWandTrail = Get_PartObject(); + + SAFE_ADDREF(m_pWandLight); + SAFE_ADDREF(m_pWandTrail); + SAFE_ADDREF(m_pWandParticle); + + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + //m_isTrailEnd = true; + + XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + }); + + m_Events.emplace(1.3f, [&]() { + + m_pWandTrail->SetDissolve(true); + }); + + + return S_OK; +} + +void CStupefySide::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CStupefySide::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + // 파티클생성이 막히면 실행되지 않음 + if (m_isParticleEnd == false) + m_pWandParticle->Get_Component()->Set_WorldMatrix(pWand->Get_WorldMatrix()); + + // 트레일이 종료되면 위치를 고정함 + _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); + +} + +void CStupefySide::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CStupefySide::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return E_FAIL; + + m_pWandParticle->Set_Visible(true); + m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고 + + m_pWandLight->Set_Visible(true); + + /*트레일 초기화 */ + m_pWandTrail->Set_Visible(true); + m_isTrailEnd = false; + m_pWandTrail->Get_Component()->Reset_Trail(); + + /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + m_pWandTrail->SetDissolve(false); + + return S_OK; +} + +HRESULT CStupefySide::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CStupefySide::Ready_Child() +{ + return S_OK; +} + +CStupefySide* CStupefySide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CStupefySide* pInstance = new CStupefySide(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CStupefySide::Clone(void* pArg, CGameObject* pOwner) +{ + CStupefySide* pInstance = new CStupefySide(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CStupefySide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CStupefySide::OnCollision(CGameObject* pOther, void* pDesc) +{ + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CStupefySide::Free() +{ + __super::Free(); + + + Safe_Release(m_pWandLight); + Safe_Release(m_pWandTrail); + Safe_Release(m_pWandParticle); +} +#ifdef _DEBUG + +void CStupefySide::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CStupefySide::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Public/EditEffect.h b/Jusin154_Team3D/Editor/Public/EditEffect.h index ea428f278..98d0b965c 100644 --- a/Jusin154_Team3D/Editor/Public/EditEffect.h +++ b/Jusin154_Team3D/Editor/Public/EditEffect.h @@ -46,6 +46,8 @@ class CEditEffect final : public CEffectObject _bool m_isCamPos = {}; _float4 m_vCamOffset = {}; + + public: static CEditEffect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index ea107c526..ada767a10 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -64,7 +64,7 @@ namespace Editor BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색 JAP, REVELIO, PROTEGO, STUPEFY, PROTEGO_HIT, // 검은색 ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, - JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, + JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, STUPEFY_SIDE, STUN, TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_IMPACT , RANROK_HIT, RANROK_LAND, RANROK_RUSH_BOTTOM, diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h index 5e0a21900..25bb4d1d8 100644 --- a/Jusin154_Team3D/Editor/Public/EffectObject.h +++ b/Jusin154_Team3D/Editor/Public/EffectObject.h @@ -143,7 +143,13 @@ class CEffectObject abstract : public CPartObject _bool isNonSoftEffect = {}; _float2 vDissolveSmoothRange = {0.1f , 0.1f}; - _float2 vPadding0 = {}; + + _float fPadding1 = {}; + + _bool isScreenFX = {}; + _bool isPadding0 = {}; + _bool isPadding1 = {}; + _bool isPadding2 = {}; _bool isRimLight = {}; _bool isMask_G = {}; @@ -339,6 +345,9 @@ class CEffectObject abstract : public CPartObject CInstance_Model* m_pInstance_ModelCom = { nullptr }; const _float4x4* m_pPerentMatrix = { nullptr }; + + _float4x4 m_ScreenViewMatrix = {}; + _float4x4 m_OrthographicMatrix = {}; protected: EFFECT_INFO m_EffectInfo = {}; _string m_strDiffuseName = {}; diff --git a/Jusin154_Team3D/Editor/Public/Levioso.h b/Jusin154_Team3D/Editor/Public/Levioso.h index fa2c831e9..f01ee45b9 100644 --- a/Jusin154_Team3D/Editor/Public/Levioso.h +++ b/Jusin154_Team3D/Editor/Public/Levioso.h @@ -35,25 +35,15 @@ class CLevioso final : public CEffect_Container class CInfoInstance* m_pInfoInstance = { nullptr }; private: _wstring m_wstrEffectName = {}; - class CPlayer* m_pPlayer = {}; + class CPlayer* m_pPlayer = {}; - class CEditEffect* m_pLeviosoPJ_0 = { nullptr }; - class CEditEffect* m_pLeviosoPJ_1 = { nullptr }; - class CEditEffect* m_pTrail_PT_0 = { nullptr }; - - class CEditEffect* m_pLevioso_Rotate0 = { nullptr }; - class CEditEffect* m_pLevioso_Rotate1 = { nullptr }; - - class CTransform* m_pEnemyTransform = { nullptr }; + class CEditEffect* m_pLeviosoPJ = { nullptr }; _vector m_vOwnerLook = {}; - _float m_fAccRotateTime = {}; - _float m_fTurnSpeed = {}; - _float m_fRange = {}; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 - _float m_fLinearSpeed = 0.25f; + _float m_fLinearSpeed = 0.75f; _float3 m_vCameraLook = {}; public: static CLevioso* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/Stupefy.h b/Jusin154_Team3D/Editor/Public/Stupefy.h new file mode 100644 index 000000000..89127e603 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Stupefy.h @@ -0,0 +1,54 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CStupefy final : public CEffect_Container +{ +private: + CStupefy(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CStupefy(const CStupefy& rhs); + virtual ~CStupefy() = 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: + class CInfoInstance* m_pInfoInstance = { nullptr }; +private: + _wstring m_wstrEffectName = {}; + class CEditEffect* m_pProjectile = {}; + class CEditEffect* m_pStupefy_PJ_PT = {}; + class CEditEffect* m_pProjectile2 = {}; + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 + _float m_fLinearSpeed = 1.f; + _float3 m_vCameraLook = {}; +public: + static CStupefy* 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/Editor/Public/StupefySide.h b/Jusin154_Team3D/Editor/Public/StupefySide.h new file mode 100644 index 000000000..5f4fefdc0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/StupefySide.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CStupefySide final : public CEffect_Container +{ +private: + CStupefySide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CStupefySide(const CStupefySide& rhs); + virtual ~CStupefySide() = 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 = {}; + + _bool m_isParticleEnd = {}; + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + + class CEditEffect* m_pWandLight = { nullptr }; + class CTrailObject* m_pWandTrail = { nullptr }; + class CEditEffect* m_pWandParticle = { nullptr }; + +public: + static CStupefySide* 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/Animation.cpp b/Jusin154_Team3D/Engine/Private/Animation.cpp index 960e3eb79..a77d863a2 100644 --- a/Jusin154_Team3D/Engine/Private/Animation.cpp +++ b/Jusin154_Team3D/Engine/Private/Animation.cpp @@ -342,6 +342,12 @@ void CAnimation::CreateGPUData(ID3D11Device* pDevice) CreateChannelBuffer(pDevice, channels); } +void CAnimation::Set_CurrentTrackProgressRatio(_float fRatio) +{ + fRatio = clamp(fRatio, 0.f, 1.f); + m_fTempTrack = fRatio * m_fDurationSeconds; +} + #ifdef EDITOR_PROJECT diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index d30f00bed..a7b0b1af1 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -331,7 +331,7 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) m_bIsSecondFinishedAnim = pSecondAnim->Update_TransformationMatrices(m_Bones, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation); - m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio* 5.f); + m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio); if (fRatio >= 1.f) { @@ -363,7 +363,7 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation, m_iRootBoneIndex); m_bIsSecondFinishedAnim = m_Animations[m_iCurrSecondAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation); - m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio * 5.f); + m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio); m_iPreAnimIndex = m_iCurrentAnimIndex; if (m_bIsSecondFinishedAnim) @@ -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(); @@ -596,10 +596,10 @@ void CModel::Update_RootBone(_float Amount) _float yaw = axis.y * angle; - if (m_bRootBone) - { + /* if (m_bRootBone) + {*/ m_pTransform->TurnAngle_Y(yaw); - } + //} } @@ -860,6 +860,11 @@ _float CModel::Get_CurrentTrackProgressRatio() return m_Animations[m_iCurrentAnimIndex]->Get_CurrentTrackProgressRatio(); } +void CModel::Set_CurrentTrackProgressRatio(_float fRatio) +{ + m_Animations[m_iCurrentAnimIndex]->Set_CurrentTrackProgressRatio(fRatio); +} + _float CModel::Get_TrackProgressRatio(_uint iIndex) { return m_Animations[iIndex]->Get_CurrentTrackProgressRatio(); @@ -2113,7 +2118,7 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex) pDesc->RootInitRot = m_vInitialRootRot; pDesc->UseUpperBody = m_bSecondAnim; - pDesc->UpperBlend = 1.f; + pDesc->UpperBlend = m_fSecondRatio; pDesc->SecondAnimIndex = m_iCurrSecondAnimIndex; pDesc->SecondAnimTime = m_Animations[m_iCurrSecondAnimIndex]->Get_CurrentTrackPosition();; diff --git a/Jusin154_Team3D/Engine/Private/Quest.cpp b/Jusin154_Team3D/Engine/Private/Quest.cpp index c181f5443..7b4ccd93e 100644 --- a/Jusin154_Team3D/Engine/Private/Quest.cpp +++ b/Jusin154_Team3D/Engine/Private/Quest.cpp @@ -21,7 +21,6 @@ HRESULT CQuest::Initialize(void* pArg) QUESTINFO* Info = static_cast(pArg); m_iQuestID = Info->iQuestID; m_ObjectiveInfo = Info->ObjectiveInfo; - return S_OK; } @@ -38,7 +37,7 @@ _bool CQuest::Update_Objective(_int MonsterID) continue; ++it.iCurrentCount; - + m_iMonsterID = MonsterID; if (it.iCurrentCount >= it.iRequiredCount) it.bClear = true; @@ -59,6 +58,11 @@ _int CQuest::Get_QuestID() return m_iQuestID; } +_int CQuest::Get_MonsterID() +{ + return m_iMonsterID; +} + void CQuest::Free() { __super::Free(); diff --git a/Jusin154_Team3D/Engine/Private/UIObject.cpp b/Jusin154_Team3D/Engine/Private/UIObject.cpp index a57ffec1f..a37199ed4 100644 --- a/Jusin154_Team3D/Engine/Private/UIObject.cpp +++ b/Jusin154_Team3D/Engine/Private/UIObject.cpp @@ -35,6 +35,7 @@ HRESULT CUIObject::Initialize(void* pArg) // 이제 뷰포트의 개수랑 정보를 저장할 포인터를 넣어준다. m_pContext->RSGetViewports(&iNumViewports, &ViewportDesc); + // 이제 받아온 fX,fY,fSizeX,fSizeY를 다 저장 해 놓는다. UIOBJECT_DESC* pDesc = static_cast(pArg); diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp index 20d5b28c3..0b1a0faef 100644 --- a/Jusin154_Team3D/Engine/Private/Unit.cpp +++ b/Jusin154_Team3D/Engine/Private/Unit.cpp @@ -309,6 +309,10 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "SHIELD_BLOCK5", SHIELD_BLOCK5 }, { "SHIELD_BLOCK6", SHIELD_BLOCK6 }, { "SHIELD_BLOCK7", SHIELD_BLOCK7 }, + { "SHIELD_BLOCK_90_L1", SHIELD_BLOCK_90_L1 }, { "SHIELD_BLOCK_90_L2", SHIELD_BLOCK_90_L2 }, + { "SHIELD_BLOCK_90_R1", SHIELD_BLOCK_90_R1 }, { "SHIELD_BLOCK_90_R2", SHIELD_BLOCK_90_R2 }, + { "SHIELD_BLOCK_180_L", SHIELD_BLOCK_180_L }, { "SHIELD_BLOCK_180_R", SHIELD_BLOCK_180_R }, + // SPELL { "SPELL", SPELL }, { "SPELL_180_R", SPELL_180_R }, { "SPELL_90_R", SPELL_90_R }, { "SPELL_90_L", SPELL_90_L }, @@ -353,7 +357,7 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) // PARRY { "PARRY_180", PARRY_180 }, - { "PARRY2", PARRY2 }, { "PARRY3", PARRY3 }, { "PARRY4", PARRY4 }, + { "PARRY2", PARRY2 }, { "PARRY3", PARRY3 }, { "PARRY4", PARRY4 }, { "PARRY5", PARRY5 }, { "PARRY6", PARRY6 }, // BROOM (기존 세트) { "BROOM_IDLE", BROOM_IDLE }, @@ -490,6 +494,7 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "FIRESWEEP_WINDUP_A", FIRESWEEP_WINDUP_A }, { "FIREBREATH_G", FIREBREATH_G }, { "FIRESWEEP_G", FIRESWEEP_G }, + { "FIRESWEEP_G_L", FIRESWEEP_G_L }, { "FIRESWEEP_G_R", FIRESWEEP_G_R }, // ETC { "PULSE", PULSE }, diff --git a/Jusin154_Team3D/Engine/Public/Animation.h b/Jusin154_Team3D/Engine/Public/Animation.h index 55fd5ff95..64df874d6 100644 --- a/Jusin154_Team3D/Engine/Public/Animation.h +++ b/Jusin154_Team3D/Engine/Public/Animation.h @@ -33,6 +33,7 @@ class ENGINE_DLL CAnimation : public CBase void Set_CurrentTrackPosition(_float TrackPosition) { m_fCurrentTrackPosition = TrackPosition; } _float Get_CurrentTrackPosition() { return m_fCurrentTrackPosition; } _float Get_CurrentTrackProgressRatio() { return m_fTempTrack / m_fDurationSeconds;} + void Set_CurrentTrackProgressRatio(_float fRatio); void Set_AnimSpeed(_float fSpeed) { m_fAnimSpeed = fSpeed; } _float Get_AnimSpeed() { return m_fAnimSpeed; } diff --git a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h index 31982bb57..6d3830af9 100644 --- a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h +++ b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h @@ -36,6 +36,9 @@ class CPhysX_CctQueryFilterCallback final : public PSX::PxQueryFilterCallback case PXOBJECT::RANROK_PROP: return PSX::PxQueryHitType::eNONE; break; + case PXOBJECT::POTION: + return PSX::PxQueryHitType::eNONE; + break; case PXOBJECT::NPC: case PXOBJECT::OLLIVANDER: case PXOBJECT::ELEAZARFIG: diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h index ccbdb7493..378f85d80 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h @@ -201,7 +201,7 @@ enum class PXOBJECT : _uint { ITEM = 600, DROPITEM = 630, TRAP = 660, - + POTION = 690, #pragma endregion #pragma region TRIGGERBOX TRIGGERBOX = 700, diff --git a/Jusin154_Team3D/Engine/Public/Engine_Struct.h b/Jusin154_Team3D/Engine/Public/Engine_Struct.h index 7933e1aa1..bb94f853f 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Struct.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Struct.h @@ -577,6 +577,7 @@ typedef struct tagOnCollsionInfo _float4 vHitDir = {}; // 시도한 move 방향 _float fLength = {}; // 작용된 힘 _int eHitType = ENUM_CLASS(HIT_TYPE::HIT_PROJECTILE); // 발사체/적당한 공격/강공격 + _int eCollisionType = {}; _float fDamage = {}; // 데미지 class CGameObject* pObject = { nullptr }; // 시전자 }ON_COLLISION_INFO; diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 3269564bc..4b525dcb2 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -87,6 +87,7 @@ class ENGINE_DLL CModel final : public CComponent const _char* Get_AnimList(_uint iIndex); _float Get_CurrentTrackPosition(); _float Get_CurrentTrackProgressRatio(); + void Set_CurrentTrackProgressRatio(_float fRatio); _float Get_TrackProgressRatio(_uint iIndex); size_t Get_AnimSize() { return m_Animations.size(); } diff --git a/Jusin154_Team3D/Engine/Public/Quest.h b/Jusin154_Team3D/Engine/Public/Quest.h index 734c234ee..726659cdb 100644 --- a/Jusin154_Team3D/Engine/Public/Quest.h +++ b/Jusin154_Team3D/Engine/Public/Quest.h @@ -9,10 +9,11 @@ class ENGINE_DLL CQuest abstract : public CGameObject public: 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 @@ -43,10 +44,11 @@ class ENGINE_DLL CQuest abstract : public CGameObject public: virtual _bool Update_Objective(_int MonsterID); virtual _int Get_QuestID(); - + virtual _int Get_MonsterID(); protected: vector m_ObjectiveInfo; _int m_iQuestID{}; + _int m_iMonsterID{}; public: virtual void Free() override; diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h index 392653125..a23d44267 100644 --- a/Jusin154_Team3D/Engine/Public/State.h +++ b/Jusin154_Team3D/Engine/Public/State.h @@ -14,6 +14,7 @@ enum ESTATE 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_BLOCK1, SHIELD_BLOCK2, SHIELD_BLOCK3, SHIELD_BLOCK4, SHIELD_BLOCK5, SHIELD_BLOCK6, SHIELD_BLOCK7, + SHIELD_BLOCK_90_L1,SHIELD_BLOCK_90_L2,SHIELD_BLOCK_90_R1, SHIELD_BLOCK_90_R2,SHIELD_BLOCK_180_L, SHIELD_BLOCK_180_R, 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, @@ -22,7 +23,7 @@ enum ESTATE ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,LUMOS_STOP,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW, AVADA_KEDAVRA,REPARO_START, REPARO_LOOP, REPARO_END, SPELL_FAIL, SPELL_CHARGE, ANCIENT_LIGHTNING, - PARRY_180,PARRY2, PARRY3, PARRY4, + PARRY_180,PARRY2, PARRY3, PARRY4, PARRY5, PARRY6, BROOM_IDLE,BROOM_FWD,BROOM_LEFT,BROOM_RIGHT,BROOM_DOWN,BROOM_UP, BROOM_REVELIO, BROOM_HOVER_IDLE, BROOM_HOVER_FWD, BROOM_HOVER_LEFT, BROOM_HOVER_RIGHT, BROOM_HOVER_START, BROOM_HOVER_REVELIO,BROOM_MOUNT, BROOM_MOUNT_END,BROOM_DISMOUNT,BROOM_TURBO_FWD, BROOM_TURBO_DOWN, BROOM_TURBO_UP, BROOM_TURBO_LEFT, BROOM_TURBO_RIGHT, RUSH_START,RUSH_LOOP,RUSH_END, THROW_ROCK_START,THROW_ROCK, @@ -41,7 +42,7 @@ enum ESTATE STUMBLE_BWD_L,STUMBLE_BWD_R,STUMBLE_FWD, HOVER_LOOP,HOVER_DASH_FWD, HOVER_DASH_BWD, HOVER_DASH_LEFT, HOVER_DASH_RIGHT, FIREBALL1_A,FIREBALL2_A, FIREBALL1_G, FIREBALL2_G, - FIREBREATH_A,FIREBREATH_COOLDOWN_A,FIREBREATH_WINDUP_A, FIRESWEEP_A, FIRESWEEP_COOLDOWN_A, FIRESWEEP_WINDUP_A, FIREBREATH_G, FIRESWEEP_G, + FIREBREATH_A,FIREBREATH_COOLDOWN_A,FIREBREATH_WINDUP_A, FIRESWEEP_A, FIRESWEEP_COOLDOWN_A, FIRESWEEP_WINDUP_A, FIREBREATH_G, FIRESWEEP_G,FIRESWEEP_G_L, FIRESWEEP_G_R, PULSE, GROUND_SWIPE_L,GROUND_SWIPE_R, TUCKED,FLY_TO_HOVER,FLY,