diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp index 014eb5b35..90e11e5d7 100644 --- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp @@ -68,21 +68,16 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta) m_bRaceEnd = true; _float Alpha = 2.f; m_pInfoInstance->Event_CallBack(TEXT("UIFadeIn"), &Alpha); - } - for (auto& racer : m_Racers) - { - if (racer.pAI) + for (auto& racer : m_Racers) { - racer.pAI->Get_Broom()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); - } - if (racer.pRacer) - { - + if (racer.pAI) + { + racer.pAI->Get_Broom()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); + } } } } - } break; } diff --git a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp index 8d950a3ed..75a74ac27 100644 --- a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp @@ -39,6 +39,8 @@ HRESULT CBroomRacerAI::Initialize(void* pArg) } m_iIndex = static_cast(pArg)->iIndex; + m_bAI = true; + if (FAILED(Ready_Components())) { return E_FAIL; } @@ -73,7 +75,6 @@ HRESULT CBroomRacerAI::Initialize(void* pArg) m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); - m_bAI = true; #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Broom_States.cpp b/Jusin154_Team3D/Client/Private/Broom_States.cpp index d779eb404..e3c0a3491 100644 --- a/Jusin154_Team3D/Client/Private/Broom_States.cpp +++ b/Jusin154_Team3D/Client/Private/Broom_States.cpp @@ -121,9 +121,10 @@ void CBroom::Behavior_MoveEnter() pair<_uint, _bool> pairAnimInfo = {}; m_pFSM->Enable_State(FSMSTATE::MOVE); - - m_pBroomTrail->SetDissolve(false); - m_pBroomTrail->Get_Component()->Reset_Trail(); + if (m_pParentUnit->IsAI() == false) { + m_pBroomTrail->SetDissolve(false); + m_pBroomTrail->Get_Component()->Reset_Trail(); + } } HRESULT CBroom::Behavior_MoveExitCheck(_float fTimeDelta) @@ -449,23 +450,11 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta) if (vInput.x < 0.f) { - /*if (vInput.z <= 0.f) - { - m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.4f); - } - else {*/ m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.3f); - //} } else if (vInput.x > 0.f) { - /*if (vInput.z <= 0.f) - { - m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.4f); - } - else {*/ m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.3f); - //} } @@ -524,10 +513,6 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta) pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false); - /*if (bShift && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first) - { - m_bHoverToggle = false; - }*/ if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove())) { if (fRatio >= 0.5f && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first) diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp index ec67c6749..5f0324ce0 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp @@ -178,21 +178,25 @@ HRESULT CGoblin_Assassin::Render() { RENDER ePass = m_pGameInstance->Get_CurrentRenderPass(); - if(ePass == RENDER::BLEND) + if (m_bMotionTrail) { - if (FAILED(Bind_ShaderResources())) { - return E_FAIL; + if (ePass == RENDER::BLEND) + { + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + + if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) { + return E_FAIL; + } + + return S_OK; } - - - if (FAILED(m_pMotionTrailCom->Render(m_pShaderCom))) { - return E_FAIL; - } - - return S_OK; } + if (m_bVisible == false) return S_OK; diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 8146c5508..88a37285b 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -1164,8 +1164,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc() } { 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); + NPCDesc.vPos = _float4(96.311f, 4.676f, 77.116f, 1.f); + NPCDesc.vRotQ = _float4(0.f, 0.691f, 0.f, 0.723f); if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp b/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp index 826dd40ea..f3c8c8549 100644 --- a/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp +++ b/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp @@ -38,7 +38,9 @@ HRESULT CNPC_EleazarFig::Initialize(void* pArg) m_pCharacter_Controller->Set_Position(vPos); m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ)); - m_pModelCom->Set_AnimationIndex(0, true); + _int iRandom = m_pGameInstance->Real_Random_Int(0, 12); + m_pModelCom->Set_AnimationIndex(iRandom, false, 1.f, false, 1.f, false); + m_pCallBack_Behavior->Initialize(m_pCharacter_Controller); m_pCallBack_HitReport->Initialize(m_pCharacter_Controller); m_bNpc = true; @@ -58,8 +60,6 @@ void CNPC_EleazarFig::Priority_Update(_float fTimeDelta) void CNPC_EleazarFig::Update(_float fTimeDelta) { - m_pFSM->Update_State(fTimeDelta); - if (m_pModelCom->IsFinishedAnim()) { _int iRandom = m_pGameInstance->Real_Random_Int(0, 12); @@ -356,6 +356,7 @@ void CNPC_EleazarFig::Free() void CNPC_EleazarFig::Describe_Entity() { + m_pTransformCom->Describe_Entity(); } #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 55388e8a5..79ba140a8 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -146,7 +146,6 @@ void CPlayer::Update(_float fTimeDelta) Update_CameraCoordinateSystem(fTimeDelta); UpdateGrapInteractive(fTimeDelta); Update_RaycastElements(); - m_pFSM->Update_State(fTimeDelta); Play_SpellHitAnim(); diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index c8a6346f6..9af215504 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -62,10 +62,7 @@ void CPlayer::Get_UIState(_int UIState) 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::NPC_INTERACT)) + if (IsInputLocked()) { if ( m_pGameInstance->Key_Down(DIK_SPACE) @@ -111,11 +108,7 @@ HRESULT CPlayer::InputAction() 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_bDuel_ZOnlyMove && - m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) + if (IsInputLocked() && !m_bDuel_ZOnlyMove) { if (m_pGameInstance->Key_Pressing(DIK_W) || m_pGameInstance->Key_Pressing(DIK_A) @@ -131,11 +124,7 @@ HRESULT CPlayer::InputMove() 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_bDuel_ZOnlyMove && - m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) + if (IsInputLocked() && !m_bDuel_ZOnlyMove) { if (m_pGameInstance->Key_Up(DIK_W) || m_pGameInstance->Key_Up(DIK_A) @@ -150,10 +139,7 @@ HRESULT CPlayer::InputKeyUpMove() 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::NPC_INTERACT)) { + if (IsInputLocked()) { if ( m_pGameInstance->Key_Down(DIK_1) || m_pGameInstance->Key_Down(DIK_2) @@ -175,10 +161,7 @@ HRESULT CPlayer::InputSpell() HRESULT CPlayer::InputAim() { - 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 (IsInputLocked()) { if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON) || m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) { @@ -1298,6 +1281,13 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta) pair<_uint, _bool> pairAnimInfo; _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); + + if (m_pBroom->Get_Ride()) + { + m_pFSM->Change_State(FSMSTATE::BROOM_RIDE); + return E_FAIL; + } + if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) { _uint iCurr = m_pModelCom->Get_AnimIndex(); @@ -2093,10 +2083,9 @@ void CPlayer::Behavior_Spell_LearningEnter() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false); Add_Event(pairAnimInfo.first, [this]() {pair<_uint, _bool> pairAnimInfo; - pairAnimInfo = m_Animation[STATEANIM::SPELL_LEARNING_WANDWAVE]; }, + pairAnimInfo = m_Animation[STATEANIM::SPELL_LEARNING_WANDWAVE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false); }, 0.95f); - - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false); } HRESULT CPlayer::Behavior_Spell_LearningExitCheck(_float fTimeDelta) @@ -3181,6 +3170,14 @@ void CPlayer::Hit_Levioso(_float fTimeDelta) } } +_bool CPlayer::IsInputLocked() +{ + return 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); +} + void CPlayer::Add_FSM() { #pragma region Behavior_Movement_NotFocus diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index a53b7ccd4..56c71d11f 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -318,7 +318,7 @@ class CPlayer final : public CUnit void Hit_Levioso(_float fTimeDelta); #pragma endregion - + _bool IsInputLocked(); private: class CEffectPool* m_pEffectPool = nullptr; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml index 64257f128..78e433b1e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml @@ -4,7 +4,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin index 8964914d3..240612ab6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3083522ead3ecf9d4aa84e2dfe177c46230c88fb26ba526183507a4cfdf6b2d4 +oid sha256:e0c254f482da3c30b119b5a81d57dbbad1fe8cd65259c6a27b157452ee31b364 size 1204794 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml index 86e590f22..8cef6022b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.xml @@ -1,12 +1,12 @@ - + - + - + - + @@ -15,7 +15,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin index 225163d5c..fdce13167 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2e9bbdda1c31a9c50eeb35cf70cbaf040ad411b59b8ed56563893d65801d0459 +oid sha256:4639bce1b6f55e183503be3e6dc73efaa1d95b651803f118d6ec704cea4e26df size 2294821 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.xml index dc5c289b2..09f3c0993 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.xml @@ -1,12 +1,12 @@ - + - + - + @@ -15,7 +15,7 @@ - + @@ -28,14 +28,14 @@ - + - + - + @@ -44,7 +44,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_D.dds new file mode 100644 index 000000000..959e565e3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_D.png deleted file mode 100644 index 9079fb61a..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_E.dds new file mode 100644 index 000000000..25415810f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_E.png deleted file mode 100644 index ebd0dd6d0..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_MRO.dds new file mode 100644 index 000000000..cee7452bc Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_MRO.png deleted file mode 100644 index c3a2ac1b8..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_N.dds new file mode 100644 index 000000000..e97e9366e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_N.png deleted file mode 100644 index 5d6771a93..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_N.png and /dev/null differ