Merge pull request #678 from SpicyGangjeong/Develope

Follow
This commit is contained in:
hyunbin14
2026-01-07 14:24:27 +09:00
committed by GitHub
52 changed files with 466 additions and 224 deletions
@@ -212,6 +212,7 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Ride_InfoBG.h" />
<ClInclude Include="..\Public\Ride_Info_Key.h" />
<ClInclude Include="..\Public\Ride_Panel.h" />
<ClInclude Include="..\Public\State_CutScene.h" />
<ClInclude Include="..\Public\State_Dash.h" />
<ClInclude Include="..\Public\State_Fall.h" />
<ClInclude Include="..\Public\State_Fear.h" />
@@ -496,6 +497,7 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Ride_InfoBG.cpp" />
<ClCompile Include="..\Private\Ride_Info_Key.cpp" />
<ClCompile Include="..\Private\Ride_Panel.cpp" />
<ClCompile Include="..\Private\State_CutScene.cpp" />
<ClCompile Include="..\Private\State_Dash.cpp" />
<ClCompile Include="..\Private\State_Fall.cpp" />
<ClCompile Include="..\Private\State_Fear.cpp" />
@@ -866,6 +866,9 @@
<ClInclude Include="..\Public\Human_Duelist.h">
<Filter>02.GameObjects\NPC\Hostile\Human_Duelist</Filter>
</ClInclude>
<ClInclude Include="..\Public\State_CutScene.h">
<Filter>04.Mechanic\State\State_Combat\State_CutScene</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Client.ico">
@@ -1781,7 +1784,7 @@
</Filter>
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush">
<UniqueIdentifier>{eb8e52f5-0283-4acf-8fbb-0e734b7580e9}</UniqueIdentifier>
</Filter>
</Filter>
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_Booster_Slot">
<UniqueIdentifier>{9c357e12-18b3-461e-b74c-76f85280796f}</UniqueIdentifier>
</Filter>
@@ -1797,6 +1800,9 @@
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash">
<UniqueIdentifier>{e1fcb75d-6e7a-4adb-9835-6913ac6f44b6}</UniqueIdentifier>
</Filter>
<Filter Include="04.Mechanic\State\State_Combat\State_CutScene">
<UniqueIdentifier>{b50fed80-37dd-4adb-afd4-ba153cef8a92}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Client.cpp">
@@ -2616,6 +2622,9 @@
<ClCompile Include="..\Private\Ranrok_Swipe.cpp">
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe</Filter>
</ClCompile>
<ClCompile Include="..\Private\State_CutScene.cpp">
<Filter>04.Mechanic\State\State_Combat\State_CutScene</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\Private\Goblin_States.cpp">
@@ -405,48 +405,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:
@@ -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 나
@@ -810,8 +810,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
isLoad_NPC = false;
#endif //
#ifdef 기무리
isLoad_NPC = false;
isLoad_RandomNPC = false;
isLoad_NPC = true;
isLoad_RandomNPC = true;
#endif //
#ifdef 나
isLoad_RandomNPC = true;
+2 -2
View File
@@ -413,7 +413,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 나
@@ -2204,7 +2204,7 @@ HRESULT CLoader::Loading_For_GamePlay()
#pragma region ACTOR
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
return E_FAIL;
}
if (true == isLoad_NPC) {
@@ -1042,6 +1042,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();
}
+108 -108
View File
@@ -141,8 +141,8 @@ HRESULT CPlayerRobe::Update_LegsPosition()
}
#endif // _DEBUG
}
m_pLower0Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.2f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower0BoundMatrix) * WorldMatrix, false);
m_pLower1Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.7f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower1BoundMatrix) * WorldMatrix, false);
//m_pLower0Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.2f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower0BoundMatrix) * WorldMatrix, false);
//m_pLower1Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.7f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower1BoundMatrix) * WorldMatrix, false);
return S_OK;
}
@@ -223,120 +223,120 @@ HRESULT CPlayerRobe::Update_RobeJoints()
{
for (_uint i = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START); i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) {
m_JointDescriptions[i].InitFromJoint(*m_pDynamicJoints[i]);
switch (PLAYER_JOINT_ORDER(i))
{
/* From Origin */
{
case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START:
case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_START:
case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_START:
case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_START:
case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_START:
m_JointDescriptions[i].iMotionTwist = 1;
m_JointDescriptions[i].iMotionSwing1 = 1;
m_JointDescriptions[i].iMotionSwing2 = 1;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 0.f;
m_JointDescriptions[i].fSwingDeg = 40.f;
break;
case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_END:
case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_END:
case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_END:
case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_END:
case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_END:
m_JointDescriptions[i].iMotionTwist = 1;
m_JointDescriptions[i].iMotionSwing1 = 1;
m_JointDescriptions[i].iMotionSwing2 = 1;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 0.f;
m_JointDescriptions[i].fSwingDeg = 40.f;
break;
}
/* From_Middle */
{
case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_START:
case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_START:
case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_START:
case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_START:
case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_START:
m_JointDescriptions[i].iMotionTwist = 0;
m_JointDescriptions[i].iMotionSwing1 = 0;
m_JointDescriptions[i].iMotionSwing2 = 0;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 0.f;
m_JointDescriptions[i].fSwingDeg = 10.f;
break;
//switch (PLAYER_JOINT_ORDER(i))
//{
// /* From Origin */
// {
// case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START:
// case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_START:
// case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_START:
// case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_START:
// case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_START:
// m_JointDescriptions[i].iMotionTwist = 1;
// m_JointDescriptions[i].iMotionSwing1 = 1;
// m_JointDescriptions[i].iMotionSwing2 = 1;
// m_JointDescriptions[i].fLinearLimit = 0.f;
// m_JointDescriptions[i].fTwistAbsDeg = 0.f;
// m_JointDescriptions[i].fSwingDeg = 40.f;
// break;
// case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_END:
// case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_END:
// case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_END:
// case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_END:
// case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_END:
// m_JointDescriptions[i].iMotionTwist = 1;
// m_JointDescriptions[i].iMotionSwing1 = 1;
// m_JointDescriptions[i].iMotionSwing2 = 1;
// m_JointDescriptions[i].fLinearLimit = 0.f;
// m_JointDescriptions[i].fTwistAbsDeg = 0.f;
// m_JointDescriptions[i].fSwingDeg = 40.f;
// break;
// }
// /* From_Middle */
// {
// case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_START:
// case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_START:
// case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_START:
// case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_START:
// case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_START:
// m_JointDescriptions[i].iMotionTwist = 0;
// m_JointDescriptions[i].iMotionSwing1 = 0;
// m_JointDescriptions[i].iMotionSwing2 = 0;
// m_JointDescriptions[i].fLinearLimit = 0.f;
// m_JointDescriptions[i].fTwistAbsDeg = 0.f;
// m_JointDescriptions[i].fSwingDeg = 10.f;
// break;
case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_END:
case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_END:
case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_END:
case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_END:
case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_END:
m_JointDescriptions[i].iMotionTwist = 1;
m_JointDescriptions[i].iMotionSwing1 = 1;
m_JointDescriptions[i].iMotionSwing2 = 1;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fSwingDeg = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 0.f;
// case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_END:
// case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_END:
// case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_END:
// case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_END:
// case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_END:
// m_JointDescriptions[i].iMotionTwist = 1;
// m_JointDescriptions[i].iMotionSwing1 = 1;
// m_JointDescriptions[i].iMotionSwing2 = 1;
// m_JointDescriptions[i].fLinearLimit = 0.f;
// m_JointDescriptions[i].fSwingDeg = 0.f;
// m_JointDescriptions[i].fTwistAbsDeg = 0.f;
m_JointDescriptions[i].bEnableSlerpDrive = true;
m_JointDescriptions[i].fLinearStiffness = 10.f;
m_JointDescriptions[i].fSlerpDamping = 3.f;
m_JointDescriptions[i].fSlerpForceLimit = 40.f;
m_JointDescriptions[i].bSlerpAccel = true;
break;
}
/* From_Lower */
{
case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_START:
case PLAYER_JOINT_ORDER::RSIDE_TO_R_START:
m_JointDescriptions[i].iMotionTwist = 1;
m_JointDescriptions[i].iMotionSwing1 = 1;
m_JointDescriptions[i].iMotionSwing2 = 1;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 15.f;
m_JointDescriptions[i].fSwingDeg = 15.f;
break;
// m_JointDescriptions[i].bEnableSlerpDrive = true;
// m_JointDescriptions[i].fLinearStiffness = 10.f;
// m_JointDescriptions[i].fSlerpDamping = 3.f;
// m_JointDescriptions[i].fSlerpForceLimit = 40.f;
// m_JointDescriptions[i].bSlerpAccel = true;
// break;
// }
// /* From_Lower */
// {
// case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_START:
// case PLAYER_JOINT_ORDER::RSIDE_TO_R_START:
// m_JointDescriptions[i].iMotionTwist = 1;
// m_JointDescriptions[i].iMotionSwing1 = 1;
// m_JointDescriptions[i].iMotionSwing2 = 1;
// m_JointDescriptions[i].fLinearLimit = 0.f;
// m_JointDescriptions[i].fTwistAbsDeg = 15.f;
// m_JointDescriptions[i].fSwingDeg = 15.f;
// break;
case PLAYER_JOINT_ORDER::RSIDE_TO_R_END:
case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_END:
break;
// case PLAYER_JOINT_ORDER::RSIDE_TO_R_END:
// case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_END:
// break;
case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_START:
case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_START:
m_JointDescriptions[i].iMotionTwist = 1;
m_JointDescriptions[i].iMotionSwing1 = 1;
m_JointDescriptions[i].iMotionSwing2 = 1;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 15.f;
m_JointDescriptions[i].fSwingDeg = 15.f;
break;
// case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_START:
// case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_START:
// m_JointDescriptions[i].iMotionTwist = 1;
// m_JointDescriptions[i].iMotionSwing1 = 1;
// m_JointDescriptions[i].iMotionSwing2 = 1;
// m_JointDescriptions[i].fLinearLimit = 0.f;
// m_JointDescriptions[i].fTwistAbsDeg = 15.f;
// m_JointDescriptions[i].fSwingDeg = 15.f;
// break;
case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_END:
case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_END:
break;
// case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_END:
// case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_END:
// break;
case PLAYER_JOINT_ORDER::LSIDE_TO_L_START:
case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START:
m_JointDescriptions[i].iMotionTwist = 1;
m_JointDescriptions[i].iMotionSwing1 = 1;
m_JointDescriptions[i].iMotionSwing2 = 1;
m_JointDescriptions[i].fLinearLimit = 0.f;
m_JointDescriptions[i].fTwistAbsDeg = 15.f;
m_JointDescriptions[i].fSwingDeg = 15.f;
break;
// case PLAYER_JOINT_ORDER::LSIDE_TO_L_START:
// case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START:
// m_JointDescriptions[i].iMotionTwist = 1;
// m_JointDescriptions[i].iMotionSwing1 = 1;
// m_JointDescriptions[i].iMotionSwing2 = 1;
// m_JointDescriptions[i].fLinearLimit = 0.f;
// m_JointDescriptions[i].fTwistAbsDeg = 15.f;
// m_JointDescriptions[i].fSwingDeg = 15.f;
// break;
case PLAYER_JOINT_ORDER::LSIDE_TO_L_END:
case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_END:
break;
}
default:
break;
}
// case PLAYER_JOINT_ORDER::LSIDE_TO_L_END:
// case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_END:
// break;
// }
//default:
// break;
//}
//m_JointDescriptions[i].iMotionTwist = 0;
//m_JointDescriptions[i].iMotionSwing1 = 0;
//m_JointDescriptions[i].iMotionSwing2 = 0;
m_JointDescriptions[i].iMotionTwist = 0;
m_JointDescriptions[i].iMotionSwing1 = 0;
m_JointDescriptions[i].iMotionSwing2 = 0;
m_JointDescriptions[i].ApplyToJoint(*m_pDynamicJoints[i]);
}
return S_OK;
@@ -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)
)
{
@@ -237,6 +239,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();
}
@@ -350,6 +355,38 @@ void CPlayer::Behavior_IdleExit()
m_pModelCom->IsSkip(false);
}
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 = {};
@@ -2827,6 +2864,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;
@@ -2843,7 +2888,7 @@ void CPlayer::Add_FSM()
}
}
}
};
};
Desc.funcLateUpdate = nullptr;
m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc));
@@ -2866,7 +2911,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;
@@ -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<CModel>();
m_pFSM = m_pOwner->Get_Component<CFSM>();
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()
{
}
+10 -1
View File
@@ -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();
}
+4
View File
@@ -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();
@@ -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
@@ -165,4 +165,7 @@
<Anim state="SPELL_LEARNING_SUCCESS" index="1292" loop="false"/>
<Anim state="SPELL_LEARNING_WANDWAVE" index="1293" loop="false"/>
<!-- CUT SCENE -->
<Anim state="CUTSCENE_TROLLINTRO" index="1294" loop="false"/>
</Animations>
+3 -1
View File
@@ -1,4 +1,5 @@
#include "pch.h"
#pragma region HEADER
#include "pch.h"
#include "Loader.h"
#include "GameInstance.h"
@@ -251,6 +252,7 @@
#include "Dummy_Globe.h"
#pragma endregion
#pragma endregion
CLoader::CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -120,6 +120,27 @@ HRESULT CLoader::Loading_For_ObjectViewer()
TEXT("Prototype_Component_ConjuredDragon_Model")
));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_trsoll_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_Anim.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_trsoll_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
// TEXT("Prototype_Component_ConjuredDragon_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
// TEXT("Prototype_Component_Professor_EleazarFig_Model")
//));
#pragma endregion
#pragma region ITEM
@@ -190,6 +211,11 @@ HRESULT CLoader::Loading_For_ObjectViewer()
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")
//));
//futures.emplace_back(Deferred_ModelLoad(
@@ -320,24 +346,70 @@ HRESULT CLoader::Loading_For_ObjectViewer()
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx", XMMatrixIdentity(),
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx", XMMatrixIdentity(),
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx", XMMatrixIdentity(),
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Student_Cmbt_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx", 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")
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
//futures.emplace_back(Deferred_ModelLoad(
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx", XMMatrixIdentity(),
// TEXT("Prototype_Component_Playable_Model")
//));
futures.emplace_back(Deferred_ModelLoad(
MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixIdentity(),
TEXT("Prototype_Component_Playable_Model")
));
#pragma endregion
for (auto& job : futures) {
-1
View File
@@ -306,7 +306,6 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
XMStoreFloat3(&pVertices[i].vBinormal,
XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix)));
pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV;
#ifdef DEBUG
memcpy(&m_VertexTexcoords[i], &pVertices[i].vTexcoord, sizeof(_float2));
+4 -1
View File
@@ -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 },
@@ -502,6 +502,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 },
+1
View File
@@ -56,6 +56,7 @@ enum ESTATE : _u64Flag
SLASH = 1ULL << 49,
DASH = 1ULL << 50,
FEAR = 1ULL << 51,
CUTSCENE = 1ULL << 52,
END
};
NS_END
+1
View File
@@ -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,
/// ////////////////////////////