From 8a0d571ee626f511e995117b2fa6ab5d634b2bfc Mon Sep 17 00:00:00 2001 From: hyunbin14 Date: Tue, 9 Dec 2025 15:25:07 +0900 Subject: [PATCH] =?UTF-8?q?[Fix]=20=ED=94=8C=EB=A0=88=EC=9D=B4=EC=96=B4=20?= =?UTF-8?q?=EA=B5=AC=EB=A5=B4=EA=B8=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Client/Default/Client.vcxproj.filters | 20 +++--- .../Client/Private/Goblin_Mage.cpp | 2 +- .../Client/Private/Goblin_Mage_States.cpp | 1 + .../Client/Private/Goblin_Spector.cpp | 39 ------------ .../Client/Private/Goblin_States.cpp | 9 ++- .../Client/Private/Level_GamePlay.cpp | 6 +- Jusin154_Team3D/Client/Private/Loader.cpp | 6 +- .../Client/Private/Player_States.cpp | 63 ++++++++++++------- Jusin154_Team3D/Client/Private/Troll_Rock.cpp | 2 +- .../Data/Map/E_INTER_TeaShopChair.xml | 2 +- .../Object/Troll_Rock/VFX_SM_Rock_01.bin | 3 + Jusin154_Team3D/Editor/Private/Loader.cpp | 6 +- 12 files changed, 74 insertions(+), 85 deletions(-) create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index df8efd929..ef2df21d6 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -412,9 +412,6 @@ 02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior - - 02.GameObjects\Item\Goblin_BattleAxe - 02.GameObjects\PhysX\CallBack\Behavior\Player @@ -445,6 +442,9 @@ 02.GameObjects\Environment\03.MapElement\Lake + + 02.GameObjects\Item\Goblin_Axe + @@ -953,8 +953,11 @@ {a357d495-f74d-4aec-919e-0f6bac3e0e7b} + + {e666a8b4-c92e-48ee-b63b-40d852b27b06} + - + 99.Define\00.DEFAULT @@ -1366,9 +1369,6 @@ 02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior - - 02.GameObjects\Item\Goblin_BattleAxe - 02.GameObjects\PhysX\CallBack\Behavior\Player @@ -1399,11 +1399,13 @@ 02.GameObjects\Environment\03.MapElement\Lake + + 02.GameObjects\Item\Goblin_Axe + 99.Define\00.DEFAULT - - \ No newline at end of file + \ No newline at end of file diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp index c7d1b8020..622d24cff 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp @@ -64,7 +64,7 @@ HRESULT CGoblin_Mage::Initialize(void* pArg) m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); SAFE_ADDREF(m_pEffectPool); - m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Random_Float(-20.f, 20.f), 0.f, m_pGameInstance->Random_Float(-20.f, 20.f), 1.f)); + m_pCharacter_Controller->Set_Position(XMVectorSet(-50.f, 5.f, -10.f, 1.f)); return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp index 6379d113e..0c3002a0c 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp @@ -211,6 +211,7 @@ void CGoblin_Mage::Behavior_BlinkEnter() _float randDist = m_pGameInstance->Real_Random_Float(-5.f, -3.f); _vector vFinalPos = vPos + offsetDir * randDist; + vFinalPos = XMVectorSetY(vFinalPos, XMVectorGetY(vPos) + 1.f); m_pCharacter_Controller->Set_Position(vFinalPos); } , 0.99f); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp b/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp index c30db5c0c..13f3f7b8e 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp @@ -176,45 +176,6 @@ HRESULT CGoblin_Spector::Ready_Parts() return E_FAIL; } - -#pragma region EFFECT - /* EFFECT */ - - CPartObject::PARTOBJECT_DESC PartsDesc{}; - - PartsDesc.pParentTransform = m_pTransformCom; - - - - if (FAILED(Add_PartObject("Goblin_Particle", g_iStaticLevel, &m_pGoblin_Particle, &PartsDesc))) - { - return E_FAIL; - } - - m_pGoblin_Particle->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle", static_cast(NEXT_LEVEL)); - m_pGoblin_Particle->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder")); - - - - if (FAILED(Add_PartObject("Goblin_Particle2", g_iStaticLevel, &m_pGoblin_Particle2, &PartsDesc))) - { - return E_FAIL; - } - - m_pGoblin_Particle2->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2", static_cast(NEXT_LEVEL)); - m_pGoblin_Particle2->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder")); - - - if (FAILED(Add_PartObject("Goblin_Smoke", g_iStaticLevel, &m_pSmoke, &PartsDesc))) - { - return E_FAIL; - } - - m_pSmoke->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke", static_cast(NEXT_LEVEL)); - m_pSmoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("Spine2")); - - -#pragma endregion return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp index 65162b49c..98618c6eb 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_States.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp @@ -4,6 +4,7 @@ #include "GameInstance.h" #include "Player.h" #include "Goblin_Dagger.h" +#include "EffectParts.h" #pragma region STATE #include "State_Idle.h" @@ -102,14 +103,14 @@ HRESULT CGoblin::Behavior_MoveExitCheck(_float fTimeDelta) } m_fMoveTime += fTimeDelta; - if (m_fMoveTime >= 2.5f) + if (m_fMoveTime >= 2.f) { m_bFirstMove = false; m_fMoveTime = 0.f; } } - if (m_fTargetDistance <= 15.f && m_fTargetDistance >= 6.f && m_fTargetDistance !=0.f) + if (m_fTargetDistance <= 15.f && m_fTargetDistance >= 3.f && m_fTargetDistance !=0.f) m_pFSM->Change_State(FSMSTATE::COMBAT); return E_FAIL; @@ -283,6 +284,7 @@ void CGoblin::Behavior_BlinkEnter() _float randDist = m_pGameInstance->Real_Random_Float(5.f, 5.5f); _vector vFinalPos = vPlayerPos + offsetDir * randDist; + vFinalPos = XMVectorSetY(vFinalPos, XMVectorGetY(vPlayerPos) + 1.f); m_pCharacter_Controller->Set_Position(vFinalPos); } , 0.99f); @@ -479,6 +481,9 @@ void CGoblin::Behavior_DeadEnter() } pairAnimInfo = m_Animation[iState + bStrongerKnockDown]; + Get_PartObject("Goblin_Particle")->Set_Visible(false); + Get_PartObject("Goblin_Particle2")->Set_Visible(false); + Get_PartObject("Goblin_Smoke")->Set_Visible(false); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index a6752c22b..ecd62ef14 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -246,8 +246,8 @@ HRESULT CLevel_GamePlay::Ready_Background() #ifdef gimch isReady_Background = false; #endif // gimch -#ifdef bin - isReady_Background = false; +#ifdef Bin + isReady_Background = true; #endif // #ifdef 진우 isReady_Background = false; @@ -453,7 +453,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag) HRESULT CLevel_GamePlay::Ready_Layer_Monster() { - for (_uint i = 0; i < 5; ++i) + for (_uint i = 0; i <1; ++i) { if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) { return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index c7104d98a..631873f45 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -290,8 +290,8 @@ HRESULT CLoader::Loading_For_GamePlay() #ifdef gimch isLoad_Background = false; #endif // gimch -#ifdef bin - isLoad_Background = false; +#ifdef Bin + isLoad_Background = true; #endif // #ifdef 진우 isLoad_Background = false; @@ -1428,7 +1428,7 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/Troll_Rock_Big.bin", XMMatrixScaling(0.00004f, 0.00004f, 0.00004f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Dagger_Model"), diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 77f672eed..ff2b474cf 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -323,7 +323,7 @@ void CPlayer::Behavior_MoveEnter() m_bSprintToggle = false; m_bWalkToggle = false; pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; - m_bRatio = true; + //m_bRatio = true; } } else { // While Moving @@ -732,12 +732,13 @@ void CPlayer::Behavior_DodgeEnter() HRESULT CPlayer::Behavior_DodgeExitCheck() { + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); if (m_pModelCom->IsFinishedAnim()) { m_pFSM->Change_State(FSMSTATE::IDLE); return E_FAIL; } - if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Throw")) { + if (SUCCEEDED(InputMove()) && fRatio>=0.32f) { m_pFSM->Change_State(FSMSTATE::MOVE); return E_FAIL; } @@ -907,7 +908,7 @@ void CPlayer::Behavior_LightAttackEnter() Add_Event(pairAnimInfo.first, [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject(), &iIndex); }, - 0.1f); + 0.08f); Add_Event(pairAnimInfo.first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); }, @@ -929,7 +930,7 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck() pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; pairAnimInfo.first = iNext; - if (fRatio >= 0.2f) + if (fRatio >= 0.1f) { m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); @@ -1452,8 +1453,41 @@ void CPlayer::Add_FSM() Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_DodgeExitCheck(); }; Desc.funcExitEvent = [this]() { Behavior_DodgeExit(); }; Desc.funcPriorityUpdate = [this](_float fTimeDelta) { - if (m_pGameInstance->Key_Pressing(DIK_A)) { m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); } - if (m_pGameInstance->Key_Pressing(DIK_D)) { m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); }; + + _vector xmvInputDir = XMVectorZero(); + + _vector xmvCamLook = XMVector4Normalize(XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f)); + _vector xmvCamRight = XMVector4Normalize(XMVectorSet(m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z, 0.f)); + + if (m_pGameInstance->Key_Pressing(DIK_W)) + xmvInputDir += xmvCamLook; + if (m_pGameInstance->Key_Pressing(DIK_S)) + xmvInputDir -= xmvCamLook; + if (m_pGameInstance->Key_Pressing(DIK_A)) + xmvInputDir -= xmvCamRight; + if (m_pGameInstance->Key_Pressing(DIK_D)) + xmvInputDir += xmvCamRight; + + xmvInputDir = XMVector3Normalize(xmvInputDir); + + _float2 vInputDir = { XMVectorGetX(xmvInputDir),XMVectorGetZ(xmvInputDir) }; + + _vector xmvCurLook = XMVector4Normalize( + XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f)); + _float2 vCurLook = { XMVectorGetX(xmvCurLook),XMVectorGetZ(xmvCurLook) }; + + _float vDir = CMyTools::Get_Direction2D(vCurLook, vInputDir); + _float absDir = fabsf(vDir); + + _float cross = vCurLook.x * vInputDir.y - vCurLook.y * vInputDir.x; + + if (SUCCEEDED(InputMove())) + { + if(cross>0) + m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); + else + m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); + } }; Desc.funcLateUpdate = nullptr; m_States.emplace(FSMSTATE::DODGE, CState_Dodge::Create(&Desc)); @@ -1582,23 +1616,6 @@ void CPlayer::Add_FSM() m_pTransformCom->Set_WorldMatrix(finalMat); m_pCharacter_Controller->Set_Position(finalMat.r[3]); - - - - - - - - - - - - - - - - - }; Desc.funcLateUpdate = nullptr; m_States.emplace(FSMSTATE::BROOM_RIDE, CState_Broom_Ride::Create(&Desc)); diff --git a/Jusin154_Team3D/Client/Private/Troll_Rock.cpp b/Jusin154_Team3D/Client/Private/Troll_Rock.cpp index f7d2bc363..dfb5590e2 100644 --- a/Jusin154_Team3D/Client/Private/Troll_Rock.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_Rock.cpp @@ -58,7 +58,7 @@ void CTroll_Rock::Priority_Update(_float fTimeDelta) _matrix world = XMLoadFloat4x4(m_pTransformCom->Get_WorldMatrixPtr()); m_pTransformCom->Set_WorldMatrix(world); - m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::LOOK), fTimeDelta * 20.f); + m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::LOOK), fTimeDelta * 50.f); m_pTransformCom->Go_Straight(fTimeDelta); } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/E_INTER_TeaShopChair.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/E_INTER_TeaShopChair.xml index dfba86b5d..0deac8b7e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/E_INTER_TeaShopChair.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/E_INTER_TeaShopChair.xml @@ -26,7 +26,7 @@ Prototype_GameObject_SM_HM_TeaShop_Chair_B - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin new file mode 100644 index 000000000..868684b40 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be8e335c6f6491b5f37411d4d5b4abb2042c586965afd08ab54628b4ca26c66f +size 18969 diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 3fe43dad3..b8c0eaaa2 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -1342,7 +1342,7 @@ HRESULT CLoader::Loading_For_Effect() } if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.fbx", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"), @@ -2030,8 +2030,8 @@ HRESULT CLoader::Loading_For_ObjectViewer() m_strMessage = TEXT("Model Loading.."); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SK_WPN_GOB_SmallSword_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_SmallSword.fbx", XMMatrixIdentity())))) { + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SM_Rock_01_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\VFX\\Meshes\\Static\\VFX_SM_Rock_01.fbx", XMMatrixIdentity())))) { return E_FAIL; }