diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index b22b67c15..7837f9970 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -166,6 +166,7 @@ call Update_Resources.bat + @@ -476,6 +477,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 37e8d62e8..144855219 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -922,9 +922,6 @@ 02.GameObjects\Effect\Effects\Accio\AccioSide - - 02.GameObjects\Environment\Prop\SkyBox\TriggerBox - 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D @@ -937,7 +934,7 @@ 02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit - + 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit @@ -949,10 +946,16 @@ 02.GameObjects\Environment\03.MapElement\Cave - + 02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_SkillUI + + 04.Mechanic\State\Focus\Spell_Learning + + + 02.GameObjects\Environment\Prop\SkyBox\TriggerBox + @@ -1955,7 +1958,7 @@ {c276c050-7000-441e-bb53-30ec3c20c6f5} - + {9263815e-9651-4ba2-813f-c2a7f207522d} @@ -1964,10 +1967,13 @@ {5599bbbd-12f7-4b40-8e3d-24f869cce464} - + {b28b8285-3d1a-49cf-bde2-c7ebc18e6389} + + {26d7f6f4-0b5f-4b9a-9cef-df91b8a485bf} + @@ -2838,6 +2844,12 @@ 02.GameObjects\Environment\03.MapElement\Cave + + 04.Mechanic\State\Focus\Spell_Learning + + + 02.GameObjects\Environment\Prop\SkyBox\TriggerBox + @@ -2852,9 +2864,6 @@ 04.Mechanic\State\State_Combat\State_Parry - - 02.GameObjects\Environment\Prop\SkyBox\TriggerBox - 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D @@ -2867,13 +2876,13 @@ 02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit - + 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D 02.GameObjects\NPC\Ally\Elf - + 02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_SkillUI diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp index f577c9168..e34ca8a7e 100644 --- a/Jusin154_Team3D/Client/Private/Broom.cpp +++ b/Jusin154_Team3D/Client/Private/Broom.cpp @@ -234,10 +234,10 @@ HRESULT CBroom::Ready_Components() switch (m_iIndex) { case 0: - m_strModelPrototypeTag = TEXT("Prototype_Component_Broom_Model"); + m_strModelPrototypeTag = TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model"); break; case 1: - m_strModelPrototypeTag = TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model"); + m_strModelPrototypeTag = TEXT("Prototype_Component_Broom_Model"); break; case 2: m_strModelPrototypeTag = TEXT("Prototype_Component_DarkWizardBroom_Model"); diff --git a/Jusin154_Team3D/Client/Private/Broom_States.cpp b/Jusin154_Team3D/Client/Private/Broom_States.cpp index e9d57c1dc..86d6729d2 100644 --- a/Jusin154_Team3D/Client/Private/Broom_States.cpp +++ b/Jusin154_Team3D/Client/Private/Broom_States.cpp @@ -500,11 +500,11 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta) pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B]; } } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,0.1f); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false); } else { pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false); } } diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp index a438c9f5c..9ed211e22 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp @@ -169,7 +169,6 @@ void CDialogue_Panel::Change_Map() } -#ifdef Bin CLayer* pNpcLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_NPC); if (nullptr != pNpcLayer) { @@ -184,7 +183,6 @@ void CDialogue_Panel::Change_Map() dynamic_cast(pNpc)->Set_Battle(true); } } -#endif // Bin } void CDialogue_Panel::Priority_Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp index 0490cc895..09ca77df5 100644 --- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp +++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp @@ -744,9 +744,7 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End m_bHitShield = true; } break; - } - switch (PXOBJECT(pUserData->iSubKind)) - { + case PXOBJECT::DUELIST_PROTEGO: { pUserData->pOwner->OnCollision(this, &tagCollInfo); diff --git a/Jusin154_Team3D/Client/Private/Elf.cpp b/Jusin154_Team3D/Client/Private/Elf.cpp index b0414f746..25642d4d9 100644 --- a/Jusin154_Team3D/Client/Private/Elf.cpp +++ b/Jusin154_Team3D/Client/Private/Elf.cpp @@ -70,6 +70,11 @@ void CElf::Update(_float fTimeDelta) Set_Anim(); + if (m_pGameInstance->Key_Up(DIK_U)) + { + m_iCurrentFlow++; + } + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); __super::Update(fTimeDelta); diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index 63f22ab9e..c4480ff01 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -93,6 +93,16 @@ void CHuman_Duelist::Update(_float fTimeDelta) m_pModelCom->Play_Animation(fTimeDelta *m_fEasing, m_pTransformCom); + if (m_pGameInstance->Key_Down(DIK_O)) + { + CPlayer* pPlayer = dynamic_cast(m_pInfoInstance->Get_NearestPlayerAlly(Get_WorldPostion()).first); + + if (pPlayer == nullptr) + return; + + pPlayer->ExitBattle(); + } + Play_Event(); Check_BattleLose(); @@ -527,12 +537,6 @@ void CHuman_Duelist::Check_BattleLose() { m_pEffectPool->Use_Skill(SKILL_TYPE::BOX_SPLESH, this); m_bBattle = false; - CPlayer* pPlayer = dynamic_cast(m_pInfoInstance->Get_NearestPlayerAlly(Get_WorldPostion()).first); - - if (pPlayer == nullptr) - return; - - pPlayer->ExitBattle(); } } } diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 2b324fa94..0c4f3b771 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -1141,7 +1141,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc() { _bool isLoad_NPC = { true }; _bool isLoad_RandomNPC = { true }; - _bool isRandomPosition = { true }; + _bool isRandomPosition = { false }; #ifdef _DEBUG #ifdef gimch isLoad_NPC = true; diff --git a/Jusin154_Team3D/Client/Private/Lightning.cpp b/Jusin154_Team3D/Client/Private/Lightning.cpp index 3f41eee83..45adeead1 100644 --- a/Jusin154_Team3D/Client/Private/Lightning.cpp +++ b/Jusin154_Team3D/Client/Private/Lightning.cpp @@ -123,7 +123,7 @@ HRESULT CLightning::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) { _vector vLockOnPos = Get_LockOnPos(m_Info); diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index dc046884e..2ce7a7750 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -2529,6 +2529,23 @@ HRESULT CLoader::Loading_For_GamePlay() Desc.vLocalTranslation = { 0.f, 0.f, 0.f }; } + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC ShieldDesc{}; + { + ShieldDesc.eType = ACTOR::SPHERE; + ShieldDesc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC }; + ShieldDesc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE }; + ShieldDesc.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; + ShieldDesc.vMatInfo = { 0.5f, 0.5f, 0.6f }; + ShieldDesc.fContactOffset = { 0.05f }; + ShieldDesc.vhalfGeometryInfo = { 2.f, 2.f, 2.f }; + ShieldDesc.fDensity = 1.f; + ShieldDesc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); + ShieldDesc.eLockFlag = {}; + ShieldDesc.vAutoDamping = { 1.f, 1.f }; + ShieldDesc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f }; + ShieldDesc.vLocalTranslation = { 0.f, 0.f, 0.f }; + } + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc1{}; { Desc1.eType = ACTOR::SPHERE; @@ -2537,7 +2554,7 @@ HRESULT CLoader::Loading_For_GamePlay() Desc1.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; Desc1.vMatInfo = { 0.5f, 0.5f, 0.6f }; Desc1.fContactOffset = { 0.05f }; - Desc1.vhalfGeometryInfo = { 2.34f, 2.34f, 2.34f }; + Desc1.vhalfGeometryInfo = { 2.6f, 2.6f, 2.6f }; Desc1.fDensity = 1.f; Desc1.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); Desc1.eLockFlag = {}; @@ -2587,7 +2604,10 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc1)))) { + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, ShieldDesc)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROKPROP"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc1)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Lumos.cpp b/Jusin154_Team3D/Client/Private/Lumos.cpp index b000518ff..cac41d143 100644 --- a/Jusin154_Team3D/Client/Private/Lumos.cpp +++ b/Jusin154_Team3D/Client/Private/Lumos.cpp @@ -57,10 +57,6 @@ void CLumos::Priority_Update(_float fTimeDelta) __super::Priority_Update(fTimeDelta); - - - - } void CLumos::Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp index c5805d190..310e1b16a 100644 --- a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp +++ b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp @@ -211,7 +211,16 @@ HRESULT CNPC_Ollivander::Bind_ShaderParameters(_uint iMeshOrder) iColorMixerMethod = 1; } break; + case 25: + { + bUseColorMixer = true; + iColorParam = 0x2E2E2E; + fMixerFactor = 0.9f; + iColorMixerMethod = 1; } + break; + } + if (true == bUseColorMixer) { if (FAILED(m_pShaderCom->Bind_RawValue("g_iPackedBlendColor", &iColorParam, sizeof(_uint)))) { return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 3e3277179..c721685b3 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -556,6 +556,7 @@ void CPlayer::Trigger(CTimeSocket& Socket) } break; case TIMESOCKET_FUNC::SET_ANIMSTATE: { + } break; case TIMESOCKET_FUNC::SET_FSMSTATE: { @@ -564,6 +565,10 @@ void CPlayer::Trigger(CTimeSocket& Socket) } else if (pContents->vFlags.b[1]) { m_pFSM->Change_State(FSMSTATE::IDLE); + + if (pContents->vParam_11.x == 1.f) { + m_pModelCom->Set_AnimationIndex(m_Animation[STATEANIM::SPAWN].first, m_Animation[STATEANIM::SPAWN].second); + } } } break; case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX: @@ -833,10 +838,6 @@ void CPlayer::CheckMouseInput() m_pInfoInstance->Mouse_Input(ENUM_CLASS(KEYINPUT::DIM_RBUTTON_UP)); m_bAim = false; } - if (m_pGameInstance->Key_Up(DIK_U)) - { - m_pFSM->Change_State(FSMSTATE::CUTSCENE); - } } void CPlayer::ReLockOnTarget() diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 675d55d9f..419bd9f00 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -269,7 +269,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) } return E_FAIL; } - else { + else if(iCurrentAnimIndex != m_Animation[STATEANIM::SPAWN].first) { if (SUCCEEDED(InputAim())) { if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) { @@ -358,7 +358,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) return S_OK; } - if (!SUCCEEDED(InputAim())) + if (!SUCCEEDED(InputAim()) && iCurrentAnimIndex != m_Animation[STATEANIM::SPAWN].first) { if (m_pModelCom->IsFinishedAnim()) { @@ -426,6 +426,7 @@ void CPlayer::Behavior_MoveEnter() m_bWalkToggle = false; pairAnimInfo = m_Animation[STATEANIM::SPRINT]; m_bRatio = true; + Get_PartObject()->Set_Visible(false); } else if (true == m_bWalkToggle) { m_pFSM->Enable_State(FSMSTATE::WALK); @@ -470,6 +471,7 @@ void CPlayer::Behavior_MoveEnter() m_pFSM->Enable_State(FSMSTATE::SPRINT); m_bWalkToggle = false; pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + Get_PartObject()->Set_Visible(false); } else if (true == m_bWalkToggle) { @@ -549,6 +551,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) m_pFSM->Enable_State(FSMSTATE::SPRINT); m_pFSM->Disable_State(FSMSTATE::WALK); pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + Get_PartObject()->Set_Visible(false); } else { @@ -650,6 +653,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) else if (m_bSprintToggle) { pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + Get_PartObject()->Set_Visible(false); } else { @@ -690,6 +694,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) !SUCCEEDED(InputMove())) { if (!m_pFSM->IsEnable(FSMSTATE::STOP)) { + Get_PartObject()->Set_Visible(true); m_pFSM->Enable_State(FSMSTATE::STOP); if (m_pFSM->IsEnable(FSMSTATE::WALK) || m_fMoveTime <= 0.13f) { m_bWalkToggle = false; @@ -747,11 +752,13 @@ void CPlayer::Behavior_MoveExit() { m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::STOP); Reset_Event(); + Get_PartObject()->Set_Visible(true); } void CPlayer::Behavior_JumpEnter() { pair<_uint, _bool> pairAnimInfo; + Get_PartObject()->Set_Visible(false); m_fOriginGravityAmount = m_pCharacter_Controller->Get_GravityAmount(); m_pFSM->Enable_State(FSMSTATE::JUMP); if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE | FSMSTATE::WALK | FSMSTATE::JOG | FSMSTATE::SPRINT)) { @@ -768,8 +775,8 @@ void CPlayer::Behavior_JumpEnter() pairAnimInfo = m_Animation[STATEANIM::JUMP_JOG]; } } - else { - // Drop? + if (m_pFSM->IsEnable_Previous(FSMSTATE::SLIDE)) { + pairAnimInfo = m_Animation[STATEANIM::JUMP_JOG]; } m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } @@ -798,12 +805,14 @@ void CPlayer::Behavior_JumpExit() { m_pFSM->Disable_State(FSMSTATE::JUMP); Reset_Event(); + Get_PartObject()->Set_Visible(true); } void CPlayer::Behavior_LandEnter() { pair<_uint, _bool> pairAnimInfo; m_pFSM->Enable_State(FSMSTATE::LAND); + Get_PartObject()->Set_Visible(false); _int iCurrAnim = m_pModelCom->Get_AnimIndex(); if (iCurrAnim == m_Animation[STATEANIM::JUMP].first) { @@ -852,6 +861,7 @@ void CPlayer::Behavior_LandExit() m_pCharacter_Controller->Set_GravityAmount(m_fOriginGravityAmount); m_fGravityAmount = 0.f; Reset_Event(); + Get_PartObject()->Set_Visible(true); } void CPlayer::Behavior_FallEnter() @@ -981,8 +991,9 @@ void CPlayer::Behavior_SlideEnter() { pair<_uint, _bool> pairAnimInfo; m_pFSM->Enable_State(FSMSTATE::SLIDE); + Get_PartObject()->Set_Visible(false); pairAnimInfo = m_Animation[STATEANIM::SLIDE_START_R]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.2f); Add_Event(pairAnimInfo.first, [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::SLIDE_LOOP_R]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); }, @@ -1005,6 +1016,11 @@ HRESULT CPlayer::Behavior_SlideExitCheck(_float fTimeDelta) _vector vNextPos = vPos + vLook * m_fSlideSpeed * fTimeDelta; m_pCharacter_Controller->Set_Position(vNextPos); } + if (m_pGameInstance->Key_Down(DIK_SPACE)) + { + m_pFSM->Change_State(FSMSTATE::JUMP); + return E_FAIL; + } if (m_pGameInstance->Key_Up(DIK_E)) { pairAnimInfo = m_Animation[STATEANIM::SLIDE_STOP_R]; @@ -1028,6 +1044,7 @@ void CPlayer::Behavior_SlideExit() m_pFSM->Disable_State(FSMSTATE::SLIDE); m_fSlideSpeed = 0.f; Reset_Event(); + Get_PartObject()->Set_Visible(true); } void CPlayer::Behavior_CombatEnter() @@ -2057,6 +2074,49 @@ void CPlayer::Behavior_HitExit() } +void CPlayer::Behavior_Spell_LearningEnter() +{ + pair<_uint, _bool> pairAnimInfo; + + m_pFSM->Enable_State(FSMSTATE::SPELL_LEARNING); + m_bSpell_Learning_Success = false; + + pairAnimInfo = m_Animation[STATEANIM::SPELL_LEARNING_START]; + + 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]; }, + 0.95f); + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false); +} + +HRESULT CPlayer::Behavior_Spell_LearningExitCheck(_float fTimeDelta) +{ + pair<_uint, _bool> pairAnimInfo; + _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); + + if (m_bSpell_Learning_Success) + { + pairAnimInfo = m_Animation[STATEANIM::SPELL_LEARNING_SUCCESS]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false); + } + + if (m_pModelCom->IsFinishedAnim() && iCurrAnimIndex != m_Animation[STATEANIM::SPELL_LEARNING_WANDWAVE].first) + { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + return S_OK; +} + +void CPlayer::Behavior_Spell_LearningExit() +{ + m_pFSM->Disable_State(FSMSTATE::SPELL_LEARNING); + m_bSpell_Learning_Success = false; +} + void CPlayer::Behavior_Broom_RideEnter() { m_pFSM->Enable_State(FSMSTATE::BROOM_RIDE); @@ -2291,7 +2351,6 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta) { _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); pair<_uint, _bool> pairAnimInfo; - if (!m_pBroom->Get_Ride()) { m_pFSM->Change_State(FSMSTATE::IDLE); return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/RandomNpc.cpp b/Jusin154_Team3D/Client/Private/RandomNpc.cpp index e3d4a14f5..c491efe19 100644 --- a/Jusin154_Team3D/Client/Private/RandomNpc.cpp +++ b/Jusin154_Team3D/Client/Private/RandomNpc.cpp @@ -79,8 +79,15 @@ void CRandomNpc::Update(_float fTimeDelta) { if (false == m_bBattle) { - _int iRandom = m_pGameInstance->Real_Random_Int(0, 12); - m_pModelCom->Set_AnimationIndex(m_Anims[iRandom], false, 1.f, false, 1.f, false); + if (m_bElf) + { + m_pModelCom->Set_AnimationIndex(1, true, 1.f, false, 1.f, false); + } + else { + _int iRandom = m_pGameInstance->Real_Random_Int(0, 12); + m_pModelCom->Set_AnimationIndex(m_Anims[iRandom], false, 1.f, false, 1.f, false); + } + } } @@ -349,6 +356,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("KITCHENFEMALE"), (CComponent**)&m_pNpcStat))) { return E_FAIL; } + m_bElf = true; break; case 5: m_strModelPrototypeTag = TEXT("Prototype_Component_F_Student_Model"); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp index db8075fae..946c79a67 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp @@ -84,7 +84,7 @@ void CRanrok_Prop::Update(_float fTimeDelta) m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true); Update_Event(fTimeDelta); - + m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true); /* 시작 사이즈 러프 */ if (m_fSizeAccTime > XM_PIDIV2 && m_isSizeLerpEnd == false) @@ -143,6 +143,9 @@ HRESULT CRanrok_Prop::Render() m_pSubShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true); m_Batch->End(); + m_bRender = false; + + m_pRigidBody->Render(); #endif // _DEBUG } return S_OK; @@ -212,7 +215,7 @@ HRESULT CRanrok_Prop::Ready_Components(void* pArg) CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANROK_PROP); - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) { + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROKPROP"), (CComponent**)&m_pRigidBody, &Desc))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/State_Spell_Learning.cpp b/Jusin154_Team3D/Client/Private/State_Spell_Learning.cpp new file mode 100644 index 000000000..cb52f230a --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_Spell_Learning.cpp @@ -0,0 +1,64 @@ +#include "pch.h" +#include "State_Spell_Learning.h" +#include "Unit.h" + + +CState_Spell_Learning::CState_Spell_Learning() + :CState_Root() +{ +} + +void CState_Spell_Learning::Enter() +{ + __super::Enter(); +} + +HRESULT CState_Spell_Learning::Update(_float fTimeDelta) +{ + if (nullptr != m_funcPriorityUpdate) { + m_funcPriorityUpdate(fTimeDelta); + } + if (FAILED(__super::Update(fTimeDelta))) { + return E_FAIL; + } + if (nullptr != m_funcLateUpdate) { + m_funcLateUpdate(fTimeDelta); + } + return S_OK; +} + +void CState_Spell_Learning::Exit() +{ + __super::Exit(); +} + +HRESULT CState_Spell_Learning::Initialize(STATE_SPELL_LEARNING_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_Spell_Learning* CState_Spell_Learning::Create(STATE_SPELL_LEARNING_DESC* pDesc) +{ + CState_Spell_Learning* pInstance = new CState_Spell_Learning; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_Spell_Learning::Free() +{ + __super::Free(); +} + +void CState_Spell_Learning::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/TriggerBox.cpp b/Jusin154_Team3D/Client/Private/TriggerBox.cpp index 676dfc581..f8fa1151a 100644 --- a/Jusin154_Team3D/Client/Private/TriggerBox.cpp +++ b/Jusin154_Team3D/Client/Private/TriggerBox.cpp @@ -56,12 +56,13 @@ HRESULT CTriggerBox::Initialize(TRIGGERBOX_DESC* pDesc) return E_FAIL; } m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat4(&pDesc->vPosition_Radius), 1.f)); + #ifdef _DEBUG - - m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 12, false, false)); + m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, m_pTransformCom->Get_Radius() * 2.f, 12, false, false)); m_Batch = make_unique>(m_pContext); - #endif // _DEBUG + + _float3 vScale = { Desc.fRadius * 2.f, Desc.fRadius * 2.f, Desc.fRadius * 2.f }; m_pTransformCom->Set_Scale(vScale); m_vScanTimer.y += m_pGameInstance->Real_Random_Float(0.f, 0.2f); @@ -158,9 +159,9 @@ CGameObject* CTriggerBox::Clone(void* pArg, CGameObject* pOwner) return nullptr; } #ifdef _DEBUG - void CTriggerBox::Describe_Entity() { } - #endif // _DEBUG + + diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp index d8c6337de..da6dab439 100644 --- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp +++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp @@ -146,7 +146,6 @@ void CUI_Manager::Canvas_Change(UI_STATE eType) default: return; } - m_pInfoInstance->Event_CallBack(TEXT("Player_CanvasChange"), &m_eType); m_pGameInstance->Toggle_MouseCenter(); m_pInfoInstance->Event_CallBack(TEXT("Player_CanvasChange"), &m_eType); } diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 2a9d517f7..a53b7ccd4 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -195,6 +195,7 @@ class CPlayer final : public CUnit _float m_fParryTimer = {}; _bool m_bStartSpellAnim = {}; _float4 m_OriginPos = {}; + _bool m_bSpell_Learning_Success = {}; /* 무적 불 변수*/ @@ -277,6 +278,10 @@ class CPlayer final : public CUnit HRESULT Behavior_HitExitCheck(_float fTimeDelta); void Behavior_HitExit(); + void Behavior_Spell_LearningEnter(); + HRESULT Behavior_Spell_LearningExitCheck(_float fTimeDelta); + void Behavior_Spell_LearningExit(); + void Behavior_Broom_RideEnter(); HRESULT Behavior_Broom_RideExitCheck(_float fTimeDelta); void Behavior_Broom_RideExit(); diff --git a/Jusin154_Team3D/Client/Public/RandomNpc.h b/Jusin154_Team3D/Client/Public/RandomNpc.h index a091619b2..39e921516 100644 --- a/Jusin154_Team3D/Client/Public/RandomNpc.h +++ b/Jusin154_Team3D/Client/Public/RandomNpc.h @@ -72,6 +72,8 @@ class CRandomNpc final : public CUnit _bool m_bBattle = {}; _int m_eNpcState = ENUM_CLASS(NPC_STATE::END); _bool m_bBroomRacer = {}; + _bool m_bElf = {}; + vector<_int> m_Anims; protected: diff --git a/Jusin154_Team3D/Client/Public/State_Spell_Learning.h b/Jusin154_Team3D/Client/Public/State_Spell_Learning.h new file mode 100644 index 000000000..4fe423389 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_Spell_Learning.h @@ -0,0 +1,36 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_Spell_Learning final : public CState_Root +{ +public: + typedef struct tagSpellLearning : public CState_Root::STATE_ROOT_DESC{ + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_SPELL_LEARNING_DESC; +public: + CState_Spell_Learning(); + virtual ~CState_Spell_Learning() = 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_SPELL_LEARNING_DESC* pDesc); + +public: + static CState_Spell_Learning* Create(STATE_SPELL_LEARNING_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/TriggerBox.h b/Jusin154_Team3D/Client/Public/TriggerBox.h index 90c1c3a5c..e49f5470b 100644 --- a/Jusin154_Team3D/Client/Public/TriggerBox.h +++ b/Jusin154_Team3D/Client/Public/TriggerBox.h @@ -26,6 +26,7 @@ class CTriggerBox final : public CGameObject virtual HRESULT Render()override; HRESULT Bind_ShaderResources() override; CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + #ifdef _DEBUG void Describe_Entity() override; #endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Public/Troll_Shout.h b/Jusin154_Team3D/Client/Public/Troll_Shout.h index 4216e9335..4dd2da0c1 100644 --- a/Jusin154_Team3D/Client/Public/Troll_Shout.h +++ b/Jusin154_Team3D/Client/Public/Troll_Shout.h @@ -41,6 +41,7 @@ class CTroll_Shout final : public CEffect_Container void Describe_Entity() override; #endif // _DEBUG + }; NS_END diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml index 2231ff266..2f52ba538 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml @@ -184,8 +184,11 @@ - + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml index d7ad6dd53..8aed2eae7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml @@ -1149,7 +1149,7 @@ - + @@ -1195,12 +1195,12 @@ - + - - + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml index 9af4ed296..1e712a0ff 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml @@ -72,7 +72,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml index 4c793831b..4d0f251b5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml @@ -1,5 +1,5 @@ - + @@ -115,7 +115,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index eb20d1090..f9048caae 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -70,6 +70,7 @@ HRESULT CLoader::Loading_For_ObjectViewer() } vector*>> futures = {}; + #pragma region MONSTER futures.emplace_back(Deferred_ModelLoad( MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 39a575afd..685908fa7 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -258,9 +258,9 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform) m_bLoopRestarted = true; m_vPrevRootPos = { 0,0,0 }; } - /*else { + else { m_vPrevRootPos = { m_OutTranslation.x,m_OutTranslation.y,m_OutTranslation.z }; - }*/ + } } diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp index e6910695a..4bebf38dc 100644 --- a/Jusin154_Team3D/Engine/Private/Transform.cpp +++ b/Jusin154_Team3D/Engine/Private/Transform.cpp @@ -600,7 +600,7 @@ void CTransform::Free() void CTransform::Describe_Entity() { -#ifdef 기무리 +//#ifdef 기무리 if (GUI::TreeNode("NuriDebug")) { { _vector vScale, vRotQ, vTrans; @@ -628,7 +628,7 @@ void CTransform::Describe_Entity() } GUI::TreePop(); } -#endif // 기무리 +//#endif // 기무리 if (GUI::TreeNode("Transform")) { GUI::Text("----- Gizmo ----"); _float3 vMove = {}; diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp index 19b8438c7..e050c549b 100644 --- a/Jusin154_Team3D/Engine/Private/Unit.cpp +++ b/Jusin154_Team3D/Engine/Private/Unit.cpp @@ -529,6 +529,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "SPELL_LEARNING_SUCCESS", SPELL_LEARNING_SUCCESS }, { "SPELL_LEARNING_WANDWAVE", SPELL_LEARNING_WANDWAVE }, + // SPAWN + { "SPAWN", SPAWN }, + // CUT SCENES TROLL { "CUTSCENE_TROLLINTRO", CUTSCENE_TROLLINTRO }, // CUT SCENES OPENING diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h index f32daeb72..690ea11f1 100644 --- a/Jusin154_Team3D/Engine/Public/FSM.h +++ b/Jusin154_Team3D/Engine/Public/FSM.h @@ -58,6 +58,7 @@ enum ESTATE : _u64Flag FEAR = 1ULL << 51, CUTSCENE = 1ULL << 52, BLOCK = 1ULL << 53, + SPELL_LEARNING = 1ULL << 54, END }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h index da2c532f4..96512d939 100644 --- a/Jusin154_Team3D/Engine/Public/State.h +++ b/Jusin154_Team3D/Engine/Public/State.h @@ -51,6 +51,7 @@ enum ESTATE SPELL_LEARNING_FAIL, SPELL_LEARNING_LOOP, SPELL_LEARNING_START, SPELL_LEARNING_SUCCESS, SPELL_LEARNING_WANDWAVE, OPEN_DOOR,OPEN_DOOR_L,OPEN_DOOR_R, FEAR_L,FEAR_R, + SPAWN, #pragma region BROOM BROOM_MOUNT_B, BROOM_HOVER_IDLE_B, BROOM_HOVER_STOP_B, BROOM_HOVER_DOWN_B, BROOM_HOVER_UP_B, BROOM_HOVER_LEFT_B, BROOM_HOVER_RIGHT_B, BROOM_FLY_DOWN_B, BROOM_FLY_LEFT_B, BROOM_FLY_RIGHT_B, BROOM_FLY_UP_B, BROOM_FLY_B, BROOM_ADD, #pragma endregion