diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index efcc46742..bca9cc3dc 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -176,6 +176,9 @@ call Update_Resources.bat + + + @@ -184,6 +187,8 @@ call Update_Resources.bat + + @@ -200,6 +205,7 @@ call Update_Resources.bat + @@ -209,6 +215,7 @@ call Update_Resources.bat + @@ -455,6 +462,9 @@ call Update_Resources.bat + + + @@ -466,6 +476,8 @@ call Update_Resources.bat + + @@ -481,6 +493,7 @@ call Update_Resources.bat + @@ -490,6 +503,7 @@ call Update_Resources.bat + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 0ebb2982f..f59db13e8 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -854,9 +854,30 @@ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse + + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash + + + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe + + + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact + 02.GameObjects\NPC\Hostile\Human_Duelist + + 02.GameObjects\Effect\Effects\NomalJap\Duelist_NormalJap + + + 02.GameObjects\Effect\MonsterEffect\Duelist_Protego + + + 02.GameObjects\Effect\Effects\Levioso\Duelist_Levioso + + + 04.Mechanic\State\State_Combat\State_CutScene + @@ -1772,13 +1793,34 @@ {eb8e52f5-0283-4acf-8fbb-0e734b7580e9} - + {9c357e12-18b3-461e-b74c-76f85280796f} {8b69e309-b90b-47f6-8f2d-3dd778b468fe} + + {a7aeb7ef-a180-49ba-81f6-c8a47dcb941d} + + + {7a994c53-e406-485e-82c2-6a116b6b23e5} + + + {e1fcb75d-6e7a-4adb-9835-6913ac6f44b6} + + + {09b5e5b3-c1fe-4399-b2d3-96d652255bb5} + + + {b12b49e0-3bdc-403f-be34-3e97cada7270} + + + {5351494b-8047-488a-ba2b-59a88dae4534} + + + {b50fed80-37dd-4adb-afd4-ba153cef8a92} + @@ -2589,6 +2631,27 @@ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_GroundPulse + + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadSplash + + + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_DeadImpact + + + 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Swipe + + + 02.GameObjects\Effect\Effects\NomalJap\Duelist_NormalJap + + + 02.GameObjects\Effect\MonsterEffect\Duelist_Protego + + + 02.GameObjects\Effect\Effects\Levioso\Duelist_Levioso + + + 04.Mechanic\State\State_Combat\State_CutScene + diff --git a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp index 2f1f2e6ca..13d0fed10 100644 --- a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp +++ b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp @@ -83,7 +83,7 @@ void CAvadakedavra::Late_Update(_float fTimeDelta) if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.2f); + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); OnCollision(this, &CollisionInfo); } diff --git a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp new file mode 100644 index 000000000..3b6c80524 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp @@ -0,0 +1,319 @@ +#include "pch.h" +#include "Duelist_Levioso.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Human_Duelist.h" +#include "TrailObject.h" +#include "Wand.h" +#include "InfoInstance.h" + + +CDuelist_Levioso::CDuelist_Levioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CDuelist_Levioso::CDuelist_Levioso(const CDuelist_Levioso& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ +} + +HRESULT CDuelist_Levioso::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso"))) + return E_FAIL; + + return S_OK; +} + +HRESULT CDuelist_Levioso::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_iSkillType = ENUM_CLASS(SKILL_TYPE::DUELIST_LEVIOSO); + + m_pLeviosoPJ_0 = Get_PartObject("Levioso_PJ0"); + m_pTrail_PT_0 = Get_PartObject("Trail_PT0"); + + m_pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); + m_pLevioso_Rotate1 = Get_PartObject("Levioso_Rotate1"); + + SAFE_ADDREF(m_pLevioso_Rotate0); + SAFE_ADDREF(m_pLevioso_Rotate1); + + SAFE_ADDREF(m_pLeviosoPJ_0); + SAFE_ADDREF(m_pTrail_PT_0); + + m_wstrEffectName = L"Levioso"; + + m_fTurnSpeed = 10.f; + m_fRange = 1.f; + + m_fDuration = 2.f; + + + + return S_OK; +} + +void CDuelist_Levioso::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + + XMStoreFloat4(&m_vStartPos, m_pLeviosoPJ_0->Get_WorldPostion()); + +} + +void CDuelist_Levioso::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + m_pLeviosoPJ_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); + m_pTrail_PT_0->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); + + + _matrix WorldMat = m_pTrail_PT_0->Get_Component()->Get_XMWorldMatrix(); + + if (m_bHit == true && m_pEnemyTransform != nullptr) + { + _vector vPos = m_pEnemyTransform->Get_State(STATE::POSITION); + + m_pLevioso_Rotate0->Get_Component()->Set_State(STATE::POSITION, vPos); + m_pLevioso_Rotate1->Get_Component()->Set_State(STATE::POSITION, vPos); + } + +} + +void CDuelist_Levioso::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + XMStoreFloat4(&m_vEndPos, m_pLeviosoPJ_0->Get_WorldPostion()); + + _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); + + if (true == m_pGameInstance->SphereCast(0.25f, XMLoadFloat4(&m_vStartPos), XMVector3Normalize(vDir), XMVectorGetX(XMVector3Length(vDir)) + , PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eSTATIC, m_Hitbuffer)) + { + + } + + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f); + + OnCollision(this, &CollisionInfo); + } + + __super::Late_Update(fTimeDelta); +} + +HRESULT CDuelist_Levioso::Pre_Setting(CGameObject* pObject, void* pArg) +{ + + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CHuman_Duelist* pDuelist = static_cast(m_pOwner); + + if (pDuelist == nullptr) + return E_FAIL; + + _vector WandPos = pDuelist->Get_WandPos().r[3]; + + CEffectParts* pWandSmoke = Get_PartObject("Levioso_Wand0"); + CEffectParts* pWandLight = Get_PartObject("Levioso_Wand_Light"); + + m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); + m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); + pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pDuelist->Get_PartObject()->Get_WorldPostion()); + pWandLight->Get_Component()->Set_State(STATE::POSITION, pDuelist->Get_PartObject()->Get_WorldPostion()); + + m_pLeviosoPJ_0->Set_Visible(true); + m_pTrail_PT_0->Set_Visible(true); + pWandSmoke->Set_Visible(true); + pWandLight->Set_Visible(true); + + + m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + + _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + XMStoreFloat3(&m_vCameraLook, vDirection); + + _vector vStartPos = WandPos; + XMStoreFloat4(&m_vStartPos, vStartPos); + + { /* 대상 위치 지정 */ + + CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first; + + if (pPlayer == nullptr) + return E_FAIL; + + if (nullptr != pPlayer) { + + XMStoreFloat4(&m_vTargetPos, pPlayer->Get_LockOnPos()); + + XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); + } + else { + // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정 + XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f); + } + + } + + _vector vDir = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook)); + + _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vDir)); + + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vDir)); + + _matrix ProjMat = _matrix(vRight, vUp, vDir, vStartPos); + + m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(ProjMat); + + return S_OK; +} + +HRESULT CDuelist_Levioso::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CDuelist_Levioso::Ready_Child() +{ + + return S_OK; +} + +CDuelist_Levioso* CDuelist_Levioso::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDuelist_Levioso* pInstance = new CDuelist_Levioso(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDuelist_Levioso"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CDuelist_Levioso::Clone(void* pArg, CGameObject* pOwner) +{ + CDuelist_Levioso* pInstance = new CDuelist_Levioso(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDuelist_Levioso"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDuelist_Levioso::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + m_fAccTime = 0.f; + m_fDuration = 3.5f; //적중하면 지속시간 3초 + + + /* 바람과 파티클은 풋포지션 */ + CCharacter_Controller* pHitCCT = CollisionDesc.pObject->Get_Component(); + + if (pHitCCT != nullptr) + { + _vector vFootPos = pHitCCT->Get_FootPosition(); + + CEffectParts* pLevioso_Tornado = Get_PartObject("Levioso_Tornado"); + CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + CEffectParts* pLevioso_Bottom_PT = Get_PartObject("Levioso_Bottom_PT"); + + m_pEnemyTransform = CollisionDesc.pObject->Get_Component(); + + pLevioso_Tornado->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Bottom_Wind->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pLevioso_Bottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + } + + + + //Get_PartObject("Levioso_Tornado") + //CEffectParts* pLevioso_Hit = Get_PartObject("Levioso_Hit"); + //CEffectParts* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); + + + + m_pLeviosoPJ_0->Set_Visible(false); + m_pTrail_PT_0->Set_Visible(false); + //m_pLeviosoTrail->Set_Visible(false); +} + +void CDuelist_Levioso::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pLeviosoPJ_0); + SAFE_RELEASE(m_pTrail_PT_0); + + SAFE_RELEASE(m_pLevioso_Rotate0); + SAFE_RELEASE(m_pLevioso_Rotate1); +} +#ifdef _DEBUG + +void CDuelist_Levioso::Describe_Entity() +{ + GUI::Begin("LEVIOSO", 0, IMGUI_GLOBAL_BEGIN_FLAG); + + GUI::DragFloat("TURN SPEED", &m_fTurnSpeed); + GUI::DragFloat("RANGE", &m_fRange); + GUI::End(); + +} + +#endif // _DEBUG + +HRESULT CDuelist_Levioso::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp new file mode 100644 index 000000000..aef3a132d --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp @@ -0,0 +1,352 @@ +#include "pch.h" +#include "Duelist_NormalJap.h" + +#include "Unit.h" +#include "InfoInstance.h" +#include "GameInstance.h" +#include "EffectParts.h" +#include "TrailObject.h" +#include "Human_Duelist.h" + + +CDuelist_NormalJap::CDuelist_NormalJap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CDuelist_NormalJap::CDuelist_NormalJap(const CDuelist_NormalJap& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + +} + +HRESULT CDuelist_NormalJap::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap"))) { + return E_FAIL; + } + + return S_OK; + +} + +HRESULT CDuelist_NormalJap::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_iSkillType = ENUM_CLASS(SKILL_TYPE::JAP); + + + m_wstrEffectName = L"Nomal_Jap"; + + + + m_pProjectile_Side = Get_PartObject("JapProjSide"); + m_pProjectile = Get_PartObject("JapProjCircle"); + + SAFE_ADDREF(m_pProjectile); + SAFE_ADDREF(m_pProjectile_Side); + + m_fDuration = 1.7f; + assert(m_fDuration > 0.f); + return S_OK; +} + +void CDuelist_NormalJap::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + + + XMStoreFloat4(&m_vStartPos, m_pProjectile->Get_WorldPostion()); + +} + +void CDuelist_NormalJap::Update(_float fTimeDelta) +{ + + if (m_bVisible == false) { + return; + } + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + _vector vDirection = XMLoadFloat3(&m_vCameraLook); + + + // 선속도 + m_pProjectile_Side->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); + m_pProjectile->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); + + //Up벡터 방향으로 파이만큼 이동 + + if (m_fAccRotateTime > XM_2PI) + return; + + m_fAccRotateTime += fTimeDelta * m_fAngularSpeed; + + m_pProjectile_Side->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount); + m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount); + + // 내 라이트 방향으로 좌우무빙 하도록 해보자 + + + if (m_fAccZigZagTime > XM_2PI) + m_fAccZigZagTime = 0.f; + + m_fAccZigZagTime += fTimeDelta * m_fZigZagSpeed; + + m_pProjectile_Side->Get_Component()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount); + m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount); + + XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion()); + + _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); + + if (true == m_pGameInstance->SphereCast(0.25f, XMLoadFloat4(&m_vStartPos), XMVector3Normalize(vDir), XMVectorGetX(XMVector3Length(vDir)) + , PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eSTATIC, m_Hitbuffer)) + { + OnCollision(this); + } + +} + + +void CDuelist_NormalJap::Late_Update(_float fTimeDelta) +{ + if (false == m_bVisible) { + return; + } + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = m_pProjectile->Get_WorldPostion(); + MonsterSweepTarget(vStartPos, vEndPos, 0.02f); + } + Get_PartObject()->Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); + + __super::Late_Update(fTimeDelta); +} + +HRESULT CDuelist_NormalJap::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + m_fAccMoveTime = 0.f; + m_fAccRotateTime = 0.f; + + /* 초기 위치 저장 */ + _vector vStartPos = m_pOwner->Get_WorldPostion(); + XMStoreFloat4(&m_vStartPos, vStartPos); + + /* 초기 객체 위치 초기화 */ + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vStartPos); + m_pProjectile_Side->Get_Component()->Set_State(STATE::POSITION, vStartPos); + + /* 초기 객체 비지블 */ + m_pProjectile->Set_Visible(true); + m_pProjectile_Side->Set_Visible(true); + + /*트레일 초기화 */ + Get_PartObject()->Set_Visible(true); + Get_PartObject()->Get_Component()->Reset_Trail(); + + _uint iIndex = *static_cast<_uint*>(pArg); + + + m_fLinearSpeed = m_vJapData[iIndex].x; + m_fAngle = XMConvertToRadians(m_vJapData[iIndex].y); + m_fZigZagSpeed = m_vJapData[iIndex].z; + m_fZigZagAngle = XMConvertToRadians(m_vJapData[iIndex].w); + + + _vector vDirection = m_pOwner->Get_Owner()->Get_Component()->Get_State(STATE::LOOK); + + XMStoreFloat3(&m_vCameraLook, vDirection); + + + { /* 대상 위치 지정 */ + m_bHit = false; + CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first; + + if (pPlayer == nullptr) + return E_FAIL; + + if (nullptr != pPlayer) { + XMStoreFloat4(&m_vTargetPos, pPlayer->Get_LockOnPos()); + + if (XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))) >= 35.f) { //거리가 일정 이상이라면 그냥 정면으로 발사 + XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f); + } + XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); + } + else { + // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정 + XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f); + } + } + + + /* 대상 거리 계산 */ + + _vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); + _vector vRight = XMVectorSet(1.f, 0.f, 0.f, 0.f); + + + _vector vQuaternion = XMQuaternionRotationAxis(XMLoadFloat3(&m_vCameraLook), m_fAngle); + + XMStoreFloat3(&m_vRotateUp, XMVector3Normalize(XMVector3Rotate(vUp, vQuaternion))); + + vQuaternion = XMQuaternionRotationAxis(XMLoadFloat3(&m_vRotateUp), m_fAngle); + + XMStoreFloat3(&m_vRotateRight, XMVector3Normalize(XMVector3Rotate(vRight, vQuaternion))); + + + /* 내속도를 알고 잇음*/ + + /* 거리 / 속도 = 시간 */ + + _float fDistance = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); + + m_fTimeRate = fDistance / m_fLinearSpeed; + + //내가 적에게까지 갈때까지 걸리는 시간을 암 + + //그러므로 내가 0 ~ 파이 까지 러프하는 과정이 그 시간동안 이루어져야 함 + + //그 속도가 파이 / 시간 이므로 이걸 프레임마다 누적함 + + m_fAngularSpeed = XM_2PI / m_fTimeRate; // 프레임마다 누적할 시간 + + m_fAccZigZagTime = 0.f; + + return S_OK; +} + +HRESULT CDuelist_NormalJap::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CDuelist_NormalJap::Ready_Child() +{ + + return S_OK; +} + +CDuelist_NormalJap* CDuelist_NormalJap::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDuelist_NormalJap* pInstance = new CDuelist_NormalJap(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDuelist_NormalJap"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CDuelist_NormalJap::Clone(void* pArg, CGameObject* pOwner) +{ + CDuelist_NormalJap* pInstance = new CDuelist_NormalJap(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDuelist_NormalJap"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDuelist_NormalJap::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); + } + + Get_PartObject("JapPT0")->Get_Component()->LookAt(m_pOwner->Get_WorldPostion()); + + m_pProjectile_Side->Set_Visible(false); + m_pProjectile->Set_Visible(false); + Get_PartObject("Circle_Particle_Red")->Set_Visible(false); + + Get_PartObject()->Set_Visible(false); + Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); +} + +void CDuelist_NormalJap::Free() +{ + __super::Free(); + + Safe_Release(m_pProjectile); + Safe_Release(m_pProjectile_Side); + +} +#ifdef _DEBUG + +void CDuelist_NormalJap::Describe_Entity() +{ + GUI::Begin("Jap", 0, IMGUI_GLOBAL_BEGIN_FLAG); + + GUI::InputFloat("Speed", &m_fLinearSpeed); + + if (GUI::InputFloat("Angle", &m_fAngle)) + m_fAngle = XMConvertToRadians(m_fAngle); + + + GUI::InputFloat("ZigTime", &m_fAccZigZagTime); + + GUI::InputFloat("ZigSpeed", &m_fZigZagSpeed); + + GUI::InputFloat("ZigAmount", &m_fZigZagAmount); + + if (GUI::InputFloat("ZigZagAngle", &m_fZigZagAngle)) + m_fZigZagAngle = XMConvertToRadians(m_fZigZagAngle); + + + GUI::End(); +} + +#endif // _DEBUG + +HRESULT CDuelist_NormalJap::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp new file mode 100644 index 000000000..ea1dfa77c --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp @@ -0,0 +1,218 @@ +#include "pch.h" +#include "Duelist_Protego.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Player.h" + + +CDuelist_Protego::CDuelist_Protego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CDuelist_Protego::CDuelist_Protego(const CDuelist_Protego& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CDuelist_Protego::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CDuelist_Protego::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/Package/Protego"))) + return E_FAIL; + + if (FAILED(Create_Effect())) + return E_FAIL; + + m_pSphere = Get_PartObject("ProtegoSphere"); + m_pSphereLay = Get_PartObject("ProtegoLay"); + + SAFE_ADDREF(m_pSphere); + SAFE_ADDREF(m_pSphereLay); + + m_wstrEffectName = L"Protego"; + + + m_fAmountSize = 0.1f; + m_fSpeed = 5.f; + + m_fDuration = 3.f; + + return S_OK; +} + +void CDuelist_Protego::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); +} + +void CDuelist_Protego::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + if (m_bVisible == false) { + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); + } + + + /* 시작 사이즈 러프 */ + if (m_fSizeAccTime > XM_PIDIV2) + return; + + m_fSizeAccTime += fTimeDelta * m_fSpeed; + + _float fSize = 1 + sinf(m_fSizeAccTime) * m_fAmountSize; + _float3 vSize = _float3(fSize, fSize, fSize); + + m_pSphere->Get_Component()->Set_Scale(vSize); + m_pSphereLay->Get_Component()->Set_Scale(vSize); +} + +void CDuelist_Protego::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) { + return; + } + m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_Component()->Get_Position()); + __super::Late_Update(fTimeDelta); + +} + +HRESULT CDuelist_Protego::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + m_pSphere->Set_Visible(true); + m_pSphereLay->Set_Visible(true); + + + + _float3 vSize = _float3(1.f, 1.f, 1.f); + m_pSphere->Get_Component()->Set_Scale(vSize); + m_pSphereLay->Get_Component()->Set_Scale(vSize); + + m_fSizeAccTime = 0.f; + + return S_OK; +} + +HRESULT CDuelist_Protego::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + + { // DO + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::DUELIST_PROTEGO); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + } + + return S_OK; +} + +HRESULT CDuelist_Protego::Ready_Child() +{ + return S_OK; +} + +CDuelist_Protego* CDuelist_Protego::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDuelist_Protego* pInstance = new CDuelist_Protego(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDuelist_Protego"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CDuelist_Protego::Clone(void* pArg, CGameObject* pOwner) +{ + CDuelist_Protego* pInstance = new CDuelist_Protego(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDuelist_Protego"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc) +{ + + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + if (!m_bVisible) + { + m_pOwner->OnCollision(pOther, pDesc); + return; + } + +} + +void CDuelist_Protego::Free() +{ + __super::Free(); + + //if(m_pPhysHitBox != nullptr) + // if (m_pPhysHitBox->Get_Depth() == false) + // SAFE_RELEASE(m_pPhysHitBox); + SAFE_RELEASE(m_pRigidBody); + SAFE_RELEASE(m_pSphere); + SAFE_RELEASE(m_pSphereLay); + +} +#ifdef _DEBUG + +void CDuelist_Protego::Describe_Entity() +{ + GUI::Begin("PROTEGO"); + + GUI::DragFloat("fAmountSize", &m_fAmountSize); + GUI::DragFloat("fSpeed", &m_fSpeed); + + GUI::End(); +} + +#endif // _DEBUG + +HRESULT CDuelist_Protego::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 025be182d..107970b6a 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -6,10 +6,13 @@ #include "Effect_Container.h" #include "Bombard.h" #include "NomalJap.h" +#include "Duelist_NormalJap.h" #include "Decendo.h" #include "Protego.h" +#include "Duelist_Protego.h" #include "Revelio.h" #include "Levioso.h" +#include "Duelist_Levioso.h" #include "BombardSide.h" #include "LeviosoSide.h" @@ -52,6 +55,9 @@ #include "Ranrok_Land.h" #include "Ranrok_GroundPulse.h" #include "Ranrok_Rush_Bottom.h" +#include "Ranrok_Swipe.h" +#include "Ranrok_DeadSplash.h" +#include "Ranrok_DeadImpact.h" CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) @@ -234,6 +240,14 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::DUELIST_JAP, 10, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + CDuelist_NormalJap* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* { @@ -262,6 +276,15 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::DUELIST_PROTEGO, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* { + + CDuelist_Protego* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::REVELIO, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* { CRevelio* pEffect = nullptr; @@ -289,6 +312,15 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::DUELIST_LEVIOSO, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CDuelist_Levioso* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::LUMOS, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { @@ -668,6 +700,33 @@ HRESULT CEffectPool::Ready_MonsterEffect() return pEffect; } ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_SWIPE, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CRanrok_Swipe* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_SPLASH, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CRanrok_DeadSplash* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_IMPACT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CRanrok_DeadImpact* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; return S_OK; } @@ -686,6 +745,7 @@ HRESULT CEffectPool::Create_Effect(SKILL_TYPE eType, _uint iNumEffect, _uint iPr } + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp index 528945a31..50205ae4b 100644 --- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp +++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp @@ -742,6 +742,15 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End } break; } + switch (PXOBJECT(pUserData->iSubKind)) + { + case PXOBJECT::DUELIST_PROTEGO: + { + pUserData->pOwner->OnCollision(this, &tagCollInfo); + m_bHit = true; + } + break; + } break; case PHYSX_KIND::CCTActor: { @@ -778,6 +787,13 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End pUserData->pOwner->OnCollision(this, &tagCollInfo); m_bHit = true; } + break; + case PXOBJECT::AI: + { + pUserData->pOwner->OnCollision(this, &tagCollInfo); + m_bHit = true; + } + break; } } } diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index ee72f7596..f7fe37aee 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -5,6 +5,7 @@ #include "CallBack_Playable_HitReport.h" #include "Character_Controller.h" #include "EffectPool.h" +#include "Effect_Container.h" #include "GameInstance.h" #include "InfoInstance.h" #include "Layer.h" @@ -12,13 +13,12 @@ #include "Mesh.h" CHuman_Duelist::CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - : CUnit(pDevice, pContext) + : CMonster(pDevice, pContext) { } CHuman_Duelist::CHuman_Duelist(const CHuman_Duelist& Prototype) - : CUnit(Prototype), - m_pInfoInstance(CInfoInstance::GetInstance()) + : CMonster(Prototype) { } @@ -60,10 +60,9 @@ HRESULT CHuman_Duelist::Initialize(void* pArg) m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); SAFE_ADDREF(m_pEffectPool); - m_pInfoInstance->Regist_PlayerAlly(this); - m_pInfoInstance->Set_Damage(m_pStat->Get_Stat().fDamage); + m_pInfoInstance->Regist_ActiveMonster(this); { - PLAYERDESC* pDesc = static_cast(pArg); + DUELISTDESC* pDesc = static_cast(pArg); _vector vPos = XMLoadFloat4(&pDesc->vPos); _vector vRotQ = XMLoadFloat4(&pDesc->vRotQ); m_pCharacter_Controller->Set_Position(vPos); @@ -71,7 +70,7 @@ HRESULT CHuman_Duelist::Initialize(void* pArg) m_pTransformCom->Rotation(vRotQ); } - m_bAI = false; + m_bAI = true; m_pModelCom->Set_DisableRootMotionScale(true); @@ -106,6 +105,9 @@ void CHuman_Duelist::Update(_float fTimeDelta) m_pCallBack_HitReport->Set_CurrentSlop(); } + for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++) + m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta); + m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION)); } @@ -121,6 +123,10 @@ void CHuman_Duelist::Late_Update(_float fTimeDelta) Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())); __super::Late_Update(fTimeDelta); + + if (true == m_bLookAt) { + m_pTransformCom->LookAt_Horizontal_Lerp(XMLoadFloat4(&m_vTargetPos), fTimeDelta, 3.f); + } } @@ -224,8 +230,6 @@ HRESULT CHuman_Duelist::Render_Shadow(SHADOW eType) } void CHuman_Duelist::OnCollision(CGameObject* pOther, void* pDesc) { - _int iCurrAnim = m_pModelCom->Get_AnimIndex(); - ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); if (CollisionDesc) { Check_HitAngle(XMLoadFloat4(&CollisionDesc->vHitDir)); @@ -236,6 +240,25 @@ void CHuman_Duelist::OnCollision(CGameObject* pOther, void* pDesc) m_fHitDegree = -1.f; } + pair<_float, _float> damagePair = {}; + + CEffect_Container* pEffect_Container = dynamic_cast(pOther); + 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::JAP): + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP); + break; + case ENUM_CLASS(SKILL_TYPE::LEVIOSO): + m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO); + break; + } + } + if (m_eHitType != ENUM_CLASS(HIT_TYPE::HIT_NONE)) m_pFSM->Change_State(FSMSTATE::HIT); } @@ -252,7 +275,11 @@ HRESULT CHuman_Duelist::Ready_Components() Desc.fRotationPerSec = XMConvertToRadians(180.0f); Desc.fRadius = 10.f; - if (FAILED(__super::Ready_Components(&Desc))) { + if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, &Desc))) { + return E_FAIL; + } + + if (FAILED(Add_Component(g_iStaticLevel, &m_pFSM))) { return E_FAIL; } @@ -280,14 +307,15 @@ HRESULT CHuman_Duelist::Ready_Components() return E_FAIL; } - m_pStat = m_pInfoInstance->Get_PlayerStatPtr(); - m_Components.push_back(m_pStat); - SAFE_ADDREF(m_pStat); + + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_M_STUDENT"), (CComponent**)&m_pStat))) { + return E_FAIL; + } { // CCT CCharacter_Controller::Character_Controller_DESC Desc{}; - Desc.iSubKind = ENUM_CLASS(PXOBJECT::PLAYER); + Desc.iSubKind = ENUM_CLASS(PXOBJECT::AI); Desc.pTransform = m_pTransformCom; Desc.eBodyType = ACTOR::CAPSULE; Desc.fContactOffset = 0.001f; @@ -303,12 +331,11 @@ HRESULT CHuman_Duelist::Ready_Components() if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { return E_FAIL; } - m_pCharacter_Controller->SetGravity(false); } { // DO CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; - Desc.iSubKind = ENUM_CLASS(PXOBJECT::PLAYER); + Desc.iSubKind = ENUM_CLASS(PXOBJECT::AI); if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) { return E_FAIL; } @@ -397,48 +424,48 @@ HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder) break; #ifdef 기무리 - case PLAYER_MESH_ORDER::ROBE_CLOTH: - { - CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); - _uint MeshBoneCount = pMesh->Get_NumBone(); + //case PLAYER_MESH_ORDER::ROBE_CLOTH: + //{ + // CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); + // _uint MeshBoneCount = pMesh->Get_NumBone(); - for (_uint i = 0; i < MeshBoneCount; ++i) - { - XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity()); - } + // for (_uint i = 0; i < MeshBoneCount; ++i) + // { + // XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity()); + // } - _uint temp = 0; - vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)); - vector<_int> boneIndices = pMesh->Get_BoneIndices(); + // _uint temp = 0; + // vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)); + // vector<_int> boneIndices = pMesh->Get_BoneIndices(); - for (_uint i = 0; i < MeshBoneCount; ++i) - { - _uint global = boneIndices[i]; - if (global == 38) - continue; - if (globalMask[global] == 1) - { - SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++); - } - } + // for (_uint i = 0; i < MeshBoneCount; ++i) + // { + // _uint global = boneIndices[i]; + // if (global == 38) + // continue; + // if (globalMask[global] == 1) + // { + // SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++); + // } + // } - GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f); + // GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f); - if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) { - return E_FAIL; - } + // if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) { + // return E_FAIL; + // } - if (FAILED(m_pShaderCom->Bind_Matrices( - "g_BoneMatrices", - SkinMatrices.data(), - (_int)SkinMatrices.size() - ))) - { - return E_FAIL; - } - } - break; + // if (FAILED(m_pShaderCom->Bind_Matrices( + // "g_BoneMatrices", + // SkinMatrices.data(), + // (_int)SkinMatrices.size() + // ))) + // { + // return E_FAIL; + // } + //} + //break; #endif // _DEBUG default: diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp index 05c0debca..bc98b6a8f 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp @@ -11,6 +11,7 @@ #pragma region STATE #include "State_Idle.h" +#include "State_IdleBreak.h" #include "State_Move.h" #include "State_Combat.h" #include "State_LightAttack.h" @@ -24,10 +25,21 @@ void CHuman_Duelist::Behavior_IdleEnter() { m_pFSM->Enable_State(FSMSTATE::IDLE); + pair<_uint, _bool> pairAnimInfo; + pairAnimInfo = m_Animation[STATEANIM::IDLE]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } HRESULT CHuman_Duelist::Behavior_IdleExitCheck(_float fTimeDelta) { + for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++) + { + if (m_fSkillCoolTime[i] == 0.f) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + } return S_OK; } @@ -36,6 +48,37 @@ void CHuman_Duelist::Behavior_IdleExit() m_pFSM->Disable_State(FSMSTATE::IDLE); } +void CHuman_Duelist::Behavior_IdleBreakEnter() +{ + m_pFSM->Enable_State(FSMSTATE::IDLE); + pair<_uint, _bool> pairAnimInfo; + _int iRand = m_pGameInstance->Real_Random_Int(0, 1); + if (iRand == 0) { + pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK1]; + } + else if (iRand == 1) { + pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK2]; + } + + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CHuman_Duelist::Behavior_IdleBreakExitCheck(_float fTimeDelta) +{ + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } + return S_OK; +} + +void CHuman_Duelist::Behavior_IdleBreakExit() +{ + m_pFSM->Disable_State(FSMSTATE::IDLEBREAK); +} + void CHuman_Duelist::Behavior_CombatEnter() { m_pFSM->Enable_State(FSMSTATE::COMBAT); @@ -43,6 +86,26 @@ void CHuman_Duelist::Behavior_CombatEnter() HRESULT CHuman_Duelist::Behavior_CombatExitCheck() { + if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::SPELL); + return E_FAIL; + } + else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::SHIELD); + return E_FAIL; + } + else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] <= 0.f) + { + m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK); + return E_FAIL; + } + else { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + return S_OK; } @@ -53,11 +116,44 @@ void CHuman_Duelist::Behavior_CombatExit() void CHuman_Duelist::Behavior_LightAttackEnter() { + pair<_uint, _bool> pairAnimInfo; m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK); + _int iRand = m_pGameInstance->Real_Random_Int(0, 3); + switch (iRand) + { + case 0: + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; + break; + case 1: + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK2]; + break; + case 2: + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK3]; + break; + case 3: + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK4]; + break; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, + [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_JAP, Get_PartObject(), &iIndex); }, + 0.2f); + + Add_Event(pairAnimInfo.first, + [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject()); }, + 0.0f); + + m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)]; } HRESULT CHuman_Duelist::Behavior_LightAttackExitCheck(_float fTimeDelta) { + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } return S_OK; } @@ -69,10 +165,28 @@ void CHuman_Duelist::Behavior_LightAttackExit() void CHuman_Duelist::Behavior_SpellEnter() { m_pFSM->Enable_State(FSMSTATE::SPELL); + pair<_uint, _bool> pairAnimInfo; + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_LEVIOSO, this); }, + 0.2f); + Add_Event(pairAnimInfo.first, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); }, + 0.f); + + m_fSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)]; } HRESULT CHuman_Duelist::Behavior_SpellExitCheck() { + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } return S_OK; } @@ -84,10 +198,26 @@ void CHuman_Duelist::Behavior_SpellExit() void CHuman_Duelist::Behavior_ShieldEnter() { m_pFSM->Enable_State(FSMSTATE::SHIELD); + + pair<_uint, _bool> pairAnimInfo; + pairAnimInfo = m_Animation[STATEANIM::SKILL]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DUELIST_PROTEGO, this); }, + 0.1f); + + m_fSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)]; } HRESULT CHuman_Duelist::Behavior_ShieldExitCheck() { + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::IDLEBREAK); + return E_FAIL; + } return S_OK; } @@ -99,10 +229,23 @@ void CHuman_Duelist::Behavior_ShieldExit() void CHuman_Duelist::Behavior_HitEnter() { m_pFSM->Enable_State(FSMSTATE::HIT); + pair<_uint, _bool> pairAnimInfo; + + switch (m_eHitSpell) + { + case ENUM_CLASS(SKILL_TYPE::JAP): + break; + } + } HRESULT CHuman_Duelist::Behavior_HitExitCheck() { + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::COMBAT); + return E_FAIL; + } return S_OK; } @@ -111,7 +254,6 @@ void CHuman_Duelist::Behavior_HitExit() m_pFSM->Disable_State(FSMSTATE::HIT); } - void CHuman_Duelist::Add_FSM() { #pragma region Behavior_Movement_NotFocus @@ -125,6 +267,17 @@ void CHuman_Duelist::Add_FSM() Desc.funcLateUpdate = nullptr; m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc)); } + + { + CState_IdleBreak::STATE_IDLEBREAK_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_IdleBreakEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleBreakExitCheck(fTimedelta); }; + Desc.funcExitEvent = [this]() { Behavior_IdleBreakExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::IDLEBREAK, CState_IdleBreak::Create(&Desc)); + } #pragma endregion #pragma region Behavior_Combat { diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp index fcb69dc65..4820a3961 100644 --- a/Jusin154_Team3D/Client/Private/Level_Field.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp @@ -159,12 +159,13 @@ HRESULT CLevel_Field::Ready_Lights() _float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f); _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); -#ifdef gimch +#if gimch || 진우 vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f); vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f); vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); #endif // gimch + pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); @@ -177,6 +178,7 @@ HRESULT CLevel_Field::Ready_Volumetric() { m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + return S_OK; } @@ -223,12 +225,10 @@ HRESULT CLevel_Field::Ready_Layer_SkyBox() HRESULT CLevel_Field::Ready_Background() { - _float4 vColor = _float4(0.2f, 0.246f, 0.253f, 1.f); - m_pGameInstance->Set_FogColor(vColor); - m_pGameInstance->Set_Fog(10.f, 8.f); - m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + + CInfoInstance::GetInstance()->Load_MapObjects("Dungeon_Map_Data", LAYER_BACKGROUND); CInfoInstance::GetInstance()->Load_WorldDecal("Duengon_Decal_Data", LAYER_BACKGROUND); CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data", LAYER_BACKGROUND); diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index dfcf41450..7ff76d241 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -302,7 +302,7 @@ HRESULT CLevel_GamePlay::Ready_Background() #endif // #ifdef 기무리 isReady_Background = true; - isReady_Hogsmeade = false; + isReady_Hogsmeade = true; isReady_Hogwart = false; #endif // #ifdef 나 @@ -325,18 +325,20 @@ HRESULT CLevel_GamePlay::Ready_Background() #if 진우 #else - if(isReady_Hogsmeade) + +#endif + + if (isReady_Hogsmeade) { if (FAILED(Ready_Layer_Hogsmeade())) return E_FAIL; } - if(isReady_Hogwart) + if (isReady_Hogwart) { if (FAILED(Ready_Layer_Hogwart())) return E_FAIL; } -#endif if (FAILED(Ready_IntstanceProp())) return E_FAIL; @@ -804,11 +806,12 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) isLoad_RandomNPC = true; #endif // gimch #ifdef 진우 - isLoad_RandomNPC = true; + isLoad_RandomNPC = false; + isLoad_NPC = false; #endif // #ifdef 기무리 - isLoad_NPC = false; - isLoad_RandomNPC = false; + isLoad_NPC = true; + isLoad_RandomNPC = true; #endif // #ifdef 나 isLoad_RandomNPC = true; @@ -856,12 +859,12 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) } } - //CPlayer::PLAYERDESC playerDesc = {}; - //playerDesc.vPos = _float4(-21.f, 0.f, -14.f, 1.f); - //playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) { - // return E_FAIL; - //} + CHuman_Duelist::DUELISTDESC DuelistDesc = {}; + DuelistDesc.vPos = _float4(-21.f, 0.f, -16.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, strLayerTag,&DuelistDesc))) { + return E_FAIL; + } } @@ -903,7 +906,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster() #endif // gimch #ifdef 진우 - isLoad_Monster = true; + isLoad_Monster = false; #endif // #ifdef 기무리 isLoad_Monster = true; diff --git a/Jusin154_Team3D/Client/Private/Level_Logo.cpp b/Jusin154_Team3D/Client/Private/Level_Logo.cpp index 0dbf4fd1d..abbf41173 100644 --- a/Jusin154_Team3D/Client/Private/Level_Logo.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Logo.cpp @@ -46,6 +46,9 @@ void CLevel_Logo::Update(_float fTimeDelta) return; } } + + + } HRESULT CLevel_Logo::Render() diff --git a/Jusin154_Team3D/Client/Private/Light_Main.cpp b/Jusin154_Team3D/Client/Private/Light_Main.cpp index 235ee5384..86b3fa2c6 100644 --- a/Jusin154_Team3D/Client/Private/Light_Main.cpp +++ b/Jusin154_Team3D/Client/Private/Light_Main.cpp @@ -98,12 +98,21 @@ HRESULT CLight_Main::Ready_Components(void* pArg) { __super::Ready_Components(nullptr); - _matrix LIGHT_WorldMatrixDoNotModify = - _matrix(0.819145918f, 0.f, -0.573572040f, 0.f, + + if (NEXT_LEVEL == ENUM_CLASS(LEVEL::GAMEPLAY)) + { + _matrix LIGHT_WorldMatrixDoNotModify = + _matrix(0.819145918f, 0.f, -0.573572040f, 0.f, 0.553958654f, 0.258784860f, 0.791134834f, 0.f , 0.148416296f, -0.965690017f, 0.211960629f, 0.f , 0.f, 0.f, 0.f, 1.f); - m_pTransformCom->Set_WorldMatrix(LIGHT_WorldMatrixDoNotModify); + m_pTransformCom->Set_WorldMatrix(LIGHT_WorldMatrixDoNotModify); + } + else if (NEXT_LEVEL == ENUM_CLASS(LEVEL::FIELD)) + { + m_pTransformCom->Rotation(XMConvertToRadians(-4.f), XMConvertToRadians(271.f), 0.f); + + } LIGHT_DESC* pLightDescArg = static_cast(pArg); diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 24cee374b..bbe303582 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -176,7 +176,9 @@ #include "Bombard.h" #include "Decendo.h" #include "NomalJap.h" +#include "Duelist_NormalJap.h" #include "Protego.h" +#include "Duelist_Protego.h" #include "Revelio.h" #include "NomalJapSide.h" #include "DecendoSide.h" @@ -190,6 +192,7 @@ #include "Trail.h" #include "EffectPool.h" #include "Levioso.h" +#include "Duelist_Levioso.h" #include "Lumos.h" #include "Accio.h" #include "Blink.h" @@ -219,6 +222,9 @@ #include "Ranrok_Land.h" #include "Ranrok_GroundPulse.h" #include "Ranrok_Rush_Bottom.h" +#include "Ranrok_Swipe.h" +#include "Ranrok_DeadSplash.h" +#include "Ranrok_DeadImpact.h" #include "StunEffect.h" #include "Box_Splesh.h" @@ -410,7 +416,7 @@ HRESULT CLoader::Loading_For_GamePlay() isLoad_Background = true; isLoad_Hogwart = false; isLoad_UI_SEQUANTIAL = false; - isLoad_NPC = false; + isLoad_NPC = true; isLoad_Monster = true; #endif // #ifdef 나 @@ -2201,7 +2207,7 @@ HRESULT CLoader::Loading_For_GamePlay() #pragma region ACTOR if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){ + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){ return E_FAIL; } if (true == isLoad_NPC) { @@ -2330,11 +2336,6 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"), CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"), CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { @@ -2451,11 +2452,18 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CNomalJap::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDuelist_NormalJap::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CProtego::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDuelist_Protego::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRevelio::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -2468,6 +2476,10 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDuelist_Levioso::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLumos::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -2604,6 +2616,18 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_Swipe::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_DeadSplash::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRanrok_DeadImpact::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) { return E_FAIL; @@ -3757,7 +3781,7 @@ HRESULT CLoader::Loading_For_Field() /* For.Prototype_Component_DecalBox */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_DecalBox"), - CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/Decal/DecalBox.fbx", XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/Decal/DecalBox.bin", XMMatrixIdentity())))) return E_FAIL; m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다."); diff --git a/Jusin154_Team3D/Client/Private/Lumos.cpp b/Jusin154_Team3D/Client/Private/Lumos.cpp index de17df799..ef82b50ce 100644 --- a/Jusin154_Team3D/Client/Private/Lumos.cpp +++ b/Jusin154_Team3D/Client/Private/Lumos.cpp @@ -51,12 +51,9 @@ void CLumos::Priority_Update(_float fTimeDelta) __super::Priority_Update(fTimeDelta); - CWand* pWand = static_cast(m_pOwner); - if (pWand == nullptr) - return; - m_pLumos_Light->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + } @@ -69,7 +66,7 @@ void CLumos::Update(_float fTimeDelta) Update_Event(fTimeDelta); - if (910!= m_pOwner->Get_Owner()->Get_Component()->Get_SecondAnimIndex()) + if (911!= m_pOwner->Get_Owner()->Get_Component()->Get_SecondAnimIndex()) { _int iIndex = m_pOwner->Get_Owner()->Get_Component()->Get_SecondAnimIndex(); m_bVisible = false; @@ -83,6 +80,12 @@ void CLumos::Late_Update(_float fTimeDelta) __super::Late_Update(fTimeDelta); + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + m_pLumos_Light->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); } diff --git a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp index 371a2eaf0..9c2155651 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp @@ -207,8 +207,10 @@ void CMapElement_Interactable::OnCollision(CGameObject* pOther, void* pDesc) m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f)); m_pInfoInstance->Deregist_ActiveInteractive(this); } - else + else{ + m_pInfoInstance->Deregist_ActiveInteractive(this); Set_Dead(); + } } HRESULT CMapElement_Interactable::Ready_Components(void* pArg) @@ -492,11 +494,12 @@ void CMapElement_Interactable::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pEffectPool); - if (nullptr != m_pInfoInstance) { - CInfoInstance* pInfo = m_pInfoInstance; - m_pInfoInstance = nullptr; - pInfo->Deregist_ActiveInteractive(this); + if (!m_isPooled) { + if (nullptr != m_pInfoInstance) { + m_pInfoInstance = nullptr; + } } + for (auto& pModel : m_pModelComs){ SAFE_RELEASE(pModel); } diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index c4f08c21d..582505a75 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -303,7 +303,12 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) Get_PartObject()->Set_Visible(false); Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); - dynamic_cast(m_pOwner->Get_Owner())->Start_CameraShake(0.2f, 1.f); + CPlayer* pPlayer = dynamic_cast(m_pOwner->Get_Owner()); + if (pPlayer != nullptr) + { + pPlayer->Start_CameraShake(0.2f, 1.f); + } + } void CNomalJap::Free() diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 6f6c040d6..57cb11ae6 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -165,7 +165,7 @@ void CPlayer::Update(_float fTimeDelta) } } - m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION)); + } void CPlayer::Late_Update(_float fTimeDelta) @@ -199,6 +199,8 @@ void CPlayer::Late_Update(_float fTimeDelta) } Player_PixRot(); + + m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION)); } @@ -525,6 +527,8 @@ HRESULT CPlayer::Ready_Components() } m_pStat = m_pInfoInstance->Get_PlayerStatPtr(); + SAFE_ADDREF(m_pStat); + m_Components.push_back(m_pStat); SAFE_ADDREF(m_pStat); @@ -1040,6 +1044,13 @@ void CPlayer::Describe_Entity() m_pLightCom->Describe_Entity(); + for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++) + { + if (GUI::Button(m_pModelCom->Get_AnimList(i))) + { + m_pModelCom->Set_AnimationIndex(i); + } + } } GUI::End(); } diff --git a/Jusin154_Team3D/Client/Private/PlayerInfo.cpp b/Jusin154_Team3D/Client/Private/PlayerInfo.cpp index e7cc16ab6..d999af9db 100644 --- a/Jusin154_Team3D/Client/Private/PlayerInfo.cpp +++ b/Jusin154_Team3D/Client/Private/PlayerInfo.cpp @@ -10,6 +10,9 @@ CPlayerInfo::CPlayerInfo() CStat* CPlayerInfo::Get_PlayerStatPtr() { + if (m_pStat == nullptr) + return nullptr; + return m_pStat; } diff --git a/Jusin154_Team3D/Client/Private/PlayerRobe.cpp b/Jusin154_Team3D/Client/Private/PlayerRobe.cpp index 17ce09cb6..9e0897e11 100644 --- a/Jusin154_Team3D/Client/Private/PlayerRobe.cpp +++ b/Jusin154_Team3D/Client/Private/PlayerRobe.cpp @@ -141,8 +141,8 @@ HRESULT CPlayerRobe::Update_LegsPosition() } #endif // _DEBUG } - m_pLower0Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.2f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower0BoundMatrix) * WorldMatrix, false); - m_pLower1Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.7f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower1BoundMatrix) * WorldMatrix, false); + //m_pLower0Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.2f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower0BoundMatrix) * WorldMatrix, false); + //m_pLower1Bound->Move_Kinematic(XMMatrixTranslationFromVector(XMVectorSet(0.f, -0.7f, 0.f, 0.f)) * XMLoadFloat4x4(m_pLower1BoundMatrix) * WorldMatrix, false); return S_OK; } @@ -223,120 +223,120 @@ HRESULT CPlayerRobe::Update_RobeJoints() { for (_uint i = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START); i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) { m_JointDescriptions[i].InitFromJoint(*m_pDynamicJoints[i]); - switch (PLAYER_JOINT_ORDER(i)) - { - /* From Origin */ - { - case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START: - case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_START: - case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_START: - case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_START: - case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_START: - m_JointDescriptions[i].iMotionTwist = 1; - m_JointDescriptions[i].iMotionSwing1 = 1; - m_JointDescriptions[i].iMotionSwing2 = 1; - m_JointDescriptions[i].fLinearLimit = 0.f; - m_JointDescriptions[i].fTwistAbsDeg = 0.f; - m_JointDescriptions[i].fSwingDeg = 40.f; - break; - case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_END: - case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_END: - case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_END: - case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_END: - case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_END: - m_JointDescriptions[i].iMotionTwist = 1; - m_JointDescriptions[i].iMotionSwing1 = 1; - m_JointDescriptions[i].iMotionSwing2 = 1; - m_JointDescriptions[i].fLinearLimit = 0.f; - m_JointDescriptions[i].fTwistAbsDeg = 0.f; - m_JointDescriptions[i].fSwingDeg = 40.f; - break; - } - /* From_Middle */ - { - case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_START: - case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_START: - case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_START: - case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_START: - case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_START: - m_JointDescriptions[i].iMotionTwist = 0; - m_JointDescriptions[i].iMotionSwing1 = 0; - m_JointDescriptions[i].iMotionSwing2 = 0; - m_JointDescriptions[i].fLinearLimit = 0.f; - m_JointDescriptions[i].fTwistAbsDeg = 0.f; - m_JointDescriptions[i].fSwingDeg = 10.f; - break; + //switch (PLAYER_JOINT_ORDER(i)) + //{ + // /* From Origin */ + // { + // case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START: + // case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_START: + // case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_START: + // case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_START: + // case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_START: + // m_JointDescriptions[i].iMotionTwist = 1; + // m_JointDescriptions[i].iMotionSwing1 = 1; + // m_JointDescriptions[i].iMotionSwing2 = 1; + // m_JointDescriptions[i].fLinearLimit = 0.f; + // m_JointDescriptions[i].fTwistAbsDeg = 0.f; + // m_JointDescriptions[i].fSwingDeg = 40.f; + // break; + // case PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_END: + // case PLAYER_JOINT_ORDER::ORIGIN_TO_TUP_END: + // case PLAYER_JOINT_ORDER::ORIGIN_TO_LUP_END: + // case PLAYER_JOINT_ORDER::ORIGIN_TO_RSIDEUP_END: + // case PLAYER_JOINT_ORDER::ORIGIN_TO_LSIDEUP_END: + // m_JointDescriptions[i].iMotionTwist = 1; + // m_JointDescriptions[i].iMotionSwing1 = 1; + // m_JointDescriptions[i].iMotionSwing2 = 1; + // m_JointDescriptions[i].fLinearLimit = 0.f; + // m_JointDescriptions[i].fTwistAbsDeg = 0.f; + // m_JointDescriptions[i].fSwingDeg = 40.f; + // break; + // } + // /* From_Middle */ + // { + // case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_START: + // case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_START: + // case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_START: + // case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_START: + // case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_START: + // m_JointDescriptions[i].iMotionTwist = 0; + // m_JointDescriptions[i].iMotionSwing1 = 0; + // m_JointDescriptions[i].iMotionSwing2 = 0; + // m_JointDescriptions[i].fLinearLimit = 0.f; + // m_JointDescriptions[i].fTwistAbsDeg = 0.f; + // m_JointDescriptions[i].fSwingDeg = 10.f; + // break; - case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_END: - case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_END: - case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_END: - case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_END: - case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_END: - m_JointDescriptions[i].iMotionTwist = 1; - m_JointDescriptions[i].iMotionSwing1 = 1; - m_JointDescriptions[i].iMotionSwing2 = 1; - m_JointDescriptions[i].fLinearLimit = 0.f; - m_JointDescriptions[i].fSwingDeg = 0.f; - m_JointDescriptions[i].fTwistAbsDeg = 0.f; + // case PLAYER_JOINT_ORDER::RUP_TO_RMIDDLE_END: + // case PLAYER_JOINT_ORDER::TUP_TO_TMIDDLE_END: + // case PLAYER_JOINT_ORDER::LUP_TO_LMIDDLE_END: + // case PLAYER_JOINT_ORDER::RSIDEUP_TO_RSIDE_END: + // case PLAYER_JOINT_ORDER::LSIDEUP_TO_LSIDE_END: + // m_JointDescriptions[i].iMotionTwist = 1; + // m_JointDescriptions[i].iMotionSwing1 = 1; + // m_JointDescriptions[i].iMotionSwing2 = 1; + // m_JointDescriptions[i].fLinearLimit = 0.f; + // m_JointDescriptions[i].fSwingDeg = 0.f; + // m_JointDescriptions[i].fTwistAbsDeg = 0.f; - m_JointDescriptions[i].bEnableSlerpDrive = true; - m_JointDescriptions[i].fLinearStiffness = 10.f; - m_JointDescriptions[i].fSlerpDamping = 3.f; - m_JointDescriptions[i].fSlerpForceLimit = 40.f; - m_JointDescriptions[i].bSlerpAccel = true; - break; - } - /* From_Lower */ - { - case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_START: - case PLAYER_JOINT_ORDER::RSIDE_TO_R_START: - m_JointDescriptions[i].iMotionTwist = 1; - m_JointDescriptions[i].iMotionSwing1 = 1; - m_JointDescriptions[i].iMotionSwing2 = 1; - m_JointDescriptions[i].fLinearLimit = 0.f; - m_JointDescriptions[i].fTwistAbsDeg = 15.f; - m_JointDescriptions[i].fSwingDeg = 15.f; - break; + // m_JointDescriptions[i].bEnableSlerpDrive = true; + // m_JointDescriptions[i].fLinearStiffness = 10.f; + // m_JointDescriptions[i].fSlerpDamping = 3.f; + // m_JointDescriptions[i].fSlerpForceLimit = 40.f; + // m_JointDescriptions[i].bSlerpAccel = true; + // break; + // } + // /* From_Lower */ + // { + // case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_START: + // case PLAYER_JOINT_ORDER::RSIDE_TO_R_START: + // m_JointDescriptions[i].iMotionTwist = 1; + // m_JointDescriptions[i].iMotionSwing1 = 1; + // m_JointDescriptions[i].iMotionSwing2 = 1; + // m_JointDescriptions[i].fLinearLimit = 0.f; + // m_JointDescriptions[i].fTwistAbsDeg = 15.f; + // m_JointDescriptions[i].fSwingDeg = 15.f; + // break; - case PLAYER_JOINT_ORDER::RSIDE_TO_R_END: - case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_END: - break; + // case PLAYER_JOINT_ORDER::RSIDE_TO_R_END: + // case PLAYER_JOINT_ORDER::RMIDDLE_TO_RR_END: + // break; - case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_START: - case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_START: - m_JointDescriptions[i].iMotionTwist = 1; - m_JointDescriptions[i].iMotionSwing1 = 1; - m_JointDescriptions[i].iMotionSwing2 = 1; - m_JointDescriptions[i].fLinearLimit = 0.f; - m_JointDescriptions[i].fTwistAbsDeg = 15.f; - m_JointDescriptions[i].fSwingDeg = 15.f; - break; + // case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_START: + // case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_START: + // m_JointDescriptions[i].iMotionTwist = 1; + // m_JointDescriptions[i].iMotionSwing1 = 1; + // m_JointDescriptions[i].iMotionSwing2 = 1; + // m_JointDescriptions[i].fLinearLimit = 0.f; + // m_JointDescriptions[i].fTwistAbsDeg = 15.f; + // m_JointDescriptions[i].fSwingDeg = 15.f; + // break; - case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_END: - case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_END: - break; + // case PLAYER_JOINT_ORDER::TMIDDLE_TO_TR_END: + // case PLAYER_JOINT_ORDER::TMIDDLE_TO_TL_END: + // break; - case PLAYER_JOINT_ORDER::LSIDE_TO_L_START: - case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START: - m_JointDescriptions[i].iMotionTwist = 1; - m_JointDescriptions[i].iMotionSwing1 = 1; - m_JointDescriptions[i].iMotionSwing2 = 1; - m_JointDescriptions[i].fLinearLimit = 0.f; - m_JointDescriptions[i].fTwistAbsDeg = 15.f; - m_JointDescriptions[i].fSwingDeg = 15.f; - break; + // case PLAYER_JOINT_ORDER::LSIDE_TO_L_START: + // case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_START: + // m_JointDescriptions[i].iMotionTwist = 1; + // m_JointDescriptions[i].iMotionSwing1 = 1; + // m_JointDescriptions[i].iMotionSwing2 = 1; + // m_JointDescriptions[i].fLinearLimit = 0.f; + // m_JointDescriptions[i].fTwistAbsDeg = 15.f; + // m_JointDescriptions[i].fSwingDeg = 15.f; + // break; - case PLAYER_JOINT_ORDER::LSIDE_TO_L_END: - case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_END: - break; - } - default: - break; - } + // case PLAYER_JOINT_ORDER::LSIDE_TO_L_END: + // case PLAYER_JOINT_ORDER::LMIDDLE_TO_LL_END: + // break; + // } + //default: + // break; + //} - //m_JointDescriptions[i].iMotionTwist = 0; - //m_JointDescriptions[i].iMotionSwing1 = 0; - //m_JointDescriptions[i].iMotionSwing2 = 0; + m_JointDescriptions[i].iMotionTwist = 0; + m_JointDescriptions[i].iMotionSwing1 = 0; + m_JointDescriptions[i].iMotionSwing2 = 0; m_JointDescriptions[i].ApplyToJoint(*m_pDynamicJoints[i]); } return S_OK; diff --git a/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp b/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp index 23fd682c4..e789c565c 100644 --- a/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp +++ b/Jusin154_Team3D/Client/Private/PlayerRobe_Initialize.cpp @@ -537,6 +537,7 @@ void CPlayerRobe::Free() for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) { SAFE_RELEASE(m_pRobeJointAnchor[i]); } +#ifdef _DEBUG if (nullptr != m_pMainShape) { m_pMainShape.release(); m_pMainShape = nullptr; @@ -545,4 +546,7 @@ void CPlayerRobe::Free() m_pSubShape.release(); m_pSubShape = nullptr; } +#endif // _DEBUG + + } diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 153f5c8b5..36fad16f5 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -7,6 +7,7 @@ #include "CamPosition_Socket.h" #include "Camera_Gaze.h" #include "CamPosition_Arm.h" +#include "State_CutScene.h" #include "Wand.h" #include "Item_Potion.h" #include "Character_Controller.h" @@ -75,6 +76,7 @@ HRESULT CPlayer::InputAction() || m_pGameInstance->Key_Down(DIK_G) || m_pGameInstance->Key_Down(DIK_B) || m_pGameInstance->Key_Down(DIK_F) + || m_pGameInstance->Key_Down(DIK_SCROLL) ) { @@ -222,7 +224,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) } else if (m_pGameInstance->Key_Down(DIK_G)) { Get_PartObject()->Set_Visible(true); - //m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second); + m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second); } else if (m_pGameInstance->Key_Down(DIK_B)) { m_pFSM->Change_State(FSMSTATE::BROOM_RIDE); @@ -236,6 +238,9 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) else if (m_pGameInstance->Key_Down(DIK_Z)) { m_pFSM->Change_State(FSMSTATE::COMBAT); } + else if (m_pGameInstance->Key_Down(DIK_SCROLL)) { + m_pFSM->Change_State(FSMSTATE::CUTSCENE); + } else if (m_pGameInstance->Key_Down(DIK_N)) { m_pInfoInstance->Change_Canvas(); } @@ -348,6 +353,38 @@ void CPlayer::Behavior_IdleExit() Reset_Event(); } +void CPlayer::Behavior_CutSceneEnter() +{ + pair<_uint, _bool> pairAnimInfo; + m_pFSM->Enable_State(FSMSTATE::CUTSCENE); + m_bSprintToggle = false; + m_bWalkToggle = false; + + pairAnimInfo = m_Animation[STATEANIM::CUTSCENE_TROLLINTRO]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + +} + +HRESULT CPlayer::Behavior_CutSceneExitCheck(_float fTimeDelta) +{ + pair<_uint, _bool> pairAnimInfo; + + if (m_pModelCom->IsFinishedAnim()) + { + pairAnimInfo = m_Animation[STATEANIM::IDLE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + return S_OK; +} + +void CPlayer::Behavior_CutSceneExit() +{ + m_pFSM->Disable_State(FSMSTATE::CUTSCENE); + Reset_Event(); +} + void CPlayer::Behavior_MoveEnter() { pair<_uint, _bool> pairAnimInfo = {}; @@ -469,7 +506,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta) } else if (m_pGameInstance->Key_Down(DIK_G)) { Get_PartObject()->Set_Visible(true); - //m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second); + m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second); } else if (m_pGameInstance->Key_Down(DIK_B)) { @@ -1027,6 +1064,7 @@ void CPlayer::Behavior_CombatEnter() m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW); pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + SAFE_RELEASE(m_pGrapInteractive); m_pGrapInteractive = m_LockOnInfo.pInteractive; SAFE_ADDREF(m_pGrapInteractive); m_pGrapInteractive->Set_KinematicFlag(true); @@ -1082,6 +1120,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck() if (nullptr != m_LockOnInfo.pInteractive) { m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW); pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW]; + SAFE_RELEASE(m_pGrapInteractive); m_pGrapInteractive = m_LockOnInfo.pInteractive; SAFE_ADDREF(m_pGrapInteractive); m_pGrapInteractive->Set_KinematicFlag(true); @@ -1428,15 +1467,21 @@ void CPlayer::Behavior_SpellEnter() }, 0.01f); } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, fAnimSpeed); + Add_SpellEvent(pairAnimInfo.first, fRatio); + if (m_eSpell != ENUM_CLASS(SKILL_TYPE::LUMOS) && + m_eSpell != ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA)) + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, fAnimSpeed); } else { fRatio = 0.2f; pairAnimInfo = m_Animation[STATEANIM::SPELL]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); + Add_SpellEvent(pairAnimInfo.first, fRatio); + if (m_eSpell != ENUM_CLASS(SKILL_TYPE::LUMOS) && + m_eSpell !=ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA)) + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); } - Add_SpellEvent(pairAnimInfo.first, fRatio); + } else { @@ -2639,7 +2684,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); }, 0.f); - Info.pText = TEXT("레벨리오!"); + Info.pText = TEXT("레비오소!"); m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info); break; @@ -2677,7 +2722,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA): m_pInfoInstance->Set_SearchLockOnFlag(false); pairAnimInfo = m_Animation[STATEANIM::AVADA_KEDAVRA]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false,1.f,false); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false,1.f,true); if (m_LockOnInfo.pUnit) m_pTransformCom->LookAt(m_LockOnInfo.pUnit->Get_WorldPostion()); @@ -2713,7 +2758,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) case ENUM_CLASS(SKILL_TYPE::LUMOS): if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first) { - /*if (SUCCEEDED(InputMove())) + if (SUCCEEDED(InputMove())) { if (m_bSprintToggle) { pairAnimInfo = m_Animation[STATEANIM::SPRINT]; @@ -2727,32 +2772,33 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) } else { pairAnimInfo = m_Animation[STATEANIM::IDLE]; - }*/ - Add_Event(AnimIndex, + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + Add_Event(pairAnimInfo.first, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LUMOS, Get_PartObject()); }, 0.f); Info.pText = TEXT("루모스!"); m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info); - //m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), m_Animation[STATEANIM::LUMOS].first, m_Animation[STATEANIM::LUMOS].second); + m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), m_Animation[STATEANIM::LUMOS].first, m_Animation[STATEANIM::LUMOS].second); } else { - //if (SUCCEEDED(InputMove())) - //{ - // if (m_bSprintToggle) { - // pairAnimInfo = m_Animation[STATEANIM::SPRINT]; - // } - // else if (m_bWalkToggle) { - // pairAnimInfo = m_Animation[STATEANIM::WALK_FWD]; - // } - // else { - // pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; - // } - //} - //else { - // pairAnimInfo = m_Animation[STATEANIM::IDLE]; - //} - //m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), m_Animation[STATEANIM::LUMOS_STOP].first, m_Animation[STATEANIM::LUMOS_STOP].second); + if (SUCCEEDED(InputMove())) + { + if (m_bSprintToggle) { + pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + } + else if (m_bWalkToggle) { + pairAnimInfo = m_Animation[STATEANIM::WALK_FWD]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + } + else { + pairAnimInfo = m_Animation[STATEANIM::IDLE]; + } + m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), m_Animation[STATEANIM::LUMOS_STOP].first, m_Animation[STATEANIM::LUMOS_STOP].second); } break; default: @@ -2823,6 +2869,14 @@ void CPlayer::Add_FSM() Desc.funcLateUpdate = nullptr; m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc)); } + { + CState_CutScene::STATE_CUTSCENE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_CutSceneEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CutSceneExitCheck(fTimedelta); }; + Desc.funcExitEvent = [this]() { Behavior_CutSceneExit(); }; + m_States.emplace(FSMSTATE::CUTSCENE, CState_CutScene::Create(&Desc)); + } { CState_Move::STATE_MOVE_DESC Desc{}; Desc.pOwner = this; @@ -2839,7 +2893,7 @@ void CPlayer::Add_FSM() } } } - }; + }; Desc.funcLateUpdate = nullptr; m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc)); @@ -2862,7 +2916,6 @@ void CPlayer::Add_FSM() Desc.funcExitEvent = [this]() { Behavior_LandExit(); }; m_States.emplace(FSMSTATE::LAND, CState_Land::Create(&Desc)); } - { CState_Fall::STATE_FALL_DESC Desc{}; Desc.pOwner = this; diff --git a/Jusin154_Team3D/Client/Private/RandomNpc.cpp b/Jusin154_Team3D/Client/Private/RandomNpc.cpp index 3e8acb8fa..6e50fd0a4 100644 --- a/Jusin154_Team3D/Client/Private/RandomNpc.cpp +++ b/Jusin154_Team3D/Client/Private/RandomNpc.cpp @@ -82,7 +82,9 @@ void CRandomNpc::Late_Update(_float fTimeDelta) { m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition()); m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true); - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + if (m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) { + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + } Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())); diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index 4e8d24960..610a11ed5 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -326,8 +326,9 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); - +#ifndef 진우 XMStoreFloat4(&m_DamageInfo.vTarget_Pos, m_pCharacter_Controller->Get_HeadPosition()); +#endif CEffect_Container* pEffect_Container = dynamic_cast(pOther); @@ -382,7 +383,9 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) m_DamageInfo.fDamage = damagePair.first; +#ifndef 진우 m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo); +#endif if (0 == damagePair.second) { m_pFSM->Change_State(FSMSTATE::DEAD); return; @@ -399,10 +402,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) Add_Event(pairAnimInfo.first, [&]() {m_bDisolve = true; }, - 0.15f); + 0.25f); Add_Event(pairAnimInfo.first, [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, - 0.5f); + 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; } @@ -415,10 +418,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) Add_Event(pairAnimInfo.first, [&]() {m_bDisolve = true; }, - 0.15f); + 0.25f); Add_Event(pairAnimInfo.first, [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, - 0.5f); + 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; } @@ -432,10 +435,10 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) Add_Event(pairAnimInfo.first, [&]() {m_bDisolve = true; }, - 0.15f); + 0.25f); Add_Event(pairAnimInfo.first, [&]() {m_pFSM->Change_State(FSMSTATE::TUCKED); }, - 0.5f); + 0.55f); m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); return; } diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp index 40b798602..9108e575d 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Breath.cpp @@ -79,7 +79,7 @@ void CRanrok_Breath::Update(_float fTimeDelta) Update_Event(fTimeDelta); - _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("jaw")); + _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("tongue_01")); for (int i = 0; i < 3; ++i) { BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_DeadImpact.cpp b/Jusin154_Team3D/Client/Private/Ranrok_DeadImpact.cpp new file mode 100644 index 000000000..cfa541b50 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Ranrok_DeadImpact.cpp @@ -0,0 +1,202 @@ +#include "pch.h" +#include "Ranrok_DeadImpact.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CRanrok_DeadImpact::CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CRanrok_DeadImpact::CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CRanrok_DeadImpact::Initialize_Prototype() +{ + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CRanrok_DeadImpact::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"RanrokDeadImpact"; + + + + m_fDuration = 5.f; + + + return S_OK; +} + +void CRanrok_DeadImpact::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CRanrok_DeadImpact::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + + + +} + +void CRanrok_DeadImpact::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CRanrok_DeadImpact::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + /* 초기 객체 비지블*/ + + CEffectParts* pDistortion = Get_PartObject("Distortion"); + CEffectParts* pDistortion_Small = Get_PartObject("Distortion_Small"); + CEffectParts* pPulse_White = Get_PartObject("Pulse_White"); + CEffectParts* pSplash_Black = Get_PartObject("Splash_Black"); + CEffectParts* pSplash_Red = Get_PartObject("Splash_Red"); + CEffectParts* pSpline0 = Get_PartObject("Spline0"); + CEffectParts* pSpline1 = Get_PartObject("Spline1"); + CEffectParts* pSide_Pt = Get_PartObject("Side_Pt"); + CEffectParts* pCircle_0 = Get_PartObject("Circle_0"); + + pDistortion->Set_Visible(true); + pDistortion_Small->Set_Visible(true); + pPulse_White->Set_Visible(true); + pSplash_Black->Set_Visible(true); + pSplash_Red->Set_Visible(true); + pSpline0->Set_Visible(true); + pSpline1->Set_Visible(true); + pSide_Pt->Set_Visible(true); + pCircle_0->Set_Visible(true); + /* 초기 객체 위치 초기화*/ + + _vector vPos = m_pOwner->Get_Component()->Get_HeadPosition(); + + + pDistortion->Get_Component()->Set_State(STATE::POSITION, vPos); + pDistortion_Small->Get_Component()->Set_State(STATE::POSITION, vPos); + pPulse_White->Get_Component()->Set_State(STATE::POSITION, vPos); + pSplash_Black->Get_Component()->Set_State(STATE::POSITION, vPos); + pSplash_Red->Get_Component()->Set_State(STATE::POSITION, vPos); + pSpline0->Get_Component()->Set_State(STATE::POSITION, vPos); + pSpline1->Get_Component()->Set_State(STATE::POSITION, vPos); + pSide_Pt->Get_Component()->Set_State(STATE::POSITION, vPos); + pCircle_0->Get_Component()->Set_State(STATE::POSITION, vPos); + + return S_OK; +} + +HRESULT CRanrok_DeadImpact::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CRanrok_DeadImpact::Ready_Child() +{ + return S_OK; +} + +CRanrok_DeadImpact* CRanrok_DeadImpact::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CRanrok_DeadImpact"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CRanrok_DeadImpact::Clone(void* pArg, CGameObject* pOwner) +{ + CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CRanrok_DeadImpact"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CRanrok_DeadImpact::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + +} + +void CRanrok_DeadImpact::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); + + +} +#ifdef _DEBUG +void CRanrok_DeadImpact::Describe_Entity() +{ + +} +#endif + +HRESULT CRanrok_DeadImpact::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Ranrok_DeadSplash.cpp b/Jusin154_Team3D/Client/Private/Ranrok_DeadSplash.cpp new file mode 100644 index 000000000..63162ab15 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Ranrok_DeadSplash.cpp @@ -0,0 +1,203 @@ +#include "pch.h" +#include "Ranrok_DeadSplash.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CRanrok_DeadSplash::CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CRanrok_DeadSplash::CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CRanrok_DeadSplash::Initialize_Prototype() +{ + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash"))) + return E_FAIL; + + + return S_OK; + +} + +HRESULT CRanrok_DeadSplash::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"RanrokDeadSplash"; + + + + m_fDuration = 5.f; + + + return S_OK; +} + +void CRanrok_DeadSplash::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CRanrok_DeadSplash::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + + + +} + +void CRanrok_DeadSplash::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CRanrok_DeadSplash::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + _float4 vPos = *static_cast<_float4*>(pArg); + _vector vPosition = XMLoadFloat4(&vPos); + /* 초기 객체 비지블*/ + + CEffectParts* pDead_Decal = Get_PartObject("Dead_Decal"); + CEffectParts* pRock_PT = Get_PartObject("Rock_PT"); + CEffectParts* pRock_Splash = Get_PartObject("Rock_Splash"); + CEffectParts* pSplash = Get_PartObject("Splash"); + + pDead_Decal->Set_Visible(true); + pRock_PT->Set_Visible(true); + + pRock_Splash->Set_Visible(true); + pSplash->Set_Visible(true); + + /* 초기 객체 위치 초기화*/ + + pRock_PT->Get_Component()->Set_State(STATE::POSITION, vPosition); + pSplash->Get_Component()->Set_State(STATE::POSITION, vPosition); + + CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first; + + if (pPlayer == nullptr) + return E_FAIL; + + _vector vPlayer_FootPos = pPlayer->Get_Component()->Get_FootPosition(); + + + _vector vCompute_Pos = XMVectorSetY(vPosition, XMVectorGetY(vPlayer_FootPos)); + pRock_Splash->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos); + + vCompute_Pos = XMVectorSetY(m_pOwner->Get_WorldPostion(), XMVectorGetY(vPlayer_FootPos)); + + pDead_Decal->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos); + + return S_OK; +} + +HRESULT CRanrok_DeadSplash::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CRanrok_DeadSplash::Ready_Child() +{ + return S_OK; +} + +CRanrok_DeadSplash* CRanrok_DeadSplash::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CRanrok_DeadSplash"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CRanrok_DeadSplash::Clone(void* pArg, CGameObject* pOwner) +{ + CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CRanrok_DeadSplash"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CRanrok_DeadSplash::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + +} + +void CRanrok_DeadSplash::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); + + +} +#ifdef _DEBUG +void CRanrok_DeadSplash::Describe_Entity() +{ + +} +#endif + +HRESULT CRanrok_DeadSplash::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp index c47802e5f..740c03c9e 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp @@ -660,8 +660,12 @@ void CRanrok::Behavior_SwipeEnter() } Add_Event(pairAnimInfo.first, - [this]() {m_bMotionTrail = true; }, + [this]() { + m_bMotionTrail = true; + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_SWIPE , this); + }, 0.3f); + m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } @@ -1030,20 +1034,95 @@ void CRanrok::Behavior_DeadEnter() m_bLookAt = false; pair<_uint, _bool> pairAnimInfo = {}; m_pFSM->Enable_State(FSMSTATE::DEAD); - PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition(); - PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z); - m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p)); - m_pRigidBody->SetActive(false); - m_pCharacter_Controller->SetActive(false); + pairAnimInfo = m_Animation[STATEANIM::DEAD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + + m_pBottomSmoke->Set_Visible(false); + m_pLeftSmoke->Set_Visible(false); + m_pRightSmoke->Set_Visible(false); + m_pLeftPt->Set_Visible(false); + m_pRightPt->Set_Visible(false); + + Add_Event(pairAnimInfo.first, + [&]() { + + _vector vPos = m_pCharacter_Controller->Get_Position(); + _float4 vPosFloat4 = {}; + XMStoreFloat4(&vPosFloat4, vPos); + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &vPosFloat4); + + }, 0.f); + + Add_Event(pairAnimInfo.first, + [&]() { + + _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("pinky_06_right")) * m_pTransformCom->Get_XMWorldMatrix(); + + _vector vPos = BoneMat.r[3]; + _float4 vPosFloat4 = {}; + XMStoreFloat4(&vPosFloat4, vPos); + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4); + + }, 0.2f); + + Add_Event(pairAnimInfo.first, + [&]() { + + _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("elbow_left")) * m_pTransformCom->Get_XMWorldMatrix(); + + _vector vPos = BoneMat.r[3]; + _float4 vPosFloat4 = {}; + XMStoreFloat4(&vPosFloat4, vPos); + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4); + + }, 0.34f); + + Add_Event(pairAnimInfo.first, + [&]() { + + _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix(); + + _vector vPos = BoneMat.r[3]; + _float4 vPosFloat4 = {}; + XMStoreFloat4(&vPosFloat4, vPos); + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4); + + }, 0.44f); + + Add_Event(pairAnimInfo.first, + [&]() { + + _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix(); + + _vector vPos = BoneMat.r[3]; + _float4 vPosFloat4 = {}; + XMStoreFloat4(&vPosFloat4, vPos); + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4); + + }, 0.6f); + + Add_Event(pairAnimInfo.first, + [&]() { + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_IMPACT, this); + + }, 0.8f); + } HRESULT CRanrok::Behavior_DeadExitCheck(_float fTimeDelta) { - if (FLT_EPSILON > m_pModelCom->Get_CurrentTrackProgressRatio()) { + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + m_fDeadRatio = CMyTools::Saturate((fRatio - 0.8f) / 0.2f); + if (FLT_EPSILON > fRatio) { return E_PENDING; } return S_OK; @@ -1285,8 +1364,15 @@ void CRanrok::Add_FSM() Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); }; Desc.funcExitEvent = [this]() { Behavior_DeadExit(); }; Desc.funcLateUpdate = [this](_float fDeadRatio) { - m_fDeadRatio = fDeadRatio; - if (m_fDeadRatio > 1.f) { + // m_fDeadRatio = fDeadRatio; + if (m_fDeadRatio >= 1.f) { + + PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition(); + PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z); + m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p)); + m_pRigidBody->SetActive(false); + m_pCharacter_Controller->SetActive(false); + m_bDead = true; } }; diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Swipe.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Swipe.cpp new file mode 100644 index 000000000..20aac0de7 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Ranrok_Swipe.cpp @@ -0,0 +1,229 @@ +#include "pch.h" +#include "Ranrok_Swipe.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CRanrok_Swipe::CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CRanrok_Swipe::CRanrok_Swipe(const CRanrok_Swipe& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CRanrok_Swipe::Initialize_Prototype() +{ + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CRanrok_Swipe::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"RanrokSwipe"; + + m_pRock_PT = Get_PartObject("Rock_PT"); + SAFE_ADDREF(m_pRock_PT); + + m_fDuration = 5.f; + + + m_Events.emplace(0.4f, [&]() { + + CEffectParts* pClawDecal = Get_PartObject("ClawDecal"); + pClawDecal->Set_Visible(true); + + CEffectParts* pSmoke = Get_PartObject("Swipe_Smoke"); + pSmoke->Set_Visible(true); + + _vector vComputePos = Compute_Pos(); + + pSmoke->Get_Component()->Set_State(STATE::POSITION, vComputePos); + + _vector vLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f) , vLook)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vLook , vRight)); + _vector vPos = vComputePos; + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + pClawDecal->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + }); + + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f)); + }); + + return S_OK; +} + +void CRanrok_Swipe::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CRanrok_Swipe::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + if (m_isParticleEnd == false) + { + _vector vComputePos = Compute_Pos(); + m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, vComputePos); + + } + + +} + +void CRanrok_Swipe::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CRanrok_Swipe::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + /* 초기 객체 비지블*/ + m_pRock_PT->Set_Visible(true); + + + /* 초기 객체 위치 초기화*/ + _vector vComputePos = Compute_Pos(); + m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, vComputePos); + + m_isParticleEnd = false; + return S_OK; +} + +HRESULT CRanrok_Swipe::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CRanrok_Swipe::Ready_Child() +{ + return S_OK; +} + +CRanrok_Swipe* CRanrok_Swipe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CRanrok_Swipe* pInstance = new CRanrok_Swipe(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CRanrok_Swipe"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CRanrok_Swipe::Clone(void* pArg, CGameObject* pOwner) +{ + CRanrok_Swipe* pInstance = new CRanrok_Swipe(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CRanrok_Swipe"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CRanrok_Swipe::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + +} + +_fvector CRanrok_Swipe::Compute_Pos() +{ + _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("wrist_left_target")) * m_pOwner->Get_Component()->Get_XMWorldMatrix(); + + _vector vBonePos = BoneMat.r[3]; + + + CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first; + + + + _vector vPlayer_FootPos = pPlayer->Get_Component()->Get_FootPosition(); + + XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos); + + _vector vCompute_Pos = XMVectorSetY(vBonePos, XMVectorGetY(vPlayer_FootPos)); + + return vCompute_Pos; +} + +void CRanrok_Swipe::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); + SAFE_RELEASE(m_pRock_PT); + +} +#ifdef _DEBUG +void CRanrok_Swipe::Describe_Entity() +{ + +} +#endif + +HRESULT CRanrok_Swipe::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/State_CutScene.cpp b/Jusin154_Team3D/Client/Private/State_CutScene.cpp new file mode 100644 index 000000000..7936428b8 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_CutScene.cpp @@ -0,0 +1,55 @@ +#include "pch.h" +#include "State_CutScene.h" +#include "Unit.h" + +CState_CutScene::CState_CutScene() + :CState_Root() +{ +} + +void CState_CutScene::Enter() +{ + __super::Enter(); +} + +HRESULT CState_CutScene::Update(_float fTimeDelta) +{ + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + return S_OK; +} + +void CState_CutScene::Exit() +{ + __super::Exit(); +} + +HRESULT CState_CutScene::Initialize(STATE_CUTSCENE_DESC* pDesc) +{ + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); + + return S_OK; +} + +CState_CutScene* CState_CutScene::Create(STATE_CUTSCENE_DESC* pDesc) +{ + CState_CutScene* pInstance = new CState_CutScene; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_CutScene::Free() +{ + __super::Free(); +} + +void CState_CutScene::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index 35a0c10de..31c26cab8 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -254,7 +254,7 @@ HRESULT CTroll::Render_OutLine() Compute_Depth(); _float fCamFar = *m_pGameInstance->Get_CurrentCameraFar(); _float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar))); - m_fOutLineThickness = CMyTools::Lerp_f1D(2.5f, 3.f, fRatio); + m_fOutLineThickness = CMyTools::Lerp_f1D(0.024f, 0.5f, fRatio); if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { return E_FAIL; } @@ -704,6 +704,15 @@ void CTroll::Describe_Entity() GUI::Text(strSocket.c_str()); + for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++) + { + if (GUI::Button(m_pModelCom->Get_AnimList(i))) + { + m_pModelCom->Set_AnimationIndex(i); + } + } + + m_pTransformCom->Describe_Entity(); } diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 49bb289da..4f9e75bc9 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -79,7 +79,10 @@ namespace Client /*란록*/ RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_HIT , RANROK_IMPACT, RANROK_LAND, RANROK_RUSH_BOTTOM, - RANROK_GROUNDPULSE, + RANROK_GROUNDPULSE, RANROK_SWIPE , RANROK_DEAD_SPLASH, RANROK_DEAD_IMPACT, + + /*듀얼리스트*/ + DUELIST_JAP,DUELIST_LEVIOSO,DUELIST_PROTEGO, END }; diff --git a/Jusin154_Team3D/Client/Public/Duelist_Levioso.h b/Jusin154_Team3D/Client/Public/Duelist_Levioso.h new file mode 100644 index 000000000..8b28a3824 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Duelist_Levioso.h @@ -0,0 +1,67 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CDuelist_Levioso final : public CEffect_Container +{ +private: + CDuelist_Levioso(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDuelist_Levioso(const CDuelist_Levioso& rhs); + virtual ~CDuelist_Levioso() = 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: + class CInfoInstance* m_pInfoInstance = { nullptr }; +private: + _wstring m_wstrEffectName = {}; + class CPlayer* m_pPlayer = {}; + + class CEffectParts* m_pLeviosoPJ_0 = { nullptr }; + class CEffectParts* m_pLeviosoPJ_1 = { nullptr }; + class CEffectParts* m_pTrail_PT_0 = { nullptr }; + + class CEffectParts* m_pLevioso_Rotate0 = { nullptr }; + class CEffectParts* m_pLevioso_Rotate1 = { nullptr }; + + class CTransform* m_pEnemyTransform = { nullptr }; + + _vector m_vOwnerLook = {}; + _float m_fAccRotateTime = {}; + _float m_fTurnSpeed = {}; + _float m_fRange = {}; + + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 + _float m_fLinearSpeed = 0.25f; + _float3 m_vCameraLook = {}; +public: + static CDuelist_Levioso* 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/Duelist_NormalJap.h b/Jusin154_Team3D/Client/Public/Duelist_NormalJap.h new file mode 100644 index 000000000..68dca2cdf --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Duelist_NormalJap.h @@ -0,0 +1,77 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CDuelist_NormalJap final : public CEffect_Container +{ +private: + CDuelist_NormalJap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDuelist_NormalJap(const CDuelist_NormalJap& rhs); + virtual ~CDuelist_NormalJap() = 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: + class CInfoInstance* m_pInfoInstance = { nullptr }; + _wstring m_wstrEffectName = {}; + + _float4 m_vJapData[4] = { _float4(105.f , 330.f , 35.f , 20.f) + , _float4(95.f , 100.f , 55.f , 200.f) + , _float4(95.f , 0.f , 0.f , 0.f) + , _float4(105.f , 250.f , 35.f , 60.f) }; + + class CPartObject* m_pProjectile = {}; + class CPartObject* m_pProjectile_Side = {}; + + _float3 m_vRotateUp = {}; + _float m_fAccMoveTime = {}; + _float m_fAccRotateTime = {}; + _float m_fRotateAmount = { 0.2f }; + _float m_fTurnValue = {}; + _float m_fAngle = { XMConvertToRadians(285.f) }; + _float3 m_vCameraLook = {}; + + _float3 m_vDirection = { 0.f, 0.f, 1.f }; + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 + _float m_fAngularSpeed = {}; + _float m_fLinearSpeed = 35.f; + _float m_fTimeRate = {}; + + /*좌우 무빙 관련 변수들*/ + _float3 m_vRotateRight = {}; + _float m_fZigZagAngle = { XMConvertToRadians(60.f) }; + _float m_fAccZigZagTime = {}; + _float m_fZigZagSpeed = { 25.f }; + _float m_fZigZagAmount = { 0.1f }; +public: + static CDuelist_NormalJap* 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/Duelist_Protego.h b/Jusin154_Team3D/Client/Public/Duelist_Protego.h new file mode 100644 index 000000000..d62770455 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Duelist_Protego.h @@ -0,0 +1,49 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Client) + +class CDuelist_Protego final : public CEffect_Container +{ +private: + CDuelist_Protego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDuelist_Protego(const CDuelist_Protego& rhs); + virtual ~CDuelist_Protego() = 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_pSphere = { nullptr }; + class CEffectParts* m_pSphereLay = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + _float m_fSizeAccTime = {}; + _float m_fAmountSize = {}; + _float m_fSpeed = {}; + +public: + static CDuelist_Protego* 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/Human_Duelist.h b/Jusin154_Team3D/Client/Public/Human_Duelist.h index 87093a453..49719d7a3 100644 --- a/Jusin154_Team3D/Client/Public/Human_Duelist.h +++ b/Jusin154_Team3D/Client/Public/Human_Duelist.h @@ -1,18 +1,26 @@ #pragma once #include "Client_Define.h" -#include "Unit.h" +#include "Monster.h" #include "Player_ENUM.h" NS_BEGIN(Client) -class CHuman_Duelist final : public CUnit +class CHuman_Duelist final : public CMonster { public: - typedef struct tagPlayerInitDesc { + typedef struct tagDuelistInitDesc { _float4 vPos; _float4 vRotQ; - }PLAYERDESC; + }DUELISTDESC; + + enum class SKILL + { + LEVIOSO, + PROTEGO, + LIGHT_ATTACK, + END + }; private: CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CHuman_Duelist(const CHuman_Duelist& Prototype); @@ -30,17 +38,12 @@ class CHuman_Duelist final : public CUnit void Set_Shield(_bool bShield) { m_bShield = bShield; } _matrix Get_WandPos(); private: - CInfoInstance* m_pInfoInstance = { nullptr }; - CCharacter_Controller* m_pCharacter_Controller = { nullptr }; CRigidBody_Dynamic* m_pRigidBody = { nullptr }; class CCallBack_Playable_Behavior* m_pCallBack_Behavior = { nullptr }; class CCallBack_Playable_HitReport* m_pCallBack_HitReport = { nullptr }; CLight* m_pLightCom = { nullptr }; LIGHT_DESC LightDesc = {}; - - CStat* m_pStat = { nullptr }; - private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; @@ -49,8 +52,6 @@ class CHuman_Duelist final : public CUnit HRESULT Bind_ShaderResources(); HRESULT Bind_ShaderParameters(_uint iMeshOrder); void SetGravity(); - void Add_SpellEvent(_uint AnimIndex, _float fRatio); - public: static CHuman_Duelist* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -67,16 +68,21 @@ class CHuman_Duelist final : public CUnit virtual void Add_FSM(); - _bool m_bLookAt = { false }; _bool m_bSpellHit = {}; _bool m_bShield = { false }; - _float m_fCross = 0.f; - _float m_fabsDir = 0.f; + + + _float m_fSkillCoolTime[ENUM_CLASS(SKILL::END)] = {}; + _float m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::END)] = { 10.f,10.f,5.f }; void Behavior_IdleEnter(); HRESULT Behavior_IdleExitCheck(_float fTimeDelta); void Behavior_IdleExit(); + void Behavior_IdleBreakEnter(); + HRESULT Behavior_IdleBreakExitCheck(_float fTimeDelta); + void Behavior_IdleBreakExit(); + void Behavior_CombatEnter(); HRESULT Behavior_CombatExitCheck(); void Behavior_CombatExit(); diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 6924a9235..63e5e8ea5 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -134,10 +134,6 @@ class CPlayer final : public CUnit virtual void Add_FSM(); - void Reset_LightCombo() { m_iLightCombo = 0; } - _uint Next_LightCombo() { return ++m_iLightCombo; } - void Set_LightCombo(_uint LightCombo) { m_iLightCombo = LightCombo; } - function m_InputAction = nullptr; _int m_eUIState = { }; _uint m_iLightCombo = { 0 }; @@ -166,7 +162,8 @@ class CPlayer final : public CUnit _float m_fMoveTime = {}; _float m_fCross = 0.f; _float m_fabsDir = 0.f; - array<_float4x4, 256> SkinMatrices; + array<_float4x4, 256> SkinMatrices = {}; + array<_int, 256> SecondMaskIndex = {}; _bool m_bOpenDoor = { false }; /* 무적 불 변수*/ @@ -185,6 +182,10 @@ class CPlayer final : public CUnit HRESULT Behavior_IdleExitCheck(_float fTimeDelta); void Behavior_IdleExit(); + void Behavior_CutSceneEnter(); + HRESULT Behavior_CutSceneExitCheck(_float fTimeDelta); + void Behavior_CutSceneExit(); + void Behavior_MoveEnter(); HRESULT Behavior_MoveExitCheck(_float fTimeDelta); void Behavior_MoveExit(); diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h index 5b37358e3..7a4dbe679 100644 --- a/Jusin154_Team3D/Client/Public/Ranrok.h +++ b/Jusin154_Team3D/Client/Public/Ranrok.h @@ -65,7 +65,7 @@ class CRanrok final : public CMonster _float2 m_vStunTimer = { 0.f, 4.f }; _float2 m_vAuraTimer = { 0.f, 0.16f }; _float2 m_vEtherealTimer = { 0.f, 0.16f }; - _uint iIndex; + _uint iIndex = {}; DAMAGE_INFO m_DamageInfo; _bool m_bCollisionPlayer = { false }; diff --git a/Jusin154_Team3D/Client/Public/Ranrok_DeadImpact.h b/Jusin154_Team3D/Client/Public/Ranrok_DeadImpact.h new file mode 100644 index 000000000..88c96c39b --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Ranrok_DeadImpact.h @@ -0,0 +1,58 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CRanrok_DeadImpact final : public CEffect_Container +{ +private: + CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs); + virtual ~CRanrok_DeadImpact() = 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_pGooRod_0 = { nullptr }; + class CEffectParts* m_pSmoke = { nullptr }; + class CEffectParts* m_pSpread_PT = { nullptr }; + + _float3 m_vLook = {}; + _float m_fLinearSpeed = 0.8f; + + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +public: + static CRanrok_DeadImpact* 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/Ranrok_DeadSplash.h b/Jusin154_Team3D/Client/Public/Ranrok_DeadSplash.h new file mode 100644 index 000000000..20d2b71de --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Ranrok_DeadSplash.h @@ -0,0 +1,58 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CRanrok_DeadSplash final : public CEffect_Container +{ +private: + CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs); + virtual ~CRanrok_DeadSplash() = 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_pGooRod_0 = { nullptr }; + class CEffectParts* m_pSmoke = { nullptr }; + class CEffectParts* m_pSpread_PT = { nullptr }; + + _float3 m_vLook = {}; + _float m_fLinearSpeed = 0.8f; + + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +public: + static CRanrok_DeadSplash* 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/Ranrok_Swipe.h b/Jusin154_Team3D/Client/Public/Ranrok_Swipe.h new file mode 100644 index 000000000..db10922bf --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Ranrok_Swipe.h @@ -0,0 +1,59 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CRanrok_Swipe final : public CEffect_Container +{ +private: + CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRanrok_Swipe(const CRanrok_Swipe& rhs); + virtual ~CRanrok_Swipe() = 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; + _fvector Compute_Pos(); +private: + _wstring m_wstrEffectName = {}; + + class CEffectParts* m_pRock_PT = { nullptr }; + + _float3 m_vLook = {}; + _float m_fLinearSpeed = 0.8f; + + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; + + _bool m_isParticleEnd = {}; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +public: + static CRanrok_Swipe* 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/State_CutScene.h b/Jusin154_Team3D/Client/Public/State_CutScene.h new file mode 100644 index 000000000..5b4bad2cb --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_CutScene.h @@ -0,0 +1,31 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_CutScene final : public CState_Root +{ +public: + typedef struct tagCutScene : public CState_Root::STATE_ROOT_DESC { + + }STATE_CUTSCENE_DESC; +private: + CState_CutScene(); + virtual ~CState_CutScene() = default; + +public: + virtual void Enter(); + virtual HRESULT Update(_float fTimeDelta); + virtual void Exit(); + +private: + HRESULT Initialize(STATE_CUTSCENE_DESC* pDesc); + +public: + static CState_CutScene* Create(STATE_CUTSCENE_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml index 5559ad281..3eda6599d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Human_Duelist.xml @@ -2,110 +2,26 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + @@ -115,54 +31,11 @@ - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml index 65be7dcca..e3a22a46c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml @@ -165,4 +165,7 @@ + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Circle_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Circle_1.bin index 8fea3892c..0d476871e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Circle_1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Circle_1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f4b4b0ad3a97cf97ef143611c6079d6f4325be0d228683999cea32b3881ee336 +oid sha256:4d431eeeb354c31cb1a24071130e036b91accfb9dfe8728b823b4dc3d784d878 size 1231 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact.bin new file mode 100644 index 000000000..e6d8175e2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadImpact.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51cc1bb6a302145f34e05434ccf197ed9b3ea8a28cebc021eb0421d09349465e +size 686 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash.bin new file mode 100644 index 000000000..f5a9e6305 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokDeadSplash.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4be0a80f9d4ae20191e2e888290125c5f9d69a52df9a61d3f6bf39e537b2d79b +size 302 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe.bin new file mode 100644 index 000000000..330efd160 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokSwipe.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:957fc82f3c06e2f35fa438dc7057595e9198199f4b76c9273cbcb35e35474526 +size 214 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Land_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Land_Decal.bin index b087125e6..249c027c0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Land_Decal.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Land_Decal.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f712cfafff85e820710e7fc754155933446134584ba231f732032b258815bb88 +oid sha256:08898353679d17f5226cf98645b24448d3b8668f45793809dc781c5ca89afab1 size 1271 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin index 52017be31..af007b08e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBreath/Rock_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1d9bcc72418ae124b879e0bdf7437fd373316f7cf177f5fa813bf7ce1844ac01 +oid sha256:331e1f821f1a3e2e2946e4518fb522e1fbc458a63eae997aa3df038c7df2e068 size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Circle_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Circle_0.bin new file mode 100644 index 000000000..9daefdb93 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Circle_0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d19bb92b6278fd51e235b33b617f2696921c088f84068bae34942cec6f8db3e +size 1208 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion.bin new file mode 100644 index 000000000..d500e2b8d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6dbcf1ffc0e76b901553015a6b4faab5a3bc8b23cf97289f547c9fad32667359 +size 1255 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion_Small.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion_Small.bin new file mode 100644 index 000000000..71e8fee17 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Distortion_Small.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3643ab359a86b6f40a25b52d8671f3694b60c142c523eb0a58eecdab36619b94 +size 1198 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Pulse_White.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Pulse_White.bin new file mode 100644 index 000000000..56e26b4df --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Pulse_White.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e42bdf0cd58115ec59427a6fb2fa98fa273030fa367dfaf9ec76e1feb4744d3b +size 1216 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Side_Pt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Side_Pt.bin new file mode 100644 index 000000000..223764a73 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Side_Pt.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de79b263864b298f0fb3a1a3faef732e32fe2beaa8db74a85f0aec51369371f4 +size 1294 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Black.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Black.bin new file mode 100644 index 000000000..ff3ad0e2f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Black.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57d1456fc05e70e5a9d7a06036bfb54d51a707874636aca664a9f65a4aa42fd3 +size 1288 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Red.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Red.bin new file mode 100644 index 000000000..b1d109927 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Splash_Red.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aab2ee8208c8319b26262ba84516fd36b87f551879309b7753a963b7a9f82d86 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline0.bin new file mode 100644 index 000000000..0dc8b71c5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7387965307cadf937dd03c9df30adf029837be3b29505341e408bf73d933ea9 +size 1213 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline1.bin new file mode 100644 index 000000000..4a82b4d82 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadImpact/Spline1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae89ac75513faffcbc5a2d2edaf3a01a07211a99224e9bfc042a9c0fb67401ac +size 1208 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Dead_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Dead_Decal.bin new file mode 100644 index 000000000..42f4c5212 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Dead_Decal.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eddbc56e70f7a2c6f93a45d0971613ad985c4e7a7f6aa58e7ef8f35dea07085e +size 1264 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_PT.bin new file mode 100644 index 000000000..d5586c0e4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_PT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fbc4fd5debcbba25e049c8ab7e5e009245c819a0fd8f287ef8ff4af34ab309e +size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_Splash.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_Splash.bin new file mode 100644 index 000000000..0005fe2f2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Rock_Splash.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:518c77b817b93675aba995494add459674c94ba3ece2d8d9de31daf06ab88b72 +size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Splash.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Splash.bin new file mode 100644 index 000000000..bd8c92ccc --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokDeadSplash/Splash.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0fa7964c6eaecffe859da4c54680bbe930cffb72ee1b73a7feda50c277b60f2 +size 1295 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin index 8e83ae77d..f056eac09 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/BottomSplatter.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:eff64f0aec70177895feddc841d6adde1bd1c7f028149a544082712d3c57d5b4 +oid sha256:39f6dceca76fb1f83e238efa1336f37cf4f8d7d28aa7502396625211158901d5 size 1210 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin index c853d1ba6..467d74cef 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Bottom_Decal.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4a9533f4fe3f556901a3b7db30c9e4fb19ae943a60bf99402e73f3eeaf3ca394 +oid sha256:f0e730f326463918e9c7eda06d8d06cff6e4097e9ad032d0b57eae953945db1d size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Rock_PT.bin index 8f5432e80..631c5d65e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Rock_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokGroundPulse/Rock_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:23cf3d5bec2be4b13b8bd36a67126d5918e93a36b3cf2f8bb30b1c78bc8648dd +oid sha256:4f806c466b4daac7716d146fc441222906abc18d222b290e5e7064599be81bd6 size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokLand/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokLand/Bottom_Decal.bin index 59ca1dda6..032431f32 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokLand/Bottom_Decal.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokLand/Bottom_Decal.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:95907d7f9ad9ad332ad87df576b43ac08ce4b9de03e9b265dc379c2e2ae6091b +oid sha256:56f3760dd872cd0a2b7eb1c2cb0fc9b829a8308309098ae4685327164a2778cc size 1202 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Smoke.bin index e4dac9e45..22e865634 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPoint/Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:836e5bd978a28877d58a2a04f35ae7b1c12d1e0695e031fe6bf6ead309ef52a2 -size 1296 +oid sha256:d132ae5f2687479c0f1c6d6d8191cd98ce497906c5fc265bf6f65590e807a7c9 +size 1287 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin index a869f6c71..e66c6a2c6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d83905230177e85d8af39235b52b489e709d575eda2da53523c7fe18c07db9d7 +oid sha256:3a885f02b56b66f32883ad4f0386c6c511df511c5d172390a06c0625c18123cd size 1210 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin index 3dafdea5c..c1152e0ad 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3498ce843154813d20f8b9633b88bf5e8f8f2f1b4a6bf05d99322abab81bc8ba +oid sha256:7a7b5c89cb56630436e52f4df48192e2aad373626eea2a4b735d1f443d91eab3 size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin index 206c6b0d8..e7a680fe3 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3cde890983244a19238162ac3badf4877057dda1dd83ae95d87ed3dbd72d6df9 +oid sha256:c6ba6509f7cff453fb884036d0ce5676f79c979c25687528ae65d048e067a7b4 size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokRushBottom/Rush_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokRushBottom/Rush_Decal.bin index f88dc97ba..e16280cda 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokRushBottom/Rush_Decal.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokRushBottom/Rush_Decal.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3eb3759fc7d8e9f7362cab51e8b4e1eba42a58fc54e91b8e408a35e2a2fc49fc +oid sha256:86cf2f5a666efcb033d5bab267f798c59ada8caa95633758150da2b4efd03dc3 size 1261 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/ClawDecal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/ClawDecal.bin new file mode 100644 index 000000000..1f8e25928 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/ClawDecal.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddc63f2fa3e728246110650cc1a11e621c6b61943a5e241b879df1da50874d6c +size 1310 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Rock_PT.bin new file mode 100644 index 000000000..65a5f64a2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Rock_PT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edbc64ea785c00472314bd2ace35e7e964ed88dcedf2de521f3902f25abab6ad +size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Swipe_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Swipe_Smoke.bin new file mode 100644 index 000000000..829137b36 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokSwipe/Swipe_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7925f18d62413a1c8d3e6e7231275118a0111054bbe8e65fcb79cf64903b364 +size 1191 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml index 9abcc8552..b465052bb 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/Stat.xml @@ -5,4 +5,5 @@ + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/BaseFlattenNormalMap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/BaseFlattenNormalMap.png new file mode 100644 index 000000000..d8e1fd944 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/BaseFlattenNormalMap.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin new file mode 100644 index 000000000..5d2124f11 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a0b3daba5e65ab9c3a029efae80ddc2d3a18d3ec873dd169fe563dc64e24728 +size 11118900 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.fbx new file mode 100644 index 000000000..a81fce660 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8162a4059f0bb22e2ac8fbcb88e5e47725d708a9a301068eedec41efd6ed7f56 +size 5437932 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml new file mode 100644 index 000000000..40219b073 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml @@ -0,0 +1,269 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_Anim.bin new file mode 100644 index 000000000..cbbeaae6a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_Anim.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f155bb8f09495a08de4e464e9471ed679e15a7158531a10e05f7eb5706693d8 +size 13039082 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_Anim.fbx new file mode 100644 index 000000000..71c8897c6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_Anim.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e5dfc4ae0545872e68d8ba4ab8b1003e2065bbd575f538eef78ee098644de30 +size 8193052 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_TrollIntro.bin new file mode 100644 index 000000000..2f993e9ba --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_TrollIntro.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a3a6ffdf32d908ec52094fde385df524b149cd0f3eeaf8e8151f2c089e12477 +size 12304508 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_TrollIntro.fbx new file mode 100644 index 000000000..edace3142 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick_TrollIntro.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa6a0d712a2112c5176cbaa8a1c10cdb0299e3d304e4185400f680c272a0280a +size 8802092 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Adult_F_Head_MIrabelGarlick_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Adult_F_Head_MIrabelGarlick_N.dds new file mode 100644 index 000000000..1156e0c06 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Adult_F_Head_MIrabelGarlick_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Adult_F_Head_MirabelGarlick_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Adult_F_Head_MirabelGarlick_D.png new file mode 100644 index 000000000..75e5fbdea Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Adult_F_Head_MirabelGarlick_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Adult_F_Head_MirabelGarlick_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Adult_F_Head_MirabelGarlick_SRXO.dds new file mode 100644 index 000000000..a2bb64063 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Adult_F_Head_MirabelGarlick_SRXO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Blank2_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Blank2_MSK.dds new file mode 100644 index 000000000..fe1e4ee12 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Blank2_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Blank_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Blank_N.dds new file mode 100644 index 000000000..3f1a18ef1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Blank_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_DefaultGrey_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_DefaultGrey_D.png new file mode 100644 index 000000000..b414d5691 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_DefaultGrey_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Eye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Eye_Iris_D.png new file mode 100644 index 000000000..4bf9d62f9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Eye_Iris_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Eye_Sclera_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Eye_Sclera_D.png new file mode 100644 index 000000000..6e082532d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Eye_Sclera_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Garlick_Hair_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Garlick_Hair_DAO_MSK.dds new file mode 100644 index 000000000..d2f56053c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Garlick_Hair_DAO_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Garlick_Hair_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Garlick_Hair_THV_MSK.dds new file mode 100644 index 000000000..e4baf1efa Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Garlick_Hair_THV_MSK.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_HUM_Head_Teeth_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_HUM_Head_Teeth_D.dds new file mode 100644 index 000000000..24effbef3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_HUM_Head_Teeth_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_HUM_Head_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/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/Garlick/T_HUM_Head_Teeth_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_HUM_Head_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/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/Garlick/T_HUM_Head_Teeth_SRXO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_MirabelGarlick_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_MirabelGarlick_D.dds new file mode 100644 index 000000000..4e835ae62 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_MirabelGarlick_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_MirabelGarlick_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_MirabelGarlick_MRO.dds new file mode 100644 index 000000000..24b310062 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_MirabelGarlick_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_MirabelGarlick_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_MirabelGarlick_N.dds new file mode 100644 index 000000000..744198358 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_MirabelGarlick_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_Rct.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_Rct.bin new file mode 100644 index 000000000..6a54663f5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/M_Student_Rct.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98bf980e8baa3dd8bfba43fed3b3ccc653dd8e38fc34222f99935eb7e1828453 +size 58079556 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 206e42fc9..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:7269d0454e7ce722d99f31fe2a5403c854fd764f2215de4582671bddd8e6d273 -size 6854891 +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 a3f031e15..59f0e3547 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 @@ -64,7 +64,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx index 426160853..88b0a2068 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:01136f9f94eb8740cca6eab949a12b71aafcf8a3c8d095c24d000151702e538e +oid sha256:0c60471f86afa6082edad8e88d7fce13458fd0531c7b9edec2e34a8eaf8ce028 size 5782684 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin index 139f12b7c..145551226 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d7295ba4c89744713083caff0e5e8573c3621152b146cfe46699ca701efc4b7e -size 10775434 +oid sha256:cef9657058c92da3fc1f2c7412d9af109e96010656df8cbf0349f3b6cbca0266 +size 10764837 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx index 9b2757900..4f05ed3fb 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9643af9a6c20c8c598a907ad19484ea0515d0143a3647c7872560336b85c1371 -size 6435292 +oid sha256:ae6a589175d1caf8e7af70da9770df080bf35b0a5e7bd708cfc13a86b1fa8c2d +size 6579564 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin index fd9b2e2d0..c8a0c23da 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9f284800b9984ead6d6492da61715e4b4614da55252049f8afc4ff2a73d634b2 -size 172156085 +oid sha256:f59cee6bc84723fa5f30927fee1d2862bacd47f6151f540189d9efa11c9b88fb +size 172123989 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx index 4290f0588..43cca3160 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:04af77e6fd573fb448d78a4afccd218b9940479fcaef46e375499a3374a4c326 -size 496538684 +oid sha256:9d7dce07f39d918046f053943ac20a7b8417ee2d8434aca79ce4aedb76ff238f +size 496494956 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin index 4daef16ff..6313624b7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:00dd067d5e97d20be5f8e0fbe544ba7018305af8f6b7192a5bbacc1453d37450 -size 23190066 +oid sha256:aa216c1dda899129e21beba4f22b48d5ae83f26dc9ce26948788720214f55c89 +size 23181890 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx index 90c7123a8..56fd36b23 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:546136e613a6efd35ab9db1e22a97373147f20f3b4831ca2ef8a869b94084afa -size 58621516 +oid sha256:c39f3648a774fde3a3ca0374048cf98c2585ea1c6ce575200791122be7882316 +size 58614012 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin index 6445f6267..05f9d2a95 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2265a7cb220bc45acf8bec67f8eb3855d48d4a71260f6866277bd93b286286f5 -size 69510580 +oid sha256:5736c3c8c007604120bfbc582d88c03831331ae24f3af892d58640d802024335 +size 69519408 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx index a0caadcf2..78f8de90b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:46bb4f14c6166fcb966998ab1688f933776a5c0bed07bd6278a0f7c3d1f9f5fb -size 187629004 +oid sha256:2b05741a3bd8e858c9e2bcbfaf18602a31c5dcdd81697db2810469e35fe7b37c +size 187635116 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin index 07b783c00..068e0e499 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fc989ee8bef63e3c178ea47dc22742580f0a43c254e3bb0328e2e60a4dc66275 -size 10839386 +oid sha256:82113f663532392550e084df2e2a64136cfb2e44c20eadc2052c323a280e94e4 +size 10845926 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx index a6a50a1ed..0dd59d3e3 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:424e5eb5fdf67d1e9ab6d26a22daf433c490ebef787013e31ef934621dc9378f -size 6622524 +oid sha256:5de6f2efcdc609dbdbec795746d336e4809a3e211ddc92e8d6ffeb3e25d61129 +size 6623820 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin index d31f28581..864a8893d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7efd3321c9b595a11f610459b45b466eaf4269b51519cb21ec335656b634684e -size 10831979 +oid sha256:4d05b034196df340038c767a70317f3a4391c913a9f5c10518c1da3963f1ceb6 +size 10837383 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx index 4968ec3c3..d414a061a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f32e832183b0cc92989fe661fd246a939234c04cf4809d5dad6a470c27dc6b02 -size 7711820 +oid sha256:b98ecbd4e8441c101dc28c59c1926f4f4ba288331bde0138b0b07490bd802dc7 +size 7862876 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin index 33eaa83ba..77204598d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cd9ef6d0085b5b5aa114f93658bd677b2f6e63166c7040a8b0f41d590fd1d598 -size 11599528 +oid sha256:4f63a9b11fff81794e700c2ffbce3ba5de77043bdfd9ef147bd95ff32c2ddda5 +size 11605392 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx index 53d4ae88d..daee529ae 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d09ce4044856db084f1c27d202ce2ef8ec39caab390090c39cfea58682335f5e -size 11317660 +oid sha256:93cad5fc47ba8715e94c226fbf5209b69948b99131a8e2d86e2348fa1ceab614 +size 11317884 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin index 6d3d26444..45a33f247 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0c2b15b19dbd5e9cac30f8dd7a0503697fefb8ba7670a0517fa76a92f1e39dd9 -size 60872730 +oid sha256:697745c7628aff20a58c7889620cad2ad044d0327963fe52ba21cab05eea8c93 +size 60877918 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx index d334a4453..a3bfcc9e0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:97b6f3b412d2efaee517a4957e733bd10fa4ec2cce0cfc2ab7849f189cac1ab4 -size 162112268 +oid sha256:d98f52f20ecd4445c3e11cdcc0225d5f9c9bef744b80371a79d4da45029d75af +size 162110172 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin index 78b0c122c..6973b43df 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c014c7879bd0bf784b52c41103c914e36ccd342a19fe774d14a76db339b10406 -size 19553373 +oid sha256:eeabb9187a67e6cb52b0ab83c0373a3aabae3087cfcac6ba7615235c4b800ee0 +size 19558977 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx index fdeecd83d..592a12504 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9a0f699ca4bd2b3fc8fe6fa488eb603e57571dcb997d415e3773959bcff3c376 -size 42318204 +oid sha256:1365b28033d92c5b89d0bc349f9ed6e37f76f9251a38baa8f3bc3df58c6c4784 +size 42318124 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin index 8e2669fc2..43f5406c5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7cd902991cc0e07a13d661ff082063c4d91d05558745e22fd55b6236534657ce -size 15532953 +oid sha256:deaf609ed71e00e5d72ace1d0f3b9a6f64e459aabc10c5a4c9129d9787c354e2 +size 15538505 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx index cd212311b..47e449856 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0c6ea3057be2b0b2b79a9f68b04a50c57d2aafd511248eb5f45fbcacae41bf94 -size 13646412 +oid sha256:b46e87261c87183d1d732217560577eb05283a6444ac07db6fefb4aec9693ef2 +size 13645916 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin index 6f211a32d..0bab1f105 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:16a8a368648f0a2a465e60be2594f116a9e5c8fd66756f68472f2da90518953b -size 12244771 +oid sha256:6f6947410dfd4b5db8d9790eacd4e065bf71a539da23a6fb4231dd4da76f56cf +size 12250323 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx index bd8c2f8b9..b50257389 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4d1815739ab986871b4e43dc9a93594acebd8734f3cb0d18f58ea598e0322479 -size 9683692 +oid sha256:17e4c94bcc64d1d3b52bb061a57f6bf00e2b21cf1ecdd009b504f14787919ca9 +size 9683740 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin index 8779cd5a1..a9107932e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:32b51f41874a6648ba4d389840709175a6bfbc04152d800abb743fc4a6689e03 -size 13829790 +oid sha256:b84350fba6f577232280266810e71ec6d642e71976d5535e2ab83a268bbada15 +size 10529725 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx index f88a088c2..ad0b3270a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2ce6d6d9c175b7711f49a87c50e3e16bce60ee524ea04254a7fee76b8054f5bd -size 7854460 +oid sha256:f0a58fd18e9d37dfa15675a867aac05b5eab0d300afe8c361efbf5628c7aba20 +size 6321564 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin index 00406df54..fb94d5259 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:66743ee440af5a10d0e74ff2203efa4f08514f6b19869fcc133869f568af7b8e -size 5163586 +oid sha256:4bebd94fc3f5dc0bd4a8a7c3ec66a0bd9476c65b797d0e31f1ab895770101fbb +size 5167738 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx index fac6a610d..7e3678af4 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6afe140b1bd18e24b74e3631ffa881cfbcd1036fc83fd3e4d49fc5cf76206338 -size 2268364 +oid sha256:06f8023e3d44b1e374e6ee981e18a783121ecd817e1be2a4df5cea6d87990818 +size 2261596 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.bin index bc4eff994..8e6f30bfd 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7f0aec44a3dbeafab4cbbd655e2f193d1159aa57843d86f7eadb702358032237 -size 43489033 +oid sha256:662555e21da509d51c2418e358be4cdc3c4cf490559ce62658df21909e24347e +size 43496211 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.fbx index d9a512f66..4216dcacd 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_Anim.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cecb0a62fb33d988795f4369738633dc14988ebcd87ad85fb724fc462efe3327 -size 136112332 +oid sha256:905355a3a9226885f0b6161d6ae5f14a621105ebf345a013b304a6cd279f82e4 +size 136134796 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin index 4c50849ef..d28240479 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:290de4b9a47b9e07596a092531280c77548e4c6ab8bae2564a976b6338f6daa9 -size 16281507 +oid sha256:50b8408f40f0fdd866fd91fd390abeb885a26aa4e5fa85aadc6c512db7bdf756 +size 8786167 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx index 3a854e1cf..5f0eee33f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6fa4bf2c5c8aff70c37b8a113812c4b040b2b7a3664700f5d7024358612eb2be -size 4519836 +oid sha256:fd0769dfe1aef6e10679321175e238c5cd06b1ea7d33c9d91bf3b1715cfbc7f8 +size 4490092 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin index 5e3c63885..e3cd6030f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ef3ac2202757e81a8a8a89c4a032326fdb9fad7cc3f7b4e64abd6b71e82fe0b1 -size 134860 +oid sha256:1fb4f21f6ca883ee2e841e78995b72c77007d72dbe8377d218bfa35a27b31475 +size 134808 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx index 4b09a75d1..f6f6e60e7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Camera/Camera_TrollIntro.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8c1932284b28eaec10dc58e31f142665a4b19eee9af9392ce438495264e36128 -size 143068 +oid sha256:f8c4bde06088635b10b31eff41c1ed0382a32d8bb92c3565bf6d0414ddf0b7dc +size 143164 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl index 3d233fe57..85b2e7e4f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl @@ -26,7 +26,9 @@ StructuredBuffer g_ParentBuffer : register(t4); StructuredBuffer g_BoneLocalBuffer : register(t5); StructuredBuffer g_BoneRemap : register(t6); StructuredBuffer g_SkipBone : register(t7); - +StructuredBuffer g_SecondKeyFrameBuffer : register(t8); +StructuredBuffer g_SecondChannelBuffer : register(t9); +StructuredBuffer g_BoneMask : register(t10); RWStructuredBuffer g_LocalMatrixOut : register(u0); @@ -48,7 +50,7 @@ cbuffer AnimCB : register(b0) float HeadAimWeight; int SkipCount; - int _pad0; + int IsSkip; int _pad1; int _pad2; @@ -57,6 +59,11 @@ cbuffer AnimCB : register(b0) row_major float4x4 PreTransformMatrix; float4 RootInitRot; + + int UseUpperBody; + float UpperBlend; + int SecondAnimIndex; + float SecondAnimTime; }; static const float EPS = 1e-6f; @@ -248,6 +255,27 @@ uint FindKeyIndexPrev(uint start, uint count, float t) return lo; } +uint FindKeyIndexSecond(uint start, uint count, float t) +{ + uint lo = 0; + uint hi = count - 1; + + float tLast = g_SecondKeyFrameBuffer[start + hi].fTrackPosition; + if (t >= tLast) + return hi - 1; + + while (lo + 1 < hi) + { + uint mid = (lo + hi) >> 1; + float tm = g_SecondKeyFrameBuffer[start + mid].fTrackPosition; + if (t < tm) + hi = mid; + else + lo = mid; + } + return lo; +} + void SampleLocalTRS_Cur(uint bone, float t, out float3 S, out float4 R, out float3 T) { Channel ch = g_ChannelBuffer[bone]; @@ -358,6 +386,102 @@ row_major float4x4 SampleBlendedLocal(uint bone) } +void SampleLocalTRS_Second(uint bone, float t, out float3 S, out float4 R, out float3 T) +{ + Channel ch = g_SecondChannelBuffer[bone]; + + if (ch.KeyCount == 0) + { + DecomposeAffine_RowMajor(g_BoneLocalBuffer[bone].BoneLocal, S, R, T); + return; + } + + if (ch.KeyCount < 2) + { + KeyFrame k = g_SecondKeyFrameBuffer[ch.StartIndex]; + S = k.vScale; + T = k.vTranslation; + R = QuatNormalize(k.vRotation); + return; + } + + uint idx0 = FindKeyIndexSecond(ch.StartIndex, ch.KeyCount, t); + uint idx1 = idx0 + 1; + + KeyFrame k0 = g_SecondKeyFrameBuffer[ch.StartIndex + idx0]; + KeyFrame k1 = g_SecondKeyFrameBuffer[ch.StartIndex + idx1]; + + float denom = max(k1.fTrackPosition - k0.fTrackPosition, EPS); + float a = saturate((t - k0.fTrackPosition) / denom); + + S = lerp(k0.vScale, k1.vScale, a); + T = lerp(k0.vTranslation, k1.vTranslation, a); + R = QuatSlerp(k0.vRotation, k1.vRotation, a); +} + +void SampleBaseTRS(uint bone, out float3 S, out float4 R, out float3 T) +{ + if (PrevAnimIndex == -1 || CurrentAnimIndex == PrevAnimIndex) + { + SampleLocalTRS_Cur(bone, CurrentTime, S, R, T); + } + else + { + float br = saturate(BlendRatio); + + float3 sA, sB, tA, tB; + float4 rA, rB; + + float prevT = (BlendRatio < 1e-4f) ? CurrentTime : PrevTime; + + SampleLocalTRS_Prev(bone, prevT, sA, rA, tA); + SampleLocalTRS_Cur(bone, CurrentTime, sB, rB, tB); + + S = lerp(sA, sB, br); + T = lerp(tA, tB, br); + R = QuatSlerp(rA, rB, br); + } + + if (bone == RootBoneIndex) + { + T = 0; + R = RootInitRot; + } +} + + +row_major float4x4 SampleDualAnimLocal(uint bone) +{ + float3 S0, T0; + float4 R0; + SampleBaseTRS(bone, S0, R0, T0); + + if (UseUpperBody != 1 || g_BoneMask[bone] == 0) + { + row_major float4x4 M0 = MakeAffine(S0, R0, T0); + return ApplyHeadAim(bone, M0); + } + + float3 S1, T1; + float4 R1; + SampleLocalTRS_Second(bone, SecondAnimTime, S1, R1, T1); + + float w = saturate(UpperBlend); + + float3 S = lerp(S0, S1, w); + float3 T = lerp(T0, T1, w); + float4 R = QuatSlerp(R0, R1, w); + + if (bone == RootBoneIndex) + { + T = 0; + R = RootInitRot; + } + + row_major float4x4 M = MakeAffine(S, R, T); + return ApplyHeadAim(bone, M); +} + [numthreads(256, 1, 1)] void CS_LOCAL(uint3 DTid : SV_DispatchThreadID) { @@ -366,18 +490,25 @@ void CS_LOCAL(uint3 DTid : SV_DispatchThreadID) if (bone >= BoneCount) return; - if (SkipCount != 0) + //if (SkipCount != 0 && IsSkip) + //{ + // for (int i = 0; i < SkipCount; i++) + // { + // if (bone == g_SkipBone[i]) + // { + // g_LocalMatrixOut[bone] = g_BoneLocalBuffer[bone].BoneLocal; + // return; + // } + // } + //} + + if (UseUpperBody == 1 && g_BoneMask[bone] == 1) { - for (int i = 0; i < SkipCount; i++) - { - if (bone == g_SkipBone[i]) - { - g_LocalMatrixOut[bone] = g_BoneLocalBuffer[bone].BoneLocal; - return; - } - } + g_LocalMatrixOut[bone] = SampleDualAnimLocal(bone); + } + else + { + g_LocalMatrixOut[bone] = SampleBlendedLocal(bone); } - - g_LocalMatrixOut[bone] = SampleBlendedLocal(bone); } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl index 3cf999034..d639ccac5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl @@ -29,7 +29,7 @@ cbuffer AnimCB : register(b0) float HeadAimWeight; int SkipCount; - int _pad0; + int IsSkip; int _pad1; int _pad2; @@ -38,6 +38,11 @@ cbuffer AnimCB : register(b0) row_major float4x4 PreTransformMatrix; float4 RootInitRot; + + int UseUpperBody; + float UpperBlend; + int SecondAnimIndex; + float SecondAnimTime; }; [numthreads(256, 1, 1)] diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl index e289bf2d4..199fea1ea 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl @@ -444,7 +444,7 @@ PS_OUT PS_MAIN(PS_IN In) Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z fSurfaceParam, // 서페이스 파라미터 - 1.f); + (2.f / 255.f)); Out.vColor = float4(0.f, 0.f, 0.f, 1.f); Out.vSurface = vSurface; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index 3185f6d30..ad0d75979 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -964,6 +964,9 @@ float2 ComputeDecal(float4 vPosition , float4x4 LocalMatrixInv) vDepthUV.y = vPosition.y / g_fWinSizeY; float4 vDepthDesc = g_DepthTexture.Sample(PointSampler, vDepthUV); + + clip(0.5f - vDepthDesc.w); /* 지형과 메쉬에게서만 수행할 것 */ + float3 vNormalDesc = g_NormalMapTexture.Sample(PointSampler, vDepthUV).xyz; vNormalDesc = normalize(vNormalDesc * 2.f - 1.f); diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 024daad13..2b600576c 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -215,7 +215,10 @@ call Update_Shaders.bat + + + @@ -491,7 +494,10 @@ call Update_Shaders.bat + + + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index 5de131f8a..3f81afff4 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -760,6 +760,15 @@ {12d83369-3413-478f-920e-c3c0ddeabfe8} + + {1893fa7b-b08f-4362-a212-7751614d4922} + + + {8172dd50-d631-4fa8-8d09-e459600365fa} + + + {7a345ef7-8e16-45df-9bc3-e8fc665f729f} + @@ -1539,6 +1548,15 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\GroundPulse + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Swipe + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadSplash + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadImpact + @@ -2326,6 +2344,15 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\GroundPulse + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\Swipe + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadSplash + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Ranrok\DeadImpact + diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index 33517ec77..e676c4afe 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -31,6 +31,9 @@ #include "Ranrok_Land.h" #include "Ranrok_Rush_Bottom.h" #include "Ranrok_GroundPulse.h" +#include "Ranrok_Swipe.h" +#include "Ranrok_DeadSplash.h" +#include "Ranrok_DeadImpact.h" CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) @@ -406,7 +409,7 @@ HRESULT CEffectPool::Ready_MonsterEffect() ))) return E_FAIL; - if (FAILED(Create_Effect(SKILL_TYPE::RANROK_GROUNDPULSE, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_GROUNDPULSE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { CRanrok_GroundPulse* pEffect = nullptr; @@ -415,6 +418,32 @@ HRESULT CEffectPool::Ready_MonsterEffect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_SWIPE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CRanrok_Swipe* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_SPLASH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CRanrok_DeadSplash* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_DEAD_IMPACT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CRanrok_DeadImpact* 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 e3518b164..9c5261843 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -111,6 +111,7 @@ HRESULT CLevel_EffectViewer::Initialize() m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); + return S_OK; } @@ -164,8 +165,12 @@ HRESULT CLevel_EffectViewer::Ready_Layer_Light() return E_FAIL; } - _float4 vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f); - _float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f); + //_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); pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); @@ -228,6 +233,8 @@ HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag) 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/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index e21dfd444..3dab69d64 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -1,4 +1,5 @@ -#include "pch.h" +#pragma region HEADER +#include "pch.h" #include "Loader.h" #include "GameInstance.h" @@ -224,6 +225,10 @@ #include "Ranrok_Land.h" #include "Ranrok_Rush_Bottom.h" #include "Ranrok_GroundPulse.h" +#include "Ranrok_Swipe.h" +#include "Ranrok_DeadSplash.h" +#include "Ranrok_DeadImpact.h" + #pragma endregion #pragma region PHYSX_HEADER @@ -247,6 +252,7 @@ #include "Dummy_Globe.h" +#pragma endregion #pragma endregion CLoader::CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -1918,6 +1924,9 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLightSpawner::Create(m_pDevice, m_pContext)))) + return E_FAIL; + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Dagger::Create(m_pDevice, m_pContext)))) { return E_FAIL; @@ -1977,6 +1986,18 @@ HRESULT CLoader::Loading_For_Effect() if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_GroundPulse::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_Swipe::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_DeadSplash::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_DeadImpact::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } /* For.Prototype_GameObject_Wand */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext)))) diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index e1c00d6bb..146fb7b6d 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -79,49 +79,54 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model") ));*/ +#pragma region MONSTER + futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_Playable_Model") + MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_GoblinMage_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_SK_GOB_M_Assassin_Master_Model") + )); + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + return E_FAIL; + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_troll_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_trsoll_Model") )); -#pragma region MONSTER + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_ConjuredDragon_Model") + )); //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_GoblinMage_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_SK_GOB_M_Assassin_Master_Model") - //)); - - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - // return E_FAIL; - - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"), - // CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - // return E_FAIL; - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixIdentity(), - // TEXT("Prototype_Component_troll_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin", XMMatrixIdentity(), + // MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.fbx", XMMatrixIdentity(), // TEXT("Prototype_Component_trsoll_Model") //)); //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_Anim.bin", XMMatrixIdentity(), + // MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_Anim.fbx", XMMatrixIdentity(), // TEXT("Prototype_Component_trsoll_Model") //)); @@ -205,6 +210,7 @@ HRESULT CLoader::Loading_For_ObjectViewer() MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity(), TEXT("Desc_Box") )); + //futures.emplace_back(Deferred_ModelLoad( // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixIdentity(), // TEXT("Prototype_Component_GerboldOlivander_Model") @@ -241,143 +247,173 @@ HRESULT CLoader::Loading_For_ObjectViewer() // return E_FAIL; + + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Playable_Model") + )); + #pragma region NPC + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_Npc_Model") + )); + + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_GerboldOlivander_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Professor_EleazarFig_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_MatildaWeasely_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_SatyavatiShah_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + 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") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_M_Student_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_F_Student_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Elf_Model") + )); + + + 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") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_BaiHowin_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_GeorgeOsric_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Garlick_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_DinahHecat_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_MudiwaOnai_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") + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") //)); //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_Professor_EleazarFig_Model") + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") //)); //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_GerboldOlivander_Model") + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") //)); //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_VictorRookWood_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), // TEXT("Prototype_Component_Playable_Model") //)); -#pragma region NPC - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_Professor_EleazarFig_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_MatildaWeasely_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_SatyavatiShah_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_PhineasBlack_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") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_M_Student_Model") - //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_F_Student_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_Elf_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx", XMMatrixIdentity(), // TEXT("Prototype_Component_Student_Cmbt_Model") //)); - + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Playable_Model") + //)); //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Cmbt_Model") + // TEXT("Prototype_Component_Playable_Model") //)); - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", 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") - //)); - // - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_BaiHowin_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_GeorgeOsric_Model") - //)); - - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_DinahHecat_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_MudiwaOnai_Model") - //)); - - //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Cmbt_Model") + // TEXT("Prototype_Component_Playable_Model") //)); //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Cmbt_Model") + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Playable_Model") + //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Playable_Model") //)); //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Cmbt_Model") + // TEXT("Prototype_Component_Playable_Model") //)); //futures.emplace_back(Deferred_ModelLoad( - // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx", XMMatrixIdentity(), - // TEXT("Prototype_Component_Student_Cmbt_Model") + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Playable_Model") //)); + + //futures.emplace_back(Deferred_ModelLoad( + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Playable_Model") + //)); + #pragma endregion for (auto& job : futures) { diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_DeadImpact.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_DeadImpact.cpp new file mode 100644 index 000000000..eb6667c72 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Ranrok_DeadImpact.cpp @@ -0,0 +1,200 @@ +#include "pch.h" +#include "Ranrok_DeadImpact.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CRanrok_DeadImpact::CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CRanrok_DeadImpact::CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CRanrok_DeadImpact::Initialize_Prototype() +{ + + + return S_OK; + +} + +HRESULT CRanrok_DeadImpact::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/Ranrok/RanrokDeadImpact"))) + return E_FAIL; + + m_wstrEffectName = L"RanrokDeadImpact"; + + + + m_fDuration = 5.f; + + + return S_OK; +} + +void CRanrok_DeadImpact::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CRanrok_DeadImpact::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + + + +} + +void CRanrok_DeadImpact::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CRanrok_DeadImpact::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + /* 초기 객체 비지블*/ + + CEditEffect* pDistortion = Get_PartObject("Distortion"); + CEditEffect* pDistortion_Small = Get_PartObject("Distortion_Small"); + CEditEffect* pPulse_White = Get_PartObject("Pulse_White"); + CEditEffect* pSplash_Black = Get_PartObject("Splash_Black"); + CEditEffect* pSplash_Red = Get_PartObject("Splash_Red"); + CEditEffect* pSpline0 = Get_PartObject("Spline0"); + CEditEffect* pSpline1 = Get_PartObject("Spline1"); + CEditEffect* pSide_Pt = Get_PartObject("Side_Pt"); + CEditEffect* pCircle_0 = Get_PartObject("Circle_0"); + + pDistortion->Set_Visible(true); + pDistortion_Small->Set_Visible(true); + pPulse_White->Set_Visible(true); + pSplash_Black->Set_Visible(true); + pSplash_Red->Set_Visible(true); + pSpline0->Set_Visible(true); + pSpline1->Set_Visible(true); + pSide_Pt->Set_Visible(true); + pCircle_0->Set_Visible(true); + /* 초기 객체 위치 초기화*/ + + _vector vPos = m_pOwner->Get_Component()->Get_HeadPosition(); + + + pDistortion->Get_Component()->Set_State(STATE::POSITION, vPos); + pDistortion_Small->Get_Component()->Set_State(STATE::POSITION, vPos); + pPulse_White->Get_Component()->Set_State(STATE::POSITION, vPos); + pSplash_Black->Get_Component()->Set_State(STATE::POSITION, vPos); + pSplash_Red->Get_Component()->Set_State(STATE::POSITION, vPos); + pSpline0->Get_Component()->Set_State(STATE::POSITION, vPos); + pSpline1->Get_Component()->Set_State(STATE::POSITION, vPos); + pSide_Pt->Get_Component()->Set_State(STATE::POSITION, vPos); + pCircle_0->Get_Component()->Set_State(STATE::POSITION, vPos); + + return S_OK; +} + +HRESULT CRanrok_DeadImpact::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CRanrok_DeadImpact::Ready_Child() +{ + return S_OK; +} + +CRanrok_DeadImpact* CRanrok_DeadImpact::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CRanrok_DeadImpact"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CRanrok_DeadImpact::Clone(void* pArg, CGameObject* pOwner) +{ + CRanrok_DeadImpact* pInstance = new CRanrok_DeadImpact(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CRanrok_DeadImpact"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CRanrok_DeadImpact::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + +} + +void CRanrok_DeadImpact::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); + + +} +#ifdef _DEBUG +void CRanrok_DeadImpact::Describe_Entity() +{ + +} +#endif + +HRESULT CRanrok_DeadImpact::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_DeadSplash.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_DeadSplash.cpp new file mode 100644 index 000000000..55d952db1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Ranrok_DeadSplash.cpp @@ -0,0 +1,200 @@ +#include "pch.h" +#include "Ranrok_DeadSplash.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CRanrok_DeadSplash::CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CRanrok_DeadSplash::CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CRanrok_DeadSplash::Initialize_Prototype() +{ + + + return S_OK; + +} + +HRESULT CRanrok_DeadSplash::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/Ranrok/RanrokDeadSplash"))) + return E_FAIL; + + m_wstrEffectName = L"RanrokDeadSplash"; + + + + m_fDuration = 5.f; + + + return S_OK; +} + +void CRanrok_DeadSplash::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CRanrok_DeadSplash::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + + + +} + +void CRanrok_DeadSplash::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CRanrok_DeadSplash::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + _float4 vPos = *static_cast<_float4*>(pArg); + _vector vPosition = XMLoadFloat4(&vPos); + /* 초기 객체 비지블*/ + + CEditEffect* pDead_Decal = Get_PartObject("Dead_Decal"); + CEditEffect* pRock_PT = Get_PartObject("Rock_PT"); + CEditEffect* pRock_Splash = Get_PartObject("Rock_Splash"); + CEditEffect* pSplash = Get_PartObject("Splash"); + + pDead_Decal->Set_Visible(true); + pRock_PT->Set_Visible(true); + + pRock_Splash->Set_Visible(true); + pSplash->Set_Visible(true); + + /* 초기 객체 위치 초기화*/ + + pRock_PT->Get_Component()->Set_State(STATE::POSITION, vPosition); + pSplash->Get_Component()->Set_State(STATE::POSITION, vPosition); + + CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first; + + if (pPlayer == nullptr) + return E_FAIL; + + _vector vPlayer_FootPos = pPlayer->Get_Component()->Get_FootPosition(); + + + _vector vCompute_Pos = XMVectorSetY(vPosition, XMVectorGetY(vPlayer_FootPos)); + pRock_Splash->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos); + + vCompute_Pos = XMVectorSetY(m_pOwner->Get_WorldPostion(), XMVectorGetY(vPlayer_FootPos)); + + pDead_Decal->Get_Component()->Set_State(STATE::POSITION, vCompute_Pos); + + return S_OK; +} + +HRESULT CRanrok_DeadSplash::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CRanrok_DeadSplash::Ready_Child() +{ + return S_OK; +} + +CRanrok_DeadSplash* CRanrok_DeadSplash::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CRanrok_DeadSplash"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CRanrok_DeadSplash::Clone(void* pArg, CGameObject* pOwner) +{ + CRanrok_DeadSplash* pInstance = new CRanrok_DeadSplash(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CRanrok_DeadSplash"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CRanrok_DeadSplash::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + +} + +void CRanrok_DeadSplash::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); + + +} +#ifdef _DEBUG +void CRanrok_DeadSplash::Describe_Entity() +{ + +} +#endif + +HRESULT CRanrok_DeadSplash::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp index 35c0a2743..be4965f97 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp @@ -564,6 +564,12 @@ void CRanrok::Behavior_SwipeEnter() m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, + [this]() { + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_SWIPE , this); + }, 0.3f); + } HRESULT CRanrok::Behavior_SwipeExitCheck(_float fTimeDelta) @@ -888,12 +894,90 @@ void CRanrok::Behavior_DeadEnter() m_bLookAt = false; pair<_uint, _bool> pairAnimInfo = {}; m_pFSM->Enable_State(FSMSTATE::DEAD); + m_fDeadRatio = 0.f; + + pairAnimInfo = m_Animation[STATEANIM::DEAD]; + m_pBottomSmoke->Set_Visible(false); + m_pLeftSmoke->Set_Visible(false); + m_pRightSmoke->Set_Visible(false); + + Add_Event(pairAnimInfo.first, + [&]() { + + _vector vPos = m_pCharacter_Controller->Get_Position(); + _float4 vPosFloat4 = {}; + XMStoreFloat4(&vPosFloat4, vPos); + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_IMPACT, this, &vPosFloat4); + + }, 0.f); + + Add_Event(pairAnimInfo.first, + [&]() { + + _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("pinky_06_right")) * m_pTransformCom->Get_XMWorldMatrix(); + + _vector vPos = BoneMat.r[3]; + _float4 vPosFloat4 = {}; + XMStoreFloat4(&vPosFloat4, vPos); + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4); + + }, 0.2f); + + Add_Event(pairAnimInfo.first, + [&]() { + + _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("elbow_left")) * m_pTransformCom->Get_XMWorldMatrix(); + + _vector vPos = BoneMat.r[3]; + _float4 vPosFloat4 = {}; + XMStoreFloat4(&vPosFloat4, vPos); + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4); + + }, 0.34f); + + Add_Event(pairAnimInfo.first, + [&]() { + + _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix(); + + _vector vPos = BoneMat.r[3]; + _float4 vPosFloat4 = {}; + XMStoreFloat4(&vPosFloat4, vPos); + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4); + + }, 0.44f); + + Add_Event(pairAnimInfo.first, + [&]() { + + _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("chest_Main")) * m_pTransformCom->Get_XMWorldMatrix(); + + _vector vPos = BoneMat.r[3]; + _float4 vPosFloat4 = {}; + XMStoreFloat4(&vPosFloat4, vPos); + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_SPLASH, this, &vPosFloat4); + + }, 0.6f); + + Add_Event(pairAnimInfo.first, + [&]() { + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_DEAD_IMPACT, this); + + }, 0.8f); + + +#ifndef 진우 PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition(); PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z); m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p)); m_pRigidBody->SetActive(false); m_pCharacter_Controller->SetActive(false); - +#endif pairAnimInfo = m_Animation[STATEANIM::DEAD]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); @@ -901,15 +985,36 @@ void CRanrok::Behavior_DeadEnter() HRESULT CRanrok::Behavior_DeadExitCheck(_float fTimeDelta) { + + +#ifdef 진우 + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::COMBAT); + m_pFSM->Disable_State(FSMSTATE::DEAD); + return S_OK; + } +#endif + if (FLT_EPSILON > m_pModelCom->Get_CurrentTrackProgressRatio()) { return E_PENDING; } + + return S_OK; } void CRanrok::Behavior_DeadExit() { + +#ifndef 진우 m_bDead = true; +#else + + m_pFSM->Disable_State(FSMSTATE::DEAD); + +#endif + } @@ -1129,7 +1234,9 @@ void CRanrok::Add_FSM() Desc.funcLateUpdate = [this](_float fDeadRatio) { m_fDeadRatio = fDeadRatio; if (m_fDeadRatio > 1.f) { +#ifndef 진우 m_bDead = true; +#endif } }; Desc.vDeadTimer.x = FLT_EPSILON5; diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Swipe.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Swipe.cpp new file mode 100644 index 000000000..04c44afd9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Ranrok_Swipe.cpp @@ -0,0 +1,227 @@ +#include "pch.h" +#include "Ranrok_Swipe.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CRanrok_Swipe::CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CRanrok_Swipe::CRanrok_Swipe(const CRanrok_Swipe& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CRanrok_Swipe::Initialize_Prototype() +{ + + + return S_OK; + +} + +HRESULT CRanrok_Swipe::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/Ranrok/RanrokSwipe"))) + return E_FAIL; + + m_wstrEffectName = L"RanrokSwipe"; + + m_pRock_PT = Get_PartObject("Rock_PT"); + SAFE_ADDREF(m_pRock_PT); + + m_fDuration = 5.f; + + + m_Events.emplace(0.4f, [&]() { + + CEditEffect* pClawDecal = Get_PartObject("ClawDecal"); + pClawDecal->Set_Visible(true); + + CEditEffect* pSmoke = Get_PartObject("Swipe_Smoke"); + pSmoke->Set_Visible(true); + + _vector vComputePos = Compute_Pos(); + + pSmoke->Get_Component()->Set_State(STATE::POSITION, vComputePos); + + _vector vLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f) , vLook)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vLook , vRight)); + _vector vPos = vComputePos; + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + pClawDecal->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + }); + + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f)); + }); + + return S_OK; +} + +void CRanrok_Swipe::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CRanrok_Swipe::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + if (m_isParticleEnd == false) + { + _vector vComputePos = Compute_Pos(); + m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, vComputePos); + + } + + +} + +void CRanrok_Swipe::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CRanrok_Swipe::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + /* 초기 객체 비지블*/ + m_pRock_PT->Set_Visible(true); + + + /* 초기 객체 위치 초기화*/ + _vector vComputePos = Compute_Pos(); + m_pRock_PT->Get_Component()->Set_State(STATE::POSITION, vComputePos); + + m_isParticleEnd = false; + return S_OK; +} + +HRESULT CRanrok_Swipe::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CRanrok_Swipe::Ready_Child() +{ + return S_OK; +} + +CRanrok_Swipe* CRanrok_Swipe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CRanrok_Swipe* pInstance = new CRanrok_Swipe(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CRanrok_Swipe"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CRanrok_Swipe::Clone(void* pArg, CGameObject* pOwner) +{ + CRanrok_Swipe* pInstance = new CRanrok_Swipe(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CRanrok_Swipe"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CRanrok_Swipe::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + +} + +_fvector CRanrok_Swipe::Compute_Pos() +{ + _matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component()->Get_BoneMatrixPtr("wrist_left_target")) * m_pOwner->Get_Component()->Get_XMWorldMatrix(); + + _vector vBonePos = BoneMat.r[3]; + + + CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first; + + + + _vector vPlayer_FootPos = pPlayer->Get_Component()->Get_FootPosition(); + + XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos); + + _vector vCompute_Pos = XMVectorSetY(vBonePos, XMVectorGetY(vPlayer_FootPos)); + + return vCompute_Pos; +} + +void CRanrok_Swipe::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); + SAFE_RELEASE(m_pRock_PT); + +} +#ifdef _DEBUG +void CRanrok_Swipe::Describe_Entity() +{ + +} +#endif + +HRESULT CRanrok_Swipe::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index f6d3488ab..5001520c7 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -68,7 +68,7 @@ namespace Editor 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_GROUNDPULSE, RANROK_SWIPE, RANROK_DEAD_SPLASH , RANROK_DEAD_IMPACT, END }; diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_DeadImpact.h b/Jusin154_Team3D/Editor/Public/Ranrok_DeadImpact.h new file mode 100644 index 000000000..2999b3613 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Ranrok_DeadImpact.h @@ -0,0 +1,58 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CRanrok_DeadImpact final : public CEffect_Container +{ +private: + CRanrok_DeadImpact(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRanrok_DeadImpact(const CRanrok_DeadImpact& rhs); + virtual ~CRanrok_DeadImpact() = 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_pGooRod_0 = { nullptr }; + class CEditEffect* m_pSmoke = { nullptr }; + class CEditEffect* m_pSpread_PT = { nullptr }; + + _float3 m_vLook = {}; + _float m_fLinearSpeed = 0.8f; + + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +public: + static CRanrok_DeadImpact* 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/Editor/Public/Ranrok_DeadSplash.h b/Jusin154_Team3D/Editor/Public/Ranrok_DeadSplash.h new file mode 100644 index 000000000..fdd470ab6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Ranrok_DeadSplash.h @@ -0,0 +1,58 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CRanrok_DeadSplash final : public CEffect_Container +{ +private: + CRanrok_DeadSplash(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRanrok_DeadSplash(const CRanrok_DeadSplash& rhs); + virtual ~CRanrok_DeadSplash() = 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_pGooRod_0 = { nullptr }; + class CEditEffect* m_pSmoke = { nullptr }; + class CEditEffect* m_pSpread_PT = { nullptr }; + + _float3 m_vLook = {}; + _float m_fLinearSpeed = 0.8f; + + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +public: + static CRanrok_DeadSplash* 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/Editor/Public/Ranrok_Swipe.h b/Jusin154_Team3D/Editor/Public/Ranrok_Swipe.h new file mode 100644 index 000000000..6745abad3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Ranrok_Swipe.h @@ -0,0 +1,59 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CRanrok_Swipe final : public CEffect_Container +{ +private: + CRanrok_Swipe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRanrok_Swipe(const CRanrok_Swipe& rhs); + virtual ~CRanrok_Swipe() = 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; + _fvector Compute_Pos(); +private: + _wstring m_wstrEffectName = {}; + + class CEditEffect* m_pRock_PT = { nullptr }; + + _float3 m_vLook = {}; + _float m_fLinearSpeed = 0.8f; + + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; + + _bool m_isParticleEnd = {}; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +public: + static CRanrok_Swipe* 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/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl index 3d233fe57..85b2e7e4f 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Local_Compute.hlsl @@ -26,7 +26,9 @@ StructuredBuffer g_ParentBuffer : register(t4); StructuredBuffer g_BoneLocalBuffer : register(t5); StructuredBuffer g_BoneRemap : register(t6); StructuredBuffer g_SkipBone : register(t7); - +StructuredBuffer g_SecondKeyFrameBuffer : register(t8); +StructuredBuffer g_SecondChannelBuffer : register(t9); +StructuredBuffer g_BoneMask : register(t10); RWStructuredBuffer g_LocalMatrixOut : register(u0); @@ -48,7 +50,7 @@ cbuffer AnimCB : register(b0) float HeadAimWeight; int SkipCount; - int _pad0; + int IsSkip; int _pad1; int _pad2; @@ -57,6 +59,11 @@ cbuffer AnimCB : register(b0) row_major float4x4 PreTransformMatrix; float4 RootInitRot; + + int UseUpperBody; + float UpperBlend; + int SecondAnimIndex; + float SecondAnimTime; }; static const float EPS = 1e-6f; @@ -248,6 +255,27 @@ uint FindKeyIndexPrev(uint start, uint count, float t) return lo; } +uint FindKeyIndexSecond(uint start, uint count, float t) +{ + uint lo = 0; + uint hi = count - 1; + + float tLast = g_SecondKeyFrameBuffer[start + hi].fTrackPosition; + if (t >= tLast) + return hi - 1; + + while (lo + 1 < hi) + { + uint mid = (lo + hi) >> 1; + float tm = g_SecondKeyFrameBuffer[start + mid].fTrackPosition; + if (t < tm) + hi = mid; + else + lo = mid; + } + return lo; +} + void SampleLocalTRS_Cur(uint bone, float t, out float3 S, out float4 R, out float3 T) { Channel ch = g_ChannelBuffer[bone]; @@ -358,6 +386,102 @@ row_major float4x4 SampleBlendedLocal(uint bone) } +void SampleLocalTRS_Second(uint bone, float t, out float3 S, out float4 R, out float3 T) +{ + Channel ch = g_SecondChannelBuffer[bone]; + + if (ch.KeyCount == 0) + { + DecomposeAffine_RowMajor(g_BoneLocalBuffer[bone].BoneLocal, S, R, T); + return; + } + + if (ch.KeyCount < 2) + { + KeyFrame k = g_SecondKeyFrameBuffer[ch.StartIndex]; + S = k.vScale; + T = k.vTranslation; + R = QuatNormalize(k.vRotation); + return; + } + + uint idx0 = FindKeyIndexSecond(ch.StartIndex, ch.KeyCount, t); + uint idx1 = idx0 + 1; + + KeyFrame k0 = g_SecondKeyFrameBuffer[ch.StartIndex + idx0]; + KeyFrame k1 = g_SecondKeyFrameBuffer[ch.StartIndex + idx1]; + + float denom = max(k1.fTrackPosition - k0.fTrackPosition, EPS); + float a = saturate((t - k0.fTrackPosition) / denom); + + S = lerp(k0.vScale, k1.vScale, a); + T = lerp(k0.vTranslation, k1.vTranslation, a); + R = QuatSlerp(k0.vRotation, k1.vRotation, a); +} + +void SampleBaseTRS(uint bone, out float3 S, out float4 R, out float3 T) +{ + if (PrevAnimIndex == -1 || CurrentAnimIndex == PrevAnimIndex) + { + SampleLocalTRS_Cur(bone, CurrentTime, S, R, T); + } + else + { + float br = saturate(BlendRatio); + + float3 sA, sB, tA, tB; + float4 rA, rB; + + float prevT = (BlendRatio < 1e-4f) ? CurrentTime : PrevTime; + + SampleLocalTRS_Prev(bone, prevT, sA, rA, tA); + SampleLocalTRS_Cur(bone, CurrentTime, sB, rB, tB); + + S = lerp(sA, sB, br); + T = lerp(tA, tB, br); + R = QuatSlerp(rA, rB, br); + } + + if (bone == RootBoneIndex) + { + T = 0; + R = RootInitRot; + } +} + + +row_major float4x4 SampleDualAnimLocal(uint bone) +{ + float3 S0, T0; + float4 R0; + SampleBaseTRS(bone, S0, R0, T0); + + if (UseUpperBody != 1 || g_BoneMask[bone] == 0) + { + row_major float4x4 M0 = MakeAffine(S0, R0, T0); + return ApplyHeadAim(bone, M0); + } + + float3 S1, T1; + float4 R1; + SampleLocalTRS_Second(bone, SecondAnimTime, S1, R1, T1); + + float w = saturate(UpperBlend); + + float3 S = lerp(S0, S1, w); + float3 T = lerp(T0, T1, w); + float4 R = QuatSlerp(R0, R1, w); + + if (bone == RootBoneIndex) + { + T = 0; + R = RootInitRot; + } + + row_major float4x4 M = MakeAffine(S, R, T); + return ApplyHeadAim(bone, M); +} + [numthreads(256, 1, 1)] void CS_LOCAL(uint3 DTid : SV_DispatchThreadID) { @@ -366,18 +490,25 @@ void CS_LOCAL(uint3 DTid : SV_DispatchThreadID) if (bone >= BoneCount) return; - if (SkipCount != 0) + //if (SkipCount != 0 && IsSkip) + //{ + // for (int i = 0; i < SkipCount; i++) + // { + // if (bone == g_SkipBone[i]) + // { + // g_LocalMatrixOut[bone] = g_BoneLocalBuffer[bone].BoneLocal; + // return; + // } + // } + //} + + if (UseUpperBody == 1 && g_BoneMask[bone] == 1) { - for (int i = 0; i < SkipCount; i++) - { - if (bone == g_SkipBone[i]) - { - g_LocalMatrixOut[bone] = g_BoneLocalBuffer[bone].BoneLocal; - return; - } - } + g_LocalMatrixOut[bone] = SampleDualAnimLocal(bone); + } + else + { + g_LocalMatrixOut[bone] = SampleBlendedLocal(bone); } - - g_LocalMatrixOut[bone] = SampleBlendedLocal(bone); } diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl index 3cf999034..d639ccac5 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl @@ -29,7 +29,7 @@ cbuffer AnimCB : register(b0) float HeadAimWeight; int SkipCount; - int _pad0; + int IsSkip; int _pad1; int _pad2; @@ -38,6 +38,11 @@ cbuffer AnimCB : register(b0) row_major float4x4 PreTransformMatrix; float4 RootInitRot; + + int UseUpperBody; + float UpperBlend; + int SecondAnimIndex; + float SecondAnimTime; }; [numthreads(256, 1, 1)] diff --git a/Jusin154_Team3D/Engine/Private/Channel.cpp b/Jusin154_Team3D/Engine/Private/Channel.cpp index de7c3dd8a..2a43877e8 100644 --- a/Jusin154_Team3D/Engine/Private/Channel.cpp +++ b/Jusin154_Team3D/Engine/Private/Channel.cpp @@ -120,7 +120,7 @@ void CChannel::Update_TransformationMatirx( _float4& OutScale, _float4& OutRotation, _float4& OutTranslation, _int RootBoneIndex) { - if (m_iBoneIndex == RootBoneIndex ||Bones[m_iBoneIndex]->IsCPUEvaluated()) + if (m_iBoneIndex == RootBoneIndex || Bones[m_iBoneIndex]->IsCPUEvaluated()) { if (0.f == fCurrentTrackPosition) *pCurrentKeyFrameIndex = 0; @@ -165,7 +165,7 @@ void CChannel::Update_TransformationMatirx( } - if (m_iBoneIndex == RootBoneIndex) + if (m_iBoneIndex == RootBoneIndex && bIsSpine) { XMStoreFloat4(&OutScale, vScale); XMStoreFloat4(&OutRotation, vRotation); diff --git a/Jusin154_Team3D/Engine/Private/Mesh.cpp b/Jusin154_Team3D/Engine/Private/Mesh.cpp index 8efa6d820..e1267cd80 100644 --- a/Jusin154_Team3D/Engine/Private/Mesh.cpp +++ b/Jusin154_Team3D/Engine/Private/Mesh.cpp @@ -281,8 +281,12 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr m_pVertexPositions = new _float3[m_iNumVertices]; ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices); +#ifdef EDITOR_PROJECT m_VertexTexcoords = new _float2[m_iNumVertices]; ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices); +#endif // EDITOR_PROJECT + + for (_uint i = 0; i < m_iNumVertices; ++i) { @@ -304,7 +308,9 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix))); pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV; +#ifdef EDITOR_PROJECT memcpy(&m_VertexTexcoords[i], &pVertices[i].vTexcoord, sizeof(_float2)); +#endif // EDITOR_PROJECT } D3D11_SUBRESOURCE_DATA InitialVBData{}; diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 9c630ec83..5f2a1fc7e 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -160,7 +160,7 @@ _bool CModel::Play_Animation(_float fTimeDelta, CTransform* pTransform) return false; } - if (m_iCurrSecondAnimIndex >= 0) { + if (m_bSecondAnim == true) { Play_Dual_Anim(fTimeDelta, pTransform); } else { @@ -285,7 +285,9 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) m_bIsFinishedAnim = pCurAnim->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation, m_iRootBoneIndex); - m_bIsSecondFinishedAnim = pSecondAnim->Update_TransformationMatrices(m_Bones, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation, m_iRootBoneIndex); + m_bIsSecondFinishedAnim = pSecondAnim->Update_TransformationMatrices(m_Bones, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation); + + m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio* 5.f); if (m_fRatio >= 1.f) { @@ -314,10 +316,10 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) } - m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation); + m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation, m_iRootBoneIndex); m_bIsSecondFinishedAnim = m_Animations[m_iCurrSecondAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask, m_OutScale, m_OutRotation, m_OutTranslation); - m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio); + m_Animations[m_iCurrSecondAnimIndex]->InterpSecondAnim(m_Animations[m_iCurrentAnimIndex], m_iBoneMask, m_Bones, m_fSecondRatio * 5.f); m_iPreAnimIndex = m_iCurrentAnimIndex; if (m_bIsSecondFinishedAnim) @@ -329,6 +331,8 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) } } + ComputeAnimation(m_iCurrentAnimIndex, m_iIndexAnimPlayableMesh); + if (m_bIsFinishedAnim) { if (m_bIsLoop) @@ -336,9 +340,6 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) m_bLoopRestarted = true; m_vPrevRootPos = { 0,0,0 }; } - //else { - // XMStoreFloat3(&m_vPrevRootPos, m_vector[2]); - //} } if (m_bRatio) { @@ -349,11 +350,6 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) Update_RootBone(m_fAmount); } - if (m_bIsFinishedAnim) - { - m_vPrevRootRot = { 0.f,0.f,0.f,0.f }; - m_bInitialRootRotSaved = false; - } if (m_bIsSecondFinishedAnim && !m_bIsSecondLoop) { @@ -374,10 +370,12 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform) m_fSecondRatio = 0.f; m_bSecondStopBlend = false; m_iCurrSecondAnimIndex = -1; + m_bSecondAnim = false; } } - m_Bones[m_iRootBoneIndex]->Update_CombinedTransformationMatrix(m_Bones, XMLoadFloat4x4(&m_PreTransformMatrix)); + if (m_iRootBoneIndex >= 0) + m_Bones[m_iRootBoneIndex]->Update_CombinedTransformationMatrix(m_Bones, XMLoadFloat4x4(&m_PreTransformMatrix)); for (_uint i = 0; i < m_Bones.size(); ++i) { @@ -455,10 +453,6 @@ void CModel::Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLo { if (iIndex >= 0 && iIndex < m_iNumAnimations) { - if (m_iCurrSecondAnimIndex != -1) - { - m_Animations[m_iCurrSecondAnimIndex]->Depart_Animation(); - } m_iCurrSecondAnimIndex = iIndex; m_bIsSecondLoop = isLoop; @@ -469,6 +463,8 @@ void CModel::Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLo m_bIsSecondFinishedAnim = false; m_Animations[m_iCurrSecondAnimIndex]->Depart_Animation(); + m_bSecondAnim = true; + m_iMaskBlendIndex = BoneIndex; } else { @@ -476,6 +472,7 @@ void CModel::Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLo m_Animations[m_iCurrSecondAnimIndex]->Depart_Animation(); m_iCurrSecondAnimIndex = -1; + m_bSecondAnim = false; m_bIsSecondFinishedAnim = false; m_fSecondBlendTime = 0.f; m_fSecondRatio = 0.f; @@ -1578,19 +1575,19 @@ void CModel::Initialize_BoneMasks() BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::NECK)], m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)]); BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)], m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)]); - if (m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)] != -1) - { - for (_uint i = 0; i < (_uint)m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)].size(); i++) - { - if (m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)][i] == 1) - { - if (i == m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)]) - continue; - m_iSkipBoneCount++; - m_SkipBoneindex.push_back(i); - } - } - } + //if (m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)] != -1) + //{ + // for (_uint i = 0; i < (_uint)m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)].size(); i++) + // { + // if (m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)][i] == 1) + // { + // if (i == m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)]) + // continue; + // m_iSkipBoneCount++; + // m_SkipBoneindex.push_back(i); + // } + // } + //} for (_uint i = 0; i < m_Bones.size(); i++) { @@ -1600,13 +1597,25 @@ void CModel::Initialize_BoneMasks() m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_R)][i] = m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_R)][i] | m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)][i]; } + + + /*for (_uint i = 0; i < (_uint)m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L)].size(); i++) + { + if (m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L)][i] == 1) + { + m_iSkipBoneCount++; + m_SkipBoneindex.push_back(i); + + } + } */ + } HRESULT CModel::Create_ComputeShader() { _uint CS_InputStrides[] = { sizeof(_float4x4), - sizeof(int), + sizeof(_int), sizeof(_uint) }; @@ -1642,7 +1651,10 @@ HRESULT CModel::Create_ComputeShaderLocal() sizeof(_int), // 부모 인덱스 sizeof(_float4x4), // 로컬좌표 sizeof(_uint), - sizeof(_int) //스킵본 인덱스 + sizeof(_int), //스킵본 인덱스 + sizeof(KEYFRAME_DESC), // 두번째 애님 키프레임 + sizeof(CHANNEL_DESC), // 두번째 애님 채널 + sizeof(_uint) // 본 마스크 }; _uint CS_OutputStrides[] = { @@ -1652,7 +1664,7 @@ HRESULT CModel::Create_ComputeShaderLocal() CComputeShader::CS_INFO CS_Desc = {}; CS_Desc.iNumElement = (_uint)m_Bones.size(); - CS_Desc.iNumInputBuffer = 8; + CS_Desc.iNumInputBuffer = 10; CS_Desc.iNumOutputBuffer = 1; CS_Desc.iInputStructStride = CS_InputStrides; @@ -1767,6 +1779,42 @@ HRESULT CModel::Create_SkipBoneVB() return S_OK; } +HRESULT CModel::Create_BoneMaskBuffers() +{ + _uint maskCount = (_uint)m_BoneMask.size(); + _uint boneCount = (_uint)m_Bones.size(); + + m_pMaskBuffers.resize(maskCount); + m_pMaskSRVs.resize(maskCount); + + for (_uint i = 0; i < maskCount; i++) + { + D3D11_BUFFER_DESC desc{}; + desc.Usage = D3D11_USAGE_DEFAULT; + desc.ByteWidth = sizeof(_uint) * boneCount; + desc.BindFlags = D3D11_BIND_SHADER_RESOURCE; + desc.CPUAccessFlags = 0; + desc.StructureByteStride = sizeof(_uint); + desc.MiscFlags = D3D11_RESOURCE_MISC_BUFFER_STRUCTURED; + + D3D11_SUBRESOURCE_DATA init{}; + init.pSysMem = m_BoneMask[i].data(); + + m_pDevice->CreateBuffer(&desc, &init, &m_pMaskBuffers[i]); + + D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc = {}; + srvDesc.ViewDimension = D3D11_SRV_DIMENSION_BUFFER; + srvDesc.Format = DXGI_FORMAT_UNKNOWN; + srvDesc.Buffer.FirstElement = 0; + srvDesc.Buffer.NumElements = boneCount; + + if (FAILED(m_pDevice->CreateShaderResourceView(m_pMaskBuffers[i], &srvDesc, &m_pMaskSRVs[i]))) + return E_FAIL; + } + return S_OK; +} + + HRESULT CModel::Create_BoneMatrixVB() { _uint iCount = (_uint)m_Bones.size(); @@ -1972,6 +2020,8 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex) if (m_iPreAnimIndex < 0 || m_iPreAnimIndex >= (_int)m_iNumAnimations) m_iPreAnimIndex = m_iCurrentAnimIndex; + if (m_iCurrSecondAnimIndex < 0 || m_iCurrSecondAnimIndex >= (_int)m_iNumAnimations) + m_iCurrSecondAnimIndex = m_iCurrentAnimIndex; D3D11_MAPPED_SUBRESOURCE ConstantSubResource = {}; @@ -1997,7 +2047,7 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex) pDesc->HeadAimWeight = m_fHeadAimWeight; pDesc->SkipCount = m_iSkipBoneCount; - pDesc->padding0 = 0; + pDesc->IsSkip = m_IsSkip; pDesc->padding1 = 0; pDesc->padding2 = 0; @@ -2019,6 +2069,11 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex) pDesc->PreTransformMatrix = m_PreTransformMatrix; pDesc->RootInitRot = m_vInitialRootRot; + pDesc->UseUpperBody = m_bSecondAnim; + pDesc->UpperBlend = 1.f; + pDesc->SecondAnimIndex = m_iCurrSecondAnimIndex; + pDesc->SecondAnimTime = m_Animations[m_iCurrSecondAnimIndex]->Get_CurrentTrackPosition();; + m_pContext->Unmap(m_pConstantBuffer, 0); } @@ -2037,7 +2092,10 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex) m_pParentBuffer, m_pBoneLocalBuffer, m_Meshes[MeshIndex]->Get_BoneRemapBuffer(), - m_pSkipBoneBuffer + m_pSkipBoneBuffer, + m_Animations[m_iCurrSecondAnimIndex]->Get_KeyFrameBuffer(), + m_Animations[m_iCurrSecondAnimIndex]->Get_ChannelBuffer(), + m_pMaskBuffers[m_iMaskBlendIndex] }; ID3D11ShaderResourceView* srvs[] = @@ -2049,7 +2107,10 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex) m_pParentSRV, m_pBoneLocalSRV, m_Meshes[MeshIndex]->Get_BoneRemapSRV(), - m_pSkipBoneSRV + m_pSkipBoneSRV, + m_Animations[m_iCurrSecondAnimIndex]->Get_KeyFrameSrv(), + m_Animations[m_iCurrSecondAnimIndex]->Get_ChannelSrv(), + m_pMaskSRVs[m_iMaskBlendIndex] }; ID3D11UnorderedAccessView* uavs[] = @@ -2062,7 +2123,7 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex) 0, _float3((_float)iGroupCountX, 1.f, 1.f), srvs, - 8, + 11, uavs, 1, m_pConstantBuffer @@ -2072,9 +2133,9 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex) UINT counts[1] = { 0 }; m_pContext->CSSetUnorderedAccessViews(0, 1, nullUAV, counts); - ID3D11ShaderResourceView* nullSRV[8] = { nullptr }; + ID3D11ShaderResourceView* nullSRV[11] = { nullptr }; - m_pContext->CSSetShaderResources(0, 8, nullSRV); + m_pContext->CSSetShaderResources(0, 11, nullSRV); } @@ -2575,9 +2636,6 @@ HRESULT CModel::Initialize(void* pArg) if (m_eType == MODEL::ANIM || m_eType == MODEL::PBR_ANIM || m_eType == MODEL::ANIM_LOCAL) { m_CPUBoneMask.resize(m_Bones.size(), false); - Initialize_RootBone(); - InItialize_BoneIndex(); - Initialize_BoneMasks(); m_Parent.resize(m_Bones.size()); for (size_t i = 0; i < (_uint)m_Bones.size(); i++) @@ -2585,6 +2643,12 @@ HRESULT CModel::Initialize(void* pArg) m_Parent[i] = m_Bones[i]->Get_ParentBoneIndex(); } + Initialize_RootBone(); + InItialize_BoneIndex(); + Initialize_BoneMasks(); + + + m_BoneLocal.resize(m_Bones.size()); for (size_t i = 0; i < (_uint)m_Bones.size(); i++) { @@ -2598,6 +2662,7 @@ HRESULT CModel::Initialize(void* pArg) Create_ParentVB(); Create_BoneLocalVB(); Create_SkipBoneVB(); + Create_BoneMaskBuffers(); Create_ParentSrv(); Create_BoneLocalSrv(); @@ -2750,6 +2815,15 @@ void CModel::Free() SAFE_RELEASE(m_pBoneMatrixUAV); SAFE_RELEASE(m_pLocalMatrixSRV); SAFE_RELEASE(m_pLocalMatrixUAV); + for (auto&Buffer : m_pMaskBuffers) + { + SAFE_RELEASE(Buffer); + } + for (auto& Srv : m_pMaskSRVs) + { + SAFE_RELEASE(Srv); + } + for (auto& pAnimation : m_Animations) { SAFE_RELEASE(pAnimation); diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp index 605dd3997..abd974a8d 100644 --- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp @@ -527,6 +527,7 @@ PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName, _ void CPhysX_Manager::Update_Kinematic() { + list ReleasedList = {}; for (_uint iLevel = 0; iLevel < m_iMaxLevel; ++iLevel) { for (auto& pBody : m_pActiveBodys[iLevel]) { PSX::PxRigidDynamic* pActor = pBody->is(); @@ -536,6 +537,10 @@ void CPhysX_Manager::Update_Kinematic() if (pActor->getRigidBodyFlags() & PSX::PxRigidBodyFlag::eKINEMATIC) { + if (nullptr == pBody->userData) { + ReleasedList.emplace_back(pBody); + continue; + } PHYSX_USERDATA* pUserData = (PHYSX_USERDATA*)pBody->userData; if (false == pUserData->bAutoOwnerTranslation) { continue; @@ -546,6 +551,10 @@ void CPhysX_Manager::Update_Kinematic() } } } + for (list::iterator ReleasedActor = ReleasedList.begin(); ReleasedActor != ReleasedList.end();) { + Detach_Actor(*(*ReleasedActor), m_pGameInstance->Get_CurrentLevelID()); + ReleasedActor = ReleasedList.erase(ReleasedActor); + } } void CPhysX_Manager::Update(_float fTimeDelta) @@ -573,6 +582,7 @@ void CPhysX_Manager::Update(_float fTimeDelta) } void CPhysX_Manager::Update_Dynamic_ActiveActors() { + list ReleasedList = {}; PSX::PxU32 iNumActiveActor = {}; PSX::PxActor** ppActiveActors = m_pScene->getActiveActors(iNumActiveActor); @@ -581,6 +591,7 @@ void CPhysX_Manager::Update_Dynamic_ActiveActors() PSX::PxRigidDynamic* pActorDynamic = ppActiveActors[i]->is(); if (nullptr != pActorDynamic) { if (nullptr == ppActiveActors[i]->userData) { + ReleasedList.emplace_back(ppActiveActors[i]); continue; } if (false == pUserData->bAutoOwnerTranslation) { @@ -596,6 +607,10 @@ void CPhysX_Manager::Update_Dynamic_ActiveActors() pTransform->Set_WorldMatrix(WorldMatrix); } } + for (list::iterator ReleasedActor = ReleasedList.begin(); ReleasedActor != ReleasedList.end();) { + Detach_Actor(*(*ReleasedActor), m_pGameInstance->Get_CurrentLevelID()); + ReleasedActor = ReleasedList.erase(ReleasedActor); + } } void CPhysX_Manager::FixCapsuleShapeAxisToY(PSX::PxShape* pShape) diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp index 530b24ca6..82e25252e 100644 --- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp +++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp @@ -475,10 +475,11 @@ CComponent* CRigidBody_Dynamic::Clone(void* pArg, CGameObject* pOwner) void CRigidBody_Dynamic::Free() { - __super::Free(); if (nullptr != m_pRigidBody) { + m_pRigidBody->userData = nullptr; m_pRigidBody = nullptr; } + __super::Free(); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp index 6f4e6e37a..e8b1a17f5 100644 --- a/Jusin154_Team3D/Engine/Private/Unit.cpp +++ b/Jusin154_Team3D/Engine/Private/Unit.cpp @@ -239,7 +239,7 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "IDLE_BREAK3", IDLE_BREAK3 }, { "IDLE_BREAK4", IDLE_BREAK4 }, { "IDLE_BREAK5", IDLE_BREAK5 }, { "IDLE_BREAK6", IDLE_BREAK6 }, { "IDLE_BREAK7", IDLE_BREAK7 }, - + { "IDLE_TURN_180_L", IDLE_TURN_180_L }, { "IDLE_TURN_180_R", IDLE_TURN_180_R }, { "IDLE_TURN_45_L", IDLE_TURN_45_L }, { "IDLE_TURN_45_R", IDLE_TURN_45_R }, { "IDLE_TURN_90_L", IDLE_TURN_90_L }, { "IDLE_TURN_90_R", IDLE_TURN_90_R }, @@ -307,6 +307,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) // LIGHT ATTACK { "LIGHT_ATTACK", LIGHT_ATTACK }, + { "LIGHT_ATTACK2", LIGHT_ATTACK2 }, + { "LIGHT_ATTACK3", LIGHT_ATTACK3 }, + { "LIGHT_ATTACK4", LIGHT_ATTACK4 }, { "LIGHT_ATTACK_180_R", LIGHT_ATTACK_180_R }, { "LIGHT_ATTACK_90_L", LIGHT_ATTACK_90_L }, { "LIGHT_ATTACK_90_R1", LIGHT_ATTACK_90_R1 }, @@ -499,6 +502,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "SPELL_LEARNING_SUCCESS", SPELL_LEARNING_SUCCESS }, { "SPELL_LEARNING_WANDWAVE", SPELL_LEARNING_WANDWAVE }, + // CUT SCENES + { "CUTSCENE_TROLLINTRO", CUTSCENE_TROLLINTRO }, + // BROOM (B 세트) { "BROOM_MOUNT_B", BROOM_MOUNT_B }, { "BROOM_HOVER_IDLE_B", BROOM_HOVER_IDLE_B }, diff --git a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h index d0cbce828..70ec53eeb 100644 --- a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h +++ b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h @@ -21,6 +21,9 @@ class CPhysX_CctQueryFilterCallback final : public PSX::PxQueryFilterCallback case PXOBJECT::SKILL_PROTEGO: return PSX::PxQueryHitType::eNONE; break; + case PXOBJECT::DUELIST_PROTEGO: + return PSX::PxQueryHitType::eNONE; + break; case PXOBJECT::GOBLIN_PROTEGO: return PSX::PxQueryHitType::eNONE; break; diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h index 234fb4112..1232a8c79 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h @@ -154,6 +154,7 @@ enum class PXOBJECT : _uint { GOBLIN_NORMAL_MAGIC, TROLL_GROUND_STRIKE, GOBLIN_PROTEGO, + DUELIST_PROTEGO, #pragma endregion #pragma region ALLY_HITBOX ALLY_HITBOX = 200, diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h index fe2857c28..72e0a5730 100644 --- a/Jusin154_Team3D/Engine/Public/FSM.h +++ b/Jusin154_Team3D/Engine/Public/FSM.h @@ -56,6 +56,7 @@ enum ESTATE : _u64Flag SLASH = 1ULL << 49, DASH = 1ULL << 50, FEAR = 1ULL << 51, + CUTSCENE = 1ULL << 52, END }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index d8987b119..842e482f8 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -25,7 +25,7 @@ class ENGINE_DLL CModel final : public CComponent _float HeadAimWeight; _int SkipCount; - _int padding0; + _int IsSkip; _int padding1; _int padding2; @@ -34,6 +34,11 @@ class ENGINE_DLL CModel final : public CComponent _float4x4 PreTransformMatrix; _float4 RootInitRot; + + _int UseUpperBody; + _float UpperBlend; + _int SecondAnimIndex; + _float SecondAnimTime; }ANIMSTATE_DESC; typedef struct tagBoneInsertionDesc { @@ -84,19 +89,19 @@ class ENGINE_DLL CModel final : public CComponent _float Get_CurrentTrackProgressRatio(); _float Get_TrackProgressRatio(_uint iIndex); - size_t Get_AnimSize() { return m_Animations.size(); } - void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; } - _bool Get_PlayAnim() const { return m_bPlayAnim; } - _int Get_AnimIndex() const { return m_iCurrentAnimIndex; } - _int Get_SecondAnimIndex() const { return m_iCurrSecondAnimIndex; } - _float Get_AnimSpeed(); - void Set_AnimSpeed(_float fSpeed); + size_t Get_AnimSize() { return m_Animations.size(); } + void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; } + _bool Get_PlayAnim() const { return m_bPlayAnim; } + _int Get_AnimIndex() const { return m_iCurrentAnimIndex; } + _int Get_SecondAnimIndex() const { return m_iCurrSecondAnimIndex; } + _float Get_AnimSpeed(); + void Set_AnimSpeed(_float fSpeed); - HRESULT Anim_Event(_float fRatio, _uint AnimIndex, function Event); + HRESULT Anim_Event(_float fRatio, _uint AnimIndex, function Event); - void Set_BlendDuration(_float Duration) { m_fBlendDuration = Duration; } + void Set_BlendDuration(_float Duration) { m_fBlendDuration = Duration; } - _float4 Get_RootBoneMomentum() { return m_RootBoneMomentum; } + _float4 Get_RootBoneMomentum() { return m_RootBoneMomentum; } #pragma endregion #pragma region Mesh const _char* Get_MeshName(_uint iIndex); @@ -127,6 +132,7 @@ class ENGINE_DLL CModel final : public CComponent _uint Get_BoneAbsoluteCount(); HRESULT Set_BoneCombinedTransformation(const _char* pBoneName, _fmatrix newTransformation); HRESULT Capture_BoneBuffer(class CMotion_Trail* pTrail, const _float4x4& CurrentWorldMatrix); + void IsSkip(_bool bSkip) { m_IsSkip = bSkip; } // HRESULT Set_BoneLocalTransformationMatrix(const _char* pBoneName, _fmatrix newTransformation); #pragma endregion @@ -205,7 +211,7 @@ class ENGINE_DLL CModel final : public CComponent _float m_fRatio = {}; _int m_iCurrSecondAnimIndex = { -1 }; - _int m_iBoneIndex[ENUM_CLASS(BLEND_BONE::END)] = { -1,-1,-1,-1, -1,-1,-1,-1 }; + _int m_iBoneIndex[ENUM_CLASS(BLEND_BONE::END)] = { -1,-1,-1,-1,-1,-1,-1,-1 }; vector> m_BoneMask; vector<_bool> m_CPUBoneMask; @@ -224,9 +230,9 @@ class ENGINE_DLL CModel final : public CComponent _float m_fRadius = { 0.f }; // 컬링용 Radius _int m_iRootBoneIndex = { -1 }; // 루트본의 인덱스 _uint m_iIndexAnimPlayableMesh = { 0 }; - _float4 m_OutScale; - _float4 m_OutRotation; - _float4 m_OutTranslation; + _float4 m_OutScale = {}; + _float4 m_OutRotation = {}; + _float4 m_OutTranslation = {}; vector<_uint> m_iBoneMask; @@ -249,6 +255,9 @@ class ENGINE_DLL CModel final : public CComponent _bool m_bQueuedLoop = false; _bool m_bQueuedAnim = { false }; _float4 m_RootBoneMomentum = {}; + _bool m_IsSkip = {false}; + _bool m_bSecondAnim = { false }; + _int m_iMaskBlendIndex = {}; private: @@ -267,6 +276,7 @@ class ENGINE_DLL CModel final : public CComponent HRESULT Create_ParentVB(); HRESULT Create_BoneLocalVB(); HRESULT Create_SkipBoneVB(); + HRESULT Create_BoneMaskBuffers(); HRESULT Create_Temp(); HRESULT Create_BoneMatrixVB(); HRESULT Create_Const(); @@ -292,7 +302,8 @@ class ENGINE_DLL CModel final : public CComponent ID3D11Buffer* m_pBoneMatrixBuffer = { nullptr }; ID3D11Buffer* m_pPrevBoneMatrixBuffer = { nullptr }; ID3D11Buffer* m_pBoneLocalBuffer = { nullptr }; - ID3D11Buffer* m_pSkipBoneBuffer = { nullptr }; + ID3D11Buffer* m_pSkipBoneBuffer = { }; + vector m_pMaskBuffers = {nullptr}; ID3D11Buffer* m_pLocalMatrixBuffer = { nullptr }; ID3D11Buffer* m_pInsertionCB = { nullptr }; @@ -302,6 +313,7 @@ class ENGINE_DLL CModel final : public CComponent ID3D11ShaderResourceView* m_pPrevBoneMatrixSRV = { nullptr }; ID3D11ShaderResourceView* m_pLocalMatrixSRV = { nullptr }; ID3D11ShaderResourceView* m_pSkipBoneSRV = { nullptr }; + vector m_pMaskSRVs = { }; ID3D11UnorderedAccessView* m_pBoneMatrixUAV = { nullptr }; ID3D11UnorderedAccessView* m_pLocalMatrixUAV = { nullptr }; diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h index 4a1ba0ce6..31a34e27f 100644 --- a/Jusin154_Team3D/Engine/Public/State.h +++ b/Jusin154_Team3D/Engine/Public/State.h @@ -15,7 +15,7 @@ enum ESTATE DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,DODGE_ATTACK, COMBAT, SKILL, SKILL2, SPELL, SPELL_180_R, SPELL_90_R, SPELL_90_L, SPELL_90_L2, - LIGHT_ATTACK,LIGHT_ATTACK_180_R, LIGHT_ATTACK_90_L, LIGHT_ATTACK_90_R1, LIGHT_ATTACK_90_R2, LIGHT_ATTACK_90_R3, + LIGHT_ATTACK, LIGHT_ATTACK2, LIGHT_ATTACK3, LIGHT_ATTACK4,LIGHT_ATTACK_180_R, LIGHT_ATTACK_90_L, LIGHT_ATTACK_90_R1, LIGHT_ATTACK_90_R2, LIGHT_ATTACK_90_R3, ATTACK_END, SHUFFLE1, SHUFFLE2, SHUFFLE3, SHUFFLE4, MAPHELP,POTION, @@ -49,6 +49,7 @@ enum ESTATE SPELL_LEARNING_FAIL, SPELL_LEARNING_LOOP, SPELL_LEARNING_START, SPELL_LEARNING_SUCCESS, SPELL_LEARNING_WANDWAVE, OPEN_DOOR,OPEN_DOOR_L,OPEN_DOOR_R, FEAR_L,FEAR_R, + CUTSCENE_TROLLINTRO, ////////////////////////// 빗자루 BROOM_MOUNT_B, BROOM_HOVER_IDLE_B, BROOM_HOVER_STOP_B,BROOM_HOVER_DOWN_B,BROOM_HOVER_UP_B,BROOM_HOVER_LEFT_B,BROOM_HOVER_RIGHT_B,BROOM_FLY_DOWN_B, BROOM_FLY_LEFT_B, BROOM_FLY_RIGHT_B, BROOM_FLY_UP_B,BROOM_FLY_B,BROOM_ADD, /// ////////////////////////////