diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index a055c4401..45d6bedff 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -164,6 +164,7 @@ call Update_Resources.bat + @@ -333,6 +334,9 @@ call Update_Resources.bat + + + @@ -469,6 +473,7 @@ call Update_Resources.bat + @@ -644,6 +649,9 @@ call Update_Resources.bat + + + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 241c53048..991d2df73 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -925,6 +925,19 @@ 02.GameObjects\Environment\Prop\SkyBox\TriggerBox + + + 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + + 02.GameObjects\Effect\MonsterEffect\Troll_Shout + + + 02.GameObjects\Effect\MonsterEffect\Troll_Rush + + + 02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit + 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit @@ -934,6 +947,9 @@ 02.GameObjects\NPC\Ally\Elf + + 02.GameObjects\Environment\03.MapElement\Cave + @@ -1928,9 +1944,24 @@ {0e6d6920-c33c-4202-a2a5-3c883e1d4597} + + {a4b6f0be-8841-4748-8947-e497d755c2d9} + + + {34b736fb-456e-46e3-8038-49cff23b2f95} + + + {c276c050-7000-441e-bb53-30ec3c20c6f5} + {9263815e-9651-4ba2-813f-c2a7f207522d} + + {44a8eee1-6b7f-4c9a-bf92-21f6b90e84c3} + + + {5599bbbd-12f7-4b40-8e3d-24f869cce464} + @@ -2798,6 +2829,9 @@ 02.GameObjects\Effect\Effects\Stupefy\StupefySide + + 02.GameObjects\Environment\03.MapElement\Cave + @@ -2815,6 +2849,19 @@ 02.GameObjects\Environment\Prop\SkyBox\TriggerBox + + + 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + + 02.GameObjects\Effect\MonsterEffect\Troll_Rush + + + 02.GameObjects\Effect\MonsterEffect\Troll_Shout + + + 02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit + 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D diff --git a/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp index b973b2653..846adfb5c 100644 --- a/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp +++ b/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp @@ -57,6 +57,8 @@ void CCallBack_Troll_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit) if (pOwner->Get_AnimInfo(STATEANIM::RUSH_LOOP).first == iAnimIndex) { CFSM* pFSM = pOwner->Get_Component(); pFSM->Change_State(FSMSTATE::STUN); + + /**/ } } if (vWorldNormal.y > 0) { diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp index d9ab785d2..57ced80fd 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp @@ -51,9 +51,11 @@ void CCamera_Cinematic::Late_Update(_float fTimeDelta) } } HRESULT CCamera_Cinematic::Render() { +#ifdef _DEBUG if (FAILED(Bind_ShaderResources())) { return E_FAIL; } + RENDER eType = m_pGameInstance->Get_CurrentRenderPass(); if (RENDER::NONBLEND == eType) { _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); @@ -74,7 +76,7 @@ HRESULT CCamera_Cinematic::Render() { } } else if (RENDER::NONLIGHT == eType) { -#ifdef _DEBUG + m_Batch->Begin(); _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW); @@ -86,12 +88,15 @@ HRESULT CCamera_Cinematic::Render() { m_pSubShape->Draw(m_pFollowTargetPart->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true); m_Batch->End(); -#endif // _DEBUG + } +#endif // _DEBUG return S_OK; } + + void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo) { if (true == m_bEnable_TransitionLerp) { @@ -240,7 +245,7 @@ HRESULT CCamera_Cinematic::Ready_Components(void* pArg) if (FAILED(__super::Ready_Components(pArg))) { return E_FAIL; } - +#ifdef _DEBUG if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Camera_Model"), reinterpret_cast(&m_pModelCom)))) { return E_FAIL; @@ -251,7 +256,7 @@ HRESULT CCamera_Cinematic::Ready_Components(void* pArg) reinterpret_cast(&m_pShaderCom)))) { return E_FAIL; } - +#endif // _DEBUG return S_OK; } @@ -270,6 +275,7 @@ HRESULT CCamera_Cinematic::Ready_SubPart() HRESULT CCamera_Cinematic::Bind_ShaderResources() { +#ifdef _DEBUG if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { return E_FAIL; } @@ -282,7 +288,9 @@ HRESULT CCamera_Cinematic::Bind_ShaderResources() if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { return E_FAIL; } +#endif // _DEBUG return S_OK; + } void CCamera_Cinematic::Lerp_Translation(_float fTimeDelta) { diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp index cfebe4404..d9650d8d3 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp @@ -146,7 +146,7 @@ void CDialogue_Panel::Change_Map() CLayer* pDuelistLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_DUELIST); if (nullptr != pDuelistLayer) { CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object(); - pDuelist->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1016.f, 1.f)); + pDuelist->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1015.f, 1.f)); pDuelist->Set_Battle(true); } @@ -154,9 +154,10 @@ void CDialogue_Panel::Change_Map() if (nullptr != pLayer) { CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object(); CPlayer* pPlayer = pLayer->Get_Object(); - pPlayer->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1008.f, 1.f)); + _vector vOriginPos = pPlayer->Get_Component()->Get_Position(); + pPlayer->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1010.f, 1.f)); pPlayer->Set_Battle(true); - + pPlayer->Set_OriginPos(vOriginPos); _vector vPos = pPlayer->Get_WorldPostion(); _vector vForward = XMVectorSet(0.f, 0.f, 1.f, 0.f); @@ -180,7 +181,6 @@ void CDialogue_Panel::Change_Map() } } #endif // Bin - } void CDialogue_Panel::Priority_Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 685b059b7..074631315 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -31,6 +31,10 @@ #include "Troll_Rush_Hit.h" #include "Troll_Nomal_Smoke.h" #include "TrollSwing.h" +#include "Troll_Rush.h" +#include "Troll_Shout.h" +#include "Troll_Self_Hit.h" + #include "Goblin_Protego.h" #include "Goblin_Attack.h" #include "Mage_Down_Attack.h" @@ -768,7 +772,36 @@ HRESULT CEffectPool::Ready_MonsterEffect() return pEffect; } ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::TROLL_SHOUT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CTroll_Shout* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + + if (FAILED(Create_Effect(SKILL_TYPE::TROLL_RUSH, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CTroll_Rush* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::TROLL_SELF_HIT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CTroll_Self_Hit* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp index 214eb3e41..dd1139d24 100644 --- a/Jusin154_Team3D/Client/Private/Goblin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin.cpp @@ -393,8 +393,11 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc) if (pEffect_Container != nullptr) { _uint iSkillType = pEffect_Container->Get_SkillType(); + + damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType)); + switch (iSkillType) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): @@ -440,7 +443,6 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc) } } - m_DamageInfo.fDamage = damagePair.first; m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo); if (0 == damagePair.second) { diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp index 2b7f12a56..4b80f2b91 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp @@ -406,7 +406,12 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc) if (pEffect_Container != nullptr) { _uint iSkillType = pEffect_Container->Get_SkillType(); + +#ifndef Bin damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType)); +#endif // !Bin + + switch (iSkillType) { @@ -453,7 +458,7 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc) } } - +#ifndef Bin m_DamageInfo.fDamage = damagePair.first; m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo); if (0 == damagePair.second) { @@ -462,7 +467,7 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc) m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID); return; } - +#endif // !Bin m_pFSM->Change_State(FSMSTATE::HIT); diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index 02da2842c..63f22ab9e 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -68,6 +68,7 @@ HRESULT CHuman_Duelist::Initialize(void* pArg) _vector vRotQ = XMLoadFloat4(&pDesc->vRotQ); m_pCharacter_Controller->Set_Position(vPos); m_pTransformCom->Set_State(STATE::POSITION, vPos); + m_OriginPos = pDesc->vPos; m_pTransformCom->Rotation(vRotQ); } @@ -94,8 +95,7 @@ void CHuman_Duelist::Update(_float fTimeDelta) Play_Event(); - - + Check_BattleLose(); __super::Update(fTimeDelta); #ifdef _DEBUG @@ -110,8 +110,6 @@ void CHuman_Duelist::Update(_float fTimeDelta) for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++) m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta); - - } void CHuman_Duelist::Late_Update(_float fTimeDelta) @@ -516,6 +514,29 @@ HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder) return S_OK; } +void CHuman_Duelist::Check_BattleLose() +{ + if (!m_bBattle) + return; + + _float vPosY = XMVectorGetY(m_pCharacter_Controller->Get_Position()); + + if (m_OriginPos.y > vPosY) + { + if (true == m_pCharacter_Controller->IsOnGround()) + { + 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(); + } + } +} + _matrix CHuman_Duelist::Get_WandPos() { diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp index 9976a98ca..3b46ee80f 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp @@ -35,11 +35,15 @@ void CHuman_Duelist::Behavior_IdleEnter() HRESULT CHuman_Duelist::Behavior_IdleExitCheck(_float fTimeDelta) { - if (m_bBattle) { - m_pFSM->Change_State(FSMSTATE::CUTSCENE); - return E_FAIL; + if (false == m_pFSM->IsEnable_Previous(FSMSTATE::COMBAT)) + { + if (m_bBattle) { + m_pFSM->Change_State(FSMSTATE::CUTSCENE); + return E_FAIL; + } } + if (m_fTargetDistance <= 20.f) { for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++) { @@ -279,11 +283,8 @@ void CHuman_Duelist::Behavior_HitEnter() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); break; case ENUM_CLASS(SKILL_TYPE::STUPEFY): - if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) { - return; - } pairAnimInfo = m_Animation[STATEANIM::DAZED_START]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.3f); Add_Event(pairAnimInfo.first, [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::DAZED_LOOP]; @@ -397,7 +398,7 @@ HRESULT CHuman_Duelist::Behavior_CutSceneExitCheck(_float fTimeDelta) void CHuman_Duelist::Behavior_CutSceneExit() { m_pFSM->Disable_State(FSMSTATE::CUTSCENE); - m_bBattle = false; + //m_bBattle = false; } void CHuman_Duelist::Hit_Levioso(_float fTimeDelta) diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index 43f940805..b9cf7d5aa 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -172,6 +172,10 @@ HRESULT CInfoInstance::Load_EffectParts(const _char* pFileName, const _char* pEf { return m_pMapInfo->Load_EffectParts(pFileName, pEffectrFilePath); } +HRESULT CInfoInstance::Load_ReparoObjects(const _char* pFileName) +{ + return m_pMapInfo->Load_ReparoObjects(pFileName); +} HRESULT CInfoInstance::Load_DADA_INT() { return m_pMapInfo->Load_DADA_INT(); diff --git a/Jusin154_Team3D/Client/Private/Land.cpp b/Jusin154_Team3D/Client/Private/Land.cpp index f37bd626d..e52bf5d0e 100644 --- a/Jusin154_Team3D/Client/Private/Land.cpp +++ b/Jusin154_Team3D/Client/Private/Land.cpp @@ -98,6 +98,13 @@ HRESULT CLand::Initialize(void* pArg) m_fRaduis = 350.f; + LAND_DESC* pDesc = static_cast(pArg); + + string RigidBodyTag = CMyTools::ToString(pDesc->strModelComTag) + "_RigidBody"; + + ReadyForPhysX(RigidBodyTag.c_str()); + ConvertToPhysX(RigidBodyTag.c_str()); + return S_OK; } @@ -166,12 +173,15 @@ HRESULT CLand::Bind_ShaderResources() if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))) { return E_FAIL; } + if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))) { return E_FAIL; } + if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))) { return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_SRV("g_MaskTexture", m_pMaskTextureCom->Get_SRV(0)))) { return E_FAIL; } @@ -182,6 +192,28 @@ HRESULT CLand::Bind_ShaderResources() return S_OK; } +void CLand::ReadyForPhysX(const _char* pName) +{ + _uint iLevel = NEXT_LEVEL; + + if (FAILED(m_pModelCom->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel, pName))) { + assert(false); + } +} + +void CLand::ConvertToPhysX(const _char* pName) +{ + _wstring wstrName = CMyTools::ToWstring(pName); + + CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN); + Desc.pMeshName = wstrName.c_str(); + Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr(); + if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&m_RigidBody, &Desc))) { + assert(false); + } +} + CLand* CLand::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CLand* pInstance = new CLand(pDevice, pContext); @@ -217,6 +249,7 @@ void CLand::Free() SAFE_RELEASE(m_pMaskTextureCom); SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_RigidBody); SAFE_RELEASE(m_pModelCom); for (auto& pInstanceProp : m_InstanceProps) diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 5c0e6c8a6..8d088b211 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -57,7 +57,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) m_isDay = true; #endif // #ifdef 진우 - m_isDay = false; + m_isDay = true; #endif // #ifdef 기무리 m_isDay = true; @@ -86,13 +86,15 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) map<_string, CLand*> Lands = {}; + if (FAILED(Ready_Land(&Lands))) { return E_FAIL; } +#ifndef 진우 if (FAILED(Ready_IntstanceProp(&Lands))) return E_FAIL; - +#endif if (FAILED(Ready_Markers())) { return E_FAIL; } @@ -144,7 +146,6 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) return E_FAIL; } - if (FAILED(m_pInfoInstance->Late_Initialize())) return E_FAIL; @@ -283,6 +284,7 @@ HRESULT CLevel_GamePlay::Ready_Volumetric() 0.f ); } + else { m_pGameInstance->Setting_Volumetirc( @@ -343,6 +345,7 @@ HRESULT CLevel_GamePlay::Ready_Background() isReady_Background = true; isReady_Hogsmeade = true; isReady_Hogwart = false; + m_pInfoInstance->Load_ReparoObjects("Reparo_Data"); #endif // gimch #ifdef Bin isReady_Background = false; @@ -579,6 +582,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Hogwart() { CInfoInstance::GetInstance()->Load_MapObjects("Hogwart_MapContainer_Data", LAYER_HOGWART); CInfoInstance::GetInstance()->Load_MapObjects("HogwartMap1221", LAYER_HOGWART); + CInfoInstance::GetInstance()->Load_MapObjects("CaveData", LAYER_HOGWART); CUnified::UNIFIED_DESC Desc = {}; @@ -1000,11 +1004,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Item(const _wstring& strLayerTag) HRESULT CLevel_GamePlay::Ready_Layer_ReparoObject(const _wstring& strLayerTag) { - for (_uint i = 0; i < 1; ++i) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) { - return E_FAIL; - } - } + //for (_uint i = 0; i < 1; ++i) { + // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) { + // return E_FAIL; + // } + //} return S_OK; } @@ -1117,11 +1121,12 @@ HRESULT CLevel_GamePlay::Ready_Layer_Duelist() { CHuman_Duelist::DUELISTDESC DuelistDesc = {}; - DuelistDesc.vPos = _float4(1007.f, 6.f, 1016.f, 1.f); + DuelistDesc.vPos = _float4(1007.23f, 1.775f, 1015.f, 1.f); DuelistDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_DUELIST, &DuelistDesc))) { return E_FAIL; } + return S_OK; } @@ -1137,8 +1142,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc() isRandomPosition = false; #endif // gimch #ifdef 진우 - isLoad_RandomNPC = true; - isLoad_NPC = true; + isLoad_RandomNPC = false; + isLoad_NPC = false; #endif // #ifdef 기무리 isLoad_NPC = false; @@ -1186,7 +1191,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc() { if(isRandomPosition) { - for (_uint i = 0; i < 10; i++) + for (_uint i = 0; i < 12; i++) { CRandomNpc::NPCDESC NPCDesc{}; _float X = m_pGameInstance->Real_Random_Float(22.f, 29.f); diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index c4a1c3b40..9013f8352 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -212,7 +212,9 @@ #include "TrollSwing.h" #include "Troll_Nomal_Smoke.h" #include "Troll_Rush_Hit.h" - +#include "Troll_Rush.h" +#include "Troll_Shout.h" +#include "Troll_Self_Hit.h" #include "WandEnd.h" #include "Goblin_Protego.h" @@ -272,6 +274,7 @@ #include "WorldDecal.h" #include "PointLight.h" #include "MapElement_Balloon.h" +#include "MapElement_Cave.h" #pragma endregion @@ -1099,6 +1102,10 @@ HRESULT CLoader::Loading_For_GamePlay() "../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_DADATower/StaticMesh/EXT", ".bin", false )); + jobMapModels.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes", + ".bin", false + )); } if (true == isLoad_DataClassroom) @@ -1314,10 +1321,6 @@ HRESULT CLoader::Loading_For_GamePlay() MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity(), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model") )); - jobCharacterModels.emplace_back(Deferred_ModelLoad( - MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity(), - TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model") - )); jobCharacterModels.emplace_back(Deferred_ModelLoad( MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity(), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model") @@ -1386,123 +1389,141 @@ HRESULT CLoader::Loading_For_GamePlay() /* LAND_MODEL */ { + CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; // + { + Desc.eType = ACTOR::TRIANGLEMESH; + Desc.ePxRigidBodyFlags = {}; + Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; + Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT; + Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f); + Desc.fContactOffset = 0.001f; + } + /* For.Prototype_Component_South_Hogwart_Land_LOD1 */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_South_Hogwart_Land_LOD1_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_North_Hogwart_Land_LOD1 */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_North_Hogwart_Land_LOD1_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_North_Hogwart2_Land_LOD1 */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_West_Hogwart_Land_LOD1 */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_West_Hogwart_Land_LOD1_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_East_Hogwart_Land_LOD1 */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1_RigidBody"), pRigid))) { + return E_FAIL; + } - // ----------------- /* For.Prototype_Component_Land_HN_BA */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BA_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BD */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BD_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BE */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BE_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BF */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BF_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BG */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BG_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BH */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BH_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BI */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BI_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BJ */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BJ_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_TU_BB */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; - - - ///* For.Prototype_Component_Land_HN_BA */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BD */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BG */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BH */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - - ///* For.Prototype_Component_Land_HN_BE */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BF */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BI */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BJ */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_TU_BB */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_TU_BB_RigidBody"), pRigid))) { + return E_FAIL; + } } #pragma endregion #pragma region UI @@ -2628,6 +2649,19 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Rush_Hit::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Rush::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Shout::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Self_Hit::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Protego::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -2845,6 +2879,16 @@ HRESULT CLoader::Loading_For_GamePlay() }); + Asset_FileLoad("../Bin/Resources/Models/Effect/Rock", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) { + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName, + CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0)))) + return E_FAIL; + + return S_OK; + + }); + m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다."); #pragma region UI @@ -3690,6 +3734,10 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapElement_Lake::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_Cave */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapElement_Cave::Create(m_pDevice, m_pContext)))) + return E_FAIL; + /* For.Prototype_GameObject_Land */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLand::Create(m_pDevice, m_pContext)))) { return E_FAIL; diff --git a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp new file mode 100644 index 000000000..16882de34 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp @@ -0,0 +1,267 @@ +#include "pch.h" +#include "MapElement_Cave.h" +#include "GameInstance.h" + +#include "Layer.h" +#include "TriggerBox.h" + +CMapElement_Cave::CMapElement_Cave(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CMapElement{ pDevice, pContext } +{ +} + +CMapElement_Cave::CMapElement_Cave(const CMapElement_Cave& rhs) + : CMapElement(rhs) +{ +} + +HRESULT CMapElement_Cave::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CMapElement_Cave::Initialize(void* pArg) +{ + MAPELEMENT_DESC* pDesc = static_cast(pArg); + + m_bVisible = pDesc->bVisible; + m_iMaxLodLevel = pDesc->iMaxLodLevel; + + for (_uint i = 0; i < m_iMaxLodLevel + 1; i++) + { + m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]); + } + + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + m_pTransformCom->Set_Scale(pDesc->vScale); + m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z)); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f)); + + _float fMaxScale = max(max(pDesc->vScale.x, pDesc->vScale.y), pDesc->vScale.z); + + m_fRadius = m_pModelComs[0]->Get_Radius() * fMaxScale; + + _float3 vOffset = m_pModelComs[0]->Get_RadiusOffset(); + XMStoreFloat3(&m_vWorldCenterPosition, XMVector3TransformCoord(XMLoadFloat3(&vOffset), m_pTransformCom->Get_XMWorldMatrix())); + + ReadyForPhysX(); + ConvertToPhysX(); + + if (FAILED(Ready_TriggerBox())) + return E_FAIL; + + return S_OK; +} + +void CMapElement_Cave::Priority_Update(_float fTimeDelta) +{ +} + +void CMapElement_Cave::Update(_float fTimeDelta) +{ +} + +void CMapElement_Cave::Late_Update(_float fTimeDelta) +{ + if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldCenterPosition), 1.f), m_fRadius)) { + if (m_bVisible) + { + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +#ifdef _DEBUG + m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, m_pTriggerBox); +#endif // _DEBUG + + } + + + + if (SUCCEEDED(m_pTriggerBox->TryScanArea(fTimeDelta))) + { + Enter_Cave(); + } + } +} + +HRESULT CMapElement_Cave::Render() +{ + if (FAILED(Bind_ShaderResources())) + return E_FAIL; + + _uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +HRESULT CMapElement_Cave::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i) + { + CModel* pModel = { nullptr }; + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i], + reinterpret_cast(&pModel)))) + return E_FAIL; + + m_pModelComs.push_back(pModel); + } + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CMapElement_Cave::Bind_ShaderResources() +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CMapElement_Cave::Ready_TriggerBox() +{ + CTriggerBox::TRIGGERBOX_DESC Desc = {}; + + XMStoreFloat4(&Desc.vPosition_Radius, m_pTransformCom->Get_State(STATE::POSITION)); + Desc.vPosition_Radius.w = 10.f; + + m_pTriggerBox = CTriggerBox::Create(m_pDevice, m_pContext, &Desc); + +#ifdef _DEBUG + +#endif // _DEBUG + + return S_OK; +} + +void CMapElement_Cave::ReadyForPhysX() +{ + if (true == m_bConverted) { + return; + } + m_bConverted = true; + _uint iLevel = NEXT_LEVEL; + + CModel* pModel = m_pModelComs[0]; + + if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) { + assert(false); + } +} + +void CMapElement_Cave::ConvertToPhysX() +{ + if (true == m_bReadyToCreatePhysX) { + return; + } + m_bReadyToCreatePhysX = true; + + CModel* pModel = m_pModelComs[0]; + + _uint iNumMeshes = pModel->Get_NumMeshes(); + + for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex) + { + _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex); + CRigidBody_Static* pRigidBody = { nullptr }; + CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN); + Desc.pMeshName = wstrName.c_str(); + Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr(); + if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) { + assert(false); + } + m_RigidBodies.push_back(pRigidBody); + } +} + +void CMapElement_Cave::Enter_Cave() +{ + m_pGameInstance->Set_LevelToChange(); +} + +CMapElement_Cave* CMapElement_Cave::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CMapElement_Cave* pInstance = new CMapElement_Cave(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CMapElement_Cave"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CMapElement_Cave::Clone(void* pArg, CGameObject* pOwner) +{ + CMapElement_Cave* pInstance = new CMapElement_Cave(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CMapElement_Cave"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CMapElement_Cave::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pShaderCom); + + for (_uint i = 0; i < m_RigidBodies.size(); ++i) { + SAFE_RELEASE(m_RigidBodies[i]); + } m_RigidBodies.clear(); + + for (auto& pModel : m_pModelComs) + SAFE_RELEASE(pModel); +} + +#ifdef _DEBUG +void CMapElement_Cave::Describe_Entity() +{ + +} +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp index 2d337ae85..dd61188d2 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp @@ -30,7 +30,6 @@ HRESULT CMapElement_Static::Initialize(void* pArg) for (_uint i = 0; i < m_iMaxLodLevel + 1; i++) { m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]); - //m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]); } if (FAILED(__super::Initialize(pArg))) diff --git a/Jusin154_Team3D/Client/Private/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp index 1aca396d4..6811e12f8 100644 --- a/Jusin154_Team3D/Client/Private/MapInfo.cpp +++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp @@ -19,6 +19,8 @@ #include "Layer.h" #include "EffectParts.h" #include "RandomNpc.h" +#include "MapElement_Cave.h" +#include "ReparoObject.h" CMapInfo::CMapInfo() { @@ -156,6 +158,10 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa Desc.bVisible = false; m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc); } + else if (MAPOBJECT_TYPE::ELEMENT_CAVE == eType) + { + m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc); + } /*else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType) m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interact"), &Desc);*/ } @@ -830,6 +836,48 @@ HRESULT CMapInfo::Load_EffectParts(const _char* pFileName, const _char* pEffectr return S_OK; } +HRESULT CMapInfo::Load_ReparoObjects(const _char* pFileName) +{ + tinyxml2::XMLDocument xmlDoc; + + string strPath = "../Bin/Resources/Data/Map/Reparo/" + string(pFileName) + ".xml"; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Reparo"); + + if (nullptr == root) + { + MSG_BOX("Failed to Find root"); + return S_OK; + } + + for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) + { + CReparoObject::REPARO_OBJECT_DESC Desc = {}; + + Object->QueryUnsignedAttribute("Type", &Desc.iModelID); + Object->QueryFloatAttribute("Radius", &Desc.fRadius); + + /* Transform */ + auto* Rotation = Object->FirstChildElement("Rotation"); + Rotation->QueryFloatAttribute("x", &Desc.vRotation.x); + Rotation->QueryFloatAttribute("y", &Desc.vRotation.y); + Rotation->QueryFloatAttribute("z", &Desc.vRotation.z); + + auto* Position = Object->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_REPARO, &Desc))) + return E_FAIL; + } + + return S_OK; +} + HRESULT CMapInfo::Load_DADA_INT() { if (FAILED(Load_MapObjects("DATA_INT_Data", LAYER_DADA_INT))) diff --git a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp index 54d52b56e..1621040f8 100644 --- a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp +++ b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp @@ -147,9 +147,15 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters() { // (카메라의 룩)과 (카메라 -> 몬스터 방향 벡터)를 내적해서 가장 큰 크기가 나온 몬스타가 락온 대상 CMonster* pMonster = (*iter); - if (pMonster->isDead()) { - continue; + + CStat*pStat = pMonster->Get_Component(); + + if (pStat != nullptr) { + if (pMonster->Get_Hp().x <= 0) { + continue; + } } + vMonsterPos = pMonster->Get_LockOnPos(); vToMonsterDir = vMonsterPos - vCameraPos; if (40.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) { diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index e4b3106b1..6fdb6e2ed 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -127,19 +127,27 @@ void CNomalJap::Late_Update(_float fTimeDelta) if (false == m_bVisible) { return; } + //if (false == m_bHit) { + // _vector vStartPos = XMLoadFloat4(&m_vStartPos); + // _vector vEndPos = m_pProjectile->Get_WorldPostion(); + + // if (false == m_bHit) { + // _vector vStartPos = XMLoadFloat4(&m_vStartPos); + // _vector vEndPos = XMLoadFloat4(&m_vEndPos); + // if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + // { + // ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); + // OnCollision(this, &CollisionInfo); + // } + // } + //} + if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = m_pProjectile->Get_WorldPostion(); + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); - if (false == m_bHit) { - _vector vStartPos = XMLoadFloat4(&m_vStartPos); - _vector vEndPos = XMLoadFloat4(&m_vEndPos); - if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) - { - ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); - OnCollision(this, &CollisionInfo); - } - } + OnCollision(this, &CollisionInfo); } __super::Late_Update(fTimeDelta); diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index f27061014..04232b52f 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -21,6 +21,7 @@ #include "Effect_Container.h" #include "ThestralCarriage.h" #include "MapElement_Chest.h" +#include "ReparoObject.h" CPlayer::CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CUnit(pDevice, pContext) @@ -395,6 +396,12 @@ void CPlayer::Set_Interaction(_bool bInteraction) m_bCurrentInteraction = bInteraction; } +void CPlayer::ExitBattle() +{ + m_bDuel_ZOnlyMove = false; + m_pCharacter_Controller->Set_Position(XMLoadFloat4(&m_OriginPos)); +} + HRESULT CPlayer::Render_Shadow(SHADOW eType) { if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { @@ -881,6 +888,24 @@ void CPlayer::Find_HiddenObjects() } +void CPlayer::Check_Reparoobejcts() +{ + CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_REPARO); + + if (nullptr == pLayer) + return; + + const list* pReparoObjects = pLayer->Get_Objects(); + + for (auto& pObject : *pReparoObjects) + { + CReparoObject* pReparoObject = dynamic_cast(pObject); + if (nullptr != pReparoObject) + if (pReparoObject->IsRepairable(false)) + return; + } +} + void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta) { _vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f)); diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 97349d05f..675d55d9f 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -1469,8 +1469,9 @@ void CPlayer::Behavior_SpellEnter() 0.01f); } Add_SpellEvent(pairAnimInfo.first, fRatio); - if (m_eSpell != ENUM_CLASS(SKILL_TYPE::LUMOS) && - m_eSpell != ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA)) + if(ENUM_CLASS(SKILL_TYPE::REPARO) == m_eSpell) + Check_Reparoobejcts(); + if (!m_bStartSpellAnim) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, fAnimSpeed); } @@ -1478,8 +1479,7 @@ void CPlayer::Behavior_SpellEnter() fRatio = 0.2f; pairAnimInfo = m_Animation[STATEANIM::SPELL]; Add_SpellEvent(pairAnimInfo.first, fRatio); - if (m_eSpell != ENUM_CLASS(SKILL_TYPE::LUMOS) && - m_eSpell !=ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA)) + if (!m_bStartSpellAnim) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); } @@ -1501,7 +1501,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck() _uint iIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); - if (SUCCEEDED(InputSpell()) && !m_bSpellHit) + if (SUCCEEDED(InputSpell()) && !m_bSpellHit && iIndex != m_Animation[STATEANIM::AVADA_KEDAVRA].first) { _uint iCurr = m_pModelCom->Get_AnimIndex(); _uint iStart = m_Animation[STATEANIM::SPELL].first; @@ -1621,7 +1621,7 @@ void CPlayer::Behavior_SpellExit() Reset_Event(); m_bLookAt = false; m_bSpellHit = false; - + m_bStartSpellAnim = false; } void CPlayer::Behavior_AncientSpellEnter() @@ -2743,7 +2743,7 @@ void CPlayer::Attach_Broom() _matrix BoneNoScale = XMMatrixRotationQuaternion(Rot) * XMMatrixTranslationFromVector(Trans); - m_OffsetPos = { 0.f,0.9f,0.f }; + m_OffsetPos = { 0.f,1.f,0.f }; _matrix Offset = XMMatrixTranslation(m_OffsetPos.x, m_OffsetPos.y, m_OffsetPos.z); @@ -2881,6 +2881,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) switch (m_eSpell) { case ENUM_CLASS(SKILL_TYPE::BOMBARDA): + m_bStartSpellAnim = false; Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); }, /* 임시로 바꿔놓음 */ fRatio); @@ -2892,6 +2893,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) break; case ENUM_CLASS(SKILL_TYPE::DESCENDO): + m_bStartSpellAnim = false; Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, Get_PartObject()); }, fRatio); @@ -2903,6 +2905,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) break; case ENUM_CLASS(SKILL_TYPE::LEVIOSO): + m_bStartSpellAnim = false; Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); }, fRatio); @@ -2914,7 +2917,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) break; case ENUM_CLASS(SKILL_TYPE::ACCIO): - + m_bStartSpellAnim = false; Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO, this); }, fRatio); @@ -2927,6 +2930,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) break; case ENUM_CLASS(SKILL_TYPE::TRANSFORMATION): + m_bStartSpellAnim = false; Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION, this); }, fRatio); @@ -2937,19 +2941,8 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) Info.pText = TEXT("베라베르토!"); m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info); break; - - case ENUM_CLASS(SKILL_TYPE::DIFFINDO): - pairAnimInfo = m_Animation[STATEANIM::DIFFINDO]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); - Info.pText = TEXT("디핀도!"); - m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info); - break; - - case ENUM_CLASS(SKILL_TYPE::DISILLUSIONMENT): - pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_ENTER]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); - break; case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA): + m_bStartSpellAnim = true; m_pInfoInstance->Set_SearchLockOnFlag(false); pairAnimInfo = m_Animation[STATEANIM::AVADA_KEDAVRA]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false,1.f,true); @@ -2971,6 +2964,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) break; case ENUM_CLASS(SKILL_TYPE::REPARO): { + m_bStartSpellAnim = true; pairAnimInfo = m_Animation[STATEANIM::REPARO_START]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); @@ -2988,6 +2982,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) } break; case ENUM_CLASS(SKILL_TYPE::LUMOS): + m_bStartSpellAnim = true; if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first) { if (SUCCEEDED(InputMove())) @@ -3034,6 +3029,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) } break; default: + m_bStartSpellAnim = true; pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL]; Add_Event(AnimIndex, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject()); }, diff --git a/Jusin154_Team3D/Client/Private/RandomNpc.cpp b/Jusin154_Team3D/Client/Private/RandomNpc.cpp index 368e46475..e3d4a14f5 100644 --- a/Jusin154_Team3D/Client/Private/RandomNpc.cpp +++ b/Jusin154_Team3D/Client/Private/RandomNpc.cpp @@ -37,15 +37,20 @@ HRESULT CRandomNpc::Initialize(void* pArg) return E_FAIL; } + Load_AnimXML(("../Bin/Resources/Data/AnimList/RandomNpc.xml")); + _vector vPos = XMLoadFloat4(&pDesc->vPos); m_pTransformCom->Set_State(STATE::POSITION, vPos); m_pCharacter_Controller->Set_Position(vPos); m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotQ.x), XMConvertToRadians(pDesc->vRotQ.y), XMConvertToRadians(pDesc->vRotQ.z)); - m_pModelCom->Set_AnimationIndex(1, true); + _int iRandom = m_pGameInstance->Real_Random_Int(0, 12); + m_pModelCom->Set_AnimationIndex(m_Anims[iRandom], false,1.f,false,1.f,false); m_pCallBack_Behavior->Initialize(m_pCharacter_Controller); m_pCallBack_HitReport->Initialize(m_pCharacter_Controller); m_bNpc = true; + + return S_OK; } @@ -67,8 +72,18 @@ void CRandomNpc::Update(_float fTimeDelta) if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) { return; } + BattleObserve_Anim(); + if (m_pModelCom->IsFinishedAnim()) + { + 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); + } + } + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); __super::Update(fTimeDelta); #ifdef _DEBUG @@ -91,28 +106,6 @@ void CRandomNpc::Update(_float fTimeDelta) SAFE_RELEASE(m_pTarget); m_fTargetDistance = { FLT_MAX }; } - - /*if (m_fTargetDistance <= 5.f && m_bInteract == false) - { - m_pInfoInstance->Event_CallBack(TEXT("NPCDialogue"), m_pNpcStat); - m_bInteract = true; - } - - if (m_bInteract != m_bPreviousInteract) - { - m_bPreviousInteract = m_bInteract; - m_fInteractTime = 0.f; - } - else - { - m_fInteractTime += fTimeDelta; - } - - if (m_fInteractTime >= 5.f) - { - m_bInteract = false; - m_fInteractTime = 0.f; - }*/ } void CRandomNpc::Late_Update(_float fTimeDelta) @@ -390,6 +383,20 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) } m_bBattleObserve_Npc = true; break; + case 10: + m_strModelPrototypeTag = TEXT("Prototype_Component_VictorRookWood_Model"); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("VICTORROCKWOOD"), (CComponent**)&m_pNpcStat))) { + return E_FAIL; + } + m_bBroomRacer = true; + break; + case 11: + m_strModelPrototypeTag = TEXT("Prototype_Component_ChiyoKogawa_Model"); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("CHIYOKOGAWA"), (CComponent**)&m_pNpcStat))) { + return E_FAIL; + } + m_bBroomRacer = true; + break; } /* Com_Model */ @@ -444,15 +451,15 @@ void CRandomNpc::BattleObserve_Anim() _float fRandX = 0.f; if (iRand == 0) { - fRandX = m_pGameInstance->Real_Random_Float(1002.f, 1004.f); + fRandX = m_pGameInstance->Real_Random_Float(1003.f, 1005.f); } else { - fRandX = m_pGameInstance->Real_Random_Float(1010.f, 1012.f); + fRandX = m_pGameInstance->Real_Random_Float(1009.f, 1011.f); } - _float fRandY = m_pGameInstance->Real_Random_Float(1008.f, 1016.f); + _float fRandZ = m_pGameInstance->Real_Random_Float(1008.f, 1016.f); - m_pCharacter_Controller->Set_Position(XMVectorSet(fRandX, 2.f, fRandY, 1.f)); + m_pCharacter_Controller->Set_Position(XMVectorSet(fRandX, 2.f, fRandZ, 1.f)); _vector vPos = Get_WorldPostion(); _vector vForward = XMVectorZero(); @@ -463,6 +470,8 @@ void CRandomNpc::BattleObserve_Anim() vForward = XMVectorSet(-1.f, 0.f, 0.f, 0.f); } + _int iRandIndex = m_pGameInstance->Real_Random_Int(14, 21); + m_pModelCom->Set_AnimationIndex(iRandIndex, false, 1.f, false, 1.f, false); m_pTransformCom->LookAt(vPos + vForward); @@ -474,11 +483,47 @@ void CRandomNpc::BattleObserve_Anim() if (m_pModelCom->IsFinishedAnim()) { _int iRand = m_pGameInstance->Real_Random_Int(14, 21); - m_pModelCom->Set_AnimationIndex(iRand, false,1.f,false,1.f,false); + m_pModelCom->Set_AnimationIndex(iRand, false, 1.f, false, 1.f, false); } } } +void CRandomNpc::Load_AnimXML(const _char* pFilePath) +{ + tinyxml2::XMLDocument doc; + if (doc.LoadFile(pFilePath) != tinyxml2::XML_SUCCESS) + return; + + tinyxml2::XMLElement* pRoot = doc.FirstChildElement("NPCAnimations"); + + const char* pModelType = + (m_bBroomRacer == true) ? "RACING" : "DEFAULT"; + + for (tinyxml2::XMLElement* pNPC = pRoot->FirstChildElement("NPC"); + pNPC; + pNPC = pNPC->NextSiblingElement("NPC")) + { + if (strcmp(pNPC->Attribute("Model"), pModelType) != 0) + continue; + + for (tinyxml2::XMLElement* pAnim = pNPC->FirstChildElement("Anim"); + pAnim; + pAnim = pAnim->NextSiblingElement("Anim")) + { + string animName = pAnim->Attribute("Name"); + + for (tinyxml2::XMLElement* pIndex = pAnim->FirstChildElement("Index"); + pIndex; + pIndex = pIndex->NextSiblingElement("Index")) + { + m_Anims.push_back(pIndex->IntText()); + } + } + break; + } +} + + CRandomNpc* CRandomNpc::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CRandomNpc* pInstance = new CRandomNpc(pDevice, pContext); diff --git a/Jusin154_Team3D/Client/Private/ReparoObject.cpp b/Jusin154_Team3D/Client/Private/ReparoObject.cpp index 4d4282f25..5fc1d0554 100644 --- a/Jusin154_Team3D/Client/Private/ReparoObject.cpp +++ b/Jusin154_Team3D/Client/Private/ReparoObject.cpp @@ -28,16 +28,20 @@ HRESULT CReparoObject::Initialize(void* pArg) return E_FAIL; } - if (FAILED(Ready_Components())) { return E_FAIL; } - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); - - m_pModelCom->Set_AnimationIndex(0); - + REPARO_OBJECT_DESC* pDesc = static_cast(pArg); + m_iModelID = pDesc->iModelID; + m_fRadius = pDesc->fRadius; + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f)); + m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z)); + // 되돌리기 전 Before + m_ePreState = m_eCurState = REPARO_OBJECT_STATE::SLEEP; + m_pModelCom->Set_AnimationIndex(2); + m_pInfoInstance->Deregist_PlayerAlly(this); return S_OK; } @@ -51,20 +55,41 @@ void CReparoObject::Update(_float fTimeDelta) { __super::Update(fTimeDelta); + Change_State(); + + switch (m_eCurState) + { + case Client::CReparoObject::REPARO_OBJECT_STATE::SLEEP: + break; + case Client::CReparoObject::REPARO_OBJECT_STATE::BEFORE: + break; + case Client::CReparoObject::REPARO_OBJECT_STATE::PLAYANIM: + if (true == m_pModelCom->IsFinishedAnim()) + m_eCurState = REPARO_OBJECT_STATE::AFTER; + break; + + case Client::CReparoObject::REPARO_OBJECT_STATE::AFTER: + break; + + default: + break; + } + + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); #ifdef _DEBUG Describe_Entity(); #endif // _DEBUG - } void CReparoObject::Late_Update(_float fTimeDelta) { __super::Late_Update(fTimeDelta); - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + if(m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRadius)) + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); } @@ -118,6 +143,25 @@ HRESULT CReparoObject::Render() return S_OK; } +_bool CReparoObject::IsRepairable(_bool isAwake) +{ + if (isAwake && REPARO_OBJECT_STATE::SLEEP == m_eCurState) + { + m_eCurState = REPARO_OBJECT_STATE::BEFORE; + return false; + } + LOCKON_INFO info = {}; + m_pInfoInstance->Get_LockOnInfo(info); + + if (info.pUnit == this && REPARO_OBJECT_STATE::BEFORE == m_eCurState) + { + m_eCurState = REPARO_OBJECT_STATE::PLAYANIM; + return true; + } + + return false; +} + HRESULT CReparoObject::Render_OutLine() { m_bDrawOutLine = false; @@ -186,6 +230,36 @@ HRESULT CReparoObject::Render_OutLine() return S_OK; } +void CReparoObject::Change_State() +{ + if (m_eCurState != m_ePreState) + { + switch (m_eCurState) + { + case Client::CReparoObject::REPARO_OBJECT_STATE::SLEEP: + break; + + case Client::CReparoObject::REPARO_OBJECT_STATE::BEFORE: + m_pInfoInstance->Regist_PlayerAlly(this); + break; + + case Client::CReparoObject::REPARO_OBJECT_STATE::PLAYANIM: + m_pModelCom->Set_AnimationIndex(0, false); + break; + + case Client::CReparoObject::REPARO_OBJECT_STATE::AFTER: + m_pModelCom->Set_AnimationIndex(1); + m_pInfoInstance->Deregist_PlayerAlly(this); + break; + + case Client::CReparoObject::REPARO_OBJECT_STATE::END: + default: + break; + } + m_ePreState = m_eCurState; + } +} + HRESULT CReparoObject::Ready_Components() { CTransform::TRANSFORM_DESC Desc = {}; @@ -198,10 +272,21 @@ HRESULT CReparoObject::Ready_Components() return E_FAIL; } - /* Com_Model */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"), - reinterpret_cast(&m_pModelCom)))) { - return E_FAIL; + if(0 == m_iModelID) + { + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"), + reinterpret_cast(&m_pModelCom)))) { + return E_FAIL; + } + } + else + { + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"), + reinterpret_cast(&m_pModelCom)))) { + return E_FAIL; + } } /* Com_Shader */ diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index e74b0e6d4..6ac12d93a 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -581,6 +581,14 @@ HRESULT CTroll::Ready_Parts() m_pLeft_Smoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("LeftArm")); + if (FAILED(Add_PartObject("Troll_Dead_Smoke", g_iStaticLevel, &m_pDead_Smoke, &PartsDesc))) + { + return E_FAIL; + } + m_pDead_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollDead/TrollDead", static_cast(g_iStaticLevel)); + + + if (FAILED(Add_PartObject("Left_Trail", g_iStaticLevel, &m_pLeftTrail, &PartsDesc))) { return E_FAIL; } @@ -691,12 +699,15 @@ void CTroll::Free() SAFE_RELEASE(m_pLeftTrail); SAFE_RELEASE(m_pRightTrail); SAFE_RELEASE(m_pWeaponTrail); + SAFE_RELEASE(m_pRushEffect); + SAFE_RELEASE(m_pDead_Smoke); } #ifdef _DEBUG void CTroll::Describe_Entity() { GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG); + if (GUI::CollapsingHeader("Troll")) { __super::Describe_Entity(); @@ -714,8 +725,6 @@ void CTroll::Describe_Entity() } } - - m_pTransformCom->Describe_Entity(); } GUI::End(); diff --git a/Jusin154_Team3D/Client/Private/TrollSwing.cpp b/Jusin154_Team3D/Client/Private/TrollSwing.cpp index 1be9ce040..120c708b7 100644 --- a/Jusin154_Team3D/Client/Private/TrollSwing.cpp +++ b/Jusin154_Team3D/Client/Private/TrollSwing.cpp @@ -83,19 +83,29 @@ HRESULT CTrollSwing::Pre_Setting(CGameObject* pObject, void* pArg) if (FAILED(__super::Pre_Setting(pObject, nullptr))) return E_FAIL; + _vector vPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); - vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 4.f; CEffectParts* pRockPT = Get_PartObject("Rock_PT_25"); + CEffectParts* pRock_PT_Brown = Get_PartObject("Rock_PT_Brown"); + CEffectParts* pRock_PT_Large = Get_PartObject("Rock_PT_Large"); + CEffectParts* pCrack_Decal = Get_PartObject("Crack_Decal"); CEffectParts* pSmoke = Get_PartObject("Smoke"); pRockPT->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.5f, 0.f, 0.f)); - pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.2f, 0.f, 0.f)); + pRock_PT_Large->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.5f, 0.f, 0.f)); + pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 1.5f, 0.f, 0.f)); + pCrack_Decal->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.2f, 0.f, 0.f)); pRockPT->Set_Visible(true); + pRock_PT_Large->Set_Visible(true); + pSmoke->Set_Visible(true); + //pRock_PT_Brown->Set_Visible(true); + pCrack_Decal->Set_Visible(true); CPlayer* pPlayer = static_cast(m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first); @@ -155,25 +165,6 @@ CGameObject* CTrollSwing::Clone(void* pArg, CGameObject* pOwner) void CTrollSwing::OnCollision(CGameObject* pOther, void* pDesc) { - _int iIndex = CollisionCheck(); - - if (iIndex < 0) - return; - - if (m_isCollisionEnter == true) - return; - - m_isCollisionEnter = true; - - _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); - - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - } diff --git a/Jusin154_Team3D/Client/Private/Troll_Rock.cpp b/Jusin154_Team3D/Client/Private/Troll_Rock.cpp index d226aee9d..1521ee601 100644 --- a/Jusin154_Team3D/Client/Private/Troll_Rock.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_Rock.cpp @@ -3,6 +3,8 @@ #include "GameInstance.h" #include "Troll.h" +#include "EffectPool.h" +#include "Layer.h" CTroll_Rock::CTroll_Rock(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CPartObject(pDevice, pContext) @@ -33,11 +35,17 @@ HRESULT CTroll_Rock::Initialize(void* pArg) return E_FAIL; } + + m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + SAFE_ADDREF(m_pEffectPool); + + return S_OK; } void CTroll_Rock::Priority_Update(_float fTimeDelta) { + XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION)); m_pModelCom->Combined_BoneMatrix(); if (m_bAttach) @@ -152,6 +160,9 @@ void CTroll_Rock::RockHit() break; } m_bVisible = false; + + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, m_pOwner , &tagCollInfo.vWorldPos); pUserData->pOwner->OnCollision(this, &tagCollInfo); } break; @@ -287,7 +298,7 @@ void CTroll_Rock::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pModelCom); - + SAFE_RELEASE(m_pEffectPool); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Troll_Rush.cpp b/Jusin154_Team3D/Client/Private/Troll_Rush.cpp new file mode 100644 index 000000000..737399d17 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Troll_Rush.cpp @@ -0,0 +1,190 @@ +#include "pch.h" +#include "Troll_Rush.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" + +CTroll_Rush::CTroll_Rush(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CTroll_Rush::CTroll_Rush(const CTroll_Rush& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CTroll_Rush::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollRushBlur"))) + return E_FAIL; + + + return S_OK; + +} + +HRESULT CTroll_Rush::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + + if (FAILED(Create_Effect())) + return E_FAIL; + + + m_wstrEffectName = L"TrollRushBlur"; + + + m_pRush_Blur = Get_PartObject("Rush_Blur"); + + SAFE_ADDREF(m_pRush_Blur); + + m_fDuration = 2.5f; + + return S_OK; +} + +void CTroll_Rush::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CTroll_Rush::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = pCCT->Get_Position(); + + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + + m_pRush_Blur->Set_Visible(true); + + _vector vRight = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vLook = XMVector3Normalize(XMVector3Cross(vRight , XMVectorSet(0.f, 1.f, 0.f, 0.f))); + _vector vUp = XMVector3Normalize(XMVector3Cross(vLook ,vRight)); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pRush_Blur->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + +} + +void CTroll_Rush::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CTroll_Rush::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + m_pRush_Blur->Get_Component()->Set_Loop(true); + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = pCCT->Get_Position(); + + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + + m_pRush_Blur->Set_Visible(true); + + _vector vRight = XMVector3Normalize( m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook)); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pRush_Blur->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + + return S_OK; +} + +HRESULT CTroll_Rush::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTroll_Rush::Ready_Child() +{ + return S_OK; +} + +CTroll_Rush* CTroll_Rush::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTroll_Rush* pInstance = new CTroll_Rush(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTroll_Rush"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CTroll_Rush::Clone(void* pArg, CGameObject* pOwner) +{ + CTroll_Rush* pInstance = new CTroll_Rush(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTroll_Rush"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTroll_Rush::OnCollision(CGameObject* pOther, void* pDesc) +{ + + +} + +void CTroll_Rush::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pRush_Blur); +} +#ifdef _DEBUG +void CTroll_Rush::Describe_Entity() +{ + +} +#endif + +HRESULT CTroll_Rush::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Troll_Self_Hit.cpp b/Jusin154_Team3D/Client/Private/Troll_Self_Hit.cpp new file mode 100644 index 000000000..0d94efcfd --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Troll_Self_Hit.cpp @@ -0,0 +1,185 @@ +#include "pch.h" +#include "Troll_Self_Hit.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CTroll_Self_Hit::CTroll_Self_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CTroll_Self_Hit::CTroll_Self_Hit(const CTroll_Self_Hit& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CTroll_Self_Hit::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollSelfHit"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CTroll_Self_Hit::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Create_Effect())) + return E_FAIL; + + m_wstrEffectName = L"TrollSelfHit"; + + + m_fDuration = 3.5f; + + return S_OK; +} + +void CTroll_Self_Hit::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CTroll_Self_Hit::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + +} + +void CTroll_Self_Hit::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CTroll_Self_Hit::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + _vector vPos = m_pOwner->Get_Component()->Get_HeadPosition(); + + CEffectParts* pHit0 = Get_PartObject("Hit0"); + CEffectParts* pHit1 = Get_PartObject("Hit1"); + + + pHit0->Get_Component()->Set_State(STATE::POSITION, vPos); + pHit1->Get_Component()->Set_State(STATE::POSITION, vPos); + + pHit0->Set_Visible(true); + pHit1->Set_Visible(true); + + + return S_OK; +} + +HRESULT CTroll_Self_Hit::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTroll_Self_Hit::Ready_Child() +{ + return S_OK; +} + +CTroll_Self_Hit* CTroll_Self_Hit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTroll_Self_Hit* pInstance = new CTroll_Self_Hit(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTroll_Self_Hit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CTroll_Self_Hit::Clone(void* pArg, CGameObject* pOwner) +{ + CTroll_Self_Hit* pInstance = new CTroll_Self_Hit(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTroll_Self_Hit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTroll_Self_Hit::OnCollision(CGameObject* pOther, void* pDesc) +{ + _int iIndex = CollisionCheck(); + + if (iIndex < 0) + return; + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + + _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + +} + +void CTroll_Self_Hit::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); +} +#ifdef _DEBUG +void CTroll_Self_Hit::Describe_Entity() +{ + +} +#endif + +HRESULT CTroll_Self_Hit::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Troll_Shout.cpp b/Jusin154_Team3D/Client/Private/Troll_Shout.cpp new file mode 100644 index 000000000..710ecf9e7 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Troll_Shout.cpp @@ -0,0 +1,191 @@ +#include "pch.h" +#include "Troll_Shout.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" + +CTroll_Shout::CTroll_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CTroll_Shout::CTroll_Shout(const CTroll_Shout& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CTroll_Shout::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollShout"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CTroll_Shout::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Create_Effect())) + return E_FAIL; + + m_wstrEffectName = L"TrollShout"; + + + m_fDuration = 3.f; + + return S_OK; +} + +void CTroll_Shout::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CTroll_Shout::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + +} + +void CTroll_Shout::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CTroll_Shout::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = XMLoadFloat4(static_cast<_float4*>(pArg)); + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + + _vector vFootPos = {}; + + if (pCCT != nullptr) + { + vFootPos = pCCT->Get_FootPosition(); + + CEffectParts* pShout_Blur = Get_PartObject("Shout_Blur"); + CEffectParts* pSmoke = Get_PartObject("Shout_Smoke"); + + + pShout_Blur->Get_Component()->Set_State(STATE::POSITION, vPos); + pShout_Blur->Set_Visible(true); + + pSmoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pSmoke->Set_Visible(true); + } + + + + return S_OK; +} + +HRESULT CTroll_Shout::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTroll_Shout::Ready_Child() +{ + return S_OK; +} + +CTroll_Shout* CTroll_Shout::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTroll_Shout* pInstance = new CTroll_Shout(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTroll_Shout"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CTroll_Shout::Clone(void* pArg, CGameObject* pOwner) +{ + CTroll_Shout* pInstance = new CTroll_Shout(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTroll_Shout"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTroll_Shout::OnCollision(CGameObject* pOther, void* pDesc) +{ + _int iIndex = CollisionCheck(); + + if (iIndex < 0) + return; + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + + _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + +} + +void CTroll_Shout::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG +void CTroll_Shout::Describe_Entity() +{ + +} +#endif + +HRESULT CTroll_Shout::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp index cad16ffc3..6a1e99492 100644 --- a/Jusin154_Team3D/Client/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp @@ -8,6 +8,10 @@ #include "Layer.h" #include "EffectPool.h" #include "TrailObject.h" +#include "Troll_Weapon.h" +#include "Effect_Container.h" +#include "EffectParts.h" +#include "ReparoObject.h" #pragma region STATE #include "State_Idle.h" @@ -87,6 +91,17 @@ void CTroll::Behavior_IdleBreakEnter() break; case 1:// 방망이 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK2]; + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix WeaponMat = XMLoadFloat4x4(m_pWeapon_BoneMat) * Get_PartObject()->Get_Component()->Get_XMWorldMatrix();; + + _float4 vPosition = {}; + XMStoreFloat4(&vPosition, WeaponMat.r[3]); + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, this, &vPosition); + }, 0.7f); + break; case 2: // 발구르기 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK3]; @@ -104,9 +119,22 @@ void CTroll::Behavior_IdleBreakEnter() break; case 3: //소리지르기 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK4]; - Add_Event(pairAnimInfo.first, - [this]() {CameraShake(5.f, 1.f, 2.f, 0.5f);}, - 0.3f); + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix HandMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("mouth_bag")) * m_pTransformCom->Get_XMWorldMatrix(); + + _float4 vPosition = {}; + + XMStoreFloat4(&vPosition, HandMat.r[3]); + + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_SHOUT, this, &vPosition); + + CameraShake(5.f, 1.f, 2.f, 0.5f); + + }, 0.2f); + break; } m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); @@ -316,6 +344,22 @@ void CTroll::Behavior_RushEnter() pairAnimInfo = m_Animation[STATEANIM::RUSH_START]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix HandMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("IK_LeftFoot")) * m_pTransformCom->Get_XMWorldMatrix(); + + _float4 vPosition = {}; + XMStoreFloat4(&vPosition, HandMat.r[3]); + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, this, &vPosition); + }, 0.45f); + + Add_Event(m_Animation[STATEANIM::RUSH_LOOP].first, [this]() { + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_RUSH, this, nullptr, &m_pRushEffect); + + }, 0.f); } HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta) @@ -336,6 +380,14 @@ HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta) } else { m_fRushTime += fTimeDelta; + + + if (m_fRushTime >= 1.f && m_pRushEffect != nullptr) + { + m_pRushEffect->Get_PartObject()->Get_Component()->Set_Loop(false); + SAFE_RELEASE(m_pRushEffect); + } + if (m_fRushTime >= 1.5f) { m_fRushTime = 0.f; @@ -387,7 +439,10 @@ void CTroll::Behavior_ThrowEnter() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, - [this]() {Get_PartObject()->Set_Visible(true); }, + [this]() { + Get_PartObject()->Set_Visible(true); + + }, 0.95f); Set_Easing(m_Animation[STATEANIM::THROW_ROCK].first, 0.1f, 0.47f, 1.5f); @@ -447,6 +502,7 @@ void CTroll::Behavior_ThrowExit() m_pFSM->Disable_State(FSMSTATE::THROW_ROCK); Get_PartObject()->Set_Attach(true); Get_PartObject()->Set_Visible(false); + } void CTroll::Behavior_SwingEnter() @@ -513,17 +569,12 @@ void CTroll::Behavior_SlamEnter() m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)]; - Troll_Trail_Visible(true); - m_pWeaponTrail->Set_Visible(true); - m_pWeaponTrail->Get_Component()->Reset_Trail(); - Add_Event(pairAnimInfo.first, [this]() { - Troll_Trail_Visible(false); - m_pWeaponTrail->Set_Visible(false); - }, - 0.7f); - + Troll_Trail_Visible(true); + m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); }, + 0.15f); Add_Event(m_Animation[STATEANIM::SLAM].first, [this]() { m_bLookAt = false; }, @@ -531,6 +582,8 @@ void CTroll::Behavior_SlamEnter() Add_Event(m_Animation[STATEANIM::SLAM].first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_ATTACK, this); + Troll_Trail_Visible(false); + m_pWeaponTrail->Set_Visible(false); }, 0.3f); Set_Easing(pairAnimInfo.first, 0.2f, 0.42f, 1.5f); @@ -571,20 +624,25 @@ void CTroll::Behavior_BackHandSwingEnter() m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)] = m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)]; + Add_Event(m_Animation[STATEANIM::BACKHAND_SWING_JOG].first, [this]() { m_bLookAt = false; }, 0.2f); - Troll_Trail_Visible(true); - m_pWeaponTrail->Set_Visible(true); - m_pWeaponTrail->Get_Component()->Reset_Trail(); + + Add_Event(pairAnimInfo.first, + [this]() { + Troll_Trail_Visible(true); + m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); }, + 0.4f); Add_Event(pairAnimInfo.first, [this]() { Troll_Trail_Visible(false); m_pWeaponTrail->Set_Visible(false); }, - 0.9f); + 0.66f); Set_Easing(pairAnimInfo.first, 0.1f, 0.45f, 1.8f); Set_Easing(pairAnimInfo.first, 0.65f, 0.7f, 0.5f); @@ -626,12 +684,20 @@ void CTroll::Behavior_StunEnter() m_pEffectPool->Use_Skill(SKILL_TYPE::STUN, this, &strBoneName); } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, [this]() { m_bLookAt = true; }, 0.6f); + + if (m_pRushEffect != nullptr) + { + m_pRushEffect->Get_PartObject()->Get_Component()->Set_Loop(false); + SAFE_RELEASE(m_pRushEffect); + } + } HRESULT CTroll::Behavior_StunExitCheck(_float fTimeDelta) @@ -662,8 +728,11 @@ void CTroll::Behavior_HitEnter() if (fRatio <= 0.75f) { pairAnimInfo = m_Animation[STATEANIM::HIT_FACE]; Add_Event(pairAnimInfo.first, - [this]() {CameraShake(10.f, 2.f, 3.f, 0.3f); }, - 0.1f); + [this]() { + CameraShake(10.f, 2.f, 3.f, 0.3f); + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_SELF_HIT, this); + },0.1f); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } } @@ -727,6 +796,14 @@ void CTroll::Behavior_DeadEnter() m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p)); m_pRigidBody->SetActive(false); m_pCharacter_Controller->SetActive(false); + + + Add_Event(pairAnimInfo.first, + [this]() { + m_pDead_Smoke->Set_Visible(true); + m_pDead_Smoke->Get_Component()->Set_State(STATE::POSITION, m_pTransformCom->Get_State(STATE::POSITION)); + }, 0.55f); + } HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta) @@ -741,6 +818,7 @@ HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta) void CTroll::Behavior_DeadExit() { m_bDead = true; + m_pDead_Smoke->Set_Visible(false); } _bool CTroll::IsHitSpellDisabled() @@ -889,6 +967,19 @@ void CTroll::Add_FSM() Desc.funcLateUpdate = [this](_float fDeadRatio) { m_fDeadRatio = fDeadRatio; if (m_fDeadRatio > 1.f) { + CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_REPARO); + + if (nullptr != pLayer) + { + const list* pReparoObjects = pLayer->Get_Objects(); + + for (auto& pObject : *pReparoObjects) + { + CReparoObject* pReparoObject = dynamic_cast(pObject); + if (nullptr != pReparoObject) + pReparoObject->IsRepairable(true); + } + } m_bDead = true; } }; diff --git a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h index ed5b1ef09..0366b791a 100644 --- a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h +++ b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h @@ -66,6 +66,8 @@ class CCamera_Cinematic final : public CCamera CCamPosition_Target* m_pLookTargetPart = { nullptr }; CCamPosition_Target* m_pFollowTargetPart = { nullptr }; + + _bool m_bLerpTranslation = { false }; _float2 m_vLerpTranslationTimer = {}; diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 1b016623e..74a056aca 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -3,7 +3,7 @@ namespace Client { enum class LEVEL { STATIC, LOADING, LOGO, INTRO, GAMEPLAY, FIELD, RESTART, END }; - enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_COLLIDER }; + enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_COLLIDER, ELEMENT_CAVE }; enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS }; enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, SPECTOR, END }; @@ -75,13 +75,13 @@ namespace Client JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, STUPEFY_SIDE, ACCIO_SIDE, /*트롤*/ - TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO, + TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, TROLL_SHOUT , TROLL_RUSH, TROLL_SELF_HIT, /*고블린*/ GOBLIN_ATTACK, GOBILN_TELEPORT, /*고블린 메이지*/ - GOBLIN_MAGE_ATTACK, GOBLIN_MAGE_DOWN, GOBLIN_MAGE_SIDE, + GOBLIN_MAGE_ATTACK, GOBLIN_MAGE_DOWN, GOBLIN_MAGE_SIDE, GOBLIN_PROTEGO, /*란록*/ diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h index d911d4b87..67e1f979a 100644 --- a/Jusin154_Team3D/Client/Public/Client_Macro.h +++ b/Jusin154_Team3D/Client/Public/Client_Macro.h @@ -71,6 +71,7 @@ namespace Client { #define LAYER_DADA_INT TEXT("Layer_DADA_INT") #define LAYER_DUELIST TEXT("Layer_Duelist") #define LAYER_NPC TEXT("Layer_Npc") +#define LAYER_REPARO TEXT("Layer_Reparo") #define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager") diff --git a/Jusin154_Team3D/Client/Public/Human_Duelist.h b/Jusin154_Team3D/Client/Public/Human_Duelist.h index a62c9e0eb..f436358ba 100644 --- a/Jusin154_Team3D/Client/Public/Human_Duelist.h +++ b/Jusin154_Team3D/Client/Public/Human_Duelist.h @@ -54,6 +54,7 @@ class CHuman_Duelist final : public CMonster HRESULT Ready_Parts(); HRESULT Bind_ShaderResources(); HRESULT Bind_ShaderParameters(_uint iMeshOrder); + void Check_BattleLose(); public: static CHuman_Duelist* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -78,6 +79,7 @@ class CHuman_Duelist final : public CMonster _bool m_bHitJap = {}; _bool m_bBattle = {}; _bool m_bCameraShake = { }; + _float4 m_OriginPos = { }; _float m_fSkillCoolTime[ENUM_CLASS(SKILL::END)] = {}; diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h index df14842c6..f1103d175 100644 --- a/Jusin154_Team3D/Client/Public/InfoInstance.h +++ b/Jusin154_Team3D/Client/Public/InfoInstance.h @@ -63,6 +63,7 @@ DECLARE_SINGLETON(CInfoInstance) HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag); HRESULT Load_PointLights(const _char* pFileName, const _wchar* pLayerTag); HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath); + HRESULT Load_ReparoObjects(const _char* pFileName); HRESULT Load_DADA_INT(); HRESULT Load_Npc(); #pragma endregion diff --git a/Jusin154_Team3D/Client/Public/Land.h b/Jusin154_Team3D/Client/Public/Land.h index 3f55faf5b..d36eeb7c9 100644 --- a/Jusin154_Team3D/Client/Public/Land.h +++ b/Jusin154_Team3D/Client/Public/Land.h @@ -34,24 +34,29 @@ class CLand final : public CGameObject void Add_InstanceProp(CInstancedProp* pIntanceProp); private: - _float m_fRaduis = {}; - _float m_fUsingSurfaceParams = {}; + _float m_fRaduis = {}; + _float m_fUsingSurfaceParams = {}; - CShader* m_pShaderCom = { nullptr }; - CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; - CTexture* m_pDiffuseTextureCom = { nullptr }; - CTexture* m_pNormalTextureCom = { nullptr }; - CTexture* m_pMROTextureCom = { nullptr }; - CTexture* m_pMaskTextureCom = { nullptr }; + CTexture* m_pDiffuseTextureCom = { nullptr }; + CTexture* m_pNormalTextureCom = { nullptr }; + CTexture* m_pMROTextureCom = { nullptr }; + CTexture* m_pMaskTextureCom = { nullptr }; + + list m_InstanceProps = {}; + CRigidBody_Static* m_RigidBody = { nullptr }; - list m_InstanceProps = {}; private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; virtual HRESULT Ready_Components(void* pArg) override; virtual HRESULT Bind_ShaderResources() override; + void ReadyForPhysX(const _char* pName); + void ConvertToPhysX(const _char* pName); + public: static CLand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Client/Public/MapElement_Cave.h b/Jusin154_Team3D/Client/Public/MapElement_Cave.h new file mode 100644 index 000000000..f83fe0cc7 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/MapElement_Cave.h @@ -0,0 +1,52 @@ +#pragma once + +#include "Client_Define.h" +#include "MapElement.h" + +NS_BEGIN(Client) + +class CMapElement_Cave : public CMapElement +{ +private: + CMapElement_Cave(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CMapElement_Cave(const CMapElement_Cave& rhs); + virtual ~CMapElement_Cave() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + _bool m_bReadyToCreatePhysX = { false }; + _bool m_bConverted = { false }; + _float m_fRadius = {}; + _float3 m_vWorldCenterPosition = {}; + + class CTriggerBox* m_pTriggerBox = { nullptr }; + + vector m_RigidBodies; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + + HRESULT Ready_TriggerBox(); + void ReadyForPhysX(); + void ConvertToPhysX(); + + void Enter_Cave(); +public: + static CMapElement_Cave* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END + diff --git a/Jusin154_Team3D/Client/Public/MapInfo.h b/Jusin154_Team3D/Client/Public/MapInfo.h index 076549aa4..233b5c89a 100644 --- a/Jusin154_Team3D/Client/Public/MapInfo.h +++ b/Jusin154_Team3D/Client/Public/MapInfo.h @@ -30,6 +30,7 @@ class CMapInfo final : public CBase HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag); HRESULT Load_PointLights(const _char* pFilePath, const _wchar* pLayerTag); HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath); + HRESULT Load_ReparoObjects(const _char* pFileName); HRESULT Load_DADA_INT(); HRESULT Load_Npc(); diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 22502794f..2a9d517f7 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -57,6 +57,8 @@ class CPlayer final : public CUnit HRESULT Update_RaycastElements(); void Set_Battle(_bool bBattle) { m_bDuel_ZOnlyMove = bBattle; } void Set_Interaction(_bool bInteraction); + void ExitBattle(); + void Set_OriginPos(_vector vPos) { XMStoreFloat4(&m_OriginPos, vPos); } #ifdef _DEBUG void Render_CameraCoordinateSystem(); #endif // _DEBUG @@ -122,6 +124,7 @@ class CPlayer final : public CUnit void Play_SpellHitAnim(); void Player_PixRot(); void Find_HiddenObjects(); + void Check_Reparoobejcts(); void Update_CameraCoordinateSystem(_float fTimeDelta); #ifdef _DEBUG @@ -190,6 +193,8 @@ class CPlayer final : public CUnit _float m_fDegree = {}; _bool m_bGuarding = {}; _float m_fParryTimer = {}; + _bool m_bStartSpellAnim = {}; + _float4 m_OriginPos = {}; /* 무적 불 변수*/ diff --git a/Jusin154_Team3D/Client/Public/RandomNpc.h b/Jusin154_Team3D/Client/Public/RandomNpc.h index 0cca76157..a091619b2 100644 --- a/Jusin154_Team3D/Client/Public/RandomNpc.h +++ b/Jusin154_Team3D/Client/Public/RandomNpc.h @@ -71,6 +71,8 @@ class CRandomNpc final : public CUnit _bool m_bBattleObserve_Npc = {}; _bool m_bBattle = {}; _int m_eNpcState = ENUM_CLASS(NPC_STATE::END); + _bool m_bBroomRacer = {}; + vector<_int> m_Anims; protected: virtual HRESULT Initialize_Prototype() override; @@ -83,6 +85,8 @@ class CRandomNpc final : public CUnit void BattleObserve_Anim(); + void Load_AnimXML(const _char* pFilePath); + public: static CRandomNpc* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr); diff --git a/Jusin154_Team3D/Client/Public/ReparoObject.h b/Jusin154_Team3D/Client/Public/ReparoObject.h index 663d18dd5..6a379bdb0 100644 --- a/Jusin154_Team3D/Client/Public/ReparoObject.h +++ b/Jusin154_Team3D/Client/Public/ReparoObject.h @@ -7,6 +7,17 @@ NS_BEGIN(Client) class CReparoObject final : public CMonster { + // 되돌리기 전 Before + enum class REPARO_OBJECT_STATE { SLEEP, BEFORE, PLAYANIM, AFTER, END }; +public: + typedef struct tagReparoObjectDesc + { + _uint iModelID = {}; + _float fRadius = {}; + _float3 vPosition = {}; + _float3 vRotation = {}; + }REPARO_OBJECT_DESC; + private: CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CReparoObject(const CReparoObject& Prototype); @@ -20,11 +31,21 @@ class CReparoObject final : public CMonster virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; + _bool IsRepairable(_bool isAwake); +private: + REPARO_OBJECT_STATE m_ePreState = { REPARO_OBJECT_STATE::END }; + REPARO_OBJECT_STATE m_eCurState = { REPARO_OBJECT_STATE::END }; + + _uint m_iModelID = {}; + _float m_fRadius = {}; + private: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); HRESULT Render_OutLine(); + void Change_State(); + public: static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; diff --git a/Jusin154_Team3D/Client/Public/Troll.h b/Jusin154_Team3D/Client/Public/Troll.h index 46643f796..cbf8a6a45 100644 --- a/Jusin154_Team3D/Client/Public/Troll.h +++ b/Jusin154_Team3D/Client/Public/Troll.h @@ -59,10 +59,14 @@ class CTroll final : public CMonster class CEffectParts* m_pTroll_Particle = { nullptr }; class CEffectParts* m_pTroll_Particle2 = { nullptr }; + class CEffectParts* m_pDead_Smoke = { nullptr }; + + class CTrailObject* m_pLeftTrail = { nullptr }; class CTrailObject* m_pRightTrail = { nullptr }; class CTrailObject* m_pWeaponTrail = { nullptr }; + const _float4x4* m_pLeftHand_BoneMat = { nullptr }; const _float4x4* m_pRightHand_BoneMat = { nullptr }; const _float4x4* m_pWeapon_BoneMat = { nullptr }; @@ -96,6 +100,7 @@ class CTroll final : public CMonster _float m_fRushTime = {}; _float m_fAttackDelay = {}; + class CEffect_Container* m_pRushEffect = nullptr; void Behavior_IdleEnter(); HRESULT Behavior_IdleExitCheck(); diff --git a/Jusin154_Team3D/Client/Public/Troll_Rock.h b/Jusin154_Team3D/Client/Public/Troll_Rock.h index 2b0e8fd4e..5c4b2b55b 100644 --- a/Jusin154_Team3D/Client/Public/Troll_Rock.h +++ b/Jusin154_Team3D/Client/Public/Troll_Rock.h @@ -34,6 +34,8 @@ class CTroll_Rock final : public CPartObject CModel* m_pModelCom = { nullptr }; _bool m_bAttach = { true }; + class CEffectPool* m_pEffectPool = { nullptr }; + private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Client/Public/Troll_Rush.h b/Jusin154_Team3D/Client/Public/Troll_Rush.h new file mode 100644 index 000000000..1c5c21ed8 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Troll_Rush.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + + +NS_BEGIN(Client) + +class CTroll_Rush final : public CEffect_Container +{ +private: + CTroll_Rush(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTroll_Rush(const CTroll_Rush& rhs); + virtual ~CTroll_Rush() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + + class CEffectParts* m_pRush_Blur = { nullptr }; + +public: + static CTroll_Rush* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Troll_Self_Hit.h b/Jusin154_Team3D/Client/Public/Troll_Self_Hit.h new file mode 100644 index 000000000..36e2b4b1f --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Troll_Self_Hit.h @@ -0,0 +1,48 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CTroll_Self_Hit final : public CEffect_Container +{ +private: + CTroll_Self_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTroll_Self_Hit(const CTroll_Self_Hit& rhs); + virtual ~CTroll_Self_Hit() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +public: + static CTroll_Self_Hit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG + void Describe_Entity() override; + +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Troll_Shout.h b/Jusin154_Team3D/Client/Public/Troll_Shout.h new file mode 100644 index 000000000..e19b766ee --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Troll_Shout.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CTroll_Shout final : public CEffect_Container +{ +private: + CTroll_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTroll_Shout(const CTroll_Shout& rhs); + virtual ~CTroll_Shout() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + +public: + static CTroll_Shout* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/RandomNpc.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/RandomNpc.xml new file mode 100644 index 000000000..d27563c11 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/RandomNpc.xml @@ -0,0 +1,39 @@ + + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + + + + + + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin index 6c67757e0..e4cb914b3 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:468db2885ece2f11f06e935d188c478bc18cadc622e31f4e640f259270ada3a3 +oid sha256:37ce7078b86063681b8538ae5e128efe6c84ab723d98aa29cff74f0e8af167d4 size 1195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollRushBlur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollRushBlur.bin new file mode 100644 index 000000000..b6b96ca31 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollRushBlur.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c50e0316a296a54b3f8919a87345b9af30ea0e61108e2e90d3db1dc6c258ecf +size 75 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSelfHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSelfHit.bin new file mode 100644 index 000000000..589be07a0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSelfHit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d92226b9d8fa2a0ca120adc413b43e8df0d13a6e1caf340d2009b9c90605219 +size 134 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollShout.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollShout.bin new file mode 100644 index 000000000..cfe283507 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollShout.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1226fba477ccdcdab9daaf6a53cc4be8e2d762baea2a1ee2ed0a7e6e169b0ba +size 143 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSwing.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSwing.bin index d75706c04..56a8473ed 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSwing.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSwing.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a63cdeb3c40d3f7a719be9698dab4e1692883cbffa52f690d98bbff336fa7c57 -size 137 +oid sha256:6cc8a77238dacba29d611f3041e63d0651e27b5c1917a908e4435f7a1317a172 +size 351 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin index 77f8b9600..cd2918fa4 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c4bb4bdc7c5c1da4a80c7bbe54e810b647b582cc5b52dc4f4216c7c1459993ca +oid sha256:56c53c3a4151c718df3b7f4e36d75c2fb6a8b6b3bd746378235b7c21c04fb689 size 1195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollDead/TrollDead.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollDead/TrollDead.bin new file mode 100644 index 000000000..99dc12f21 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollDead/TrollDead.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d547eb4d21b3f246e63b76ac5c6ac86a32a7ea6298b24576d26048c4e68c20b +size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/NomalSmoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/NomalSmoke.bin index b80eb90c4..92910bcfa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/NomalSmoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/NomalSmoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:259b93fc9867619543b6d7b92109e4e5dd61b8c67eaa066476bd82652f81977f -size 1201 +oid sha256:f150ddf3444e93fecd9d72ea6656397ea422473f827116a2fbc2967cfc0c1c34 +size 1196 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/Rock_PT_15.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/Rock_PT_15.bin index ab56aa90d..5881a23e7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/Rock_PT_15.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/Rock_PT_15.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8b11d6d5fb18e8afb4461fe3f1e67c1122e919285294f51f04f8df5c3060d570 -size 1143 +oid sha256:b5dcbc0891449dbc541c425d8a942b4cbaaaece2b1bb7fc8ab3b35e198f970bd +size 1188 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin index 66f6ce370..7265dba36 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87002479b510aebdde94bc9fb79475baab3955f076d51d8cd8faef5a3b33a49c -size 1244 +oid sha256:334ef5e2082733fc639bbd2c8429553e43bddda0b974f9096acf5c578f84bad7 +size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/Rock_PT_35.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/Rock_PT_35.bin index 6f9933c22..577b13ded 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/Rock_PT_35.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/Rock_PT_35.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ffcc5d4d74f9d05d6ec08f400a683c478710fcc78fb50a5b3ff4b88d7760121c -size 1143 +oid sha256:6364f71757d700a695c73e25fa7b0239d337ece4d85fc6c92319f29f9d7f63aa +size 1191 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRushBlur/Rush_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRushBlur/Rush_Blur.bin new file mode 100644 index 000000000..629961887 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRushBlur/Rush_Blur.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e81e7cfb0d0ed25804368cf67276c3d550020bc50637d719bc45755df6097a2 +size 1150 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit0.bin new file mode 100644 index 000000000..41ce91056 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d352e1934fa5d81e64438d451e4866e0197cd9580790bde16d9a8d233ccec7fc +size 1252 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit1.bin new file mode 100644 index 000000000..074110aae --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a6df4f9fde0be2cacf9b6795e5c9d2415a24b7e0c2e561fc7f80d423edf16c7 +size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Blur.bin new file mode 100644 index 000000000..6e691eaff --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Blur.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88482367874a0357a62c27a8208e13f0ed8868af125b0b87f6d4fdbca634abb2 +size 1210 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Smoke.bin new file mode 100644 index 000000000..418450ff4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0d87e059fcc714a840a77daf70e174676170276f7ebd196a474f30fd3f07e67 +size 1199 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle.bin index 2da9007c7..83105ac3d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d581c32024750c72041a939262f581e3a13231b018d66a9446faea73616fe24c -size 1361 +oid sha256:90e253c2d54928458395f295664743c3e7352bf00313d39befd6080f0a76f5a4 +size 1294 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Crack_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Crack_Decal.bin new file mode 100644 index 000000000..19dec8c68 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Crack_Decal.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a754f98a8c175c93c2a884cdfec1c8c1ae1d18d6a3d9fa24eedcb4ff3d360262 +size 1212 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin index dbbf1a768..36512fce6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7ea9d6052854ea02a97baa4aba669222c1f8fed13edf4b25d02f6ea7d95b42d0 -size 1151 +oid sha256:fe3ecad6248a434e164d118e7e643eebaa457f56accaf18bf849870ba2fb4c58 +size 1191 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Brown.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Brown.bin new file mode 100644 index 000000000..b241a9b43 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Brown.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9ea9791ba2b577f8558bdd188c557afc0c1cf71e6fe2988764ac7b5f804fa20 +size 1188 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Large.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Large.bin new file mode 100644 index 000000000..14b9589d4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Large.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4e8a9d64ebd58503479682248e640bacff06846835c2402323b760a3a94d455 +size 1190 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Smoke.bin index 85a42d916..ec7640727 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a259f8f5d1dff411a4a1c0ac515e411f50058e9f4863cf8ab47b19ce56f18492 +oid sha256:089cb0129df13704d759581185f19416a7b04902d42057cfed34b3d75bb010d0 size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollThrow/Black_Fire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollThrow/Black_Fire.bin new file mode 100644 index 000000000..018fb39f0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollThrow/Black_Fire.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8f29601c6ee80f589c25caf8636d9dce6c146b255948cc16ea66475a9e867a6 +size 1197 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/CaveData.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/CaveData.xml new file mode 100644 index 000000000..5c261c103 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/CaveData.xml @@ -0,0 +1,12 @@ + + + + Prototype_GameObject_SM_LLA_Cave + Prototype_GameObject_SM_LLA_Cave_Lod1 + Prototype_GameObject_SM_LLA_Cave_Lod2 + Prototype_GameObject_SM_LLA_Cave_Lod3 + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml index 38f556aa2..ec37e8f45 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml @@ -30,22 +30,22 @@ - + - + - + - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Reparo/Reparo_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Reparo/Reparo_Data.xml new file mode 100644 index 000000000..1fe3abf1f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Reparo/Reparo_Data.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml index 51f3f40ac..bfba64e1b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml @@ -13,4 +13,6 @@ + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin index 7a20c3f8a..f04f5c067 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8618870bafa4bc447cfe8be5a51e89034f9053c4c880ffc55a741912ac46dda8 -size 5470370 +oid sha256:f9fabdae646dc31263cad264ec709dda4dd344cbd1c6e0f9a6728c25874301f4 +size 5470349 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml index 450e4cb0d..47fb3853d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml @@ -90,7 +90,7 @@ - + @@ -98,7 +98,7 @@ - + @@ -120,7 +120,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin index e1a8aa76b..d5074a218 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:93e5154ae1315dbfafbe75be9786145fb560148fb7de843166ae758ee4aa6741 -size 6367444 +oid sha256:27d59d8e1e45ebefe1cea5864e26e62c768568155113352a77ed5127224e90b4 +size 6367437 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml index 6ce6c416b..0867dd322 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.xml @@ -158,7 +158,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.bin similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.bin diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.bin new file mode 100644 index 000000000..372b02834 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d12d8e93f6842c8c1c573a2fc781bb2e5cbb6f1e77539740b45c2a9d38c43c2c +size 23945046 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.fbx new file mode 100644 index 000000000..2991584c1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0660c3e9a532f2ec6ffea5471afb220ce92c0e344a773edc15afebe3a0cafa2c +size 18829884 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin index ac84877d8..55c9981d9 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ed87fd0d054c598ec602e5837032c53dfb8dfd0c79c6345b160470e46fc6425f -size 5245079 +oid sha256:3f04e901fbb454cae82029c574caa0e4e2695f616229c32184061f63b8319738 +size 5245076 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml index 245e99c91..6a5575e2c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml @@ -32,7 +32,7 @@ - + @@ -40,7 +40,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin index e8992b936..afd1d0a80 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3985f772c7a609cf89b08c4ab59a872a8cdea3597859cedb4a160e0754b7d44c -size 7419049 +oid sha256:3105f242284fd06024b2f92a482b7a644c17b7c99f476b289f24cadfcefc7741 +size 7419042 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.xml index 9e69917af..c41c58940 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.xml @@ -30,7 +30,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/T_Poltergeist_Eye_E.dds deleted file mode 100644 index 798944162..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/T_Poltergeist_Eye_E.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin index 1c6018e77..764e00b1c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:546ac9bc9b60de76644f9f38247c3550b824917195e157831c366f208d4b5f5a -size 5707520 +oid sha256:9a9946c448139e5828004d645648abbd7b4d3c79e37f57ed2e2371fc7a43cdd9 +size 5707513 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml index 2d2a03dc7..d4369e505 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/F_Student.xml @@ -61,7 +61,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin index adf3570c4..b25c1495d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1d5a81ea309184fe42aa3ea392df4a006181379c47ee5ae7ec93337776d5e218 -size 6700667 +oid sha256:1d802a78f2f3035cd0b362347c2a1b3284eaf3b7fdbff235f3fc6ef1b0b13bf9 +size 6700652 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml index a6b895a9c..59bb9bcf4 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml @@ -34,7 +34,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -94,7 +94,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin index dbf58505e..31e8d0475 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:be7818f616f1d46a8ee108d21dff00b98d18eddac10cc73cef58e4c13e2b505b -size 6556639 +oid sha256:173c873842d70950bf3a07092ec151f6c9b21c4581604b0f1d40ffe9823a8756 +size 6556632 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 e20748e3e..4c793831b 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 @@ -59,7 +59,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin index 1d24712c5..6e2417873 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1b306098af99cdcc76b3fa6111d596fabd2212fb2548f1c30528a7eaf759c99c -size 6592747 +oid sha256:3f1f4918c0992c7951d6b7d7702feb7d2b09024749ddd89f4ea4da4d1b5603f4 +size 6592740 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml index 3d4916e6b..198bac320 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml @@ -206,7 +206,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin index a2c6b176c..9d9cbd9c7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5c94ea66f05603164f6dc6158e55ec2866d35442c81f6bde3b8c538ea277ba9e -size 5294892 +oid sha256:7188bce54066811777cbeeb38cda81beb6b160fc2699eaf10fc8385b0c21dce8 +size 5294885 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml index 576ef32d2..6d3f40e55 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student.xml @@ -187,7 +187,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin index 3027781b9..f911850ab 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aff3b610c3896ed178425c4e25f9c9d37c898a64955811c6fe4c5eac045bf778 -size 6144395 +oid sha256:afe1d6c2a3ba7373f85e7f03929f54d94847fdd0c43009c42687a1222ad9c7a5 +size 6144388 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml index 9e994a700..f347eb6e8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.xml @@ -216,7 +216,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin index b5e2e4dc4..d7a3ff1c7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b37e5e5cf4a004e6cfa35a07f4dedb9c5ec21245a45e605f86d06fdbce8174b9 -size 6344067 +oid sha256:9303673c5394730795152c520acb5b69137b4a75658db0066fbff868224e60e0 +size 6344060 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml index 179f8cb73..2a8ae173b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.xml @@ -94,7 +94,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_Decay2_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_Decay2_D.dds new file mode 100644 index 000000000..602735444 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_Decay2_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_N.dds new file mode 100644 index 000000000..4d226e763 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_SRXO.dds new file mode 100644 index 000000000..a404651ed Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_SRXO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin index aab82c01d..2eb91d69c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e176eb96c7922c0d38f0561fda632355e6e33b91f855514b2674f9cabe629afc -size 7617696 +oid sha256:11f2c5bb62b72f94660bb3ea535998d05f4412f9db984d63d0eceb7eb759b25a +size 7617689 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml index a75fb6d97..b605ef655 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.xml @@ -94,7 +94,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin index b12d12bb7..4ee84e2bb 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3eceb2b72b31a7b752ca6fd2b14803dfdc07cde1c938a3b69ed082d922e84504 -size 6854897 +oid sha256:8071bf7e7535294dd159e85c107ce3a5c604d184ca45f8b8593f969abea05401 +size 6854890 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml index 0d195e908..f17406835 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.xml @@ -89,7 +89,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin index 58e47ea43..34b5b3d85 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dadf2a75a4895b392e8047c175e81bedc20bb823c9c180afa82ff83c9831c097 -size 18597570 +oid sha256:ae2d080773cb11733b1d6e4f39d24be6d3bfcb64151ecc158c9cbf7ccaea022c +size 5375761 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx index a07942f86..344c15789 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4390d66420dfc1d0a879c34c353f5f8b9bbc0fd21410b0feffbe3af042ebedff -size 59379612 +oid sha256:f93df0eaf0e1e666222763579ab1a8a76b0156163fcb60ff015917d6b87c1ec6 +size 2346732 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml index e1f24b5ec..e84e860b1 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.xml @@ -117,7 +117,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.bin new file mode 100644 index 000000000..f8566ee4d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09167faeffc4ce2aaca9bd535d0037fb23a886ef86100327e3744cdfa690fee7 +size 18595333 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.fbx new file mode 100644 index 000000000..ad46e614a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fdbed43c0f548645a6cee610839a58cd113dff238a54c288046600d04bc2c3b +size 59382940 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.bin new file mode 100644 index 000000000..b23f894ac --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6bb38c87bcecffb91edce5fe3f291dc585c96ad50a822618c4ec54f7ca440816 +size 23283166 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.fbx new file mode 100644 index 000000000..8f4272649 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d26c4d2d1e40d20438e21e0cb0b0ec8e6a4e797f7cca5e995c9929e8cd091704 +size 18785180 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin index 8e45f5aaa..bec0b07ee 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dfb7b5a94effd49e12f0d76e8405c6fe79b6ba9c9dfce717676fe6864bc99309 +oid sha256:70cf4364fe136ed6abf6d385d0e90270b36a5087046606d634c7b2ed1adcd727 size 11099434 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml index 1d7bfcb15..460280668 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml @@ -209,7 +209,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds index 798944162..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave.bin new file mode 100644 index 000000000..3cab3a8c7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b864d800c1cfca56f25eae637214e168a740eb3b5142620e0985d38d462e555 +size 1236201 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod1.bin new file mode 100644 index 000000000..6f9c56d18 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9ed01a45bf585d49e4999cac784b72972e5c7c45b79280cbce943dc3e27ab8d +size 516245 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod2.bin new file mode 100644 index 000000000..6628b97ae --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05d5340eb73490b4e2be659e66e0cf7b86c6e9a4e281136b8881a8e613647ab5 +size 221957 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod3.bin new file mode 100644 index 000000000..f6ad1aa6e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod3.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49b3cd6a668b5f849ea0c0ecb653b0e4506138d610643988b46364802ab33f49 +size 29081 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin index db6d0011c..d8517eaf0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a1096c9b3670edcac0ab9a9dab03ba62e56409260a5dd35ddfb64eeb0f63e62d -size 3104615 +oid sha256:5d53a8ca1dda4cfe6fc341f2e15ded05e5f26663525f572614c7e64458698510 +size 3320395 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin index 62040dc7f..abaf01430 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e0f3bb296fa75aae17191189774440990f98687ea28e3a20cefaca3ec5efcfd0 -size 3845100 +oid sha256:93136ab26d5b2139f8e5b9ec10eb65ef89d66c42acefc3eacf6a80edcd054329 +size 4088859 diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 5d1550053..1f280176e 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -278,6 +278,8 @@ call Update_Shaders.bat + + @@ -569,6 +571,8 @@ call Update_Shaders.bat + + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index 908a52144..6ceddf134 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -796,6 +796,12 @@ {bde6e952-c6ee-4136-8559-99392c01645e} + + {9ff77639-f62d-4cdd-a3f1-21d58323f5d3} + + + {9b246a74-cf6e-4f02-86fb-0a499cb39d4e} + {aa6ef154-b82d-42eb-82a7-f8b7f6631a1e} @@ -1617,6 +1623,12 @@ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Shout + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Rush + 02.GameObjects\Dummys\DummyNPC @@ -2446,6 +2458,12 @@ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Shout + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Rush + 02.GameObjects\Dummys\DummyNPC diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index 1b9428398..97d719961 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -23,6 +23,8 @@ #include "Troll_Rush_Hit.h" #include "Troll_Nomal_Smoke.h" #include "TrollSwing.h" +#include "Troll_Shout.h" +#include "Troll_Rush.h" #include "StunEffect.h" #include "Blink.h" #include "Ranrok_FireBall.h" @@ -492,15 +494,33 @@ HRESULT CEffectPool::Ready_MonsterEffect() return pEffect; } ))) return E_FAIL; - //if (FAILED(Create_Effect(SKILL_TYPE::RANROK_PROP, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + if (FAILED(Create_Effect(SKILL_TYPE::TROLL_SHOUT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { - // CRanrok_Prop* pEffect = nullptr; + CTroll_Shout* pEffect = nullptr; - // pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); - // return pEffect; } - //))) return E_FAIL; - // + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::TROLL_RUSH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CTroll_Rush* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_PROP, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CRanrok_Prop* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 4105053ce..f6ef9bde9 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -51,22 +51,8 @@ HRESULT CLevel_EffectViewer::Initialize() return E_FAIL; } - //CTerrain::TERRAIN_DESC Desc = {}; - ///* Hogsmeade */ - - //Desc.isEdit = false; - //Desc.iAlphaSizeX = 2048; - //Desc.iAlphaSizeY = 2048; - //Desc.vPosition = _float3(-194, 18.5f, -153.f); - //Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin"; - //Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin"; - //Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"); - - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Terrain"), &Desc))) - // return E_FAIL; - /* 논 블랜드 중에서도 최 하단으로 들어가야함 */ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Z_Layer_EffectPool")))) //플레이어보다 먼저 생성해야함! { return E_FAIL; @@ -91,12 +77,12 @@ HRESULT CLevel_EffectViewer::Initialize() /* if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) return E_FAIL;*/ - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) - // return E_FAIL; - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) return E_FAIL; + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) + // return E_FAIL; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Sky")))){ return E_FAIL; } @@ -108,8 +94,17 @@ HRESULT CLevel_EffectViewer::Initialize() //m_pGameInstance->Add_Editor_Plane(m_PlaneData); +/* 호그 스미드 */ + + m_pGameInstance->Setting_Volumetirc( + 1.251f, // 밀도 + 0.0253f, // 빛 강도 + 0.9f, // 산란 계수 + 1.78f, // 깊이 분포 계수 + 0.f); - m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); +/* 란록 맵*/ + //m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); return S_OK; @@ -168,10 +163,18 @@ HRESULT CLevel_EffectViewer::Ready_Layer_Light() //_float4 vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f); //_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f); //_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); + + /* 란록맵 */ + //_float4 vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f); + //_float4 vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f); + //_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); + + /* 호그스미드 */ + _float4 vDiffuse = _float4(0.6529f, 0.6157f, 0.7843f, 1.0f); + _float4 vAmbient = _float4(0.6275f, 0.6275f, 0.6275f, 0.0314f); + _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.05f); + - _float4 vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f); - _float4 vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f); - _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); @@ -228,12 +231,28 @@ HRESULT CLevel_EffectViewer::Ready_Layer_PhysX(const _wstring& strLayerTag) HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag) { - _float4 vColor = _float4(0.2f, 0.2f, 0.2f, 1.f); - m_pGameInstance->Set_FogColor(vColor); - m_pGameInstance->Set_Fog(10.f, 5.f); - m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data"); - CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data"); + + CTerrain::TERRAIN_DESC Desc = {}; + /* Hogsmeade */ + + Desc.isEdit = false; + Desc.iAlphaSizeX = 2048; + Desc.iAlphaSizeY = 2048; + Desc.vPosition = _float3(-194, 18.5f, -153.f); + Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin"; + Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin"; + Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"); + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Terrain"), &Desc))) + return E_FAIL; + + //_float4 vColor = _float4(0.2f, 0.2f, 0.2f, 1.f); + //m_pGameInstance->Set_FogColor(vColor); + //m_pGameInstance->Set_Fog(10.f, 5.f); + //m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data"); + + //CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data"); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index 193623c16..a31c75cdd 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -778,8 +778,8 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag) if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE))) return E_FAIL; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) - return E_FAIL; + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) + // return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index c589088fa..3bd6f06d4 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -215,6 +215,9 @@ #include "TrollSwing.h" #include "Troll_Nomal_Smoke.h" #include "Troll_Rush_Hit.h" +#include "Troll_Shout.h" +#include "Troll_Rush.h" + #include "Goblin_Protego.h" #include "Troll.h" @@ -1716,8 +1719,13 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; } + //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.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_Weapon_Model"), - 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())))) + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"), @@ -1963,6 +1971,16 @@ HRESULT CLoader::Loading_For_Effect() if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTroll_Rush_Hit::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTroll_Shout::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTroll_Rush::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CGoblin_Protego::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -2852,6 +2870,15 @@ HRESULT CLoader::Loading_For_MapViewer() CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity())))) return E_FAIL; + /* For. Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model*/ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity())))) + return E_FAIL; + /* For. Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model*/ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity())))) + return E_FAIL; + /* For.Prototype_GameObject_Camera_Gaze */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamera_Gaze::Create(m_pDevice, m_pContext)))) return E_FAIL; @@ -3774,6 +3801,13 @@ if (bLoad_DADATower_INT) #pragma endregion +#pragma region CAVE +if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes", + ".bin", true, ModelPrototypeTags, ModelPrototypePath))) + return E_FAIL; +#pragma endregion + + #ifdef gimch diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index e5c85ff5b..ed8ba357e 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -74,7 +74,12 @@ HRESULT CLoader::Loading_For_ObjectViewer() #ifndef 기무리 /* For.Prototype_Component_Hogsmead_NorthLakeShallow */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\RiggedObjects\\Props\\Wands\\CharacterWands\\SK_Wands_Amit.fbx", XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\VFX\\Meshes\\Animated\\HM_Troll_OLI_Reparo\\VFX_SK_OLI_TrollFight_BlockerA\\VFX_SK_OLI_TrollFight_BlockerA.fbx", XMMatrixIdentity())))) + return E_FAIL; + + /* For.Prototype_Component_Hogsmead_NorthLakeShallow */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\VFX\\Meshes\\Animated\\HM_Troll_OLI_Reparo\\VFX_SK_OLI_TrollFight_BlockerB\\VFX_SK_OLI_TrollFight_BlockerB.fbx", XMMatrixIdentity())))) return E_FAIL; #endif // 기무리 @@ -264,6 +269,16 @@ HRESULT CLoader::Loading_For_ObjectViewer() #pragma region NPC + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_VictorRookWood_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_ChiyoKogawa_Model") + )); + futures.emplace_back(Deferred_ModelLoad( MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), TEXT("Prototype_Component_Npc_Model") @@ -295,16 +310,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_PhineasBlack_Model") )); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), - TEXT("Prototype_Component_VictorRookWood_Model") - )); - - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_ChiyoKogawa_Model") - )); - futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_Ghost_Peeves_Model") @@ -325,12 +330,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_Elf_Model") )); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_Elf_Model") - //)); - - futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_Kitchen_Female_Model") @@ -361,6 +360,8 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_MudiwaOnai_Model") )); + /////////////////////////////// + //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx", XMMatrixIdentity(), diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp index 50ee77b0e..0347ec447 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp @@ -2860,6 +2860,7 @@ void CMapObject_Manager::Update_DummyNpc() GUI::End(); } + void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag) { vector<_uint> LodModelIndices; diff --git a/Jusin154_Team3D/Editor/Private/ReparoObject.cpp b/Jusin154_Team3D/Editor/Private/ReparoObject.cpp index e1d904971..50ef44e79 100644 --- a/Jusin154_Team3D/Editor/Private/ReparoObject.cpp +++ b/Jusin154_Team3D/Editor/Private/ReparoObject.cpp @@ -44,6 +44,8 @@ HRESULT CReparoObject::Initialize(void* pArg) void CReparoObject::Priority_Update(_float fTimeDelta) { __super::Priority_Update(fTimeDelta); + + Describe_Entity(); } void CReparoObject::Update(_float fTimeDelta) @@ -51,12 +53,6 @@ void CReparoObject::Update(_float fTimeDelta) __super::Update(fTimeDelta); m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); - -#ifdef _DEBUG - Describe_Entity(); -#endif // _DEBUG - - } void CReparoObject::Late_Update(_float fTimeDelta) @@ -197,8 +193,14 @@ HRESULT CReparoObject::Ready_Components() return E_FAIL; } + ///* Com_Model */ + //if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"), + // reinterpret_cast(&m_pModelCom)))) { + // return E_FAIL; + //} + /* Com_Model */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"), + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"), reinterpret_cast(&m_pModelCom)))) { return E_FAIL; } @@ -280,6 +282,16 @@ void CReparoObject::Describe_Entity() if (m_pModelCom->Get_AnimSize() <= 0) return; + m_pTransformCom->Describe_Entity(); + if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)) + { + _float3 vPosition = {}; + if (m_pGameInstance->isPicking(&vPosition)) + { + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f)); + } + } + if (GUI::BeginTabBar("Anim_List")) { if (GUI::BeginTabItem("ReparoObject")) diff --git a/Jusin154_Team3D/Editor/Private/Troll.cpp b/Jusin154_Team3D/Editor/Private/Troll.cpp index 7119fd54f..d69312e2e 100644 --- a/Jusin154_Team3D/Editor/Private/Troll.cpp +++ b/Jusin154_Team3D/Editor/Private/Troll.cpp @@ -63,7 +63,7 @@ HRESULT CTroll::Initialize(void* pArg) - m_pCharacter_Controller->Set_Position(XMVectorSet(3.f, 5.f, -20.f, 1.f)); + m_pCharacter_Controller->Set_Position(XMVectorSet(110.f, 24.f, 135.f, 1.f)); m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Z_Layer_EffectPool"))->Get_Object(); SAFE_ADDREF(m_pEffectPool); @@ -116,6 +116,10 @@ void CTroll::Update(_float fTimeDelta) for (_uint i = 0; i < ENUM_CLASS(TROLL_SKILL::END); i++) m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta); + if (m_pRock_Smoke->Get_Visible() == true) + { + m_pRock_Smoke->Get_Component()->Set_State(STATE::POSITION, Get_PartObject()->Get_Component()->Get_State(STATE::POSITION)); + } #pragma region TRAIL_UPDATE @@ -398,11 +402,21 @@ HRESULT CTroll::Ready_Parts() m_pLeft_Smoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("LeftArm")); + + if (FAILED(Add_PartObject("Rock_Smoke", NEXT_LEVEL, &m_pRock_Smoke, &PartsDesc))) + { + return E_FAIL; + } + m_pRock_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollThrow/Black_Fire", static_cast(NEXT_LEVEL)); + + + if (FAILED(Add_PartObject("Left_Trail", NEXT_LEVEL, &m_pLeftTrail, &PartsDesc))) { return E_FAIL; } ; + m_pLeftTrail->Load_Trail("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Trail", static_cast(NEXT_LEVEL)); m_pLeftTrail->Set_Visible(false); @@ -456,6 +470,9 @@ void CTroll::Troll_Trail_Visible(_bool isTrailVisible) { m_pLeftTrail->Set_Visible(isTrailVisible); m_pRightTrail->Set_Visible(isTrailVisible); + + m_pLeftTrail->Get_Component()->Reset_Trail(); + m_pRightTrail->Get_Component()->Reset_Trail(); } CTroll* CTroll::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -507,6 +524,8 @@ void CTroll::Free() SAFE_RELEASE(m_pRightTrail); SAFE_RELEASE(m_pWeaponTrail); SAFE_RELEASE(m_pStunEffect); + SAFE_RELEASE(m_pRushEffect); + SAFE_RELEASE(m_pRock_Smoke); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/TrollSwing.cpp b/Jusin154_Team3D/Editor/Private/TrollSwing.cpp index f669901ac..2ce6dee7a 100644 --- a/Jusin154_Team3D/Editor/Private/TrollSwing.cpp +++ b/Jusin154_Team3D/Editor/Private/TrollSwing.cpp @@ -80,17 +80,26 @@ HRESULT CTrollSwing::Pre_Setting(CGameObject* pObject, void* pArg) _vector vPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); - vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 4.f; CEditEffect* pRockPT = Get_PartObject("Rock_PT_25"); + CEditEffect* pRock_PT_Brown = Get_PartObject("Rock_PT_Brown"); + CEditEffect* pRock_PT_Large = Get_PartObject("Rock_PT_Large"); + CEditEffect* pCrack_Decal = Get_PartObject("Crack_Decal"); CEditEffect* pSmoke = Get_PartObject("Smoke"); pRockPT->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.5f, 0.f, 0.f)); - pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.2f, 0.f, 0.f)); + pRock_PT_Brown->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.5f, 0.f, 0.f)); + pRock_PT_Large->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.5f, 0.f, 0.f)); + pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 1.5f, 0.f, 0.f)); + pCrack_Decal->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.2f, 0.f, 0.f)); pRockPT->Set_Visible(true); pSmoke->Set_Visible(true); + //pRock_PT_Brown->Set_Visible(true); + pRock_PT_Large->Set_Visible(true); + pCrack_Decal->Set_Visible(true); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Troll_Rush.cpp b/Jusin154_Team3D/Editor/Private/Troll_Rush.cpp new file mode 100644 index 000000000..b01846624 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Troll_Rush.cpp @@ -0,0 +1,186 @@ +#include "pch.h" +#include "Troll_Rush.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" + +CTroll_Rush::CTroll_Rush(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CTroll_Rush::CTroll_Rush(const CTroll_Rush& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CTroll_Rush::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CTroll_Rush::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollRushBlur"))) + return E_FAIL; + + + m_wstrEffectName = L"TrollRushBlur"; + + + m_pRush_Blur = Get_PartObject("Rush_Blur"); + + SAFE_ADDREF(m_pRush_Blur); + + m_fDuration = 2.5f; + + return S_OK; +} + +void CTroll_Rush::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CTroll_Rush::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = pCCT->Get_Position(); + + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + + m_pRush_Blur->Set_Visible(true); + + _vector vRight = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vLook = XMVector3Normalize(XMVector3Cross(vRight , XMVectorSet(0.f, 1.f, 0.f, 0.f))); + _vector vUp = XMVector3Normalize(XMVector3Cross(vLook ,vRight)); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pRush_Blur->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + +} + +void CTroll_Rush::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CTroll_Rush::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + m_pRush_Blur->Get_Component()->Set_Loop(true); + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = pCCT->Get_Position(); + + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + + m_pRush_Blur->Set_Visible(true); + + _vector vRight = XMVector3Normalize( m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook)); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pRush_Blur->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + + return S_OK; +} + +HRESULT CTroll_Rush::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTroll_Rush::Ready_Child() +{ + return S_OK; +} + +CTroll_Rush* CTroll_Rush::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTroll_Rush* pInstance = new CTroll_Rush(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTroll_Rush"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CTroll_Rush::Clone(void* pArg, CGameObject* pOwner) +{ + CTroll_Rush* pInstance = new CTroll_Rush(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTroll_Rush"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTroll_Rush::OnCollision(CGameObject* pOther, void* pDesc) +{ + + +} + +void CTroll_Rush::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pRush_Blur); +} +#ifdef _DEBUG +void CTroll_Rush::Describe_Entity() +{ + +} +#endif + +HRESULT CTroll_Rush::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Troll_Shout.cpp b/Jusin154_Team3D/Editor/Private/Troll_Shout.cpp new file mode 100644 index 000000000..8f02d0dda --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Troll_Shout.cpp @@ -0,0 +1,190 @@ +#include "pch.h" +#include "Troll_Shout.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" + +CTroll_Shout::CTroll_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CTroll_Shout::CTroll_Shout(const CTroll_Shout& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CTroll_Shout::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CTroll_Shout::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollShout"))) + return E_FAIL; + + + m_wstrEffectName = L"TrollShout"; + + + m_fDuration = 3.f; + + return S_OK; +} + +void CTroll_Shout::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CTroll_Shout::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + +} + +void CTroll_Shout::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CTroll_Shout::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = XMLoadFloat4(static_cast<_float4*>(pArg)); + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + + _vector vFootPos = {}; + + if (pCCT != nullptr) + { + vFootPos = pCCT->Get_FootPosition(); + + CEditEffect* pShout_Blur = Get_PartObject("Shout_Blur"); + CEditEffect* pSmoke = Get_PartObject("Shout_Smoke"); + + + pShout_Blur->Get_Component()->Set_State(STATE::POSITION, vPos); + pShout_Blur->Set_Visible(true); + + pSmoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pSmoke->Set_Visible(true); + } + + + + return S_OK; +} + +HRESULT CTroll_Shout::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTroll_Shout::Ready_Child() +{ + return S_OK; +} + +CTroll_Shout* CTroll_Shout::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTroll_Shout* pInstance = new CTroll_Shout(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTroll_Shout"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CTroll_Shout::Clone(void* pArg, CGameObject* pOwner) +{ + CTroll_Shout* pInstance = new CTroll_Shout(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTroll_Shout"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTroll_Shout::OnCollision(CGameObject* pOther, void* pDesc) +{ + _int iIndex = CollisionCheck(); + + if (iIndex < 0) + return; + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + + _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + +} + +void CTroll_Shout::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG +void CTroll_Shout::Describe_Entity() +{ + +} +#endif + +HRESULT CTroll_Shout::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Troll_States.cpp b/Jusin154_Team3D/Editor/Private/Troll_States.cpp index 44d802525..e103bed6b 100644 --- a/Jusin154_Team3D/Editor/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Editor/Private/Troll_States.cpp @@ -6,6 +6,9 @@ #include "Troll_Rock.h" #include "EffectPool.h" #include "TrailObject.h" +#include "Troll_Weapon.h" +#include "EditEffect.h" +#include "Effect_Container.h" #pragma region STATE #include "State_Idle.h" @@ -47,7 +50,9 @@ void CTroll::Behavior_IdleBreakEnter() m_pFSM->Enable_State(FSMSTATE::IDLEBREAK); pair<_uint, _bool> pairAnimInfo; m_bLookAt = true; - _int RandIndex = m_pGameInstance->Real_Random_Int(0, 3); + _int RandIndex = 3; + + switch (RandIndex) { case 0: //땅 두번구르기 왼발 오른발 @@ -76,6 +81,17 @@ void CTroll::Behavior_IdleBreakEnter() break; case 1:// 방망이 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK2]; + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix WeaponMat = XMLoadFloat4x4(m_pWeapon_BoneMat) * Get_PartObject()->Get_Component()->Get_XMWorldMatrix();; + + _float4 vPosition = {}; + XMStoreFloat4(&vPosition, WeaponMat.r[3]); + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, this, &vPosition); + }, 0.7f); + break; case 2: // 발구르기 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK3]; @@ -93,8 +109,24 @@ void CTroll::Behavior_IdleBreakEnter() break; case 3: //소리지르기 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK4]; + + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix HandMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("mouth_bag")) * m_pTransformCom->Get_XMWorldMatrix(); + + _float4 vPosition = {}; + + XMStoreFloat4(&vPosition, HandMat.r[3]); + + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_SHOUT, this , &vPosition); + + }, 0.2f); + break; } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } @@ -269,6 +301,23 @@ void CTroll::Behavior_RushEnter() pairAnimInfo = m_Animation[STATEANIM::RUSH_START]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix HandMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("IK_LeftFoot")) * m_pTransformCom->Get_XMWorldMatrix(); + + _float4 vPosition = {}; + XMStoreFloat4(&vPosition, HandMat.r[3]); + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, this, &vPosition); + }, 0.45f); + + Add_Event(m_Animation[STATEANIM::RUSH_LOOP].first, [this]() { + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_RUSH, this, nullptr , &m_pRushEffect); + + }, 0.f); + } HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta) @@ -290,6 +339,12 @@ HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta) else { m_fRushTime += fTimeDelta; + if (m_fRushTime >= 1.f && m_pRushEffect != nullptr) + { + m_pRushEffect->Get_PartObject()->Get_Component()->Set_Loop(false); + SAFE_RELEASE(m_pRushEffect); + } + if (m_fRushTime >= 1.5f) { m_fRushTime = 0.f; @@ -334,7 +389,9 @@ void CTroll::Behavior_ThrowEnter() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, - [this](){Get_PartObject()->Set_Visible(true);}, + [this](){Get_PartObject()->Set_Visible(true); + m_pRock_Smoke->Set_Visible(true); + }, 0.95f); } @@ -389,6 +446,7 @@ void CTroll::Behavior_ThrowExit() m_pFSM->Disable_State(FSMSTATE::THROW_ROCK); Get_PartObject()->Set_Attach(true); Get_PartObject()->Set_Visible(false); + m_pRock_Smoke->Set_Visible(false); } void CTroll::Behavior_SwingEnter() @@ -405,16 +463,20 @@ void CTroll::Behavior_SwingEnter() [this]() {m_bLookAt = false; }, 0.2f); + Add_Event(pairAnimInfo.first, + [this]() { + Troll_Trail_Visible(true); + m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); }, + 0.3f); - Troll_Trail_Visible(true); - m_pWeaponTrail->Set_Visible(true); Add_Event(pairAnimInfo.first, [this]() { Troll_Trail_Visible(false); m_pWeaponTrail->Set_Visible(false); }, - 0.6f); + 0.65f); } HRESULT CTroll::Behavior_SwingExitCheck(_float fTimeDelta) @@ -448,16 +510,13 @@ void CTroll::Behavior_SlamEnter() m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)] = m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)]; - - Troll_Trail_Visible(true); - m_pWeaponTrail->Set_Visible(true); - Add_Event(pairAnimInfo.first, [this]() { - Troll_Trail_Visible(false); - m_pWeaponTrail->Set_Visible(false); - }, - 0.7f); + Troll_Trail_Visible(true); + m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); }, + 0.15f); + Add_Event(m_Animation[STATEANIM::SLAM].first, @@ -466,6 +525,8 @@ void CTroll::Behavior_SlamEnter() Add_Event(m_Animation[STATEANIM::SLAM].first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_ATTACK, this); + Troll_Trail_Visible(false); + m_pWeaponTrail->Set_Visible(false); } , 0.3f); } @@ -501,15 +562,20 @@ void CTroll::Behavior_BackHandSwingEnter() [this]() { m_bLookAt = false; }, 0.2f); - Troll_Trail_Visible(true); - m_pWeaponTrail->Set_Visible(true); + + Add_Event(pairAnimInfo.first, + [this]() { + Troll_Trail_Visible(true); + m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); }, + 0.4f); Add_Event(pairAnimInfo.first, [this]() { Troll_Trail_Visible(false); m_pWeaponTrail->Set_Visible(false); }, - 0.9f); + 0.66f); } HRESULT CTroll::Behavior_BackHandSwingExitCheck(_float fTimeDelta) diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index ada767a10..24254b1df 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -67,8 +67,8 @@ namespace Editor JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, STUPEFY_SIDE, STUN, - TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_IMPACT , RANROK_HIT, RANROK_LAND, RANROK_RUSH_BOTTOM, - RANROK_GROUNDPULSE, RANROK_SWIPE, RANROK_DEAD_SPLASH , RANROK_DEAD_IMPACT, RANROK_PROP, + TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, TROLL_SHOUT, TROLL_RUSH, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_IMPACT , RANROK_HIT, RANROK_LAND, RANROK_RUSH_BOTTOM, + RANROK_GROUNDPULSE, RANROK_SWIPE, RANROK_DEAD_SPLASH , RANROK_DEAD_IMPACT, RANROK_PROP, END }; diff --git a/Jusin154_Team3D/Editor/Public/ReparoObject.h b/Jusin154_Team3D/Editor/Public/ReparoObject.h index 8bc3135fa..2cf913914 100644 --- a/Jusin154_Team3D/Editor/Public/ReparoObject.h +++ b/Jusin154_Team3D/Editor/Public/ReparoObject.h @@ -31,7 +31,6 @@ class CReparoObject final : public CMonster HRESULT Bind_ShaderResources(); HRESULT Render_OutLine(); - public: static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; diff --git a/Jusin154_Team3D/Editor/Public/Troll.h b/Jusin154_Team3D/Editor/Public/Troll.h index 09d182839..0b47609c3 100644 --- a/Jusin154_Team3D/Editor/Public/Troll.h +++ b/Jusin154_Team3D/Editor/Public/Troll.h @@ -78,6 +78,8 @@ class CTroll final : public CMonster #endif // _DEBUG private: class CEffectPool* m_pEffectPool = nullptr; + class CEffect_Container* m_pRushEffect = nullptr; + class CEditEffect* m_pRock_Smoke = { nullptr }; private: virtual void Add_FSM(); virtual void Set_Anim(); diff --git a/Jusin154_Team3D/Editor/Public/Troll_Rush.h b/Jusin154_Team3D/Editor/Public/Troll_Rush.h new file mode 100644 index 000000000..d588f1344 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Troll_Rush.h @@ -0,0 +1,45 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CTroll_Rush final : public CEffect_Container +{ +private: + CTroll_Rush(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTroll_Rush(const CTroll_Rush& rhs); + virtual ~CTroll_Rush() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + + class CEditEffect* m_pRush_Blur = { nullptr }; + +public: + static CTroll_Rush* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Troll_Shout.h b/Jusin154_Team3D/Editor/Public/Troll_Shout.h new file mode 100644 index 000000000..75a6b691b --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Troll_Shout.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CTroll_Shout final : public CEffect_Container +{ +private: + CTroll_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTroll_Shout(const CTroll_Shout& rhs); + virtual ~CTroll_Shout() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + +public: + static CTroll_Shout* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index bcecf78b7..39a575afd 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -923,6 +923,19 @@ HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel) } return S_OK; } +HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel, const _char* pName) +{ + m_iNumPhysXMeshes = m_iNumMeshes; + + m_TriMeshes.reserve(m_iNumMeshes); + + m_pGameInstance->ConvertToTriMeshes(m_Meshes, m_TriMeshes, PreTransformMatrix); + + for (_uint i = 0; i < m_iNumMeshes; ++i) { + m_pGameInstance->RegistTriMesh(pName, m_TriMeshes[i], iLevel); + } + return S_OK; +} #ifdef EDITOR_PROJECT HRESULT CModel::Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix) diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 4d223fb5b..579d3124a 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -162,6 +162,8 @@ class ENGINE_DLL CModel final : public CComponent public: HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel); + HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel, const _char* pName); + #ifdef EDITOR_PROJECT HRESULT Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex); HRESULT Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix);