diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index c2ee49327..f53c506ec 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -922,7 +922,6 @@
02.GameObjects\Effect\Effects\Accio\AccioSide
-
02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D
@@ -980,6 +979,7 @@
02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether
+
@@ -2919,6 +2919,7 @@
02.GameObjects\NPC\Hostile\Monster\Ranrok\Ranrok_Ether
+
diff --git a/Jusin154_Team3D/Client/Private/Accio.cpp b/Jusin154_Team3D/Client/Private/Accio.cpp
index 834213de4..1b5b30ebd 100644
--- a/Jusin154_Team3D/Client/Private/Accio.cpp
+++ b/Jusin154_Team3D/Client/Private/Accio.cpp
@@ -289,6 +289,9 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc)
{
if (m_bHit == false)
return;
+ m_pGameInstance->Sound_Stop(SOUND::SD_KIND::SP_ACCIO_15, SD_CHANNEL_GROUP::EFFECT);
+
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_ACCIO_15, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
dynamic_cast(m_pOwner)->Set_SpellHit(true);
diff --git a/Jusin154_Team3D/Client/Private/Blink.cpp b/Jusin154_Team3D/Client/Private/Blink.cpp
index 9b1057ba3..f8bdcea5e 100644
--- a/Jusin154_Team3D/Client/Private/Blink.cpp
+++ b/Jusin154_Team3D/Client/Private/Blink.cpp
@@ -206,8 +206,6 @@ HRESULT CBlink::Pre_Setting(CGameObject* pObject, void* pArg)
m_fSizeAccTime = 0.f;
m_fMoveAccTime = 0.f;
- m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BLINK_2, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
-
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Bombard.cpp b/Jusin154_Team3D/Client/Private/Bombard.cpp
index df07edd69..1d946ff58 100644
--- a/Jusin154_Team3D/Client/Private/Bombard.cpp
+++ b/Jusin154_Team3D/Client/Private/Bombard.cpp
@@ -160,8 +160,6 @@ HRESULT CBombard::Pre_Setting(CGameObject* pObject, void* pArg)
}
}
- m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_BOMBARDA, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
-
return S_OK;
}
@@ -211,6 +209,21 @@ void CBombard::OnCollision(CGameObject* pOther, void* pDesc)
if (m_bHit == false)
return;
+ _int iRand = m_pGameInstance->Random_Int(0, 2);
+ switch (iRand)
+ {
+ case 0:
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_23, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ break;
+ case 1:
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_32, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ break;
+ case 2:
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_39, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ break;
+ }
+
+
ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc);
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp
index 134511e16..09b6f7330 100644
--- a/Jusin154_Team3D/Client/Private/Broom.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom.cpp
@@ -45,17 +45,6 @@ HRESULT CBroom::Initialize(void* pArg)
Load_AnimXML("../Bin/Resources/Data/AnimList/Broom.xml");
- {
- CFSM::FSM_DESC FSMDesc{};
- FSMDesc.pStates = &m_States;
- FSMDesc.pStateMask = &m_iStateMask;
-
- m_pFSM->Bind_States(FSMDesc);
- m_pFSM->Change_State(FSMSTATE::IDLE);
- }
-
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -100.f, 0.f, 1.f));
-
m_pParentUnit = dynamic_cast(m_pOwner);
if (m_pParentUnit->IsAI() == false)
@@ -72,6 +61,17 @@ HRESULT CBroom::Initialize(void* pArg)
}
+ {
+ CFSM::FSM_DESC FSMDesc{};
+ FSMDesc.pStates = &m_States;
+ FSMDesc.pStateMask = &m_iStateMask;
+
+ m_pFSM->Bind_States(FSMDesc);
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
+
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -100.f, 0.f, 1.f));
+
return S_OK;
}
@@ -103,7 +103,8 @@ void CBroom::Update(_float fTimeDelta)
{
m_bHoverToggle = true;
m_fSpeed = 0.f;
-
+ m_fVerticalSpeed = 0.f;
+ m_pBroomTrail->Get_Component()->Reset_Trail();
m_pFSM->Change_State(FSMSTATE::IDLE);
}
@@ -221,6 +222,12 @@ HRESULT CBroom::Render()
return S_OK;
}
+void CBroom::Add_TurboBoost(_float fAmount)
+{
+ m_fTurboBoost += fAmount;
+ m_fTurboBoost = clamp(m_fTurboBoost, 0.f, 5.f);
+}
+
HRESULT CBroom::Ready_Child()
{
diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
index 90e11e5d7..6deb0a159 100644
--- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
@@ -11,7 +11,7 @@
#include "InfoInstance.h"
#include "InstancedProp.h"
#include "EffectPool.h"
-
+#include "EffectParts.h"
CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
{
@@ -49,6 +49,10 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
+ for (auto& RaceEnd : m_pRaceEndEffects)
+ {
+ RaceEnd->Priority_Update(fTimeDelta);
+ }
switch (m_eRaceState)
{
case ENUM_CLASS(RACE_STATE::COUNTDOWN):
@@ -89,6 +93,11 @@ void CBroomRaceManager::Update(_float fTimeDelta)
{
__super::Update(fTimeDelta);
+ for (auto& RaceEnd : m_pRaceEndEffects)
+ {
+ RaceEnd->Update(fTimeDelta);
+ }
+
if (m_bRaceReady == true)
{
m_fRedayTime += fTimeDelta;
@@ -114,6 +123,19 @@ void CBroomRaceManager::Update(_float fTimeDelta)
m_fRacingTimer = 0.f;
if (m_bRaceStart == true)
{
+ CTransform* pRingTransform = m_pRaceRings[m_pRaceRings.size() - 1]->Get_Component();
+ for (auto& RaceEnd : m_pRaceEndEffects)
+ {
+ RaceEnd->Set_Visible(true);
+
+ _vector LastRingPos = pRingTransform->Get_State(STATE::POSITION);
+ _vector ringRIght = pRingTransform->Get_State(STATE::RIGHT);
+ ringRIght = XMVector3Normalize(ringRIght);
+
+ _vector spawnPos = LastRingPos - ringRIght * 27.f;
+
+ RaceEnd->Get_Component()->Set_WorldMatrix(XMMatrixTranslationFromVector(spawnPos));
+ }
m_pInfoInstance->Event_CallBack(TEXT("RaceEnd"));
m_iCount = 3;
m_bRaceStart = false;
@@ -152,6 +174,10 @@ void CBroomRaceManager::Update(_float fTimeDelta)
void CBroomRaceManager::Late_Update(_float fTimeDelta)
{
__super::Late_Update(fTimeDelta);
+ for (auto& RaceEnd : m_pRaceEndEffects)
+ {
+ RaceEnd->Late_Update(fTimeDelta);
+ }
}
HRESULT CBroomRaceManager::Render()
@@ -171,6 +197,38 @@ HRESULT CBroomRaceManager::Ready_Components()
return E_FAIL;
}
+
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+
+ {
+ _string BasePath = "../Bin/Resources/Data/Effect/BroomRace/";
+
+ array<_string, 3> Colors =
+ {
+ "Firewark_Blue",
+ "Firewark_Red",
+ "Firewark_Yellow"
+ };
+
+ for (_uint i = 0; i < m_pRaceEndEffects.size(); ++i)
+ {
+ _string EffectFinal = BasePath + Colors[i];
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(
+ g_iStaticLevel, NEXT_LEVEL, LAYER_EFFECT, &PartsDesc, this, &m_pRaceEndEffects[i])))
+ {
+ return E_FAIL;
+ }
+
+ m_pRaceEndEffects[i]->Load(EffectFinal.c_str(), static_cast(g_iStaticLevel));
+ m_pRaceEndEffects[i]->Set_Visible(false);
+ }
+ }
+
+
return S_OK;
}
@@ -218,6 +276,10 @@ void CBroomRaceManager::Free()
SAFE_RELEASE(Ring);
}
m_pRaceRings.clear();
+ for (auto& RaceEndEffects : m_pRaceEndEffects)
+ {
+ SAFE_RELEASE(RaceEndEffects);
+ }
}
#ifdef _DEBUG
@@ -313,6 +375,8 @@ void CBroomRaceManager::Check_RingPassed()
{
racer.curRing = (_uint)m_pRaceRings.size();
+
+
if (racer.pAI) {
racer.pAI->Get_Broom()->Set_Hover(true);
racer.pAI->Get_Broom()->Set_Move(false);
@@ -323,11 +387,15 @@ void CBroomRaceManager::Check_RingPassed()
racer.pRacer->Get_Broom()->Set_Move(false);
}
+
+
XMStoreFloat4(&racer.prevPos, currPos);
continue;
}
racer.pAI ? SetTargetRing(racer.pAI) : SetTargetRing(racer.pRacer);
+
+
}
}
@@ -402,15 +470,12 @@ void CBroomRaceManager::RaceReady()
if (racer.pAI)
{
CTransform* pTransform =
- racer.pAI->Get_Broom()->Get_Component();
-
- const _float fSpacing = 3.0f;
- const _float fJitter = 0.5f;
+ racer.pAI->Get_Broom()->Get_Component();
_float lane = (_float)i - (_float)(m_Racers.size() - 1) * 0.5f;
- _float side = lane * fSpacing;
+ _float side = lane * 3.0f;
- side += m_pGameInstance->Real_Random_Float(-fJitter, fJitter);
+ side += m_pGameInstance->Real_Random_Float(-0.5f, 0.5f);
_vector offset = XMVectorSet(0.f, 1.3f, 0.f, 0.f) + pTransform->Get_State(STATE::LOOK) * side;
@@ -423,15 +488,15 @@ void CBroomRaceManager::RaceReady()
}
else if (racer.pRacer)
{
- CTransform* pTransform =
- racer.pRacer->Get_Component();
+ CTransform* pTransform = racer.pRacer->Get_Component();
CCharacter_Controller* pCharacter = racer.pRacer->Get_Component();
- XMStoreFloat4(&m_OriginPos, racer.pRacer->Get_WorldPostion());
+ XMStoreFloat4(&m_OriginPos, XMVectorSet(-552.794f, -27.676f, -396.840f, 1.f));
pCharacter->Set_Position(spawnPos);
pTransform->Set_State(STATE::POSITION, spawnPos);
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
racer.pRacer->Get_Broom()->Set_Ride(true);
racer.pRacer->Get_Broom()->Set_Move(false);
+ m_pRaceRings[racer.curRing]->Set_Target(true);;
}
}
@@ -457,9 +522,15 @@ void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
{
if (racer.pRacer == pRacer)
{
+
+ m_pRaceRings[racer.curRing-1]->Set_Target(false);
+
racer.pRacer->Set_RaceRing(m_pRaceRings[racer.curRing]);
m_pInfoInstance->Event_CallBack(TEXT("CurrentRing"));
m_iLastRing++;
+
+ m_pRaceRings[racer.curRing]->Set_Target(true);
+
}
}
diff --git a/Jusin154_Team3D/Client/Private/BroomRace_Bubble.cpp b/Jusin154_Team3D/Client/Private/BroomRace_Bubble.cpp
index ec665b5c7..dfc8b202d 100644
--- a/Jusin154_Team3D/Client/Private/BroomRace_Bubble.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRace_Bubble.cpp
@@ -76,11 +76,67 @@ void CBroomRace_Bubble::Late_Update(_float fTimeDelta)
CEffectParts* pBubble = Get_PartObject("Bubble");
if (false == m_bHit) {
- _vector vStartPos = XMLoadFloat4(&m_vStartPos);
- _vector vEndPos = pBubble->Get_WorldPostion();
- ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.002f);
+ _vector vTop = XMLoadFloat4(&m_vStartPos) + XMVectorSet(0.f, 5.f, 0.f, 0.f);
+
+ _vector vBottom = pBubble->Get_WorldPostion() - XMVectorSet(0.f, 5.f, 0.f, 0.f);
+
+ CollisionCheck(vTop, vBottom, 5.f);
+
+ OnCollision(this);
+ }
+}
+
+void CBroomRace_Bubble::CollisionCheck(_fvector vStartPos, _fvector vEndPos, _float fRadius)
+{
+
+ _vector vDir = { vEndPos - vStartPos };
+
+ _float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos));
+
+ PSX::PxSweepBuffer pxBuffer = {};
+
+ _bool bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
+
+ const PSX::PxSweepHit& hit = pxBuffer.block;
+ PSX::PxRigidActor* pActor = hit.actor;
+ PSX::PxShape* pShape = hit.shape;
+ ON_COLLISION_INFO tagCollInfo = {};
+
+ tagCollInfo.vWorldPos.w = 1.f;
+
+ if (bHit) {
+
+ memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
+
+ memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
+ XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
+ tagCollInfo.fLength = fDistance;
+
+
+ if (nullptr != pActor && nullptr != pActor->userData)
+ {
+ PHYSX_USERDATA* pUserData = static_cast(pActor->userData);
+ tagCollInfo.pObject = pUserData->pOwner;
+
+ switch (pUserData->eKind)
+ {
+ case PHYSX_KIND::CCTActor:
+ {
+ switch (PXOBJECT(pUserData->iSubKind))
+ {
+
+ case PXOBJECT::PLAYER:
+ {
+ dynamic_cast(pUserData->pOwner)->Add_TurboBoost(1.f);
+ m_bHit = true;
+ }
+ break;
+
+ }
+ }
+ }
+ }
- OnCollision(this, &CollisionInfo);
}
}
@@ -157,6 +213,8 @@ void CBroomRace_Bubble::OnCollision(CGameObject* pOther, void* pDesc)
if (m_bHit == false)
return;
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::BROOM_GET_ITEM, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+
CEffectParts* pBubble = Get_PartObject("Bubble");
CEffectParts* pBubble_Distortion = Get_PartObject("Bubble_Distortion");
diff --git a/Jusin154_Team3D/Client/Private/Broom_States.cpp b/Jusin154_Team3D/Client/Private/Broom_States.cpp
index e3c0a3491..e7a33225a 100644
--- a/Jusin154_Team3D/Client/Private/Broom_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom_States.cpp
@@ -75,6 +75,9 @@ void CBroom::Behavior_IdleEnter()
{
m_pFSM->Enable_State(FSMSTATE::IDLE);
pair<_uint, _bool> pairAnimInfo;
+ if (m_pParentUnit->IsAI() == false) {
+ m_pBroomTrail->Get_Component()->Reset_Trail();
+ }
pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE_B];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
@@ -366,10 +369,10 @@ void CBroom::Behavior_Broom_FlyEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::FLY);
- m_pModelCom->Set_BlendDuration(0.8f);
+ m_pModelCom->Set_BlendDuration(0.5f);
m_bHoverToggle = false;
pairAnimInfo = pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true);
}
HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
@@ -386,11 +389,19 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
_bool bShift = m_Input.bHoverToggle;
_bool bTurbo = m_Input.bTurbo;
+ _bool bHasInput = (bLeft || bRight || bUp || bDown);
+
+ if (bHasInput)
+ m_fInputHoldTime += fTimeDelta;
+ else
+ m_fInputHoldTime = 0.f;
+
+ _bool bAllowAnimChange = (m_fInputHoldTime >= m_fHoldThreshold);
+
if (!m_bHoverToggle) {
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
{
-
if (bFwd) {
m_fTargetSpeed = m_fFlyMaxSpeed;
}
@@ -494,9 +505,12 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
}
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ if (bAllowAnimChange || pairAnimInfo.first == m_Animation[STATEANIM::BROOM_FLY_B].first) {
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true);
+ }
}
else {
+ m_fInputHoldTime = 0.f;
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
}
@@ -549,10 +563,10 @@ void CBroom::Behavior_Broom_TurboFlyEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::TURBOFLY);
m_bTurbo = true;
- m_pModelCom->Set_BlendDuration(0.8f);
+ m_pModelCom->Set_BlendDuration(0.5f);
m_bHoverToggle = false;
pairAnimInfo = pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true);
Boost_Effect_Visible(true);
}
@@ -571,6 +585,15 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
_bool bShift = m_Input.bHoverToggle;
_bool bTurbo = m_Input.bTurbo;
+ _bool bHasInput = (bLeft || bRight || bUp || bDown);
+
+ if (bHasInput)
+ m_fInputHoldTime += fTimeDelta;
+ else
+ m_fInputHoldTime = 0.f;
+
+ _bool bAllowAnimChange = (m_fInputHoldTime >= m_fHoldThreshold);
+
if (!m_bHoverToggle)
{
if (SUCCEEDED(InputMove()))
@@ -658,7 +681,7 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
else
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+
}
else if (ax >= az)
{
@@ -678,7 +701,6 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
}
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
}
else
{
@@ -689,10 +711,13 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
else {
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ }
+ if (bAllowAnimChange || pairAnimInfo.first == m_Animation[STATEANIM::BROOM_FLY_B].first) {
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true);
}
}
else {
+ m_fInputHoldTime = 0.f;
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
}
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
index a16c9ed45..6672b9a01 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp
@@ -354,23 +354,20 @@ void CCamPosition_Shoulder::Set_CameraAnim(_uint iIndex)
_vector CCamPosition_Shoulder::Get_ShoulderGlobalPos()
{
// Right/Left 숄더를 로컬 X 부호로 결정
- _float shoulderSideSign = (true == m_bRightShoulderActive) ? 1.f : -1.f;
+ _float fShoulderSide = (true == m_bRightShoulderActive) ? 1.f : -1.f;
- _float3 shoulderLocalPosition = m_vShoulderLocalPos;
- shoulderLocalPosition.x *= shoulderSideSign;
+ _float3 vShoulderLocalPos = m_vShoulderLocalPos;
+ vShoulderLocalPos.x *= fShoulderSide;
- _vector shoulderLocalOffset = XMLoadFloat3(&shoulderLocalPosition);
+ _vector vShoulderLocalOffset = XMLoadFloat3(&vShoulderLocalPos);
// 카메라 회전(현재 마우스로 누적된 pitch/yaw)
- _vector cameraRotationQuaternion = XMQuaternionRotationRollPitchYaw(
+ _vector vCameraRotQ = XMQuaternionRotationRollPitchYaw(
XMConvertToRadians(m_vAccRotDegrees.x + m_vAccRealDegrees.x),
XMConvertToRadians(m_vAccRotDegrees.y + m_vAccRealDegrees.y), 0.f
);
- // 카메라 로컬 오프셋을 카메라 회전에 맞춰 월드로 회전
- _vector shoulderWorldOffset = XMVector3Rotate(shoulderLocalOffset, cameraRotationQuaternion);
-
- return shoulderWorldOffset;
+ return XMVector3Rotate(vShoulderLocalOffset, vCameraRotQ);
}
diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
index c42135acc..faaa71fa5 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
@@ -170,7 +170,7 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
case TIMESOCKET_FUNC::ROTATION_LERP:
{
Clear_Lerp_Rotation();
- Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform);
+ Start_Lerp_Rotation(pContents->vParam_11.x, pContents->pxTransform, pContents->vFlags.b[0]);
} break;
case TIMESOCKET_FUNC::LOOK_AT:
{
@@ -352,17 +352,21 @@ void CCamera_Cinematic::Lerp_Rotation(_float fTimeDelta)
Rotation(vRotQ);
}
}
-void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform)
+void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform, _bool bMainTainDistance)
{
_float4 vRotQ = { pxTransform.q.x, pxTransform.q.y, pxTransform.q.z, pxTransform.q.w };
- Start_Lerp_Rotation(fTimeMaximum, vRotQ);
+ Start_Lerp_Rotation(fTimeMaximum, vRotQ, bMainTainDistance);
+
}
-void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ)
+void CCamera_Cinematic::Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ, _bool bMainTainDistance)
{
m_bLerpRotiation = { fTimeMaximum != 0 };
m_vLerpRotiationTimer = { 0.f, fTimeMaximum };
XMStoreFloat4(&m_vLerpRotQStart, m_pTransformCom->Get_QuarternionVector());
m_vLerpRotQEnd = vRotQ;
+ _vector vPos = m_pFollowTargetPart->Get_WorldPostion();
+ _vector vLookPos = m_pLookTargetPart->Get_WorldPostion();
+ m_fMaintainingDistance = XMVectorGetX(XMVector3Length(vLookPos - vPos));
}
void CCamera_Cinematic::Clear_Lerp_Rotation()
{
@@ -370,6 +374,7 @@ void CCamera_Cinematic::Clear_Lerp_Rotation()
m_vLerpRotiationTimer = {};
m_vLerpRotQStart = {};
m_vLerpRotQEnd = {};
+ m_fMaintainingDistance = {};
}
void CCamera_Cinematic::Lerp_FovY(_float fTimeDelta)
{
@@ -427,6 +432,9 @@ void CCamera_Cinematic::Rotation(_fvector vRotQ)
_vector vLookDir = XMVector3Rotate(XMVectorSet(0.f, 0.f, 1.f, 0.f), vRotQ);
if (true == m_pLookTargetPart->IsStalking()) { // 스토킹 중이면 팔로우가 움직이고 아니면 룩타겟이 움직임
+ if (true == m_bLerpRotiation) {
+ fDistance = m_fMaintainingDistance;
+ }
m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(vLookPos - (fDistance * vLookDir), 1.f));
}
else {
diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
index 184c98758..07388152a 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp
@@ -254,6 +254,10 @@ void CCamera_Gaze::Describe_Entity()
m_iPriority = iPriority;
}
if (GUI::CollapsingHeader("Camera_Gaze_Describe")) {
+ _float fFovYDegree = XMConvertToDegrees(m_fFovy);
+ if (GUI::SliderFloat("FOV", &fFovYDegree, 0.01f, 89.f, "%.2f")) {
+ m_fFovy = XMConvertToRadians(fFovYDegree);
+ }
m_pTransformCom->Describe_Entity();
GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z);
GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z);
diff --git a/Jusin154_Team3D/Client/Private/Decendo.cpp b/Jusin154_Team3D/Client/Private/Decendo.cpp
index b9c227aa3..0247ff623 100644
--- a/Jusin154_Team3D/Client/Private/Decendo.cpp
+++ b/Jusin154_Team3D/Client/Private/Decendo.cpp
@@ -211,8 +211,6 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg)
m_fAngularSpeed = XM_2PI / m_fTimeRate; // 프레임마다 누적할 시간
- m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_DECENDO, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
-
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
index aeb9c6fb6..4030d74ac 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Data.cpp
@@ -67,6 +67,7 @@ HRESULT CDialogue_Data::Load_SpellInfo(const _char* pFilePath)
if (choiceText) choice.pText = CMyTools::ToWstring(choiceText);
pChoice->QueryIntAttribute("NextID", &choice.NextTypeID);
+ pChoice->QueryIntAttribute("QuestID", &choice.QuestID);
line.ChoiceInfo.push_back(choice);
pChoice = pChoice->NextSiblingElement("Choice");
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
index bcc8a1299..9fd67e40a 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Font.cpp
@@ -67,14 +67,18 @@ void CDialogue_Font::Update(_float fTimeDelta)
switch (m_iType)
{
case ENUM_CLASS(NPCTEXTTYPE::ENDTEXT):
+ //m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1);
ENDText();
break;
+
case ENUM_CLASS(NPCTEXTTYPE::NEXTTEXT):
NextText();
break;
+
case ENUM_CLASS(NPCTEXTTYPE::CHOICE):
CHoice();
break;
+
case ENUM_CLASS(NPCTEXTTYPE::SHOPTEXT):
break;
@@ -96,6 +100,7 @@ void CDialogue_Font::Update(_float fTimeDelta)
m_pInfoInstance->Event_CallBack(TEXT("BATTLE"), &m_bBattle);
ReSet();
break;
+
default:
break;
}
@@ -110,7 +115,7 @@ void CDialogue_Font::Update(_float fTimeDelta)
{
case ENUM_CLASS(NPCTEXTTYPE::ENDTEXT):
m_fTime = 0.5f;
- ReSet();
+ ENDText();
break;
case ENUM_CLASS(NPCTEXTTYPE::NEXTTEXT):
m_fTime = 0.5f;
@@ -333,18 +338,38 @@ void CDialogue_Font::SpellLearn()
void CDialogue_Font::Quest()
{
- m_pInfoInstance->Set_AcceptQuest(m_iNextID);
- _bool Interact = false;
- m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
- m_pCurrentDialogue[0]->Set_Hover(Interact);
- m_pCurrentDialogue[0]->Visible(Interact);
- m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
- m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
- if (m_bChoiceText == true)
+ _int Index = m_pInfoInstance->Set_AcceptQuest(m_iQuestID);
+ NPCINTERACT Interact{};
+
+ switch (Index)
{
- m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
- ReSet();
+ case 0:
+ Interact.bInteract = false;
+ Interact.fAlpha = 0.5f;
+ m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
+ m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract);
+ m_pCurrentDialogue[0]->Visible(Interact.bInteract);
+ m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
+ m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
+ if (m_bChoiceText == true)
+ {
+ m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
+ ReSet();
+ }
+ break;
+
+ case 1:
+ NextText(999);
+ break;
+
+ case 2:
+ NextText();
+ break;
+
+ default:
+ break;
}
+
}
void CDialogue_Font::ReSet()
@@ -374,6 +399,7 @@ void CDialogue_Font::NextText()
if (m_bChoiceText == true)
{
ReSet();
+ m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1);
}
NpcDialogue();
}
@@ -382,24 +408,59 @@ void CDialogue_Font::NextLevel(CHOICEINFO Choice)
{
m_iNextID = m_NextLevel[Choice.iChoice];
m_iType = Choice.iType;
+ m_iQuestID = Choice.QuestID;
m_bChoiceText = true;
- m_pNpc->Set_Flow(m_pNpc->Get_Flow() + 1);
NpcNextText();
}
void CDialogue_Font::ENDText()
{
- _bool Interact = false;
+ NPCINTERACT Interact{};
+ Interact.bInteract = false;
+ Interact.fAlpha = 0.8f;
m_pNpc->Set_NextID(m_iTextID);
m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
- m_pCurrentDialogue[0]->Set_Hover(Interact);
- m_pCurrentDialogue[0]->Visible(Interact);
+ m_pCurrentDialogue[0]->Set_Hover(Interact.bInteract);
+ m_pCurrentDialogue[0]->Visible(Interact.bInteract);
m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
m_pInfoInstance->Event_CallBack(TEXT("CHOICERESET"));
ReSet();
}
+void CDialogue_Font::NextText(_int Index)
+{
+ m_pCurrentDialogue[0]->Visible(false);
+ m_DialoguInfo.push_back(m_pCurrentDialogue[0]);
+ m_pCurrentDialogue.erase(m_pCurrentDialogue.begin());
+ if (m_bChoiceText == true)
+ {
+ ReSet();
+ }
+ NpcDialogue(Index);
+}
+
+void CDialogue_Font::NpcDialogue(_int Index)
+{
+ auto Info = m_pInfoInstance->Get_Dialogue(m_pNpcName, Index);
+ m_bTag = Info.bTag;
+ if (m_bTag == false)
+ {
+ m_Info.pName = m_pInfoInstance->Get_PlayerStatPtr()->Get_Stat().pUnit_Name;
+ }
+ else
+ {
+ m_Info.pName = m_pName;
+ }
+ m_Info.pText = Info.pText;
+ m_Info.fTime = 99999.f;
+ m_iType = Info.iType;
+ m_iNextID = Info.NextTextID;
+ m_iTextID = Info.iLineID;
+ m_pNpc->Set_NextID(m_iNextID);
+ Npc_Dialogue(m_Info);
+}
+
CDialogue_Font* CDialogue_Font::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CDialogue_Font* pInstance = new CDialogue_Font(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp
index bc7c74009..fa8f6dd63 100644
--- a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp
@@ -202,16 +202,37 @@ void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc)
switch (iSkillType)
{
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
+ {
+ _int iRand = m_pGameInstance->Real_Random_Int(0, 1);
+ if (iRand == 0) {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_17, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
+ else {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_3, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
m_pOwner->OnCollision(pOther, CollisionDesc);
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
+ }
break;
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
+ {
+ _int iRand = m_pGameInstance->Real_Random_Int(0, 1);
+ if (iRand == 0) {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_17, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
+ else {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_3, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
m_pOwner->OnCollision(pOther, CollisionDesc);
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
+ }
+ break;
+ default:
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_12, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
}
}
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 389552309..4e6735079 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -120,8 +120,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 기무리
- m_isActiveEffectCreate = false;
- m_isActiveMonsterEffectCreate = false;
+ m_isActiveEffectCreate = true;
+ m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 나
m_isActiveEffectCreate = true;
diff --git a/Jusin154_Team3D/Client/Private/Elf.cpp b/Jusin154_Team3D/Client/Private/Elf.cpp
index b6ee97c6b..f58f70556 100644
--- a/Jusin154_Team3D/Client/Private/Elf.cpp
+++ b/Jusin154_Team3D/Client/Private/Elf.cpp
@@ -71,7 +71,7 @@ void CElf::Update(_float fTimeDelta)
Set_Anim();
- if (m_pGameInstance->Key_Up(DIK_U))
+ if (m_pGameInstance->Key_Down(DIK_U))
{
m_iCurrentFlow++;
}
@@ -472,14 +472,14 @@ HRESULT CElf::Ready_Components(void* pArg)
Desc.eBodyType = ACTOR::CAPSULE;
Desc.fContactOffset = 0.0001f;
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
- Desc.bAutoStepping = { true };
- Desc.fStepOffset = { 0.08f };
- Desc.fRadius = 0.2f;
- Desc.fHeight = 0.3f;
+ Desc.bAutoStepping = { false };
+ Desc.fStepOffset = { 0.02f };
+ Desc.fRadius = 0.225f;
+ Desc.fHeight = 0.35f;
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_NonPlayable_HitReport::Create();
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_NonPlayable_Behavior::Create();
Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
- Desc.fWalkableSlope = 45.f;
+ Desc.fWalkableSlope = 80.f;
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
return E_FAIL;
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
index 4034b8cd7..d4727e9a9 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
@@ -101,8 +101,6 @@ void CGoblin_Assassin::Update(_float fTimeDelta)
if (m_bVisible == false)
return;
- m_pFSM->Update_State(fTimeDelta);
-
m_vCaptureTimer.x += fTimeDelta;
if (m_vCaptureTimer.y < m_vCaptureTimer.x) {
m_vCaptureTimer.x = 0.f;
@@ -111,6 +109,8 @@ void CGoblin_Assassin::Update(_float fTimeDelta)
}
}
+ m_pFSM->Update_State(fTimeDelta);
+
m_pModelCom->Play_Animation(fTimeDelta * m_fEasing, m_pTransformCom);
__super::Update(fTimeDelta);
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp
index 3fb873f9a..fbdc51268 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin_States.cpp
@@ -634,6 +634,7 @@ void CGoblin_Assassin::Behavior_DeadEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::DEAD);
m_pCharacter_Controller->SetGravity(true);
+ m_pInfoInstance->Deregist_ActiveMonster(this);
_bool bStrongerKnockDown = { false };
@@ -793,7 +794,7 @@ void CGoblin_Assassin::Descendo_Event()
m_fAirTime = 0.f;
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 5.f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 3.f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD].first,
[this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
index 1164bb08e..7a968b1c3 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
@@ -307,6 +307,7 @@ _vector CGoblin_Mage::Get_LockOnPos()
void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
{
+ return;
if (true == m_bDead) {
return;
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
index 8661b4d49..dfbb8f51c 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
@@ -5,6 +5,7 @@
#include "EffectPool.h"
#include "Player.h"
#include "EffectParts.h"
+#include "InfoInstance.h"
#pragma region STATE
#include "State_Idle.h"
@@ -510,6 +511,7 @@ void CGoblin_Mage::Behavior_DeadEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::DEAD);
m_pCharacter_Controller->SetGravity(true);
+ m_pInfoInstance->Deregist_ActiveMonster(this);
_bool bStrongerKnockDown = { false };
@@ -665,7 +667,7 @@ void CGoblin_Mage::Descendo_Event()
m_fAirTime = 0.f;
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 5.f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 3.f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD].first,
[this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
index 4564ab36d..52a3393a8 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
@@ -202,28 +202,68 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
switch (iSkillType)
{
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
+ {
+ _int iRand = m_pGameInstance->Real_Random_Int(0, 1);
+ if (iRand == 0) {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_17, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
+ else {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_3, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
+
m_pOwner->OnCollision(pOther, CollisionDesc);
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
+ }
break;
case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
+ {
+ _int iRand = m_pGameInstance->Real_Random_Int(0, 1);
+ if (iRand == 0) {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_17, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
+ else {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_3, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
m_pOwner->OnCollision(pOther, CollisionDesc);
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
+ }
break;
case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC):
+ {
+ _int iRand = m_pGameInstance->Real_Random_Int(0, 1);
+ if (iRand == 0) {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_17, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
+ else {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_3, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
m_pOwner->OnCollision(pOther, CollisionDesc);
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
+ }
break;
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
+ {
+ _int iRand = m_pGameInstance->Real_Random_Int(0, 1);
+ if (iRand == 0) {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_17, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
+ else {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_3, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
m_pOwner->OnCollision(pOther, CollisionDesc);
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
+ }
+ break;
+ default:
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_12, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
}
}
@@ -232,6 +272,13 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
CMapElement_Interactable* pProps = dynamic_cast(pOther);
if (pProps != nullptr)
{
+ _int iRand = m_pGameInstance->Real_Random_Int(0, 1);
+ if (iRand == 0) {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_17, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
+ else {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_3, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ }
m_pOwner->OnCollision(pOther, CollisionDesc);
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
m_bVisible = false;
diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
index c892c5f35..870f452ec 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
@@ -600,6 +600,7 @@ void CGoblin::Behavior_DeadEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::DEAD);
m_pCharacter_Controller->SetGravity(true);
+ m_pInfoInstance->Deregist_ActiveMonster(this);
_bool bStrongerKnockDown = { false };
@@ -756,7 +757,7 @@ void CGoblin::Descendo_Event()
m_fAirTime = 0.f;
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 5.f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 3.f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD].first,
[this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index b7b5f8e0b..607d20380 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -344,6 +344,11 @@ _int CInfoInstance::Get_SpellLearnIndex()
return m_pSpellLearn_Data->Get_Index();
}
+void CInfoInstance::Spell_UnLock(_int SpellID)
+{
+ m_pSkillInfo->Spell_UnLock(SpellID);
+}
+
//void CInfoInstance::Set_Font(void* pArg)
//{
// m_pDialogue_Font->Add_Text(pArg);
diff --git a/Jusin154_Team3D/Client/Private/InstancedProp.cpp b/Jusin154_Team3D/Client/Private/InstancedProp.cpp
index b67ca2ff5..ae093962e 100644
--- a/Jusin154_Team3D/Client/Private/InstancedProp.cpp
+++ b/Jusin154_Team3D/Client/Private/InstancedProp.cpp
@@ -27,8 +27,10 @@ void CInstancedProp::Late_Update(_float fTimeDelta)
}
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
- m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+//#ifdef Bin
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+//#endif // Bin
}
HRESULT CInstancedProp::Render()
diff --git a/Jusin154_Team3D/Client/Private/Land.cpp b/Jusin154_Team3D/Client/Private/Land.cpp
index e52bf5d0e..32b5f7e63 100644
--- a/Jusin154_Team3D/Client/Private/Land.cpp
+++ b/Jusin154_Team3D/Client/Private/Land.cpp
@@ -32,8 +32,13 @@ void CLand::Late_Update(_float fTimeDelta)
if (m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRaduis))
{
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
- for (auto& pInstanceProp : m_InstanceProps)
+//#ifdef Bin
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+//#endif // Bin
+ for (auto& pInstanceProp : m_InstanceProps){
pInstanceProp->Late_Update(fTimeDelta);
+ }
}
}
@@ -68,11 +73,14 @@ HRESULT CLand::Render_Shadow(SHADOW eType)
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::SHADOW)))) {
return E_FAIL;
}
-
if (FAILED(m_pModelCom->Render(0))) {
return E_FAIL;
}
-
+ if (SHADOW::SHADOW_PRE == eType) {
+ for (auto& pInstanceProp : m_InstanceProps) {
+ pInstanceProp->Render_Shadow(eType);
+ }
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 26ee4ee7a..269199a21 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -126,7 +126,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
_bool bLoadNPC = { true };
#ifdef _DEBUG
#ifdef 기무리
- bLoadNPC = true;
+ bLoadNPC = false;
#endif
#endif // _DEBUG
if (true == bLoadNPC) {
@@ -149,7 +149,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
if (FAILED(m_pInfoInstance->Late_Initialize()))
return E_FAIL;
-
+ ResetLevel_Environment();
m_bLevel = true;
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
@@ -170,13 +170,15 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
_bool bStartCinematic = { true };
#ifdef _DEBUG
#ifdef 기무리
- bStartCinematic = true;
+ bStartCinematic = false;
#elif 진우
bStartCinematic = true;
#elif Bin
bStartCinematic = false;
#elif gimch
bStartCinematic = false;
+#elif 나
+ bStartCinematic = false;
#endif
#endif // _DEBUG
@@ -1158,8 +1160,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
isLoad_NPC = false;
#endif //
#ifdef 기무리
- isLoad_NPC = true;
- isLoad_RandomNPC = true;
+ isLoad_NPC = false;
+ isLoad_RandomNPC = false;
#endif //
#ifdef 나
isLoad_RandomNPC = true;
@@ -1241,6 +1243,13 @@ void CLevel_GamePlay::ResetLevel_Environment()
vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f);
}
m_pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular);
+
+ m_pLight->Get_Component()->RotationQ(XMVectorSet(0.581f, 0.239f, -0.183f, 0.757f));
+ m_pLight->Get_Component()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
+ m_pGameInstance->Set_Environment(_float3(0.54300f, 0.40100f, 4.00000f), _float(0.700), _float2(0.075f, 0.150f),
+ _float2(2.300f, 10.000f), _float4(0.0047f, 0.0018f, 0.0018f, 0.0018f),
+ _float4(2.f, 1.f, 1.f, 1.f), _float3(-55.9f, -10.f, -50.f), _float3(50.f, 100.f, 100.f));
+ m_pLight->Capture_PreShadow();
}
pair> CLevel_GamePlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
diff --git a/Jusin154_Team3D/Client/Private/Level_Loading.cpp b/Jusin154_Team3D/Client/Private/Level_Loading.cpp
index 8a9049abe..b177ce3f2 100644
--- a/Jusin154_Team3D/Client/Private/Level_Loading.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Loading.cpp
@@ -87,6 +87,7 @@ void CLevel_Loading::Update(_float fTimeDelta)
case LEVEL::FIELD:
{
pairLevel = CLevel_Field::Create(m_pDevice, m_pContext, m_eNextLevelID, nullptr);
+ Capture_TerrainPreShadow();
} break;
case LEVEL::RESTART:
{
diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp
index 639653c91..d1a866af9 100644
--- a/Jusin154_Team3D/Client/Private/Levioso.cpp
+++ b/Jusin154_Team3D/Client/Private/Levioso.cpp
@@ -160,7 +160,6 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject, void* pArg)
}
}
- m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_LEVIOSO, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Light_Main.cpp b/Jusin154_Team3D/Client/Private/Light_Main.cpp
index 86b3fa2c6..fa319d2fd 100644
--- a/Jusin154_Team3D/Client/Private/Light_Main.cpp
+++ b/Jusin154_Team3D/Client/Private/Light_Main.cpp
@@ -56,15 +56,12 @@ HRESULT CLight_Main::Render()
HRESULT CLight_Main::Capture_PreShadow()
{
- CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_BACKGROUND);
- assert(nullptr != pLayer);
+ Add_PreShadowRenderGroup(m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_BACKGROUND));
+ Add_PreShadowRenderGroup(m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_UNIFIED));
+ Add_PreShadowRenderGroup(m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_HOGSMEADE));
+ Add_PreShadowRenderGroup(m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_HOGWART));
+ Add_PreShadowRenderGroup(m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_HOGWART));
- const list* pObjects = pLayer->Get_Objects();
- for (auto& pObject : *pObjects) {
- if (FAILED(m_pGameInstance->Add_RenderGroup(RENDER::PRESHADOW, pObject))) {
- assert(false);
- }
- }
vector<_float3> vNeededPos = {};
vNeededPos.reserve(12);
{
@@ -172,6 +169,19 @@ _matrix CLight_Main::Get_OffCenterProjMatrix(_fmatrix ViewMatrix, vector<_float3
return XMMatrixOrthographicOffCenterLH(fMinX, fMaxX, fMinY, fMaxY, fMinZ, fMaxZ);
}
+void CLight_Main::Add_PreShadowRenderGroup(CLayer* pLayer)
+{
+ if (nullptr == pLayer) {
+ return;
+ }
+ const list* pObjects = pLayer->Get_Objects();
+ for (auto& pObject : *pObjects) {
+ if (FAILED(m_pGameInstance->Add_RenderGroup(RENDER::PRESHADOW, pObject))) {
+ assert(false);
+ }
+ }
+}
+
CLight_Main* CLight_Main::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index fe4299fcd..b0a90f169 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -575,7 +575,7 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_Background = true;
isLoad_Hogwart = true;
isLoad_UI_SEQUANTIAL = false;
- isLoad_NPC = true;
+ isLoad_NPC = false;
isLoad_Monster = true;
#endif //
#ifdef 나
@@ -1352,7 +1352,7 @@ HRESULT CLoader::Loading_For_GamePlay()
TEXT("Prototype_Component_Troll_Model")
));
jobCharacterModels.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(),
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_Ranrok_Model")
));
}
@@ -2562,10 +2562,10 @@ HRESULT CLoader::Loading_For_GamePlay()
}
}
{ // LIGHT PHYSX DYNAMIC
- CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
{
+ CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
Desc.eType = ACTOR::BOX;
- Desc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ };
+ Desc.ePxRigidBodyFlags = { };
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
Desc.vMatInfo = { 0.5f, 0.5f, 0.6f };
@@ -2577,6 +2577,15 @@ HRESULT CLoader::Loading_For_GamePlay()
Desc.vAutoDamping = { 1.f, 1.f };
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
Desc.vLocalTranslation = { 0.f, 0.f, 0.f };
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_THROWABLE_BOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
+ return E_FAIL;
+ }
}
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC ShieldDesc{};
@@ -2665,12 +2674,6 @@ HRESULT CLoader::Loading_For_GamePlay()
RanrokDesc.vLocalTranslation = { 0.f, 5.f, 0.f };
}
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
- return E_FAIL;
- }
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
- return E_FAIL;
- }
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, ShieldDesc)))) {
return E_FAIL;
}
@@ -2688,10 +2691,6 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, RanrokDesc)))) {
return E_FAIL;
}
- Desc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
- return E_FAIL;
- }
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp
index bffdd0152..3be107150 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp
@@ -72,6 +72,10 @@ void CMapElement_Cave::Late_Update(_float fTimeDelta)
if (m_bVisible)
{
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+#ifdef Bin
+ m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+#endif // Bin
#ifdef _DEBUG
m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, m_pTriggerBox);
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp
index 3d3ab9df3..7cb92d7cb 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp
@@ -59,6 +59,7 @@ HRESULT CMapElement_Chest::Initialize(void* pArg)
static_cast(m_pRigidBody)->Set_HalfGeometryInfo(pDesc->vBoxSize);
static_cast(m_pRigidBody)->Move_LocalPos(XMVectorSet(0.f, 0.f, 0.f, 1.f), XMLoadFloat3(&pDesc->vBoxLocalPosition));
+ m_pRigidBody->Set_Kinematic(true);
m_bChest = true;
return S_OK;
}
@@ -235,7 +236,8 @@ HRESULT CMapElement_Chest::Ready_Components(void* pArg)
// RIGID_BODY
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::BOX);
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), (CComponent**)&m_pRigidBody, &Desc))) {
+ Desc.bAutoOwnerTranslation = false;
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_THROWABLE_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
@@ -307,10 +309,12 @@ void CMapElement_Chest::Chage_State()
case CMapElement_Chest::CHEST_STATE::FOUND:
m_iShaderPass_Index = 21; //ENUM_CLASS(SHADER_PASS_MESH::DEFAULT);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::CHEST_FOUND, SD_CHANNEL_GROUP::OBJECT, false, 0.8f);
break;
case CMapElement_Chest::CHEST_STATE::OPENED:
m_iShaderPass_Index = ENUM_CLASS(SHADER_PASS_MESH::DEFAULT);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::CHEST_OPEN, SD_CHANNEL_GROUP::OBJECT, false, 0.8f);
m_pLid->Open();
break;
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp
index 1c8c4e357..53be26e21 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp
@@ -65,6 +65,9 @@ void CMapElement_Door::ActingIdle()
m_bDrive = true;
m_pJoint->setRevoluteJointFlag(PSX::PxRevoluteJointFlag::eDRIVE_ENABLED, true);
m_pJoint->setDriveForceLimit(120.f);
+
+ // close
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::DOOR_CLOSE, SD_CHANNEL_GROUP::OBJECT, false, 0.8f);
}
if (true == m_bDrive) { // 드라이브 중이면
if (fCurrentDegree > 0.f) {
@@ -138,7 +141,8 @@ void CMapElement_Door::OnCollision(CGameObject* pOther, void* pDesc)
m_vKinematicTimer.x = FLT_EPSILON3;
return;
}
-
+ // open
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::DOOR_OPEN, SD_CHANNEL_GROUP::OBJECT, false, 0.8f);
m_vKinematicTimer.x = FLT_EPSILON3;
}
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
index 87d4830e3..f7395f9f4 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
@@ -50,8 +50,8 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
// RIGID_BODY
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::BOX);//pPhysXDummyDesc->iSubKind;
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), (CComponent**)&m_pRigidBody, &Desc))) {
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::BOX);
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_THROWABLE_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
@@ -61,16 +61,16 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
static_cast(m_pRigidBody)->Move_LocalPos(XMVectorSet(0.f, 0.f, 0.f, 1.f), XMLoadFloat3(&pDesc->vBoxLocalPosition));
//static_cast(m_pRigidBody)->Set_Kinematic(false);
- if (false == m_isPooled)
- {
- m_bVisible = true;
- m_pInfoInstance->Regist_ActiveInteractive(this);
- }
- else
+ if (true == m_isPooled)
{
m_bVisible = false;
static_cast(m_pRigidBody)->Set_Kinematic(true);
}
+ else
+ {
+ m_bVisible = true;
+ m_pInfoInstance->Regist_ActiveInteractive(this);
+ }
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
diff --git a/Jusin154_Team3D/Client/Private/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp
index 074e2c48a..c2d973f48 100644
--- a/Jusin154_Team3D/Client/Private/MapInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp
@@ -92,6 +92,7 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa
/* Container */
for (auto* Container = root->FirstChildElement("Container"); Container; Container = Container->NextSiblingElement("Container"))
{
+ _bool hasCollisionMesh = false;
const _char* pName = {};
_uint iMapContainerType = {};
Container->QueryUnsignedAttribute("MapContainerType", &iMapContainerType);
@@ -108,11 +109,16 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa
{
Load_StreetContainer(Container, &pContainerObject, pLayerTag);
}
+ else if (2 == iMapContainerType)
+ {
+ hasCollisionMesh = true;
+ Load_BuildingContainer(Container, &pContainerObject, pLayerTag);
+ }
else {
return E_FAIL;
}
- if (FAILED(Load_MapRenderObjects(Container, pContainerObject, pLayerTag))){
+ if (FAILED(Load_MapRenderObjects(Container, pContainerObject, pLayerTag, hasCollisionMesh))){
return E_FAIL;
}
@@ -172,7 +178,7 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa
return S_OK;
}
-HRESULT CMapInfo::Load_MapRenderObjects(tinyxml2::XMLElement* Container, CMapContainer* pContainerObject, const _wchar* pLayerTag)
+HRESULT CMapInfo::Load_MapRenderObjects(tinyxml2::XMLElement* Container, CMapContainer* pContainerObject, const _wchar* pLayerTag, _bool hasCollisionMesh)
{
#pragma region ADD_PARTOBJECT
for (auto* PartObject = Container->FirstChildElement("PartObject"); PartObject; PartObject = PartObject->NextSiblingElement("PartObject"))
@@ -192,7 +198,7 @@ HRESULT CMapInfo::Load_MapRenderObjects(tinyxml2::XMLElement* Container, CMapCon
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
}
-
+ Desc.hasCollisionMesh = hasCollisionMesh;
Desc.iMaxLodLevel = iLodLevel;
Desc.pParentTransform = pContainerObject->Get_Component();
const string strKey = CMyTools::ToString(Desc.ModelPrototypeTags.front()) + to_string(iKeyIndex);
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
index 985e44d08..9bf92e59c 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
@@ -30,7 +30,7 @@ HRESULT CMapObject_Render::Initialize(void* pArg)
//m_Type = static_cast(pDesc->iRenderType);
m_iMaxLodLevel = pDesc->iMaxLodLevel;
-
+ m_hasCollisionMesh = pDesc->hasCollisionMesh;
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
{
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
@@ -60,8 +60,11 @@ HRESULT CMapObject_Render::Initialize(void* pArg)
_matrix ColliderMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * XMLoadFloat4x4(&m_CombinedWorldMatrix);
XMStoreFloat4(&m_vExtentPosition, ColliderMatrix.r[3]);
- ReadyForPhysX();
- ConvertToPhysX();
+ if(false == m_hasCollisionMesh)
+ {
+ ReadyForPhysX();
+ ConvertToPhysX();
+ }
return S_OK;
}
@@ -86,6 +89,10 @@ void CMapObject_Render::Late_Update(_float fTimeDelta)
m_iNumMeshe = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+//#ifdef Bin
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
+// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+//#endif // Bin
}
}
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 42a412971..7252f7001 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -58,6 +58,10 @@ HRESULT CPlayer::Initialize(void* pArg)
#if 진우
m_isDebugMode = false; // 디버그 무적 모드
#endif
+
+#if 기무리
+ m_isDebugMode = true; // 디버그 무적 모드
+#endif
#if 나
m_isDebugMode = true; // 디버그 무적 모드
#endif
@@ -119,6 +123,7 @@ HRESULT CPlayer::Initialize(void* pArg)
m_pInfoInstance->Add_Event(TEXT("UseSpell"), [this](void* p) {this->Get_Spell(*reinterpret_cast<_int*>(p)); });
m_pInfoInstance->Add_Event(TEXT("Player_CanvasChange"), [this](void* p) {this->Get_UIState(*reinterpret_cast<_int*>(p)); });
m_pInfoInstance->Add_Event(TEXT("NpcInteraction"), [this](void* p) {this->Set_Interaction(*reinterpret_cast<_bool*>(p)); });
+ m_pInfoInstance->Add_Event(TEXT("SpellLearningSuccess"), [this](void* p) {this->Set_Spell_Learning_Success(); });
m_bAI = false;
@@ -171,8 +176,11 @@ void CPlayer::Update(_float fTimeDelta)
{
if (m_bNpcInteraction == true)
{
+ NPCINTERACT Interact{};
m_bCurrentInteraction = true;
- m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &m_bNpcInteraction);
+ Interact.bInteract = true;
+ Interact.fAlpha = 0.f;
+ m_pInfoInstance->Event_CallBack(TEXT("NpcInteract"), &Interact);
}
}
if (m_bGuarding) {
@@ -439,6 +447,11 @@ void CPlayer::ExitBattle()
m_pCharacter_Controller->Set_Position(XMLoadFloat4(&m_OriginPos));
}
+void CPlayer::Add_TurboBoost(_float fAmount)
+{
+ m_pBroom->Add_TurboBoost(fAmount);
+}
+
HRESULT CPlayer::Render_Shadow(SHADOW eType)
{
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index 9af215504..ff87b6fcf 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -49,6 +49,11 @@
#pragma region States
+void CPlayer::Set_Spell_Learning_Success()
+{
+ m_bSpell_Learning_Success = true;
+}
+
// UI 연동 추가
void CPlayer::Get_Spell(_int SkillIndex)
{
@@ -922,6 +927,14 @@ void CPlayer::Behavior_BlinkEnter()
m_pEffectPool->Use_Skill(SKILL_TYPE::BLINK, this);
},
0.1f);
+
+ Add_Sound_Event(m_Animation[STATEANIM::DODGE].first,
+ [this]() {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BLINK_2, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ },
+ 0.01f);
+
+
}
HRESULT CPlayer::Behavior_BlinkExitCheck(_float fTimeDelta)
@@ -1344,16 +1357,15 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
}
-
- if (SUCCEEDED(InputSpell()))
+ if (fRatio >= 0.1f)
{
- if (fRatio >= 0.1f)
+ if (SUCCEEDED(InputSpell()))
{
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
+
}
}
-
if (iCurrAnimIndex == m_Animation[STATEANIM::LIGHT_ATTACK].first+3)
{
if (SUCCEEDED(InputAction()))
@@ -1629,6 +1641,7 @@ void CPlayer::Behavior_SpellExit()
m_pInfoInstance->Set_SearchLockOnFlag(true);
m_pModelCom->Set_BlendDuration(0.3f);
Reset_Event();
+ m_pGameInstance->Sound_Stop(SOUND::SD_KIND::SP_BOMBARD_36, SD_CHANNEL_GROUP::EFFECT);
m_bLookAt = false;
m_bSpellHit = false;
m_bStartSpellAnim = false;
@@ -1703,6 +1716,34 @@ void CPlayer::Behavior_ShieldEnter()
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
0.1f);
+
+ Add_Sound_Event(pairAnimInfo.first,
+ [this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_PROTEGO, SD_CHANNEL_GROUP::VOICE, false, 0.7f); },
+ 0.01f);
+
+ Add_Sound_Event(pairAnimInfo.first,
+ [this]() {
+ _int iRand = m_pGameInstance->Real_Random_Int(0, 4);
+ switch (iRand)
+ {
+ case 0:
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_4, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ break;
+ case 1:
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_8, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ break;
+ case 2:
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_13, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ break;
+ case 3:
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_22, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ break;
+ case 4:
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_30, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ break;
+ }
+ },
+ 0.1f);
}
HRESULT CPlayer::Behavior_ShieldExitCheck(_float fTimeDelta)
@@ -1933,11 +1974,13 @@ void CPlayer::Behavior_ParryEnter()
}
Add_Event(pairAnimInfo.first,
-
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY_SIDE, Get_PartObject());
m_pGameInstance->SlowMotion(0.4f, 0.2f); },
0.01f);
+ Add_Sound_Event(pairAnimInfo.first,
+ [this]() {m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_STUPEFY, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);},
+ 0.01f);
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
@@ -2117,6 +2160,7 @@ void CPlayer::Behavior_Broom_RideEnter()
{
m_pFSM->Enable_State(FSMSTATE::BROOM_RIDE);
m_pBroom->Set_Ride(true);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::BROOM_RIDE, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
pair<_uint, _bool> pairAnimInfo;
pairAnimInfo = m_Animation[STATEANIM::BROOM_MOUNT];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -2340,6 +2384,7 @@ void CPlayer::Behavior_Broom_HoverExit()
void CPlayer::Behavior_Broom_FlyEnter()
{
m_pFSM->Enable_State(FSMSTATE::FLY);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::BROOM_NORMAL, SD_CHANNEL_GROUP::EFFECT, true, 0.7f);
Reset_Event();
}
@@ -2513,6 +2558,8 @@ void CPlayer::Behavior_Broom_FlyExit()
void CPlayer::Behavior_Broom_TurboFlyEnter()
{
m_pFSM->Enable_State(FSMSTATE::TURBOFLY);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::BROOM_BOOST, SD_CHANNEL_GROUP::EFFECT, true, 0.7f);
+
}
HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
@@ -2646,6 +2693,7 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
void CPlayer::Behavior_Broom_TurboFlyExit()
{
m_pFSM->Disable_State(FSMSTATE::TURBOFLY);
+ m_pGameInstance->Sound_Stop(SOUND::SD_KIND::BROOM_BOOST, SD_CHANNEL_GROUP::EFFECT);
Reset_Event();
}
@@ -2653,6 +2701,7 @@ void CPlayer::Behavior_Broom_DismountEnter()
{
pair<_uint, _bool> pairAnimInfo;
m_bOnce = false;
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::BROOM_DOWN, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
m_pInfoInstance->Event_CallBack(TEXT("BroomRide"), &m_bOnce);
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_DISMOUNT);
m_pFSM->Enable_State(FSMSTATE::BROOM_DISMOUNT);
@@ -2948,6 +2997,19 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); },
0.f);
+
+ Add_Sound_Event(AnimIndex,
+ [this]() {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_BOMBARDA, SD_CHANNEL_GROUP::VOICE, false, 0.7f);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_36, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);},
+ 0.01f);
+
+ Add_Sound_Event(AnimIndex,
+ [this]() {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_BOMBARD_9, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); },
+ 0.3f);
+
+
Info.pText = TEXT("봄바르다!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
break;
@@ -2960,6 +3022,16 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO_SIDE, Get_PartObject()); },
0.f);
+
+ Add_Sound_Event(AnimIndex,
+ [this]() {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_DECENDO, SD_CHANNEL_GROUP::VOICE, false, 0.7f);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_DECENDO_0, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_DECENDO_5, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_DECENDO_6, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); },
+ 0.01f);
+
+
Info.pText = TEXT("디센도!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
break;
@@ -2972,6 +3044,13 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject()); },
0.f);
+
+ Add_Sound_Event(AnimIndex,
+ [this]() {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_LEVIOSO, SD_CHANNEL_GROUP::VOICE, false, 0.7f);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_LEVIOSA_12, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); },
+ 0.01f);
+
Info.pText = TEXT("레비오소!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
break;
@@ -2985,6 +3064,17 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO_SIDE, Get_PartObject()); },
0.f);
+
+ Add_Sound_Event(AnimIndex,
+ [this]() {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_ACCIO_12, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); },
+ 0.01f);
+
+ Add_Sound_Event(AnimIndex,
+ [this]() {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_ACCIO_15, SD_CHANNEL_GROUP::EFFECT, false, 0.7f); },
+ 0.26f);
+
Info.pText = TEXT("아씨오!");
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
break;
@@ -3068,6 +3158,13 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LUMOS, Get_PartObject()); },
0.f);
+
+ Add_Sound_Event(pairAnimInfo.first,
+ [this]() {
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_LUMOS, SD_CHANNEL_GROUP::VOICE, false, 0.7f);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_LUMOS_0, SD_CHANNEL_GROUP::EFFECT, false, 0.1f); },
+ 0.01f);
+
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);
@@ -3120,6 +3217,7 @@ void CPlayer::Play_SpellHitAnim()
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
pairAnimInfo = m_Animation[STATEANIM::DESCENDO];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.5f);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_DECENDO_7, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
break;
}
m_pFSM->Change_State(FSMSTATE::SPELL);
@@ -3172,10 +3270,15 @@ void CPlayer::Hit_Levioso(_float fTimeDelta)
_bool CPlayer::IsInputLocked()
{
- return m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
+ if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
m_eUIState != ENUM_CLASS(UI_STATE::QUEST) &&
m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) &&
- m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT);
+ m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT))
+ {
+ return true;
+ }
+
+ return false;
}
void CPlayer::Add_FSM()
diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp
index bce139a3f..6c2dcab10 100644
--- a/Jusin154_Team3D/Client/Private/Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Protego.cpp
@@ -198,6 +198,8 @@ void CProtego::OnCollision(CGameObject* pOther, void* pDesc)
dynamic_cast(m_pOwner)->Set_Shield(true);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_PROTEGO_12, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+
m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object()
->Use_Skill(SKILL_TYPE::PROTEGO_HIT, m_pOwner, &CollisionDesc->vWorldPos);
diff --git a/Jusin154_Team3D/Client/Private/Quest_Data.cpp b/Jusin154_Team3D/Client/Private/Quest_Data.cpp
index eedfdcc01..a2efc7395 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Data.cpp
@@ -150,22 +150,31 @@ _int CQuest_Data::Get_Count(_int Index)
}
}
-HRESULT CQuest_Data::Set_AcceptQuest(_int Index)
+_int CQuest_Data::Set_AcceptQuest(_int Index)
{
- if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::ACCEPTED) || QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::CLEARED))
- return S_OK;
+ if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::ACCEPTED))
+ {
+ return 1;
+ }
+ if (QuestInfos[Index].iAcceptState == ENUM_CLASS(QUESTSTATE::CLEARED))
+ {
+ return 2;
+ }
+
+ HRESULT hr = m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast(&m_pQuestInstance));
+ if (FAILED(hr))
+ {
+ return -1;
+ }
+
QuestInfos[Index].iAcceptState = ENUM_CLASS(QUESTSTATE::ACCEPTED);
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, &QuestInfos[Index], nullptr, reinterpret_cast(&m_pQuestInstance))))
- {
- return E_FAIL;
- }
m_pInfoInstance->Add_Event(TEXT("MonsterDead"), [this](void* p) {this->Update_AcceptQuest(*reinterpret_cast<_int*>(p)); });
m_AcceptedInfo.QeustData = m_pQuestInstance;
m_AcceptedInfo.QeustInfo = QuestInfos[Index];
m_QuestAcceptedInfos.push_back(m_AcceptedInfo);
m_iAcceptQeustCount++;
- return S_OK;
+ return 0;
}
void CQuest_Data::Set_ClearQuest(_int Index)
diff --git a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
index 31de7eb35..6ebec47ac 100644
--- a/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Quest_Panel.cpp
@@ -54,7 +54,7 @@ HRESULT CQuest_Panel::Initialize(void* pArg)
Visible(true);
ElementAllVisible(true);
Set_Status();
- m_pInfoInstance->Set_AcceptQuest(0);
+ //m_pInfoInstance->Set_AcceptQuest(0);
//m_pInfoInstance->Set_AcceptQuest(1);
//m_pInfoInstance->Set_AcceptQuest(2);
Add_Function(TEXT("Click"), [this](void* p) {this->Slot_Hover(*reinterpret_cast<_int*>(p)); });
diff --git a/Jusin154_Team3D/Client/Private/RaceRing.cpp b/Jusin154_Team3D/Client/Private/RaceRing.cpp
index 877fd0186..73c8388cd 100644
--- a/Jusin154_Team3D/Client/Private/RaceRing.cpp
+++ b/Jusin154_Team3D/Client/Private/RaceRing.cpp
@@ -3,14 +3,16 @@
#include "BroomRaceManager.h"
#include "GameInstance.h"
+#include "PartObject.h"
+#include "EffectParts.h"
CRaceRing::CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
- : CGameObject(pDevice, pContext)
+ : CContainerObject(pDevice, pContext)
{
}
CRaceRing::CRaceRing(const CRaceRing& Prototype)
- : CGameObject(Prototype)
+ : CContainerObject(Prototype)
{
}
@@ -30,6 +32,10 @@ HRESULT CRaceRing::Initialize(void* pArg)
return E_FAIL;
}
+ if (FAILED(Ready_Parts())) {
+ return E_FAIL;
+ }
+
//m_iIndex = static_cast(pArg)->iIndex;
//_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
@@ -54,6 +60,8 @@ void CRaceRing::Priority_Update(_float fTimeDelta)
Describe_Entity();
#endif // _DEBUG
+
+ __super::Priority_Update(fTimeDelta);
}
void CRaceRing::Update(_float fTimeDelta)
@@ -61,10 +69,22 @@ void CRaceRing::Update(_float fTimeDelta)
m_pModelCom->Combined_BoneMatrix();
World_to_ScreenUI();
+
+ __super::Update(fTimeDelta);
+
+ if (m_bTarget == true)
+ {
+ m_pRingEffect->Set_Visible(true);
+ m_pRingEffect->Get_Component()->Set_WorldMatrix(m_pTransformCom->Get_XMWorldMatrix());
+ }
+ else {
+ m_pRingEffect->Set_Visible(false);
+ }
}
void CRaceRing::Late_Update(_float fTimeDelta)
{
+ __super::Late_Update(fTimeDelta);
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
}
@@ -238,6 +258,24 @@ HRESULT CRaceRing::Bind_ShaderResources()
return S_OK;
}
+HRESULT CRaceRing::Ready_Parts()
+{
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+
+ if (FAILED(Add_PartObject("Ring_Blur", g_iStaticLevel, &m_pRingEffect, &PartsDesc)))
+ {
+ return E_FAIL;
+ }
+
+ m_pRingEffect->Load("../Bin/Resources/Data/Effect/BroomRace/Ring_Blur", static_cast(g_iStaticLevel));
+ m_pRingEffect->Set_Visible(false);
+
+ return S_OK;
+}
+
CRaceRing* CRaceRing::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -272,6 +310,7 @@ void CRaceRing::Free()
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pModelCom);
+ SAFE_RELEASE(m_pRingEffect);
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Skill_Data.cpp b/Jusin154_Team3D/Client/Private/Skill_Data.cpp
index 23182e4a1..8b661c9c8 100644
--- a/Jusin154_Team3D/Client/Private/Skill_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/Skill_Data.cpp
@@ -20,7 +20,7 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon
Spell_UnLock(3);
Spell_UnLock(4);
Spell_UnLock(6);
- Spell_UnLock(11);
+ //Spell_UnLock(11);
Spell_UnLock(14);
Spell_UnLock(15);
Spell_UnLock(20);
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp
index 4fcfde3c2..fd30e3d24 100644
--- a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp
@@ -92,6 +92,9 @@ void CSpellLearn_MovePointer::Line(_float fTime, _float2 fMouse)
m_bMoveStart = false;
Set_FadeOut();
static_cast(m_pOwner)->Function_Callback(TEXT("LearnClear"));
+ m_pInfoInstance->Spell_UnLock(m_iSpellID);
+ m_pInfoInstance->Event_CallBack(TEXT("SpellLearningSuccess"));
+
}
}
}
@@ -104,6 +107,11 @@ void CSpellLearn_MovePointer::Set_Booster(void* pArg)
m_bBooster = m_Booster.bBoosterOn;
}
+void CSpellLearn_MovePointer::Set_ID(_int Index)
+{
+ m_iSpellID = Index;
+}
+
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp
index d16532b7c..1bd670db2 100644
--- a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp
@@ -75,6 +75,7 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg)
void CSpellLearn_Panel::Set_Learn(_int Index)
{
m_fTime = 0.f;
+ static_cast(m_pSpellLearn_MovePointer)->Set_ID(m_pInfoInstance->Get_SpellLearn(Index).iSpellID);
static_cast(m_pSpellLearn)->Change_Image(Index);
static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
static_cast(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index);
diff --git a/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp b/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp
index 84dcb971e..ee8334f5e 100644
--- a/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Spell_Overlay.cpp
@@ -139,6 +139,11 @@ void CSpell_Overlay::Use_Spell()
m_pInfoInstance->Event_CallBack(TEXT("UseSpell"), &Spell);
}
}
+ else
+ {
+ _int Spell = 0;
+ m_pInfoInstance->Event_CallBack(TEXT("UseSpell"), &Spell);
+ }
}
diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp
index a07cfb09e..75a9bf618 100644
--- a/Jusin154_Team3D/Client/Private/Stupefy.cpp
+++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp
@@ -193,8 +193,6 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg)
m_pProjectile2->Get_Component()->Set_WorldMatrix(PJ_WorldMat);
- m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_STUPEFY, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
-
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Terrain.cpp b/Jusin154_Team3D/Client/Private/Terrain.cpp
index 551c6334e..cb0a8599d 100644
--- a/Jusin154_Team3D/Client/Private/Terrain.cpp
+++ b/Jusin154_Team3D/Client/Private/Terrain.cpp
@@ -57,23 +57,21 @@ void CTerrain::Priority_Update(_float fTimeDelta)
void CTerrain::Update(_float fTimeDelta)
{
-#ifdef _DEBUG
- Describe_Entity();
-#endif // _DEBUG
-
}
void CTerrain::Late_Update(_float fTimeDelta)
{
//if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+#ifdef Bin
+ m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
+#endif // Bin
//}
}
HRESULT CTerrain::Render()
{
- if (false == m_bVisible)
- return S_OK;
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
@@ -101,8 +99,6 @@ HRESULT CTerrain::Render()
HRESULT CTerrain::Render_Shadow(SHADOW eType)
{
- if (false == m_bVisible)
- return S_OK;
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
return E_FAIL;
}
@@ -252,24 +248,24 @@ void CTerrain::Free()
#ifdef _DEBUG
void CTerrain::Describe_Entity()
{
- GUI::Begin("Renderer", 0, IMGUI_GLOBAL_BEGIN_FLAG);
- GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
- size_t iIndex = (size_t)this;
+ //GUI::Begin("Renderer", 0, IMGUI_GLOBAL_BEGIN_FLAG);
+ //GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
+ //size_t iIndex = (size_t)this;
-
- _string strTag = "Terrain_" + to_string((size_t)iIndex);
- if (GUI::CollapsingHeader(strTag.c_str()))
- {
- static _int iTuningValue = 16;
- GUI::DragInt("DSN1", (_int*)&iTuningValue, 1, 1024);
- GUI::DragInt("DSN2", (_int*)&iTuningValue, 1, 1024);
- GUI::DragInt("DSN3", (_int*)&iTuningValue, 1, 1024);
- m_vDRN.x = 1.f / (_float)iTuningValue;
- m_vDRN.y = 1.f / (_float)iTuningValue;
- m_vDRN.z = 1.f / (_float)iTuningValue;
- GUI::PopItemWidth();
- GUI::Checkbox("Visible", &m_bVisible);
- }
- GUI::End();
+ //
+ //_string strTag = "Terrain_" + to_string((size_t)iIndex);
+ //if (GUI::CollapsingHeader(strTag.c_str()))
+ //{
+ // static _int iTuningValue = 16;
+ // GUI::DragInt("DSN1", (_int*)&iTuningValue, 1, 1024);
+ // GUI::DragInt("DSN2", (_int*)&iTuningValue, 1, 1024);
+ // GUI::DragInt("DSN3", (_int*)&iTuningValue, 1, 1024);
+ // m_vDRN.x = 1.f / (_float)iTuningValue;
+ // m_vDRN.y = 1.f / (_float)iTuningValue;
+ // m_vDRN.z = 1.f / (_float)iTuningValue;
+ // GUI::PopItemWidth();
+ // GUI::Checkbox("Visible", &m_bVisible);
+ //}
+ //GUI::End();
}
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
index c0f442291..94e4cde37 100644
--- a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
+++ b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
@@ -201,21 +201,21 @@ void CThestralCarriage::Trigger(CTimeSocket& Socket)
} break;
case TIMESOCKET_FUNC::SET_FSMSTATE:
{
- // if (pContents->vFlags.b[0]) {
- // m_iAnimationIndex = 0;
- // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
- // m_pModelCom->IsRootBone(false);
- // }
- // else if (pContents->vFlags.b[1]) {
- // m_iAnimationIndex = 1;
- // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
- // m_pModelCom->IsRootBone(false);
- // }
- // else if (pContents->vFlags.b[2]) {
- // m_iAnimationIndex = 2;
- // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
- // m_pModelCom->IsRootBone(false);
- // }
+ if (pContents->vFlags.b[0]) {
+ m_iAnimationIndex = 0;
+ m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
+ m_pModelCom->IsRootBone(false);
+ }
+ else if (pContents->vFlags.b[1]) {
+ m_iAnimationIndex = 1;
+ m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
+ m_pModelCom->IsRootBone(false);
+ }
+ else if (pContents->vFlags.b[2]) {
+ m_iAnimationIndex = 2;
+ m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
+ m_pModelCom->IsRootBone(false);
+ }
} break;
case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
{
diff --git a/Jusin154_Team3D/Client/Private/Transformation.cpp b/Jusin154_Team3D/Client/Private/Transformation.cpp
index 38e694493..a3887601e 100644
--- a/Jusin154_Team3D/Client/Private/Transformation.cpp
+++ b/Jusin154_Team3D/Client/Private/Transformation.cpp
@@ -253,13 +253,29 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc)
{
return;
}
+ default:
+ break;
}
}
+ default:
+ break;
}
+ {
+ _vector vHeadPosition = pCCT->Get_HeadPosition();
+ m_pInfoInstance->ActiveAt_Interactive(XMVectorSetY(vHeadPosition, vCCTPos.y += pCCT->Get_Height()));
- m_pInfoInstance->ActiveAt_Interactive(XMLoadFloat4(&vCCTPos));
-
- CollisionDesc.pObject->Set_Visible(false);
+ _float fMinusPosition = m_pGameInstance->Real_Random_Float(100, 900);
+ _vector vTempPos = XMVectorSet(0.f, -fMinusPosition, 0.f, 1.f);
+ CollisionDesc.pObject->Get_Component()->Set_State(STATE::POSITION, vTempPos);
+ pCCT->Set_Position(vTempPos);
+ CFSM* pFSM = CollisionDesc.pObject->Get_Component();
+ if (nullptr != pFSM) {
+ CollisionDesc.pObject->Set_Dead();
+ }
+ else {
+ pFSM->Set_State(FSMSTATE::DEAD);
+ }
+ }
//m_pTransformCom->Set_WorldMatrix(CollisionDesc.pObject->Get_Component()->Get_Actor()->getGlobalPose());
diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp
index 0d52d46f4..f9e11efa2 100644
--- a/Jusin154_Team3D/Client/Private/Troll_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp
@@ -808,8 +808,6 @@ void CTroll::Behavior_DeadEnter()
m_pDead_Smoke->Get_Component()->Set_State(STATE::POSITION, m_pTransformCom->Get_State(STATE::POSITION));
}, 0.55f);
- Get_PartObject()->Set_Disolve(true);
-
}
HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta)
@@ -820,6 +818,7 @@ HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta)
{
m_fDeadRatio += fTimeDelta / 3.f;
m_fDeadRatio = min(1.f, m_fDeadRatio);
+ Get_PartObject()->Set_Disolve(true);
}
return S_OK;
diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
index 11478a023..72340f529 100644
--- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
@@ -62,7 +62,7 @@ HRESULT CUI_Manager::Initialize(void* pArg)
m_bActive = false;
m_pInfoInstance->Set_UISTATE(m_eType);
m_pInfoInstance->Add_Event(TEXT("Canvas_Change"), [this](void* p) {this->Canvas_Change(*reinterpret_cast(p)); });
- m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(*reinterpret_cast<_bool*>(p)); });
+ m_pInfoInstance->Add_Event(TEXT("NpcInteract"), [this](void* p) {this->NpcInteract(p); });
m_pInfoInstance->Add_Event(TEXT("UIManagerFadeIn"), [this](void* p) {this->Set_Fade(); });
m_pInfoInstance->Add_Event(TEXT("UIFadeIn"), [this](void* p) {this->FadeIn(*reinterpret_cast<_float*>(p)); });
m_pInfoInstance->Add_Event(TEXT("RACEREADY"), [this](void* p) {this->Set_Race(*reinterpret_cast<_bool*>(p)); });
@@ -205,19 +205,19 @@ void CUI_Manager::Update(_float fTimeDelta)
if (m_pGameInstance->Key_Down(DIK_TAB))
{
m_fAlphaVelue = 1.f;
+ if (m_eType == UI_STATE::GAMEPLAYER)
+ {
+ m_eType = UI_STATE::QUEST;
+
+ }
+ else if (m_eType == UI_STATE::QUEST)
+ {
+ m_eType = UI_STATE::GAMEPLAYER;
+ }
if (m_bActive == false)
{
m_bActive = true;
m_bAlphaZero = true;
- if (m_eType == UI_STATE::GAMEPLAYER)
- {
- m_eType = UI_STATE::QUEST;
-
- }
- else if (m_eType == UI_STATE::QUEST)
- {
- m_eType = UI_STATE::GAMEPLAYER;
- }
}
}
}
@@ -227,18 +227,18 @@ void CUI_Manager::Update(_float fTimeDelta)
if (m_pGameInstance->Key_Down(DIK_ESCAPE))
{
m_fAlphaVelue = 1.f;
+ if (m_eType == UI_STATE::GAMEPLAYER)
+ {
+ m_eType = UI_STATE::SPELLLNEARN;
+ }
+ else if (m_eType == UI_STATE::SPELLLNEARN)
+ {
+ m_eType = UI_STATE::GAMEPLAYER;
+ }
if (m_bActive == false)
{
m_bActive = true;
m_bAlphaZero = true;
- if (m_eType == UI_STATE::GAMEPLAYER)
- {
- m_eType = UI_STATE::SPELLLNEARN;
- }
- else if (m_eType == UI_STATE::SPELLLNEARN)
- {
- m_eType = UI_STATE::GAMEPLAYER;
- }
}
}
}
@@ -279,7 +279,7 @@ void CUI_Manager::Update(_float fTimeDelta)
m_fAlpha += fTimeDelta * m_fAlphaTime;
}
- if (m_fAlpha > m_fAlphaVelue && m_bAlphaZero == true)
+ if (m_fAlpha >= m_fAlphaVelue && m_bAlphaZero == true)
{
m_bAlphaZero = false;
m_fAlpha = 1.f;
@@ -495,11 +495,14 @@ CGameObject* CUI_Manager::Find_Canvas(const _wstring& Name)
return iter->second;
}
-void CUI_Manager::NpcInteract(_bool bInteract)
+void CUI_Manager::NpcInteract(void* pArg)
{
- m_bNPCInteract = bInteract;
- m_bHover = bInteract;
- m_bActive = bInteract;
+ NPCINTERACT Interact = *reinterpret_cast(pArg);
+
+ m_bNPCInteract = Interact.bInteract;
+ m_bHover = Interact.bInteract;
+ m_bActive = Interact.bInteract;
+ m_fAlpha= Interact.fAlpha;
m_bAlphaZero = true;
}
diff --git a/Jusin154_Team3D/Client/Public/Broom.h b/Jusin154_Team3D/Client/Public/Broom.h
index 12f7a934b..1e96134df 100644
--- a/Jusin154_Team3D/Client/Public/Broom.h
+++ b/Jusin154_Team3D/Client/Public/Broom.h
@@ -40,7 +40,7 @@ class CBroom final : public CUnit
void Set_AISpeed(_float speedMul, _float accelMul);
void Set_Move(_bool bMove) { m_bMove = bMove; }
_bool Get_Move() { return m_bMove; }
- void Add_TurboBoost(_float fAmount) { m_fTurboBoost += fAmount; }
+ void Add_TurboBoost(_float fAmount);
_float Get_TurboBoost() { return m_fTurboBoost; }
HRESULT Ready_Child();
@@ -69,6 +69,9 @@ class CBroom final : public CUnit
_float m_fVerticalSpeed = 0.f;
_float m_fTurboBoost = {5.f};
_float m_fTurboBoostChargeDelay = {};
+ _float m_fInputHoldTime = 0.f;
+ _float m_fHoldThreshold = 0.5f;
+
_float m_fFlyAccel = 1.f;
_float m_fFlyDecel = 1.f;
diff --git a/Jusin154_Team3D/Client/Public/BroomRaceManager.h b/Jusin154_Team3D/Client/Public/BroomRaceManager.h
index 811c03d95..52a6aec55 100644
--- a/Jusin154_Team3D/Client/Public/BroomRaceManager.h
+++ b/Jusin154_Team3D/Client/Public/BroomRaceManager.h
@@ -48,7 +48,7 @@ class CBroomRaceManager final : public CGameObject
private:
CInfoInstance* m_pInfoInstance = { nullptr };
-
+ array m_pRaceEndEffects = { nullptr, nullptr, nullptr };
vector m_pRaceRings = {};
vector m_Racers = {};
_float m_fCountTimer = {};
diff --git a/Jusin154_Team3D/Client/Public/BroomRace_Bubble.h b/Jusin154_Team3D/Client/Public/BroomRace_Bubble.h
index b84f08a2a..6102b3aa6 100644
--- a/Jusin154_Team3D/Client/Public/BroomRace_Bubble.h
+++ b/Jusin154_Team3D/Client/Public/BroomRace_Bubble.h
@@ -20,6 +20,8 @@ class CBroomRace_Bubble final : public CEffect_Container
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
+ void CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius);
+
public:
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h
index b27d1b591..22d88854b 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h
@@ -73,6 +73,10 @@ class CCamPosition_Shoulder final : public CCamPosition
_float2 m_vMoveLerpPositions = { };
_float2 m_vMoveLerpTimer = { 0.f, TIMER_SHORT_LERP };
+
+ //_int m_iSpellFovLerp = { 0 };
+ //_float3 m_vSpellFovLerpTimer = { 0.f, 1.f, 2.f };
+ //_float3 m_vSpellFovLerpDegree = { 60.f, 30.f, 60.f };
#pragma endregion
_float2 m_vCameraShakeTimer = { 0.f, 0.3f };
diff --git a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
index 102fd0af0..09d8a17e8 100644
--- a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
+++ b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
@@ -49,8 +49,8 @@ class CCamera_Cinematic final : public CCamera
void Start_Lerp_Translation(_float fTimeMaximum, _float3& vTrans);
void Clear_Lerp_Translation();
void Lerp_Rotation(_float fTimeDelta);
- void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform);
- void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ);
+ void Start_Lerp_Rotation(_float fTimeMaximum, PSX::PxTransform pxTransform, _bool bMainTainDistance);
+ void Start_Lerp_Rotation(_float fTimeMaximum, _float4& vRotQ, _bool bMainTainDistance);
void Clear_Lerp_Rotation();
@@ -82,6 +82,7 @@ class CCamera_Cinematic final : public CCamera
_bool m_bLerpFovY = { false };
_float2 m_vFovYLerp = { 60.f, 60.f };
_float2 m_vLerpFovYTimer = { };
+ _float m_fMaintainingDistance = { };
#ifdef _DEBUG
unique_ptr m_pSubShape = { nullptr };
unique_ptr> m_Batch = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index ce3a2cd95..8abc0839b 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -45,7 +45,7 @@ namespace Client
enum class QUESTTYPE { MAIN, SUB, END };
enum class QUESTSTATE { NONE, ACCEPTED, CLEARED, END };
- enum class NPCTEXTTYPE { ENDTEXT, NEXTTEXT, CHOICE, SHOPTEXT, QUESTTEXT, SPELLLEAN, BROOM, BATTLE, END };
+ enum class NPCTEXTTYPE { ENDTEXT, NEXTTEXT, CHOICE, SHOPTEXT, QUESTTEXT, SPELLLEAN, BROOM, BATTLE, CURRENTQUEST, END };
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index 75d1cf961..209731778 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -1,9 +1,9 @@
#pragma once
NS_BEGIN(Engine)
- class CModel;
- class CRigidBody_Static;
- class CUnit;
- class CTimeSocket;
+class CModel;
+class CRigidBody_Static;
+class CUnit;
+class CTimeSocket;
NS_END
NS_BEGIN(Client)
@@ -37,81 +37,89 @@ typedef struct tagSpellInfo
_float fVidio{};
}SPELL_INFO;
- typedef struct DialogueChoice
- {
- _int eType = { false };
- _wstring pText;
- _int NextTypeID{};
- }DIALOGUECHOICEINFO;
+typedef struct DialogueChoice
+{
+ _int eType = { false };
+ _wstring pText;
+ _int NextTypeID{};
+ _int QuestID{};
+}DIALOGUECHOICEINFO;
- typedef struct DialogueInfo
- {
- _int iLineID{};
- _bool bTag{};
- _int iType{};
- _wstring pText;
- _int NextTextID{};
- vector ChoiceInfo;
- }CURRENTDIALOGUEINFO;
+typedef struct DialogueInfo
+{
+ _int iLineID{};
+ _bool bTag{};
+ _int iType{};
+ _wstring pText;
+ _int NextTextID{};
+ vector ChoiceInfo;
+}CURRENTDIALOGUEINFO;
- typedef struct NpcDialogue
- {
- _wstring pNpcName;
- _int iNpcID{};
- map<_int, CURRENTDIALOGUEINFO> Info;
- }NPCDIALOGUEINFO;
+typedef struct NpcDialogue
+{
+ _wstring pNpcName;
+ _int iNpcID{};
+ map<_int, CURRENTDIALOGUEINFO> Info;
+}NPCDIALOGUEINFO;
- typedef struct tagLockOnInfo {
- CUnit* pUnit = { nullptr };
- class CMapElement_Interactable* pInteractive = { nullptr };
- class CMapElement_Chest* pChest = { nullptr };
- class CEffect_Container* pEffect = { nullptr };
- }LOCKON_INFO;
+typedef struct tagLockOnInfo {
+ CUnit* pUnit = { nullptr };
+ class CMapElement_Interactable* pInteractive = { nullptr };
+ class CMapElement_Chest* pChest = { nullptr };
+ class CEffect_Container* pEffect = { nullptr };
+}LOCKON_INFO;
- typedef struct tegNPCInteractionInfo
- {
- CGameObject* pOwner = { nullptr };
- _wstring pNPCName;
- _wstring pName;
- _float4 fNPCPosition{};
- _int iTextID{};
- }NPCINTERACTIONINFO;
+typedef struct tegNPCInteractionInfo
+{
+ CGameObject* pOwner = { nullptr };
+ _wstring pNPCName;
+ _wstring pName;
+ _float4 fNPCPosition{};
+ _int iTextID{};
+}NPCINTERACTIONINFO;
- typedef struct tegBoxInteractionInfo
- {
- CGameObject* pOwner = { nullptr };
- _wstring pName;
- _float4 fPosition{};
- }BOXINTERACTIONINFO;
+typedef struct tegBoxInteractionInfo
+{
+ CGameObject* pOwner = { nullptr };
+ _wstring pName;
+ _float4 fPosition{};
+}BOXINTERACTIONINFO;
- typedef struct Choice
- {
- _int iChoice{};
- _int iType{};
- }CHOICEINFO;
+typedef struct Choice
+{
+ _int iChoice{};
+ _int iType{};
+ _int QuestID{};
+}CHOICEINFO;
- typedef struct PropUI
- {
- _float4 vPosition{};
- _int iIndex{};
- }PROPUI;
+typedef struct PropUI
+{
+ _float4 vPosition{};
+ _int iIndex{};
+}PROPUI;
- typedef struct tagUnitInfo
- {
- _wstring pUnit_Name;
- _float fCurrentHp{};
- _float fMaxHp{};
- _float fTargetHp{};
- _float fMelee{};
- _float fMagic{};
- _float fDefense{};
- _float fSpeed{};
- _float fAgility{};
- _int iLevel{};
- _float fExprince{};
- _float fMaxExprience{};
- _int iGold{};
- }UNITINFO;
+typedef struct tagUnitInfo
+{
+ _wstring pUnit_Name;
+ _float fCurrentHp{};
+ _float fMaxHp{};
+ _float fTargetHp{};
+ _float fMelee{};
+ _float fMagic{};
+ _float fDefense{};
+ _float fSpeed{};
+ _float fAgility{};
+ _int iLevel{};
+ _float fExprince{};
+ _float fMaxExprience{};
+ _int iGold{};
+}UNITINFO;
+
+typedef struct tagNpcInteract
+{
+ _bool bInteract{};
+ _float fAlpha{};
+}NPCINTERACT;
typedef struct tagDamageInfo
{
@@ -312,15 +320,15 @@ typedef struct tagEffectInfo
_float4 vPadding4 = {};
_float4 vPadding5 = {};
_float4 vPadding6 = {};
- }EFFECT_INFO;
+}EFFECT_INFO;
- typedef struct tagTrailInfo
- {
- EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL };
- /* 디퓨즈 */
- _bool isDiffuse = {};
- _float fDiffuseAlpha = { 1.f };
- _float4 vColor = { 0.f ,0.f ,0.f ,1.f };
+typedef struct tagTrailInfo
+{
+ EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL };
+ /* 디퓨즈 */
+ _bool isDiffuse = {};
+ _float fDiffuseAlpha = { 1.f };
+ _float4 vColor = { 0.f ,0.f ,0.f ,1.f };
/* 마스크 */
_bool isMask = {};
@@ -395,7 +403,7 @@ typedef struct tagEffectInfo
struct TimeLine {
_float2 m_vTimer = {};
_uint m_eTypeTimeLine = {};
- class CTriggerBox* m_pTriggerBox = { nullptr };
+ class CTriggerBox* m_pTriggerBox = { nullptr };
list m_Sockets = {};
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/Dialogue_Font.h b/Jusin154_Team3D/Client/Public/Dialogue_Font.h
index 0fc167a15..a606ac795 100644
--- a/Jusin154_Team3D/Client/Public/Dialogue_Font.h
+++ b/Jusin154_Team3D/Client/Public/Dialogue_Font.h
@@ -46,6 +46,8 @@ class CDialogue_Font final : public CGameObject
void NextText();
void NextLevel(CHOICEINFO Choice);
void ENDText();
+ void NextText(_int Index);
+ void NpcDialogue(_int Index);
private:
void NpcInfo(void* pArg);
void NpcInteract(_bool bInteract);
@@ -82,6 +84,7 @@ class CDialogue_Font final : public CGameObject
_wstring m_pName;
_int m_iTextID{};
_int m_iNextID{};
+ _int m_iQuestID{};
_int m_iType{};
_bool m_bTag{};
diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index 0b99775dd..5c52bead8 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -81,6 +81,7 @@ DECLARE_SINGLETON(CInfoInstance)
_float Get_Spell_Damage(_int Index);
void Add_Event(_wstring EventName, function Event);
void Event_CallBack(_wstring EventName, void* pArg = nullptr);
+
#pragma endregion
#pragma region QuestINFO
QUESTINFO Get_Quest(_int QuestType, _int QuestID);
@@ -93,6 +94,7 @@ DECLARE_SINGLETON(CInfoInstance)
#pragma region SpellLearn_Data
const SPELLLEARNINFO& Get_SpellLearn(_int Index) const;
_int Get_SpellLearnIndex();
+ void Spell_UnLock(_int SpellID);
#pragma endregion
#pragma region Dialogue_Font
//void Set_Font(void* pArg);
diff --git a/Jusin154_Team3D/Client/Public/Light_Main.h b/Jusin154_Team3D/Client/Public/Light_Main.h
index e030c53cd..cab84486f 100644
--- a/Jusin154_Team3D/Client/Public/Light_Main.h
+++ b/Jusin154_Team3D/Client/Public/Light_Main.h
@@ -29,6 +29,7 @@ class CLight_Main final : public CGameObject
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources();
_matrix Get_OffCenterProjMatrix(_fmatrix ViewMatrix, vector<_float3>& WorldPositions);
+ void Add_PreShadowRenderGroup(CLayer* pLayer);
public:
static CLight_Main* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/MapInfo.h b/Jusin154_Team3D/Client/Public/MapInfo.h
index a349b95f9..42ffc523b 100644
--- a/Jusin154_Team3D/Client/Public/MapInfo.h
+++ b/Jusin154_Team3D/Client/Public/MapInfo.h
@@ -20,7 +20,7 @@ class CMapInfo final : public CBase
public:
HRESULT Load_MapObjects(const _char* pFilePath, const _wchar* pLayerTag);
- HRESULT Load_MapRenderObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject, const _wchar* pLayerTag);
+ HRESULT Load_MapRenderObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject, const _wchar* pLayerTag, _bool hasCollisionMesh);
HRESULT Load_LightElements(const _char* pFileName, const _wchar* pLayerTag);
HRESULT Load_InteractableElements(const _char* pFileName, const _wchar* pLayerTag);
diff --git a/Jusin154_Team3D/Client/Public/MapObject_Render.h b/Jusin154_Team3D/Client/Public/MapObject_Render.h
index 35f91ed18..b02e6687b 100644
--- a/Jusin154_Team3D/Client/Public/MapObject_Render.h
+++ b/Jusin154_Team3D/Client/Public/MapObject_Render.h
@@ -32,6 +32,7 @@ class CMapObject_Render final : public CMapPartObject // Render PartObject
HRESULT Add_LodModel(const _tchar* pModelPrototypeTag);
private:
+ _bool m_hasCollisionMesh = {};
_bool m_bReadyToCreatePhysX = { false };
_bool m_bConverted = { false };
diff --git a/Jusin154_Team3D/Client/Public/MapPartObject.h b/Jusin154_Team3D/Client/Public/MapPartObject.h
index 6cd557d1e..a0398fdd3 100644
--- a/Jusin154_Team3D/Client/Public/MapPartObject.h
+++ b/Jusin154_Team3D/Client/Public/MapPartObject.h
@@ -14,6 +14,7 @@ class CMapPartObject abstract : public CPartObject
{
public:
typedef struct tagMapObject_Desc {
+ _bool hasCollisionMesh{};
_uint iRenderType{};
CTransform* pParentTransform = { nullptr };
_float3 vScale;
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index 56c71d11f..4fe1a62c7 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -59,6 +59,7 @@ class CPlayer final : public CUnit
void Set_Interaction(_bool bInteraction);
void ExitBattle();
void Set_OriginPos(_vector vPos) { XMStoreFloat4(&m_OriginPos, vPos); }
+ void Add_TurboBoost(_float fAmount);
#ifdef _DEBUG
void Render_CameraCoordinateSystem();
#endif // _DEBUG
@@ -147,7 +148,7 @@ class CPlayer final : public CUnit
public:
virtual void Reset_Sprint() { m_bSprintToggle = false; }
virtual void Reset_Walk() { m_bWalkToggle = false; }
-
+ void Set_Spell_Learning_Success();
private:
// UI 연동 추가
void Get_Spell(_int SkillIndex);
@@ -293,7 +294,7 @@ class CPlayer final : public CUnit
void Behavior_Broom_HoverEnter();
HRESULT Behavior_Broom_HoverExitCheck(_float fTimeDelta);
void Behavior_Broom_HoverExit();
-
+
void Behavior_Broom_FlyEnter();
HRESULT Behavior_Broom_FlyExitCheck(_float fTimeDelta);
void Behavior_Broom_FlyExit();
diff --git a/Jusin154_Team3D/Client/Public/Quest_Data.h b/Jusin154_Team3D/Client/Public/Quest_Data.h
index c33d834fe..5c7cef5ab 100644
--- a/Jusin154_Team3D/Client/Public/Quest_Data.h
+++ b/Jusin154_Team3D/Client/Public/Quest_Data.h
@@ -36,7 +36,7 @@ class CQuest_Data final : public CBase
const vector& Get_AllQuest() const;
const vector& Get_ClearQuest() const;
vector& Get_AcceptQuest();
- HRESULT Set_AcceptQuest(_int index);
+ _int Set_AcceptQuest(_int index);
private:
CInfoInstance* m_pInfoInstance = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/RaceRing.h b/Jusin154_Team3D/Client/Public/RaceRing.h
index 8bc69c598..59e3b054a 100644
--- a/Jusin154_Team3D/Client/Public/RaceRing.h
+++ b/Jusin154_Team3D/Client/Public/RaceRing.h
@@ -1,11 +1,11 @@
#pragma once
#include "Client_Define.h"
-#include "PartObject.h"
+#include "ContainerObject.h"
NS_BEGIN(Client)
-class CRaceRing final : public CGameObject
+class CRaceRing final : public CContainerObject
{
public:
typedef struct RaceRingDesc
@@ -37,6 +37,7 @@ class CRaceRing final : public CGameObject
private:
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
+ class CEffectParts* m_pRingEffect = { nullptr };
CShader* m_pShaderCom = { nullptr };
CModel* m_pModelCom = { nullptr };
_bool m_bTarget = { false };
@@ -47,6 +48,7 @@ class CRaceRing final : public CGameObject
private:
HRESULT Ready_Components();
HRESULT Bind_ShaderResources();
+ HRESULT Ready_Parts();
public:
static CRaceRing* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h b/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h
index 45324a65e..8a8734cbb 100644
--- a/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h
@@ -41,6 +41,7 @@ class CSpellLearn_MovePointer final : public CElementObject
void Set_SpellLearn(_int Index);
_int Get_SpellTrail();
_bool Get_MoveStart();
+ void Set_ID(_int Index);
private:
void Line(_float fTime, _float2 fMouse);
@@ -64,6 +65,7 @@ class CSpellLearn_MovePointer final : public CElementObject
_int m_iCurrentLine{};
vector<_float4> m_MoveLine;
vector<_float4> m_Boosters;
+ _int m_iSpellID{};
public:
static CSpellLearn_MovePointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/UI_Manager.h b/Jusin154_Team3D/Client/Public/UI_Manager.h
index 3f896b725..0fa9d439b 100644
--- a/Jusin154_Team3D/Client/Public/UI_Manager.h
+++ b/Jusin154_Team3D/Client/Public/UI_Manager.h
@@ -46,7 +46,7 @@ class CUI_Manager final : public CUIObject
void Add_Canvas(_wstring Name, class CGameObject* pCanvas);
CGameObject* Find_Canvas(const _wstring& Name);
- void NpcInteract(_bool bInteract);
+ void NpcInteract(void* pArg);
void Set_Fade();
void Change_Map();
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
index 4982d2544..7db6bf716 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
@@ -152,8 +152,8 @@
-
-
+
+
@@ -226,8 +226,8 @@
-
-
+
+
@@ -263,8 +263,8 @@
-
-
+
+
@@ -332,6 +332,80 @@
+
+
+
+
+
+
+
+
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
@@ -370,12 +444,12 @@
-
+
-
-
+
+
@@ -400,23 +474,23 @@
-
+
-
+
-
-
+
+
- false
+ true
false
false
false
@@ -437,266 +511,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
+
@@ -705,344 +520,6 @@
-->
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1054,9 +531,47 @@
- true
+ false
false
- false
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ true
false
false
false
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
index 5890f5101..c9666f74a 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
@@ -3,9 +3,9 @@
-
-
-
+
+
+
@@ -21,9 +21,9 @@
-
-
-
+
+
+
@@ -31,23 +31,42 @@
-
-
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
-
+
+
@@ -74,8 +93,8 @@
-
-
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_MapContainer_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_MapContainer_Data.xml
index ab0062bf0..823eec3eb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_MapContainer_Data.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_MapContainer_Data.xml
@@ -2683,7 +2683,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml
index 229374586..a0af520b9 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml
@@ -10,7 +10,7 @@