diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index efcc46742..6aa8d9b4c 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -209,6 +209,7 @@ call Update_Resources.bat + @@ -490,6 +491,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 0ebb2982f..4005a93f4 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -857,6 +857,9 @@ 02.GameObjects\NPC\Hostile\Human_Duelist + + 04.Mechanic\State\State_Combat\State_CutScene + @@ -1772,13 +1775,16 @@ {eb8e52f5-0283-4acf-8fbb-0e734b7580e9} - + {9c357e12-18b3-461e-b74c-76f85280796f} {8b69e309-b90b-47f6-8f2d-3dd778b468fe} + + {b50fed80-37dd-4adb-afd4-ba153cef8a92} + @@ -2589,6 +2595,9 @@ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse + + 04.Mechanic\State\State_Combat\State_CutScene + diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index ee72f7596..280d2e25e 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -397,48 +397,48 @@ HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder) break; #ifdef 기무리 - case PLAYER_MESH_ORDER::ROBE_CLOTH: - { - CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); - _uint MeshBoneCount = pMesh->Get_NumBone(); + //case PLAYER_MESH_ORDER::ROBE_CLOTH: + //{ + // CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); + // _uint MeshBoneCount = pMesh->Get_NumBone(); - for (_uint i = 0; i < MeshBoneCount; ++i) - { - XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity()); - } + // for (_uint i = 0; i < MeshBoneCount; ++i) + // { + // XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity()); + // } - _uint temp = 0; - vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)); - vector<_int> boneIndices = pMesh->Get_BoneIndices(); + // _uint temp = 0; + // vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)); + // vector<_int> boneIndices = pMesh->Get_BoneIndices(); - for (_uint i = 0; i < MeshBoneCount; ++i) - { - _uint global = boneIndices[i]; - if (global == 38) - continue; - if (globalMask[global] == 1) - { - SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++); - } - } + // for (_uint i = 0; i < MeshBoneCount; ++i) + // { + // _uint global = boneIndices[i]; + // if (global == 38) + // continue; + // if (globalMask[global] == 1) + // { + // SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++); + // } + // } - GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f); + // GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f); - if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) { - return E_FAIL; - } + // if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) { + // return E_FAIL; + // } - if (FAILED(m_pShaderCom->Bind_Matrices( - "g_BoneMatrices", - SkinMatrices.data(), - (_int)SkinMatrices.size() - ))) - { - return E_FAIL; - } - } - break; + // if (FAILED(m_pShaderCom->Bind_Matrices( + // "g_BoneMatrices", + // SkinMatrices.data(), + // (_int)SkinMatrices.size() + // ))) + // { + // return E_FAIL; + // } + //} + //break; #endif // _DEBUG default: diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index dfcf41450..566d1f4ce 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -302,7 +302,7 @@ HRESULT CLevel_GamePlay::Ready_Background() #endif // #ifdef 기무리 isReady_Background = true; - isReady_Hogsmeade = false; + isReady_Hogsmeade = true; isReady_Hogwart = false; #endif // #ifdef 나 @@ -807,8 +807,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) isLoad_RandomNPC = true; #endif // #ifdef 기무리 - isLoad_NPC = false; - isLoad_RandomNPC = false; + isLoad_NPC = true; + isLoad_RandomNPC = true; #endif // #ifdef 나 isLoad_RandomNPC = true; diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 24cee374b..51f741220 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -410,7 +410,7 @@ HRESULT CLoader::Loading_For_GamePlay() isLoad_Background = true; isLoad_Hogwart = false; isLoad_UI_SEQUANTIAL = false; - isLoad_NPC = false; + isLoad_NPC = true; isLoad_Monster = true; #endif // #ifdef 나 diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 6f6c040d6..3844d970f 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -1040,6 +1040,13 @@ void CPlayer::Describe_Entity() m_pLightCom->Describe_Entity(); + for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++) + { + if (GUI::Button(m_pModelCom->Get_AnimList(i))) + { + m_pModelCom->Set_AnimationIndex(i); + } + } } GUI::End(); } diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 153f5c8b5..b6f1a7072 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -7,6 +7,7 @@ #include "CamPosition_Socket.h" #include "Camera_Gaze.h" #include "CamPosition_Arm.h" +#include "State_CutScene.h" #include "Wand.h" #include "Item_Potion.h" #include "Character_Controller.h" @@ -75,6 +76,7 @@ HRESULT CPlayer::InputAction() || m_pGameInstance->Key_Down(DIK_G) || m_pGameInstance->Key_Down(DIK_B) || m_pGameInstance->Key_Down(DIK_F) + || m_pGameInstance->Key_Down(DIK_SCROLL) ) { @@ -236,6 +238,9 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) else if (m_pGameInstance->Key_Down(DIK_Z)) { m_pFSM->Change_State(FSMSTATE::COMBAT); } + else if (m_pGameInstance->Key_Down(DIK_SCROLL)) { + m_pFSM->Change_State(FSMSTATE::CUTSCENE); + } else if (m_pGameInstance->Key_Down(DIK_N)) { m_pInfoInstance->Change_Canvas(); } @@ -348,6 +353,38 @@ void CPlayer::Behavior_IdleExit() Reset_Event(); } +void CPlayer::Behavior_CutSceneEnter() +{ + pair<_uint, _bool> pairAnimInfo; + m_pFSM->Enable_State(FSMSTATE::CUTSCENE); + m_bSprintToggle = false; + m_bWalkToggle = false; + + pairAnimInfo = m_Animation[STATEANIM::CUTSCENE_TROLLINTRO]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + +} + +HRESULT CPlayer::Behavior_CutSceneExitCheck(_float fTimeDelta) +{ + pair<_uint, _bool> pairAnimInfo; + + if (m_pModelCom->IsFinishedAnim()) + { + pairAnimInfo = m_Animation[STATEANIM::IDLE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + return S_OK; +} + +void CPlayer::Behavior_CutSceneExit() +{ + m_pFSM->Disable_State(FSMSTATE::CUTSCENE); + Reset_Event(); +} + void CPlayer::Behavior_MoveEnter() { pair<_uint, _bool> pairAnimInfo = {}; @@ -2823,6 +2860,14 @@ void CPlayer::Add_FSM() Desc.funcLateUpdate = nullptr; m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc)); } + { + CState_CutScene::STATE_CUTSCENE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_CutSceneEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CutSceneExitCheck(fTimedelta); }; + Desc.funcExitEvent = [this]() { Behavior_CutSceneExit(); }; + m_States.emplace(FSMSTATE::CUTSCENE, CState_CutScene::Create(&Desc)); + } { CState_Move::STATE_MOVE_DESC Desc{}; Desc.pOwner = this; @@ -2839,7 +2884,7 @@ void CPlayer::Add_FSM() } } } - }; + }; Desc.funcLateUpdate = nullptr; m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc)); @@ -2862,7 +2907,6 @@ void CPlayer::Add_FSM() Desc.funcExitEvent = [this]() { Behavior_LandExit(); }; m_States.emplace(FSMSTATE::LAND, CState_Land::Create(&Desc)); } - { CState_Fall::STATE_FALL_DESC Desc{}; Desc.pOwner = this; diff --git a/Jusin154_Team3D/Client/Private/State_CutScene.cpp b/Jusin154_Team3D/Client/Private/State_CutScene.cpp new file mode 100644 index 000000000..7936428b8 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_CutScene.cpp @@ -0,0 +1,55 @@ +#include "pch.h" +#include "State_CutScene.h" +#include "Unit.h" + +CState_CutScene::CState_CutScene() + :CState_Root() +{ +} + +void CState_CutScene::Enter() +{ + __super::Enter(); +} + +HRESULT CState_CutScene::Update(_float fTimeDelta) +{ + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + return S_OK; +} + +void CState_CutScene::Exit() +{ + __super::Exit(); +} + +HRESULT CState_CutScene::Initialize(STATE_CUTSCENE_DESC* pDesc) +{ + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); + + return S_OK; +} + +CState_CutScene* CState_CutScene::Create(STATE_CUTSCENE_DESC* pDesc) +{ + CState_CutScene* pInstance = new CState_CutScene; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_CutScene::Free() +{ + __super::Free(); +} + +void CState_CutScene::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index 35a0c10de..31c26cab8 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -254,7 +254,7 @@ HRESULT CTroll::Render_OutLine() Compute_Depth(); _float fCamFar = *m_pGameInstance->Get_CurrentCameraFar(); _float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar))); - m_fOutLineThickness = CMyTools::Lerp_f1D(2.5f, 3.f, fRatio); + m_fOutLineThickness = CMyTools::Lerp_f1D(0.024f, 0.5f, fRatio); if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { return E_FAIL; } @@ -704,6 +704,15 @@ void CTroll::Describe_Entity() GUI::Text(strSocket.c_str()); + for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++) + { + if (GUI::Button(m_pModelCom->Get_AnimList(i))) + { + m_pModelCom->Set_AnimationIndex(i); + } + } + + m_pTransformCom->Describe_Entity(); } diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 6924a9235..7cd67d9ba 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -185,6 +185,10 @@ class CPlayer final : public CUnit HRESULT Behavior_IdleExitCheck(_float fTimeDelta); void Behavior_IdleExit(); + void Behavior_CutSceneEnter(); + HRESULT Behavior_CutSceneExitCheck(_float fTimeDelta); + void Behavior_CutSceneExit(); + void Behavior_MoveEnter(); HRESULT Behavior_MoveExitCheck(_float fTimeDelta); void Behavior_MoveExit(); diff --git a/Jusin154_Team3D/Client/Public/State_CutScene.h b/Jusin154_Team3D/Client/Public/State_CutScene.h new file mode 100644 index 000000000..5b4bad2cb --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_CutScene.h @@ -0,0 +1,31 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_CutScene final : public CState_Root +{ +public: + typedef struct tagCutScene : public CState_Root::STATE_ROOT_DESC { + + }STATE_CUTSCENE_DESC; +private: + CState_CutScene(); + virtual ~CState_CutScene() = default; + +public: + virtual void Enter(); + virtual HRESULT Update(_float fTimeDelta); + virtual void Exit(); + +private: + HRESULT Initialize(STATE_CUTSCENE_DESC* pDesc); + +public: + static CState_CutScene* Create(STATE_CUTSCENE_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +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 65be7dcca..e3a22a46c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml @@ -165,4 +165,7 @@ + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx index 426160853..b898bf727 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:01136f9f94eb8740cca6eab949a12b71aafcf8a3c8d095c24d000151702e538e +oid sha256:ca905237cc03e10895c9ec778892bfff7571fe320dabdd380a726d6757a352d8 size 5782684 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin index 8779cd5a1..1a59e74bd 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:32b51f41874a6648ba4d389840709175a6bfbc04152d800abb743fc4a6689e03 +oid sha256:54bf8ce4d068163e80d9c9f262c02ba5b7545a851c10729fbb0bb9e36fcf1009 size 13829790 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx index f88a088c2..fcb5f9bfa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2ce6d6d9c175b7711f49a87c50e3e16bce60ee524ea04254a7fee76b8054f5bd -size 7854460 +oid sha256:d58c2482c84c5fbed27349cc09cbcf8dbcac2177b5e4832c3ef47bc938d54e39 +size 7854540 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin index 5e3c63885..e3cd6030f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ef3ac2202757e81a8a8a89c4a032326fdb9fad7cc3f7b4e64abd6b71e82fe0b1 -size 134860 +oid sha256:1fb4f21f6ca883ee2e841e78995b72c77007d72dbe8377d218bfa35a27b31475 +size 134808 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx index 4b09a75d1..f6f6e60e7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8c1932284b28eaec10dc58e31f142665a4b19eee9af9392ce438495264e36128 -size 143068 +oid sha256:f8c4bde06088635b10b31eff41c1ed0382a32d8bb92c3565bf6d0414ddf0b7dc +size 143164 diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index e21dfd444..59013ce7e 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -1,4 +1,5 @@ -#include "pch.h" +#pragma region HEADER +#include "pch.h" #include "Loader.h" #include "GameInstance.h" @@ -247,6 +248,7 @@ #include "Dummy_Globe.h" +#pragma endregion #pragma endregion CLoader::CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index b8b1ef41c..dba4e9695 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -79,12 +79,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model") ));*/ - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_Playable_Model") - )); - - #pragma region MONSTER //futures.emplace_back(Deferred_ModelLoad( @@ -110,10 +104,10 @@ HRESULT CLoader::Loading_For_ObjectViewer() // CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) // return E_FAIL; - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixIdentity(), - TEXT("Prototype_Component_troll_Model") - )); + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixIdentity(), + // TEXT("Prototype_Component_troll_Model") + //)); //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx", XMMatrixIdentity(), @@ -205,6 +199,7 @@ HRESULT CLoader::Loading_For_ObjectViewer() MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity(), TEXT("Desc_Box") )); + //futures.emplace_back(Deferred_ModelLoad( // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixIdentity(), // TEXT("Prototype_Component_GerboldOlivander_Model") @@ -264,11 +259,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() // TEXT("Prototype_Component_VictorRookWood_Model") //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_Playable_Model") - //)); - #pragma region NPC //futures.emplace_back(Deferred_ModelLoad( @@ -321,12 +311,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() // TEXT("Prototype_Component_Student_Cmbt_Model") //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Cmbt_Model") - //)); - //futures.emplace_back(Deferred_ModelLoad( // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), // TEXT("Prototype_Component_Elf_Model") @@ -374,10 +358,21 @@ HRESULT CLoader::Loading_For_ObjectViewer() // TEXT("Prototype_Component_Student_Cmbt_Model") //)); + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_Playable_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx", XMMatrixIdentity(), + TEXT("Prototype_Component_Student_Cmbt_Model") + )); + //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Cmbt_Model") + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Playable_Model") //)); + #pragma endregion for (auto& job : futures) { diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp index 6f4e6e37a..96c7183b7 100644 --- a/Jusin154_Team3D/Engine/Private/Unit.cpp +++ b/Jusin154_Team3D/Engine/Private/Unit.cpp @@ -239,7 +239,7 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "IDLE_BREAK3", IDLE_BREAK3 }, { "IDLE_BREAK4", IDLE_BREAK4 }, { "IDLE_BREAK5", IDLE_BREAK5 }, { "IDLE_BREAK6", IDLE_BREAK6 }, { "IDLE_BREAK7", IDLE_BREAK7 }, - + { "IDLE_TURN_180_L", IDLE_TURN_180_L }, { "IDLE_TURN_180_R", IDLE_TURN_180_R }, { "IDLE_TURN_45_L", IDLE_TURN_45_L }, { "IDLE_TURN_45_R", IDLE_TURN_45_R }, { "IDLE_TURN_90_L", IDLE_TURN_90_L }, { "IDLE_TURN_90_R", IDLE_TURN_90_R }, @@ -499,6 +499,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "SPELL_LEARNING_SUCCESS", SPELL_LEARNING_SUCCESS }, { "SPELL_LEARNING_WANDWAVE", SPELL_LEARNING_WANDWAVE }, + // CUT SCENES + { "CUTSCENE_TROLLINTRO", CUTSCENE_TROLLINTRO }, + // BROOM (B 세트) { "BROOM_MOUNT_B", BROOM_MOUNT_B }, { "BROOM_HOVER_IDLE_B", BROOM_HOVER_IDLE_B }, diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h index fe2857c28..72e0a5730 100644 --- a/Jusin154_Team3D/Engine/Public/FSM.h +++ b/Jusin154_Team3D/Engine/Public/FSM.h @@ -56,6 +56,7 @@ enum ESTATE : _u64Flag SLASH = 1ULL << 49, DASH = 1ULL << 50, FEAR = 1ULL << 51, + CUTSCENE = 1ULL << 52, END }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h index 4a1ba0ce6..3149d696a 100644 --- a/Jusin154_Team3D/Engine/Public/State.h +++ b/Jusin154_Team3D/Engine/Public/State.h @@ -49,6 +49,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, + CUTSCENE_TROLLINTRO, ////////////////////////// 빗자루 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, /// ////////////////////////////