diff --git a/Jusin154_Team3D/Client/Default/Client.cpp b/Jusin154_Team3D/Client/Default/Client.cpp
index 8037920d6..645376f63 100644
--- a/Jusin154_Team3D/Client/Default/Client.cpp
+++ b/Jusin154_Team3D/Client/Default/Client.cpp
@@ -103,7 +103,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_float fTimeAcc = { };
-
+ const _float fMaxTimer = { 1.f / 60.f };
while (true)
{
if (PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE))
@@ -134,7 +134,8 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
pMainApp->Update(1.f / 60.f);
#endif // _DEBUG
#ifndef _DEBUG
- pMainApp->Update(pGameInstance->Get_TimeDelta(TEXT("Timer_60")));
+ _float fFrameTime = min(pGameInstance->Get_TimeDelta(TEXT("Timer_60")), fMaxTimer);
+ pMainApp->Update(fFrameTime);
#endif
pMainApp->Render();
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index b22b67c15..eea9ad819 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -163,9 +163,11 @@ call Update_Resources.bat
+
+
@@ -473,9 +475,11 @@ call Update_Resources.bat
+
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index 37e8d62e8..b49271f9f 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -922,9 +922,6 @@
02.GameObjects\Effect\Effects\Accio\AccioSide
-
- 02.GameObjects\Environment\Prop\SkyBox\TriggerBox
-
02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D
@@ -937,7 +934,7 @@
02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit
-
+
02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit
@@ -949,10 +946,19 @@
02.GameObjects\Environment\03.MapElement\Cave
-
+
02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_SkillUI
+
+ 02.GameObjects\Effect\Effects\Reparo
+
+
+ 04.Mechanic\State\Focus\Spell_Learning
+
+
+ 02.GameObjects\Environment\Prop\SkyBox\TriggerBox
+
@@ -1955,7 +1961,7 @@
{c276c050-7000-441e-bb53-30ec3c20c6f5}
-
+
{9263815e-9651-4ba2-813f-c2a7f207522d}
@@ -1964,10 +1970,16 @@
{5599bbbd-12f7-4b40-8e3d-24f869cce464}
-
+
{b28b8285-3d1a-49cf-bde2-c7ebc18e6389}
+
+ {88c3bc02-a51d-4cd8-87a2-197722d48f83}
+
+
+ {26d7f6f4-0b5f-4b9a-9cef-df91b8a485bf}
+
@@ -2838,6 +2850,15 @@
02.GameObjects\Environment\03.MapElement\Cave
+
+ 02.GameObjects\Effect\Effects\Reparo
+
+
+ 04.Mechanic\State\Focus\Spell_Learning
+
+
+ 02.GameObjects\Environment\Prop\SkyBox\TriggerBox
+
@@ -2852,9 +2873,6 @@
04.Mechanic\State\State_Combat\State_Parry
-
- 02.GameObjects\Environment\Prop\SkyBox\TriggerBox
-
02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D
@@ -2867,13 +2885,13 @@
02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit
-
+
02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D
02.GameObjects\NPC\Ally\Elf
-
+
02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_SkillUI
diff --git a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp
index 8450f9a04..0077f3d07 100644
--- a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp
+++ b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp
@@ -189,6 +189,8 @@ HRESULT CAvadakedavra::Pre_Setting(CGameObject* pObject, void* pArg)
static_cast(m_pOwner)->Start_CameraShake(0.5f, 1.2f);
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_AVADAKEDAVRA, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Blink.cpp b/Jusin154_Team3D/Client/Private/Blink.cpp
index f8bdcea5e..9b1057ba3 100644
--- a/Jusin154_Team3D/Client/Private/Blink.cpp
+++ b/Jusin154_Team3D/Client/Private/Blink.cpp
@@ -206,6 +206,8 @@ 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 251347135..df07edd69 100644
--- a/Jusin154_Team3D/Client/Private/Bombard.cpp
+++ b/Jusin154_Team3D/Client/Private/Bombard.cpp
@@ -160,6 +160,7 @@ 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;
}
diff --git a/Jusin154_Team3D/Client/Private/BombardSide.cpp b/Jusin154_Team3D/Client/Private/BombardSide.cpp
index 70a4b8841..69f5ee42c 100644
--- a/Jusin154_Team3D/Client/Private/BombardSide.cpp
+++ b/Jusin154_Team3D/Client/Private/BombardSide.cpp
@@ -61,9 +61,7 @@ HRESULT CBombardSide::Initialize(void* pArg)
if (pWand == nullptr)
return;
- m_isTrailEnd = true;
-
- XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix());
+ m_pWandTrail->SetDissolve(true);
});
return S_OK;
@@ -99,7 +97,7 @@ void CBombardSide::Update(_float fTimeDelta)
// 트레일이 종료되면 위치를 고정함
_matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix();
- m_pWandTrail->Trail_Update(TrailMat, fTimeDelta);
+ m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta);
}
diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp
index f577c9168..134511e16 100644
--- a/Jusin154_Team3D/Client/Private/Broom.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom.cpp
@@ -6,6 +6,7 @@
#include "Unit.h"
#include "PartObject.h"
#include "EffectParts.h"
+#include "TrailObject.h"
CBroom::CBroom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CUnit(pDevice, pContext)
@@ -103,15 +104,6 @@ void CBroom::Update(_float fTimeDelta)
m_bHoverToggle = true;
m_fSpeed = 0.f;
- if (m_pWindEffect != nullptr)
- {
- if (m_pWindEffect->Get_Visible() == true) // 전 프레임에 트루였다면
- {
- m_pWindEffect->Set_Visible(false);
- m_pWindEffect->Get_Effect_Info()->fSoftMask = 1.f;
- }
- }
-
m_pFSM->Change_State(FSMSTATE::IDLE);
}
@@ -125,20 +117,45 @@ void CBroom::Update(_float fTimeDelta)
/* 윈드 이펙트 */
+
+
if (m_bRide == true && m_pWindEffect != nullptr)
{
+ _matrix BroomTail_Mat = XMLoadFloat4x4(m_pBroom_TailMat);
+
+ for (int i = 0; i < 3; ++i) {
+ BroomTail_Mat.r[i] = XMVector3Normalize(BroomTail_Mat.r[i]);
+ }
+
+ m_pBroomTrail->Oneside_Rope_Trail_Update(BroomTail_Mat * m_pTransformCom->Get_XMWorldMatrix(), fTimeDelta);
+
if (m_fSpeed <= 5.f)
{
- //m_pWindEffect->Set_Visible(false);
+ m_pWindEffect->Get_Component()->Set_Loop(false);
+ m_pWindEffect->Get_Effect_Info()->isDissolve = true;
+ m_pWindEffect->Get_Effect_Info()->fSoftMask = 1.f;
+
+ m_pBroomTrail->SetDissolve(true);
+
return;
}
+
+
+ m_pBroomTrail->SetDissolve(false);
+ m_pBroomTrail->Set_Visible(true);
+
+ /* 윈드 이펙트 루프 돌리도록 */
+ m_pWindEffect->Get_Component()->Set_Loop(true);
+ m_pWindEffect->Get_Effect_Info()->isDissolve = false;
m_pWindEffect->Set_Visible(true);
+
+ /* 윈드 이펙트 속도에 따라 강해지도록 */
m_pWindEffect->Get_Component()->Set_TimeMult(0.5f + m_fSpeed / 20.f);
m_pWindEffect->Get_Effect_Info()->fBlurIntensity = m_fSpeed / 30.f;
- }
+ }
}
void CBroom::Late_Update(_float fTimeDelta)
@@ -218,6 +235,27 @@ HRESULT CBroom::Ready_Child()
m_pWindEffect->Load("../Bin/Resources/Data/Effect/ScreenFX/Wind", static_cast(g_iStaticLevel));
+ ///
+
+ if (FAILED(Add_PartObject("Boost_Screen", g_iStaticLevel, &m_pBoostScreenFX, &PartsDesc)))
+ {
+ return E_FAIL;
+ }
+ m_pBoostScreenFX->Load("../Bin/Resources/Data/Effect/BroomEffect/Booster_ScreenFX", static_cast(g_iStaticLevel));
+
+
+ ///
+
+ if (FAILED(Add_PartObject("Broom_Trail", g_iStaticLevel, &m_pBroomTrail, &PartsDesc))) {
+ return E_FAIL;
+ }
+
+ m_pBroomTrail->Load_Trail("../Bin/Resources/Data/Effect/BroomEffect/Broom_Trail", static_cast(g_iStaticLevel));
+ m_pBroomTrail->Set_Visible(false);
+
+
+ m_pBroom_TailMat = m_pModelCom->Get_BoneMatrixPtr("thistleSocket");
+
return S_OK;
}
@@ -234,10 +272,10 @@ HRESULT CBroom::Ready_Components()
switch (m_iIndex)
{
case 0:
- m_strModelPrototypeTag = TEXT("Prototype_Component_Broom_Model");
+ m_strModelPrototypeTag = TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model");
break;
case 1:
- m_strModelPrototypeTag = TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model");
+ m_strModelPrototypeTag = TEXT("Prototype_Component_Broom_Model");
break;
case 2:
m_strModelPrototypeTag = TEXT("Prototype_Component_DarkWizardBroom_Model");
@@ -302,6 +340,17 @@ void CBroom::Update_CameraCoordinateSystem()
m_pInfoInstance->Update_CameraCoordinateSystem(m_vCameraLookDir, m_vRimLightColor);
}
+void CBroom::Boost_Effect_Visible(_bool isVisible)
+{
+ m_pBoostScreenFX->Get_Component()->Set_Loop(isVisible);
+
+ if (isVisible == true)
+ {
+
+ m_pBoostScreenFX->Set_Visible(true);
+ }
+}
+
void CBroom::PlayerInput(_float fTimeDelta)
{
@@ -391,7 +440,10 @@ void CBroom::Free()
{
__super::Free();
- SAFE_RELEASE(m_pWindEffect);
+ SAFE_RELEASE(m_pWindEffect);
+ SAFE_RELEASE(m_pBroomTrail);
+ SAFE_RELEASE(m_pBoostScreenFX);
+
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
index c35330de7..a26ca106a 100644
--- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
@@ -383,8 +383,10 @@ void CBroomRaceManager::RaceReady()
m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object()->Set_RaceInfo();
- for (auto& racer : m_Racers)
+ for (size_t i = 0; i < (_uint)m_Racers.size(); i++)
{
+ auto& racer = m_Racers[i];
+
CTransform* pRingTransform =
m_pRaceRings[0]->Get_Component();
@@ -398,9 +400,17 @@ void CBroomRaceManager::RaceReady()
{
CTransform* pTransform =
racer.pAI->Get_Broom()->Get_Component();
- _float fSideRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
- _vector offset = XMVectorSet(0.f, 1.3f, 0.f, 0.f) + pTransform->Get_State(STATE::LOOK) * fSideRand;
+ const _float fSpacing = 3.0f;
+ const _float fJitter = 0.5f;
+
+ _float lane = (_float)i - (_float)(m_Racers.size() - 1) * 0.5f;
+ _float side = lane * fSpacing;
+
+ side += m_pGameInstance->Real_Random_Float(-fJitter, fJitter);
+
+
+ _vector offset = XMVectorSet(0.f, 1.3f, 0.f, 0.f) + pTransform->Get_State(STATE::LOOK) * side;
spawnPos += offset;
@@ -524,70 +534,6 @@ HRESULT CBroomRaceManager::Load_RaceRing()
HRESULT CBroomRaceManager::Load_Balloons()
{
- //tinyxml2::XMLDocument xmlDoc;
-
- //string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml";
-
- //if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
- // return E_FAIL;
-
- // Desc.pBroomRaceManager = this;
-
- // /* Transform */
- // auto* Rotation = Object->FirstChildElement("Scale");
- // Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
- // Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
- // Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
-
- // auto* Scale = Object->FirstChildElement("Rotation");
- // Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
- // Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
- // Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
-
- // auto* Position = Object->FirstChildElement("Position");
- // Position->QueryFloatAttribute("x", &Desc.vPosition.x);
- // Position->QueryFloatAttribute("y", &Desc.vPosition.y);
- // Position->QueryFloatAttribute("z", &Desc.vPosition.z);
-
- // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RING, &Desc)))
- // return E_FAIL;
- //}
-
- //tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Balloon");
-
- //if (nullptr == root)
- //{
- // MSG_BOX("Failed to Find root");
- // return S_OK;
- //}
-
- //for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
- //{
- // CMapElement_Balloon::BALLOON_DESC Desc = {};
-
- // auto* Value = Object->FirstChildElement("Value");
- // Value->QueryBoolAttribute("isFloating", &Desc.isFloating);
- // Value->QueryUnsignedAttribute("DiffuseIndex", &Desc.iDiffuseIndex);
-
- // /* Transform */
- // auto* Rotation = Object->FirstChildElement("Scale");
- // Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
- // Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
- // Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
-
- // auto* Scale = Object->FirstChildElement("Rotation");
- // Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
- // Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
- // Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
-
- // auto* Position = Object->FirstChildElement("Position");
- // Position->QueryFloatAttribute("x", &Desc.vPosition.x);
- // Position->QueryFloatAttribute("y", &Desc.vPosition.y);
- // Position->QueryFloatAttribute("z", &Desc.vPosition.z);
-
- // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
- // return E_FAIL;
- //}
tinyxml2::XMLDocument xmlDoc;
string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml";
diff --git a/Jusin154_Team3D/Client/Private/Broom_States.cpp b/Jusin154_Team3D/Client/Private/Broom_States.cpp
index e9d57c1dc..52efa0cdd 100644
--- a/Jusin154_Team3D/Client/Private/Broom_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom_States.cpp
@@ -2,6 +2,7 @@
#include "Broom.h"
#include "GameInstance.h"
+#include "TrailObject.h"
#pragma region STATE
#include "State_Idle.h"
@@ -119,6 +120,10 @@ void CBroom::Behavior_MoveEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::MOVE);
+
+
+ m_pBroomTrail->SetDissolve(false);
+ m_pBroomTrail->Get_Component()->Reset_Trail();
}
HRESULT CBroom::Behavior_MoveExitCheck(_float fTimeDelta)
@@ -500,11 +505,11 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
}
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,0.1f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
}
else {
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
}
}
@@ -563,6 +568,8 @@ void CBroom::Behavior_Broom_TurboFlyEnter()
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);
+
+ Boost_Effect_Visible(true);
}
HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
@@ -749,6 +756,8 @@ void CBroom::Behavior_Broom_TurboFlyExit()
{
m_pFSM->Disable_State(FSMSTATE::TURBOFLY);
m_pModelCom->Set_BlendDuration(0.3f);
+
+ Boost_Effect_Visible(false);
}
diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
index 57ced80fd..3cd0a371b 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
@@ -265,10 +265,14 @@ HRESULT CCamera_Cinematic::Ready_SubPart()
{
CCamPosition_Target::CAMERAPOSITION_TARGET_DESC Desc{};
Desc.pParentTransform = m_pTransformCom;
+ SAFE_RELEASE(m_pFollowTarget);
m_pFollowTarget = m_pFollowTargetPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc);
m_pFollowTargetPart->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -10.4f, 1.f));
+ SAFE_ADDREF(m_pFollowTarget);
+ SAFE_RELEASE(m_pLookTarget);
m_pLookTarget = m_pLookTargetPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc);
m_pLookTargetPart->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f));
+ SAFE_ADDREF(m_pLookTarget);
}
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
index 17ab6c973..e5404bec9 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
@@ -205,6 +205,10 @@ void CCamera_Debug::Describe_Entity()
}
if (GUI::CollapsingHeader("DebugCamera")){
m_pTransformCom->Describe_Entity();
+ _float fFovYDegree = XMConvertToDegrees(m_fFovy);
+ if (GUI::SliderFloat("FOV", &fFovYDegree, 0.01f, 89.f, "%.2f")) {
+ m_fFovy = XMConvertToRadians(fFovYDegree);
+ }
}
GUI::End();
}
diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
index 0870fa0bb..d5dc22430 100644
--- a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
@@ -26,6 +26,7 @@ void CCutSceneInfo::Update(_float fTimeDelta)
void CCutSceneInfo::Load_CutScenes()
{
LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID();
+ Clear_AllEvents();
switch (eLevel)
{
case LEVEL::GAMEPLAY:
@@ -46,6 +47,7 @@ void CCutSceneInfo::Active_Event(_string& strKey)
{
map<_string, TimeLine*>::iterator iter = m_funcWaitEvents.find(strKey);
if (iter != m_funcWaitEvents.end()) {
+ SAFE_RELEASE(iter->second->m_pTriggerBox);
m_funcActiveEvents.emplace(iter->first, iter->second);
m_funcWaitEvents.erase(iter);
}
@@ -101,6 +103,7 @@ void CCutSceneInfo::Update_ActiveEvents(_float fTimeDelta)
}
}
if (pSockets->empty()) {
+ SAFE_RELEASE(iter->second->m_pTriggerBox);
Safe_Delete((*iter).second);
iter = m_funcActiveEvents.erase(iter);
}
@@ -151,11 +154,11 @@ HRESULT CCutSceneInfo::Clear_Events(map<_string, TimeLine*>& Events)
{
map<_string, TimeLine*>::iterator iter = Events.begin();
for (; iter != Events.end();) {
-
for (list::iterator socketIter = (*iter).second->m_Sockets.begin();
socketIter != (*iter).second->m_Sockets.end(); ++socketIter) {
SAFE_RELEASE((*socketIter));
}
+ SAFE_RELEASE(iter->second->m_pTriggerBox);
Safe_Delete((*iter).second);
iter = Events.erase(iter);
}
diff --git a/Jusin154_Team3D/Client/Private/Decendo.cpp b/Jusin154_Team3D/Client/Private/Decendo.cpp
index 0247ff623..b9c227aa3 100644
--- a/Jusin154_Team3D/Client/Private/Decendo.cpp
+++ b/Jusin154_Team3D/Client/Private/Decendo.cpp
@@ -211,6 +211,8 @@ 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/DecendoSide.cpp b/Jusin154_Team3D/Client/Private/DecendoSide.cpp
index eac181609..dd8d04b10 100644
--- a/Jusin154_Team3D/Client/Private/DecendoSide.cpp
+++ b/Jusin154_Team3D/Client/Private/DecendoSide.cpp
@@ -116,6 +116,7 @@ HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject, void* pArg)
m_isTrailEnd = false;
m_isParticleEnd = false;
+ m_pWandTrail->SetDissolve(false);
m_pWandLight->Set_Visible(true);
m_pWand_Fire->Set_Visible(true);
diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
index a438c9f5c..eba6ad970 100644
--- a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp
@@ -6,6 +6,7 @@
#include "Player.h"
#include "Human_Duelist.h"
#include "RandomNpc.h"
+#include "NPC_EleazarFig.h"
#include "Layer.h"
CDialogue_Panel::CDialogue_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -145,12 +146,12 @@ void CDialogue_Panel::Change_Map()
1.0f,
0.f
);
-
+ _vector vPlayerOriginPos = XMVectorZero();
CLayer* pDuelistLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_DUELIST);
if (nullptr != pDuelistLayer) {
CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object();
- pDuelist->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1015.f, 1.f));
+ pDuelist->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1015.5f, 1.f));
pDuelist->Set_Battle(true);
}
@@ -158,10 +159,10 @@ void CDialogue_Panel::Change_Map()
if (nullptr != pLayer) {
CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object();
CPlayer* pPlayer = pLayer->Get_Object();
- _vector vOriginPos = pPlayer->Get_Component()->Get_Position();
- pPlayer->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1010.f, 1.f));
+ vPlayerOriginPos = pPlayer->Get_Component()->Get_Position();
+ pPlayer->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1009.5f, 1.f));
pPlayer->Set_Battle(true);
- pPlayer->Set_OriginPos(vOriginPos);
+ pPlayer->Set_OriginPos(vPlayerOriginPos);
_vector vPos = pPlayer->Get_WorldPostion();
_vector vForward = XMVectorSet(0.f, 0.f, 1.f, 0.f);
@@ -169,22 +170,40 @@ void CDialogue_Panel::Change_Map()
}
-#ifdef Bin
CLayer* pNpcLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_NPC);
- if (nullptr != pNpcLayer) {
+ if (nullptr != pNpcLayer)
+ {
+ auto* pObjects = pNpcLayer->Get_Objects();
+ if (pObjects == nullptr)
+ return;
- for (auto& pNpc : *pNpcLayer->Get_Objects())
+ _uint i = 0;
+ for (auto it = pObjects->begin(); it != pObjects->end(); ++it)
{
- if (nullptr == dynamic_cast(pNpc))
- continue;
- if (false == dynamic_cast(pNpc)->Get_BattleObserve_Npc())
+ CGameObject* pNpc = *it;
+ if (pNpc == nullptr)
continue;
- dynamic_cast(pNpc)->Set_NpcState(ENUM_CLASS(CRandomNpc::NPC_STATE::OBSERVE));
- dynamic_cast(pNpc)->Set_Battle(true);
+ if (auto pFig = dynamic_cast(pNpc))
+ {
+ pFig->Set_Pos(vPlayerOriginPos);
+ continue;
+ }
+
+ auto pRandomNpc = dynamic_cast(pNpc);
+ if (pRandomNpc == nullptr)
+ continue;
+
+ if (false == pRandomNpc->Get_BattleObserve_Npc())
+ continue;
+
+ pRandomNpc->Set_NpcState(ENUM_CLASS(CRandomNpc::NPC_STATE::OBSERVE));
+ pRandomNpc->Set_Battle(true);
+ pRandomNpc->Set_BattleIndex(i);
+ ++i;
}
}
-#endif // Bin
+
}
void CDialogue_Panel::Priority_Update(_float fTimeDelta)
diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp
index a39378b13..23c035ede 100644
--- a/Jusin154_Team3D/Client/Private/EffectObject.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp
@@ -720,6 +720,11 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
CloseHandle(hFile);
+ if (m_EffectInfo.isScreenFX == true)
+ {
+ XMStoreFloat4x4(&m_ScreenViewMatrix, XMMatrixIdentity());
+ XMStoreFloat4x4(&m_OrthographicMatrix, XMMatrixOrthographicLH(g_iWinSizeX, g_iWinSizeY, 0.f, 1.f));
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 01ab839fb..c489367f8 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -53,6 +53,7 @@
#include "Blink.h"
#include "Transformation.h"
#include "Avadakedavra.h"
+#include "Reparo.h"
#include "Goblin_ProtegoHit.h"
#include "Duelist_ProtegoHit.h"
@@ -512,6 +513,16 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
+ if (FAILED(Create_Effect(SKILL_TYPE::REPARO, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CReparo* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
+
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index 0490cc895..d94b58095 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -668,6 +668,7 @@ _int CEffect_Container::CollisionCheck()
case PXOBJECT::GOBLIN_ASSASSIN:
case PXOBJECT::TROLL:
case PXOBJECT::RANROK:
+ case PXOBJECT::RANROK_BODY:
case PXOBJECT::WALL:
{
return i;
@@ -744,9 +745,7 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End
m_bHitShield = true;
}
break;
- }
- switch (PXOBJECT(pUserData->iSubKind))
- {
+
case PXOBJECT::DUELIST_PROTEGO:
{
pUserData->pOwner->OnCollision(this, &tagCollInfo);
@@ -754,6 +753,7 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_fvector StartPos, _fvector End
m_bHitShield = true;
}
break;
+ case PXOBJECT::RANROK_BODY:
case PXOBJECT::RANROK_PROP:
{
pUserData->pOwner->OnCollision(this, &tagCollInfo);
diff --git a/Jusin154_Team3D/Client/Private/Elf.cpp b/Jusin154_Team3D/Client/Private/Elf.cpp
index b0414f746..38903cb69 100644
--- a/Jusin154_Team3D/Client/Private/Elf.cpp
+++ b/Jusin154_Team3D/Client/Private/Elf.cpp
@@ -70,6 +70,11 @@ void CElf::Update(_float fTimeDelta)
Set_Anim();
+ if (m_pGameInstance->Key_Up(DIK_U))
+ {
+ m_iCurrentFlow++;
+ }
+
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
__super::Update(fTimeDelta);
@@ -325,12 +330,12 @@ void CElf::Set_Anim()
}
}
- _bool bRootBone = true;
+ _bool bRootBone = false;
m_pairAnimInfo = m_Anims[m_iCurrentFlow];
- if (m_pairAnimInfo.AnimIndex == 1)
+ if (m_pairAnimInfo.AnimIndex == 0)
{
- bRootBone = false;
+ bRootBone = true;
}
m_pModelCom->Set_AnimationIndex(m_pairAnimInfo.AnimIndex, m_pairAnimInfo.Loop, 1.f, false, 1.f, bRootBone);
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
index dd1139d24..fe4fdc3d6 100644
--- a/Jusin154_Team3D/Client/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -65,9 +65,12 @@ HRESULT CGoblin::Initialize(void* pArg)
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
+ MONSTERDESC* pDesc = static_cast(pArg);
- m_pCharacter_Controller->Set_Position(XMVectorSet(-52.f, -2.f, -16.f, 1.f));
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-52.f, -2.f, -16.f, 1.f));
+ _vector vPos = XMLoadFloat4(&pDesc->vPos);
+ m_pTransformCom->Set_State(STATE::POSITION, vPos);
+ m_pCharacter_Controller->Set_Position(vPos);
+ m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotQ.x), XMConvertToRadians(pDesc->vRotQ.y), XMConvertToRadians(pDesc->vRotQ.z));
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
index 4b80f2b91..503a5f961 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp
@@ -57,8 +57,12 @@ HRESULT CGoblin_Assassin::Initialize(void* pArg)
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
- m_pCharacter_Controller->Set_Position(XMVectorSet(-52.f, -2.f, -16.f, 1.f));
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-52.f, -2.f, -16.f, 1.f));
+ MONSTERDESC* pDesc = static_cast(pArg);
+
+ _vector vPos = XMLoadFloat4(&pDesc->vPos);
+ m_pTransformCom->Set_State(STATE::POSITION, vPos);
+ m_pCharacter_Controller->Set_Position(vPos);
+ m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotQ.x), XMConvertToRadians(pDesc->vRotQ.y), XMConvertToRadians(pDesc->vRotQ.z));
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
@@ -574,6 +578,7 @@ HRESULT CGoblin_Assassin::Ready_Parts()
}
}
+
{
CGoblin_Sword::GOBLIN_SWORD_DESC Goblin_SwordDesc{};
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp
index 018fe4de3..9b482c77c 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp
@@ -46,8 +46,8 @@ HRESULT CGoblin_Assassin_Spector::Initialize(void* pArg)
m_vOriginScale = m_pTransformCom->Get_Scale();
- m_pLeftHand_BoneMat = m_pModelCom->Get_BoneMatrixPtr("SKT_LeftHand");
- m_pRightHand_BoneMat = m_pModelCom->Get_BoneMatrixPtr("SKT_RightHand");
+ m_pLeftHand_BoneMat = Get_PartObject("Goblin_Sword_L")->Get_Component()->Get_BoneMatrixPtr("Bone");
+ m_pRightHand_BoneMat = Get_PartObject("Goblin_Sword_R")->Get_Component()->Get_BoneMatrixPtr("Bone");
m_pModelCom->Set_AnimationIndex(5);
m_pModelCom->Play_Animation(0, m_pTransformCom);
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Attack.cpp b/Jusin154_Team3D/Client/Private/Goblin_Attack.cpp
index b5ad316d3..6d621219e 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Attack.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Attack.cpp
@@ -6,6 +6,7 @@
#include "Wand.h"
#include "Player.h"
#include "Goblin_BattleAxe.h"
+#include "TrailObject.h"
CGoblin_Attack::CGoblin_Attack(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
@@ -44,9 +45,20 @@ HRESULT CGoblin_Attack::Initialize(void* pArg)
m_pPT1 = Get_PartObject("Goblin_Particle");
m_pPT2 = Get_PartObject("Goblin_Particle2");
+ m_pAttack_Trail = Get_PartObject();
+ SAFE_ADDREF(m_pPT1);
+ SAFE_ADDREF(m_pPT2);
+ SAFE_ADDREF(m_pAttack_Trail);
m_fDuration = 2.f;
+
+ m_Events.emplace(1.2f, [&]() {
+
+ m_pAttack_Trail->SetDissolve(true);
+
+ });
+
return S_OK;
}
@@ -66,9 +78,14 @@ void CGoblin_Attack::Update(_float fTimeDelta)
Update_Event(fTimeDelta);
- m_pPT1->Get_Component()->Set_WorldMatrix(XMLoadFloat4x4(&m_vMat));
- m_pPT2->Get_Component()->Set_WorldMatrix(XMLoadFloat4x4(&m_vMat));
+ _matrix WorldMat = m_pOwner->Get_Owner()->Get_Component()->Get_XMWorldMatrix();
+ _matrix BoneMat = XMLoadFloat4x4(m_vMat);
+
+ m_pPT1->Get_Component()->Set_State(STATE::POSITION, BoneMat.r[3]);
+ m_pPT2->Get_Component()->Set_State(STATE::POSITION, BoneMat.r[3]);
+
+ m_pAttack_Trail->Trail_Update(BoneMat, fTimeDelta);
}
@@ -91,17 +108,20 @@ HRESULT CGoblin_Attack::Pre_Setting(CGameObject* pObject, void* pArg)
//
//_float4x4 AxeMat = pAxe->Get_AxeMatrix();
- m_vMat = *static_cast<_float4x4*>(pArg);
+ m_vMat = static_cast<_float4x4*>(pArg);
//m_pPT1->Get_Component()->Set_WorldMatrix(XMLoadFloat4x4(&AxeMat));
//m_pPT2->Get_Component()->Set_WorldMatrix(XMLoadFloat4x4(&AxeMat));
- m_pPT1->Get_Component()->Set_WorldMatrix(XMLoadFloat4x4(&m_vMat));
- m_pPT2->Get_Component()->Set_WorldMatrix(XMLoadFloat4x4(&m_vMat));
+ _matrix BoneMat = XMLoadFloat4x4(m_vMat);
+
+ m_pPT1->Get_Component()->Set_State(STATE::POSITION, BoneMat.r[3]);
+ m_pPT2->Get_Component()->Set_State(STATE::POSITION, BoneMat.r[3]);
m_pPT1->Set_Visible(true);
m_pPT2->Set_Visible(true);
-
+ m_pAttack_Trail->Set_Visible(true);
+ m_pAttack_Trail->SetDissolve(false);
return S_OK;
}
@@ -174,6 +194,10 @@ void CGoblin_Attack::Free()
{
__super::Free();
+ SAFE_RELEASE(m_pPT1);
+ SAFE_RELEASE(m_pPT2);
+ SAFE_RELEASE(m_pAttack_Trail);
+
}
#ifdef _DEBUG
void CGoblin_Attack::Describe_Entity()
diff --git a/Jusin154_Team3D/Client/Private/Goblin_BattleAxe.cpp b/Jusin154_Team3D/Client/Private/Goblin_BattleAxe.cpp
index db38f0cc6..e2c697866 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_BattleAxe.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_BattleAxe.cpp
@@ -44,10 +44,12 @@ HRESULT CGoblin_BattleAxe::Initialize(void* pArg)
void CGoblin_BattleAxe::Priority_Update(_float fTimeDelta)
{
+
if (m_bVisible) {
XMStoreFloat4(&m_vStartAxePos, Get_WorldPostion());
XMStoreFloat4(&m_vStartGripPos, Get_WorldPostion());
}
+
m_pModelCom->Combined_BoneMatrix();
_matrix socketMatrix = {};
@@ -58,7 +60,14 @@ void CGoblin_BattleAxe::Priority_Update(_float fTimeDelta)
}
m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()));
- XMStoreFloat4x4(&m_vAxeMat, XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("Bone")) * m_pTransformCom->Get_XMWorldMatrix());
+
+ _matrix BoneMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("Bone"));
+
+ for (int i = 0; i < 3; ++i) {
+ BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
+ }
+
+ XMStoreFloat4x4(&m_vAxeMat, BoneMat * m_pTransformCom->Get_XMWorldMatrix());
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Dagger.cpp b/Jusin154_Team3D/Client/Private/Goblin_Dagger.cpp
index df3b190cc..2748120f7 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Dagger.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Dagger.cpp
@@ -39,6 +39,7 @@ HRESULT CGoblin_Dagger::Initialize(void* pArg)
void CGoblin_Dagger::Priority_Update(_float fTimeDelta)
{
XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION));
+ m_pModelCom->Combined_BoneMatrix();
if (m_bAttach)
{
_matrix socketMatrix = {};
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
index c69945aba..1164bb08e 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
@@ -66,8 +66,12 @@ HRESULT CGoblin_Mage::Initialize(void* pArg)
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
SAFE_ADDREF(m_pEffectPool);
- m_pCharacter_Controller->Set_Position(XMVectorSet(-52.f, -2.f, -4.f, 1.f));
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-52.f, -2.f, -4.f, 1.f));
+ MONSTERDESC* pDesc = static_cast(pArg);
+
+ _vector vPos = XMLoadFloat4(&pDesc->vPos);
+ m_pTransformCom->Set_State(STATE::POSITION, vPos);
+ m_pCharacter_Controller->Set_Position(vPos);
+ m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotQ.x), XMConvertToRadians(pDesc->vRotQ.y), XMConvertToRadians(pDesc->vRotQ.z));
m_pInfoInstance->Add_Event(TEXT("Goblin_Fear"),
[this](void* p)
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
index e136496cc..4564ab36d 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp
@@ -219,6 +219,12 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
m_bVisible = false;
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
break;
+ case ENUM_CLASS(SKILL_TYPE::STUPEFY):
+ 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;
}
}
else
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Sword.cpp b/Jusin154_Team3D/Client/Private/Goblin_Sword.cpp
index 04566bd26..37ad6d390 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Sword.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Sword.cpp
@@ -39,6 +39,7 @@ HRESULT CGoblin_Sword::Initialize(void* pArg)
void CGoblin_Sword::Priority_Update(_float fTimeDelta)
{
+ m_pModelCom->Combined_BoneMatrix();
XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION));
@@ -63,8 +64,6 @@ void CGoblin_Sword::Update(_float fTimeDelta)
void CGoblin_Sword::Late_Update(_float fTimeDelta)
{
-
-
_matrix socketMatrix = {};
socketMatrix = XMLoadFloat4x4(m_pSocketMatrices);
diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
index 63f22ab9e..6533fc22f 100644
--- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
+++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp
@@ -93,10 +93,26 @@ void CHuman_Duelist::Update(_float fTimeDelta)
m_pModelCom->Play_Animation(fTimeDelta *m_fEasing, m_pTransformCom);
- Play_Event();
-
Check_BattleLose();
+ if (m_bBattleEnd)
+ {
+ m_fBattleEndTimer += fTimeDelta;
+ if (m_fBattleEndTimer >= 3.f)
+ {
+ m_fBattleEndTimer = 0.f;
+ CPlayer* pPlayer = dynamic_cast(m_pInfoInstance->Get_NearestPlayerAlly(Get_WorldPostion()).first);
+
+ if (pPlayer == nullptr)
+ return;
+
+ pPlayer->ExitBattle();
+
+ m_bBattleEnd = false;
+ }
+ }
+ Play_Event();
+
__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
@@ -527,12 +543,8 @@ void CHuman_Duelist::Check_BattleLose()
{
m_pEffectPool->Use_Skill(SKILL_TYPE::BOX_SPLESH, this);
m_bBattle = false;
- CPlayer* pPlayer = dynamic_cast(m_pInfoInstance->Get_NearestPlayerAlly(Get_WorldPostion()).first);
- if (pPlayer == nullptr)
- return;
-
- pPlayer->ExitBattle();
+ m_bBattleEnd = true;
}
}
}
diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
index b9cf7d5aa..b7b5f8e0b 100644
--- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp
+++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp
@@ -42,7 +42,7 @@ void CInfoInstance::Change_Level()
m_pInteractiveInfo->Change_Level();
m_pEffectInfo->Change_Level();
// UI_Event.clear();
- m_pCutSceneInfo->Load_CutScenes();
+ m_pCutSceneInfo->Clear_AllEvents();
}
CStat* CInfoInstance::Get_PlayerStatPtr()
@@ -184,6 +184,11 @@ HRESULT CInfoInstance::Load_Npc()
{
return m_pMapInfo->Load_Npc();
}
+
+HRESULT CInfoInstance::Load_Goblin()
+{
+ return m_pMapInfo->Load_Goblin();
+}
#pragma endregion
#pragma region EFFECT_INFO
diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp
index d49249dc7..8b7df7a50 100644
--- a/Jusin154_Team3D/Client/Private/Level_Field.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp
@@ -63,8 +63,8 @@ HRESULT CLevel_Field::Initialize(void* pArg)
if (FAILED(Ready_Layer_Monster())) {
return E_FAIL;
}
-
- m_pInfoInstance->Load_CutScenes();
+ ResetLevel_Environment();
+
m_bLevel = true;
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
@@ -84,7 +84,6 @@ void CLevel_Field::Update(_float fTimeDelta)
Describe_Entity();
#endif // _DEBUG
-
if (m_pGameInstance->Key_Up(DIK_F1))
{
//m_pGameInstance->Set_LevelToChange();
@@ -99,6 +98,11 @@ void CLevel_Field::Update(_float fTimeDelta)
}
}
+ if (m_pGameInstance->Key_Up(DIK_7))
+ {
+ _string strCutSceneName = "RanrokIntro";
+ m_pInfoInstance->Active_Event(strCutSceneName);
+ }
if (m_bLevel != m_bCurrentLevel)
{
@@ -174,9 +178,13 @@ HRESULT CLevel_Field::Ready_Lights()
return E_FAIL;
}
- _float4 vDiffuse = _float4(0.745f, 0.797f, 0.8f, 0.f);
- _float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
- _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
+ // _float4 vDiffuse = _float4(0.745f, 0.797f, 0.8f, 0.f);
+ // _float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
+ // _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
+
+ _float4 vDiffuse = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1E1C1B3C);
+ _float4 vAmbient = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1A191900);
+ _float4 vSpecular = CMyTools::ColorRGBA_HEXtoFLOAT4(0x12121200);
#if gimch || 진우
vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f);
@@ -184,10 +192,10 @@ HRESULT CLevel_Field::Ready_Lights()
vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
#endif // gimch
-
+
m_pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular);
-
-
+ m_pLight->Get_Component()->RotationQ(XMVectorSet(-0.574f, -0.409f, 0.584f, -0.402f));
+ m_pLight->Get_Component()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
return S_OK;
}
@@ -370,6 +378,15 @@ HRESULT CLevel_Field::Reday_Layer_EffectPool()
void CLevel_Field::ResetLevel_Environment()
{
+ _float4 vDiffuse = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1E1C1B3C);
+ _float4 vAmbient = CMyTools::ColorRGBA_HEXtoFLOAT4(0x1A191900);
+ _float4 vSpecular = CMyTools::ColorRGBA_HEXtoFLOAT4(0x12121200);
+ m_pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular);
+ m_pLight->Get_Component()->RotationQ(XMVectorSet(-0.574f, -0.409f, 0.584f, -0.402f));
+ m_pLight->Get_Component()->Translation(XMVectorSet(0.f, 0.f, 0.f, 1.f));
+ m_pGameInstance->Set_Environment(_float3(0.585f, 0.182f, 2.83f), _float(2.f), _float2(0.075f, 0.150f), _float2(2.300f, 10.000f), _float4(0.0360f, 0.0326f, 0.0057f, 0.0018f), _float4(2.0000f, 1.f, 1.f, 1.f), _float3(0.f, 0.f, -100.f), _float3(0.f, 0.f, 100.f));
+ m_pGameInstance->Setting_Volumetirc(1.743f, 0.0001f, 0.2000f, 1.050f, 0.04862f);
+ m_pLight->Capture_PreShadow();
}
pair> CLevel_Field::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
@@ -382,7 +399,7 @@ pair> CLevel_Field::Create(ID3D11Device* pDevice, ID3D
SAFE_RELEASE(pInstance);
}
- return { pInstance, [pInstance]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound(); } };
+ return { pInstance, [pInstance]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound(); pInstance->m_pInfoInstance->Load_CutScenes(); } };
}
void CLevel_Field::Free()
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index c0bcca4b1..f8272f714 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -110,6 +110,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
return E_FAIL;
}
+
if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) {
return E_FAIL;
}
@@ -125,7 +126,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
_bool bLoadNPC = { true };
#ifdef _DEBUG
#ifdef 기무리
- bLoadNPC = false;
+ bLoadNPC = true;
#endif
#endif // _DEBUG
if (true == bLoadNPC) {
@@ -153,6 +154,8 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::BGM_0, SD_CHANNEL_GROUP::BGM, true, 0.6f);
+
return S_OK;
}
@@ -164,7 +167,25 @@ HRESULT CLevel_GamePlay::Initialize()
void CLevel_GamePlay::Update(_float fTimeDelta)
{
+ _bool bStartCinematic = { true };
+#ifdef _DEBUG
+#ifdef 기무리
+ bStartCinematic = true;
+#elif 진우
+ bStartCinematic = true;
+#elif Bin
+ bStartCinematic = false;
+#elif gimchi
+ bStartCinematic = false;
+#endif
+#endif // _DEBUG
+ if (bStartCinematic && false == m_bIntroCinematic) {
+ m_bIntroCinematic = true;
+ bStartCinematic = false;
+ _string strCutSceneName = "CarriageIntro";
+ m_pInfoInstance->Active_Event(strCutSceneName);
+ }
if (m_pGameInstance->Key_Pressing(DIK_0)) {
if (m_pGameInstance->Key_Up(DIK_1))
{
@@ -335,6 +356,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
isReady_Background = false;
isReady_Hogsmeade = false;
isReady_Hogwart = false;
+ m_pInfoInstance->Load_ReparoObjects("Reparo_Data");
#endif //
#ifdef 진우
isReady_Background = false;
@@ -342,9 +364,9 @@ HRESULT CLevel_GamePlay::Ready_Background()
isReady_Hogwart = false;
#endif //
#ifdef 기무리
- isReady_Background = false;
- isReady_Hogsmeade = false;
- isReady_Hogwart = false;
+ isReady_Background = true;
+ isReady_Hogsmeade = true;
+ isReady_Hogwart = true;
#endif //
#ifdef 나
isReady_Background = false;
@@ -353,8 +375,6 @@ HRESULT CLevel_GamePlay::Ready_Background()
#endif //
#endif // _DEBUG
-
-
/* Map Containters */
if (false == isReady_Background)
{
@@ -699,6 +719,14 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
return E_FAIL;
+ /* TeaShop_Door_A */
+ Desc.isShake = false;
+ Desc.bEnableRigidbody = true;
+ Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A";
+ Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Teashop_Door.bin";
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
+ return E_FAIL;
+
/* OakTree_TallA */
Desc.isShake = false;
Desc.bEnableRigidbody = true;
@@ -919,7 +947,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
Camera_Desc.fNear = 0.3f;
Camera_Desc.fFar = 500.f;
Camera_Desc.pCameraKey = CAMERA_CINEMATIC;
- Camera_Desc.iPriority = 52;
+ Camera_Desc.iPriority = 54;
Camera_Desc.bEnableTransitionLerp = false;
Camera_Desc.bEnableLookLerp = false;
Camera_Desc.bEnableFollowLerp = false;
@@ -988,11 +1016,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Item(const _wstring& strLayerTag)
HRESULT CLevel_GamePlay::Ready_Layer_ReparoObject(const _wstring& strLayerTag)
{
- //for (_uint i = 0; i < 1; ++i) {
- // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
- // return E_FAIL;
- // }
- //}
+ /*for (_uint i = 0; i < 1; ++i) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
+ return E_FAIL;
+ }
+ }*/
return S_OK;
}
@@ -1017,7 +1045,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
isLoad_Monster = true;
#endif //
#ifdef 기무리
- isLoad_Monster = false;
+ isLoad_Monster = true;
#endif //
#ifdef 나
isLoad_Monster = true;
@@ -1027,38 +1055,21 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
#endif // Bin
#endif // _DEBUG
if (true == isLoad_Monster) {
- for (_uint i = 0; i < 1; ++i)
- {
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
- return E_FAIL;
- }
- }
- for (_uint i = 0; i < 1; ++i)
- {
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
- return E_FAIL;
- }
- }
- for (_uint i = 0; i < 1; ++i)
- {
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
- return E_FAIL;
- }
- }
+ m_pInfoInstance->Load_Goblin();
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
return E_FAIL;
}
- /* CRanrok::RANROKDESC RanrokDesc = {};
- RanrokDesc.vPos = _float4(-44.704f, 6.860f, 16.071f, 1.f);
- RanrokDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER,&RanrokDesc))) {
- return E_FAIL;
- }*/
+ //CRanrok::RANROKDESC RanrokDesc = {};
+ //RanrokDesc.vPos = _float4(-44.704f, 6.860f, 16.071f, 1.f);
+ //RanrokDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER,&RanrokDesc))) {
+ // return E_FAIL;
+ //}
@@ -1118,7 +1129,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
{
_bool isLoad_NPC = { true };
_bool isLoad_RandomNPC = { true };
- _bool isRandomPosition = { true };
+ _bool isRandomPosition = { false };
#ifdef _DEBUG
#ifdef gimch
isLoad_NPC = true;
@@ -1130,8 +1141,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
isLoad_NPC = false;
#endif //
#ifdef 기무리
- isLoad_NPC = false;
- isLoad_RandomNPC = false;
+ isLoad_NPC = true;
+ isLoad_RandomNPC = true;
#endif //
#ifdef 나
isLoad_RandomNPC = true;
diff --git a/Jusin154_Team3D/Client/Private/Level_Loading.cpp b/Jusin154_Team3D/Client/Private/Level_Loading.cpp
index 0cef5f61a..8a9049abe 100644
--- a/Jusin154_Team3D/Client/Private/Level_Loading.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_Loading.cpp
@@ -11,6 +11,7 @@
#include "Intro_Image.h"
#include "Intro_BG.h"
#include "Loding_Panel.h"
+#include "InfoInstance.h"
CLevel_Loading::CLevel_Loading(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
@@ -31,6 +32,7 @@ HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID)
}
m_bNextLevel = false;
m_fTimeDelta = 1.2f;
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp
index ec346f614..639653c91 100644
--- a/Jusin154_Team3D/Client/Private/Levioso.cpp
+++ b/Jusin154_Team3D/Client/Private/Levioso.cpp
@@ -160,7 +160,7 @@ 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/LeviosoSide.cpp b/Jusin154_Team3D/Client/Private/LeviosoSide.cpp
index 9c0bbddcf..2f233c1da 100644
--- a/Jusin154_Team3D/Client/Private/LeviosoSide.cpp
+++ b/Jusin154_Team3D/Client/Private/LeviosoSide.cpp
@@ -107,6 +107,7 @@ HRESULT CLeviosoSide::Pre_Setting(CGameObject* pObject, void* pArg)
m_pWandLight->Set_Visible(true);
+ m_pWandTrail->SetDissolve(false);
/*트레일 초기화 */
m_pWandTrail->Set_Visible(true);
diff --git a/Jusin154_Team3D/Client/Private/Lightning.cpp b/Jusin154_Team3D/Client/Private/Lightning.cpp
index 3f41eee83..45adeead1 100644
--- a/Jusin154_Team3D/Client/Private/Lightning.cpp
+++ b/Jusin154_Team3D/Client/Private/Lightning.cpp
@@ -123,7 +123,7 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg)
{ /* 대상 위치 지정 */
m_pInfoInstance->Get_LockOnInfo(m_Info);
- if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) {
+ if (nullptr != m_Info.pUnit) {
_vector vLockOnPos = Get_LockOnPos(m_Info);
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 367fd1845..1840ee53b 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -191,6 +191,7 @@
#include "AccioSide.h"
#include "TransformationSide.h"
#include "AvadakedavraSide.h"
+#include "Reparo.h"
#include "Protego_Hit.h"
#include "Goblin_ProtegoHit.h"
@@ -374,9 +375,82 @@ HRESULT CLoader::Loading_For_Logo()
m_strMessage = TEXT("사운드를(을) 로딩 중 입니다.");
+ const _tchar* pSoundFilePath = TEXT("../Bin/Resources/Sounds/");
+
+ for (int iIndex = 0; iIndex < ENUM_CLASS(SOUND::SD_KIND::END); ++iIndex) {
+ if (FAILED(m_pGameInstance->Load_Sound((SOUND::SD_KIND)iIndex, (_wstring(pSoundFilePath) + SOUND::SD_PATH::SD_KIND_PATHS[iIndex]).c_str(), FMOD_DEFAULT))) {
+ return E_FAIL;
+ }
+ }
+
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
+
+#ifdef 기무리
+ m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"),
+ VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"),
+ VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_MODEL,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"),
+ VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"),
+ VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_VTXPOS,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"),
+ VTXPOS::Elements, VTXPOS::iNumElements)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"),
+ VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"),
+ VTXMESH::Elements, VTXMESH::iNumElements)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_ANIMMESH,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"),
+ VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_POSTEX,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"),
+ VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NORTEX,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"),
+ VTXNORTEX::Elements, VTXNORTEX::iNumElements)))) {
+ return E_FAIL;
+ }
+
+#endif // 기무리
+
#if 진우
#pragma region SHADER
vector*>> jobMapShaders;
@@ -484,9 +558,9 @@ HRESULT CLoader::Loading_For_GamePlay()
#endif //
#ifdef 기무리
isLoad_Background = true;
- isLoad_Hogwart = false;
+ isLoad_Hogwart = true;
isLoad_UI_SEQUANTIAL = false;
- isLoad_NPC = false;
+ isLoad_NPC = true;
isLoad_Monster = true;
#endif //
#ifdef 나
@@ -501,6 +575,15 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_UI_SEQUANTIAL = false;
#endif // Bin
#endif // _DEBUG
+#ifndef _DEBUG
+#ifdef gimch
+ isLoad_Background = true;
+ isLoad_Hogwart = false;
+ isLoad_UI_SEQUANTIAL = false;
+ isLoad_NPC = true;
+ isLoad_DataClassroom = false;
+#endif // gimch
+#endif //
#pragma region MAP_MODELS
vector*>> jobMapModels;
@@ -844,7 +927,7 @@ HRESULT CLoader::Loading_For_GamePlay()
}
/* ------------------------------------ HOGWART ------------------------------- */
- if(true == isLoad_Hogwart)
+ if (true == isLoad_Hogwart)
{
/* QuidditchPitch */
jobMapModels.emplace_back(Deferred_FolderLoad(
@@ -855,7 +938,7 @@ HRESULT CLoader::Loading_For_GamePlay()
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_QuidditchPitch/Static_Mesh/Collisions",
".bin", false
));
-
+
/* Greenhouse */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_Greenhouses/Static_Mesh/Kit_EXT",
@@ -1144,14 +1227,14 @@ HRESULT CLoader::Loading_For_GamePlay()
}
jobCharacterModels.emplace_back(Deferred_ModelLoad(
- MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixIdentity(),
+ MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity(),
TEXT("Prototype_Component_Box")
));
#pragma region ACTOR
jobCharacterModels.emplace_back(Deferred_ModelLoad(
- MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_Playable_Model")
));
if (true == isLoad_NPC) {
@@ -1224,11 +1307,11 @@ HRESULT CLoader::Loading_For_GamePlay()
TEXT("Prototype_Component_MudiwaOnai_Model")
));
jobCharacterModels.emplace_back(Deferred_ModelLoad(
- MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(),
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_GerboldOlivander_Model")
));
jobCharacterModels.emplace_back(Deferred_ModelLoad(
- MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
TEXT("Prototype_Component_Professor_EleazarFig_Model")
));
}
@@ -1306,6 +1389,12 @@ HRESULT CLoader::Loading_For_GamePlay()
MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/SK_WPN_GOB_SmallSword.bin", XMMatrixIdentity(),
TEXT("Prototype_Component_Goblin_Dagger_Model")
));
+
+ //jobCharacterModels.emplace_back(Deferred_ModelLoad(
+ // MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword.bin", XMMatrixIdentity(),
+ // TEXT("Prototype_Component_Goblin_Sword_Model")
+ //));
+
jobCharacterModels.emplace_back(Deferred_ModelLoad(
MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_L.bin", XMMatrixIdentity(),
TEXT("Prototype_Component_Goblin_Sword_L_Model")
@@ -1336,53 +1425,58 @@ HRESULT CLoader::Loading_For_GamePlay()
));
#pragma endregion
-
+ _bool bLoadShaderAsThread = true;
+#ifdef 기무리
+ bLoadShaderAsThread = false;
+#endif
#ifndef 진우
#pragma region SHADER
-
+ if (true == bLoadShaderAsThread)
{
- jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
- FX_UIEDITOR,
- TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
- jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
- FX_UIINSTANCE,
- TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements));
- jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
- FX_INSTANCE_MODEL,
- TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements));
- jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
- FX_INSTANCE_PROP_MODEL,
- TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements));
- jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
- FX_NPC_PBR_ANIM,
- TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
- jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
- FX_ANIMMESH,
- TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
- jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
- FX_POSTEX,
- TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
- jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
- FX_NORTEX,
- TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"), VTXNORTEX::Elements, VTXNORTEX::iNumElements));
- jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
- FX_MESH,
- TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), VTXMESH::Elements, VTXMESH::iNumElements));
- jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
- FX_VTXPOS,
- TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements));
- }
-
- {
- m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
- _uint iIndex = 0;
- for (auto& JobMapShader : jobMapShaders)
{
- pair<_wstring, CShader*>* pOut = JobMapShader.get();
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
- return E_FAIL;
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_UIEDITOR,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_UIINSTANCE,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_INSTANCE_MODEL,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_INSTANCE_PROP_MODEL,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_NPC_PBR_ANIM,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_ANIMMESH,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), VTXANIMMESH::Elements, VTXANIMMESH::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_POSTEX,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_NORTEX,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl"), VTXNORTEX::Elements, VTXNORTEX::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_MESH,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), VTXMESH::Elements, VTXMESH::iNumElements));
+ jobMapShaders.emplace_back(Deferred_ShaderLoad(m_pDevice, m_pContext,
+ FX_VTXPOS,
+ TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements));
+ }
+
+ {
+ m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
+ _uint iIndex = 0;
+ for (auto& JobMapShader : jobMapShaders)
+ {
+ pair<_wstring, CShader*>* pOut = JobMapShader.get();
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
+ return E_FAIL;
+ }
+ Safe_Delete(pOut);
}
- Safe_Delete(pOut);
}
}
#pragma endregion
@@ -2113,6 +2207,12 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Base_Effect_MRO"),
+ CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment//MasterMaterials/BaseTextures/T_Base011_MRO.dds"), 0)))) {
+ return E_FAIL;
+ }
+
#pragma region EFFECT
Asset_FileLoad("../Bin/Resources/Textures/Effect/Trails", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
@@ -2450,15 +2550,32 @@ HRESULT CLoader::Loading_For_GamePlay()
Desc.vLocalTranslation = { 0.f, 0.f, 0.f };
}
+ CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC ShieldDesc{};
+ {
+ ShieldDesc.eType = ACTOR::SPHERE;
+ ShieldDesc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
+ ShieldDesc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE };
+ ShieldDesc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
+ ShieldDesc.vMatInfo = { 0.5f, 0.5f, 0.6f };
+ ShieldDesc.fContactOffset = { 0.05f };
+ ShieldDesc.vhalfGeometryInfo = { 2.f, 2.f, 2.f };
+ ShieldDesc.fDensity = 1.f;
+ ShieldDesc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
+ ShieldDesc.eLockFlag = {};
+ ShieldDesc.vAutoDamping = { 1.f, 1.f };
+ ShieldDesc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
+ ShieldDesc.vLocalTranslation = { 0.f, 0.f, 0.f };
+ }
+
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc1{};
{
Desc1.eType = ACTOR::SPHERE;
Desc1.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
- Desc1.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE };
+ Desc1.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc1.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
Desc1.vMatInfo = { 0.5f, 0.5f, 0.6f };
Desc1.fContactOffset = { 0.05f };
- Desc1.vhalfGeometryInfo = { 2.34f, 2.34f, 2.34f };
+ Desc1.vhalfGeometryInfo = { 4.f, 4.f, 4.f };
Desc1.fDensity = 1.f;
Desc1.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
Desc1.eLockFlag = {};
@@ -2467,11 +2584,28 @@ HRESULT CLoader::Loading_For_GamePlay()
Desc1.vLocalTranslation = { 0.f, 0.f, 0.f };
}
+ CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC DESC_Ranrok_Body{};
+ {
+ DESC_Ranrok_Body.eType = ACTOR::SPHERE;
+ DESC_Ranrok_Body.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
+ DESC_Ranrok_Body.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
+ DESC_Ranrok_Body.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
+ DESC_Ranrok_Body.vMatInfo = { 0.5f, 0.5f, 0.6f };
+ DESC_Ranrok_Body.fContactOffset = { 0.05f };
+ DESC_Ranrok_Body.vhalfGeometryInfo = { 1.1f, 1.1f, 1.1f };
+ DESC_Ranrok_Body.fDensity = 1.f;
+ DESC_Ranrok_Body.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
+ DESC_Ranrok_Body.eLockFlag = {};
+ DESC_Ranrok_Body.vAutoDamping = { 1.f, 1.f };
+ DESC_Ranrok_Body.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
+ DESC_Ranrok_Body.vLocalTranslation = { 0.f, 0.f, 0.f };
+ }
+
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC PotionDesc{};
{
PotionDesc.eType = ACTOR::SPHERE;
PotionDesc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
- PotionDesc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE };
+ PotionDesc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
PotionDesc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
PotionDesc.vMatInfo = { 0.5f, 0.5f, 0.6f };
PotionDesc.fContactOffset = { 0.05f };
@@ -2508,7 +2642,13 @@ HRESULT CLoader::Loading_For_GamePlay()
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, Desc1)))) {
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, ShieldDesc)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROKPROP"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc1)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK_BODY"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, DESC_Ranrok_Body)))) {
return E_FAIL;
}
@@ -2717,6 +2857,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CReparo::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLightning::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -3493,6 +3637,19 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ /* For.Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A*/
+ {
+ CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
+ "../Bin/Resources/Models/InstanceProp/SM_HM_BLDG_TeaShop_Door_A.bin", strMaterailPath.c_str());
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A"),
+ pModel_Instance)))
+ return E_FAIL;
+
+ if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
+ return E_FAIL;
+ }
+
/* For.Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA*/
{
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
diff --git a/Jusin154_Team3D/Client/Private/Lumos.cpp b/Jusin154_Team3D/Client/Private/Lumos.cpp
index b000518ff..dd50fe67f 100644
--- a/Jusin154_Team3D/Client/Private/Lumos.cpp
+++ b/Jusin154_Team3D/Client/Private/Lumos.cpp
@@ -57,10 +57,6 @@ void CLumos::Priority_Update(_float fTimeDelta)
__super::Priority_Update(fTimeDelta);
-
-
-
-
}
void CLumos::Update(_float fTimeDelta)
@@ -105,6 +101,8 @@ HRESULT CLumos::Pre_Setting(CGameObject* pObject, void* pArg)
m_isLoop = true;
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_LUMOS, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/MageSide.cpp b/Jusin154_Team3D/Client/Private/MageSide.cpp
index af2994919..d00c5a72b 100644
--- a/Jusin154_Team3D/Client/Private/MageSide.cpp
+++ b/Jusin154_Team3D/Client/Private/MageSide.cpp
@@ -42,8 +42,11 @@ HRESULT CMageSide::Initialize(void* pArg)
m_wstrEffectName = L"MageSide";
m_pMage_PT = Get_PartObject("Mage_PT0");
+ m_pMage_Fire = Get_PartObject("Mage_Fire");
+
m_pMage_Trail = Get_PartObject("Mage_Trail");
+
SAFE_ADDREF(m_pMage_PT);
SAFE_ADDREF(m_pMage_Trail);
@@ -52,6 +55,7 @@ HRESULT CMageSide::Initialize(void* pArg)
m_Events.emplace(3.f, [&]() {
m_isParticleEnd = true;
m_pMage_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+ m_pMage_Fire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
});
@@ -87,8 +91,12 @@ void CMageSide::Update(_float fTimeDelta)
_matrix CombinedMat = BoneMat * WorldMat;
- if(m_isParticleEnd == false)
+ if (m_isParticleEnd == false)
+ {
m_pMage_PT->Get_Component()->Set_State(STATE::POSITION, CombinedMat.r[3]);
+ m_pMage_Fire->Get_Component()->Set_State(STATE::POSITION, CombinedMat.r[3]);
+ }
+
m_pMage_Trail->Trail_Update(CombinedMat, fTimeDelta);
}
@@ -116,9 +124,11 @@ HRESULT CMageSide::Pre_Setting(CGameObject* pObject, void* pArg)
m_pMage_Trail->Get_Component()->Reset_Trail();
m_pMage_PT->Get_Component()->Set_State(STATE::POSITION, CombinedMat.r[3]);
+ m_pMage_Fire->Get_Component()->Set_State(STATE::POSITION, CombinedMat.r[3]);
m_pMage_PT->Set_Visible(true);
m_pMage_Trail->Set_Visible(true);
+ m_pMage_Fire->Set_Visible(true);
m_isParticleEnd = false;
@@ -197,6 +207,7 @@ void CMageSide::Free()
SAFE_RELEASE(m_pMage_PT);
SAFE_RELEASE(m_pMage_Trail);
+ SAFE_RELEASE(m_pMage_Fire);
}
#ifdef _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp
index 16882de34..cbfda2425 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp
@@ -250,6 +250,7 @@ void CMapElement_Cave::Free()
__super::Free();
SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pTriggerBox);
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
SAFE_RELEASE(m_RigidBodies[i]);
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
index 9c2155651..96e04adb8 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
@@ -401,6 +401,7 @@ ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _f
m_bHit = true;
}
break;
+ case PXOBJECT::RANROK_BODY:
case PXOBJECT::RANROK:
{
pUserData->pOwner->OnCollision(this, &tagCollInfo);
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
index dd61188d2..1c45ee805 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
@@ -69,6 +69,7 @@ void CMapElement_Static::Late_Update(_float fTimeDelta)
if(m_bVisible)
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
}
+ Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(XMLoadFloat3(&m_vWorldCenterPosition), m_fRadius));
}
HRESULT CMapElement_Static::Render()
@@ -96,6 +97,32 @@ HRESULT CMapElement_Static::Render()
return S_OK;
}
+HRESULT CMapElement_Static::Render_Shadow(SHADOW eType)
+{
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
+ return E_FAIL;
+ }
+ _uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
+
+ for (_uint i = 0; i < iNumMeshes; i++)
+ {
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::SHADOW)))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
HRESULT CMapElement_Static::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
diff --git a/Jusin154_Team3D/Client/Private/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp
index 6811e12f8..074e2c48a 100644
--- a/Jusin154_Team3D/Client/Private/MapInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp
@@ -21,6 +21,9 @@
#include "RandomNpc.h"
#include "MapElement_Cave.h"
#include "ReparoObject.h"
+#include "Goblin.h"
+#include "Goblin_Mage.h"
+#include "Goblin_Assassin.h"
CMapInfo::CMapInfo()
{
@@ -943,6 +946,74 @@ HRESULT CMapInfo::Load_Npc()
return S_OK;
}
+HRESULT CMapInfo::Load_Goblin()
+{
+ tinyxml2::XMLDocument xmlDoc;
+
+ string strPath = "../Bin/Resources/Data/Map/Monster/Goblin_Data.xml";
+
+ if (tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))
+ return E_FAIL;
+
+ tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("GOBLIN");
+ if (nullptr == root)
+ {
+ MSG_BOX("Failed to Find root");
+ return E_FAIL;
+ }
+
+ for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
+ {
+ CMonster::MONSTERDESC MonsterDesc{};
+
+ const char* pName = Object->Attribute("Name");
+ if (nullptr == pName)
+ continue;
+
+ string strName = pName;
+
+
+ if (auto* Rotation = Object->FirstChildElement("RotQ"))
+ {
+ Rotation->QueryFloatAttribute("X", &MonsterDesc.vRotQ.x);
+ Rotation->QueryFloatAttribute("Y", &MonsterDesc.vRotQ.y);
+ Rotation->QueryFloatAttribute("Z", &MonsterDesc.vRotQ.z);
+ MonsterDesc.vRotQ.w = 1.f;
+ }
+
+ if (auto* Position = Object->FirstChildElement("Trans"))
+ {
+ Position->QueryFloatAttribute("X", &MonsterDesc.vPos.x);
+ Position->QueryFloatAttribute("Y", &MonsterDesc.vPos.y);
+ Position->QueryFloatAttribute("Z", &MonsterDesc.vPos.z);
+ MonsterDesc.vPos.w = 1.f;
+ }
+
+
+ if (strName == "Goblin_Mage")
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(
+ g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &MonsterDesc)))
+ return E_FAIL;
+ }
+ else if (strName == "Goblin_Assassin")
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(
+ g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &MonsterDesc)))
+ return E_FAIL;
+ }
+ else if (strName == "Goblin")
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(
+ g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &MonsterDesc)))
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
+
+
HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
m_pGameInstance = CGameInstance::GetInstance();
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
index 3f53662f5..985e44d08 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
@@ -62,6 +62,7 @@ HRESULT CMapObject_Render::Initialize(void* pArg)
ReadyForPhysX();
ConvertToPhysX();
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp b/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp
index 2f3c247e5..7d4277241 100644
--- a/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp
+++ b/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp
@@ -165,6 +165,16 @@ void CNPC_EleazarFig::OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _
m_iEntered = 4;
}
}
+void CNPC_EleazarFig::Set_Pos(_vector vPos)
+{
+ _float fRandX = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
+ _float fRandY= m_pGameInstance->Real_Random_Float(-3.f, 3.f);
+
+ _vector Offset = XMVectorSet(fRandX, 0.f, fRandY, 0.f);
+ vPos += Offset;
+ m_pCharacter_Controller->Set_Position(vPos);
+}
+
HRESULT CNPC_EleazarFig::Initialize_Prototype()
{
return S_OK;
diff --git a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
index c5805d190..310e1b16a 100644
--- a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
+++ b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
@@ -211,7 +211,16 @@ HRESULT CNPC_Ollivander::Bind_ShaderParameters(_uint iMeshOrder)
iColorMixerMethod = 1;
}
break;
+ case 25:
+ {
+ bUseColorMixer = true;
+ iColorParam = 0x2E2E2E;
+ fMixerFactor = 0.9f;
+ iColorMixerMethod = 1;
}
+ break;
+ }
+
if (true == bUseColorMixer) {
if (FAILED(m_pShaderCom->Bind_RawValue("g_iPackedBlendColor", &iColorParam, sizeof(_uint)))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp
index 6fdb6e2ed..371e2787f 100644
--- a/Jusin154_Team3D/Client/Private/NomalJap.cpp
+++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp
@@ -127,20 +127,6 @@ void CNomalJap::Late_Update(_float fTimeDelta)
if (false == m_bVisible) {
return;
}
- //if (false == m_bHit) {
- // _vector vStartPos = XMLoadFloat4(&m_vStartPos);
- // _vector vEndPos = m_pProjectile->Get_WorldPostion();
-
- // if (false == m_bHit) {
- // _vector vStartPos = XMLoadFloat4(&m_vStartPos);
- // _vector vEndPos = XMLoadFloat4(&m_vEndPos);
- // if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
- // {
- // ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
- // OnCollision(this, &CollisionInfo);
- // }
- // }
- //}
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
@@ -148,6 +134,7 @@ void CNomalJap::Late_Update(_float fTimeDelta)
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
OnCollision(this, &CollisionInfo);
+
}
__super::Late_Update(fTimeDelta);
@@ -190,7 +177,6 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg)
{ /* 대상 위치 지정 */
- m_bHit = false;
m_pInfoInstance->Get_LockOnInfo(m_Info);
if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) {
XMStoreFloat4(&m_vTargetPos, Get_LockOnPos(m_Info));
@@ -240,6 +226,11 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg)
m_fAccZigZagTime = 0.f;
+#pragma region SOUND_TEST
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::SP_JAP_13, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+#pragma endregion
+
+
return S_OK;
}
@@ -337,6 +328,7 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
m_pJapFire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f));
}
+
m_bHitShield = false;
}
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 4c4bfe1fa..82504467e 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -257,8 +257,8 @@ HRESULT CPlayer::Render()
#ifdef _DEBUG
#ifdef 기무리
//Render_CameraCoordinateSystem();
+ m_pCharacter_Controller->Render();
#endif // 기무리
- //m_pCharacter_Controller->Render();
#endif // _DEBUG
}
@@ -550,14 +550,13 @@ void CPlayer::Trigger(CTimeSocket& Socket)
m_pTransformCom->RotationQ(pContents->pxTransform.q);
m_pTransformCom->RewindMomentum();
} break;
- }
- break;
case TIMESOCKET_FUNC::TRANSLATION_LERP:
{
} break;
case TIMESOCKET_FUNC::SET_ANIMSTATE:
{
+
} break;
case TIMESOCKET_FUNC::SET_FSMSTATE:
{
@@ -566,6 +565,10 @@ void CPlayer::Trigger(CTimeSocket& Socket)
}
else if (pContents->vFlags.b[1]) {
m_pFSM->Change_State(FSMSTATE::IDLE);
+
+ if (pContents->vParam_11.x == 1.f) {
+ m_pModelCom->Set_AnimationIndex(m_Animation[STATEANIM::SPAWN].first, m_Animation[STATEANIM::SPAWN].second);
+ }
}
} break;
case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
@@ -737,23 +740,6 @@ HRESULT CPlayer::Ready_Parts()
return E_FAIL;
}
- //m_pModelCom->Play_Animation()
- //XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("broomSocket"));
-#ifdef 기무리
-
- //{
- // CPlayerRobe::PlayerRobe_DESC Desc{};
- // Desc.pModel = m_pModelCom;
- // Desc.pParentTransform = m_pTransformCom;
- // Desc.pSocketMatrix = m_pModelCom->Get_BoneMatrixPtr("Hips_Cloth");
- // if (FAILED(Add_PartObject("RobePart", g_iStaticLevel, &m_pRobePart, &Desc))) {
- // assert(false);
- // }
- //}
-
-#endif // 기무리
-
-
return S_OK;
}
@@ -806,64 +792,6 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
fMixerFactor = 0.5f;
iColorMixerMethod = 1;
break;
- case PLAYER_MESH_ORDER::SHOES:
- bUseColorMixer = true;
- iColorParam = 0x614242;
- fMixerFactor = 0.5f;
- iColorMixerMethod = 1;
- break;
- case PLAYER_MESH_ORDER::UPPER:
- bUseColorMixer = true;
- iColorParam = 0xBFAC29;
- fMixerFactor = 0.658333f;
- iColorMixerMethod = 1;
- break;
- //#ifdef 기무리
- //
- // case PLAYER_MESH_ORDER::ROBE_CLOTH:
- // {
- // CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
- // _uint MeshBoneCount = pMesh->Get_NumBone();
- //
- // for (_uint i = 0; i < MeshBoneCount; ++i)
- // {
- // XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity());
- // }
- //
- // _uint temp = 0;
- // vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
- // vector<_int> boneIndices = pMesh->Get_BoneIndices();
- //
- // for (_uint i = 0; i < MeshBoneCount; ++i)
- // {
- // _uint global = boneIndices[i];
- // if (global == 38)
- // continue;
- // if (globalMask[global] == 1)
- // {
- // SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++);
- // }
- // }
- //
- // GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
- //
- // if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {
- // return E_FAIL;
- // }
- //
- //
- // if (FAILED(m_pShaderCom->Bind_Matrices(
- // "g_BoneMatrices",
- // SkinMatrices.data(),
- // (_int)SkinMatrices.size()
- // )))
- // {
- // return E_FAIL;
- // }
- // }
- // break;
- //#endif // _DEBUG
-
default:
break;
}
@@ -893,10 +821,6 @@ void CPlayer::CheckMouseInput()
m_pInfoInstance->Mouse_Input(ENUM_CLASS(KEYINPUT::DIM_RBUTTON_UP));
m_bAim = false;
}
- if (m_pGameInstance->Key_Up(DIK_U))
- {
- m_pFSM->Change_State(FSMSTATE::CUTSCENE);
- }
}
void CPlayer::ReLockOnTarget()
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index 3634dadb7..ecb439a79 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -269,7 +269,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
}
return E_FAIL;
}
- else {
+ else if(iCurrentAnimIndex != m_Animation[STATEANIM::SPAWN].first) {
if (SUCCEEDED(InputAim()))
{
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) {
@@ -358,7 +358,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
return S_OK;
}
- if (!SUCCEEDED(InputAim()))
+ if (!SUCCEEDED(InputAim()) && iCurrentAnimIndex != m_Animation[STATEANIM::SPAWN].first)
{
if (m_pModelCom->IsFinishedAnim())
{
@@ -394,7 +394,8 @@ HRESULT CPlayer::Behavior_CutSceneExitCheck(_float fTimeDelta)
{
m_pTransformCom->Set_State(STATE::POSITION, m_pCarriage->Get_SocketWorldMatrix(CThestralCarriage::CARRIAGE_SOCKET::FRONT_RIGHT).r[3]);
m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
- m_pTransformCom->RotationQ(XMQuaternionRotationAxis(XMVectorSet(0.f, -1.f, 0.f, 0.f), XMConvertToRadians(90.f)));
+ m_pTransformCom->RotationQ(XMQuaternionIdentity());
+ //m_pTransformCom->RotationQ(XMQuaternionRotationAxis(XMVectorSet(0.f, -1.f, 0.f, 0.f), XMConvertToRadians(90.f)));
}
return S_OK;
@@ -425,6 +426,7 @@ void CPlayer::Behavior_MoveEnter()
m_bWalkToggle = false;
pairAnimInfo = m_Animation[STATEANIM::SPRINT];
m_bRatio = true;
+ Get_PartObject()->Set_Visible(false);
}
else if (true == m_bWalkToggle) {
m_pFSM->Enable_State(FSMSTATE::WALK);
@@ -469,6 +471,7 @@ void CPlayer::Behavior_MoveEnter()
m_pFSM->Enable_State(FSMSTATE::SPRINT);
m_bWalkToggle = false;
pairAnimInfo = m_Animation[STATEANIM::SPRINT];
+ Get_PartObject()->Set_Visible(false);
}
else if (true == m_bWalkToggle) {
@@ -548,6 +551,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
m_pFSM->Enable_State(FSMSTATE::SPRINT);
m_pFSM->Disable_State(FSMSTATE::WALK);
pairAnimInfo = m_Animation[STATEANIM::SPRINT];
+ Get_PartObject()->Set_Visible(false);
}
else
{
@@ -649,6 +653,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
else if (m_bSprintToggle)
{
pairAnimInfo = m_Animation[STATEANIM::SPRINT];
+ Get_PartObject()->Set_Visible(false);
}
else
{
@@ -689,6 +694,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
!SUCCEEDED(InputMove())) {
if (!m_pFSM->IsEnable(FSMSTATE::STOP))
{
+ Get_PartObject()->Set_Visible(true);
m_pFSM->Enable_State(FSMSTATE::STOP);
if (m_pFSM->IsEnable(FSMSTATE::WALK) || m_fMoveTime <= 0.13f) {
m_bWalkToggle = false;
@@ -746,11 +752,13 @@ void CPlayer::Behavior_MoveExit()
{
m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::STOP);
Reset_Event();
+ Get_PartObject()->Set_Visible(true);
}
void CPlayer::Behavior_JumpEnter()
{
pair<_uint, _bool> pairAnimInfo;
+ Get_PartObject()->Set_Visible(false);
m_fOriginGravityAmount = m_pCharacter_Controller->Get_GravityAmount();
m_pFSM->Enable_State(FSMSTATE::JUMP);
if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE | FSMSTATE::WALK | FSMSTATE::JOG | FSMSTATE::SPRINT)) {
@@ -767,8 +775,8 @@ void CPlayer::Behavior_JumpEnter()
pairAnimInfo = m_Animation[STATEANIM::JUMP_JOG];
}
}
- else {
- // Drop?
+ if (m_pFSM->IsEnable_Previous(FSMSTATE::SLIDE)) {
+ pairAnimInfo = m_Animation[STATEANIM::JUMP_JOG];
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
@@ -797,12 +805,14 @@ void CPlayer::Behavior_JumpExit()
{
m_pFSM->Disable_State(FSMSTATE::JUMP);
Reset_Event();
+ Get_PartObject()->Set_Visible(true);
}
void CPlayer::Behavior_LandEnter()
{
pair<_uint, _bool> pairAnimInfo;
m_pFSM->Enable_State(FSMSTATE::LAND);
+ Get_PartObject()->Set_Visible(false);
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
if (iCurrAnim == m_Animation[STATEANIM::JUMP].first)
{
@@ -851,6 +861,7 @@ void CPlayer::Behavior_LandExit()
m_pCharacter_Controller->Set_GravityAmount(m_fOriginGravityAmount);
m_fGravityAmount = 0.f;
Reset_Event();
+ Get_PartObject()->Set_Visible(true);
}
void CPlayer::Behavior_FallEnter()
@@ -980,8 +991,9 @@ void CPlayer::Behavior_SlideEnter()
{
pair<_uint, _bool> pairAnimInfo;
m_pFSM->Enable_State(FSMSTATE::SLIDE);
+ Get_PartObject()->Set_Visible(false);
pairAnimInfo = m_Animation[STATEANIM::SLIDE_START_R];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.2f);
Add_Event(pairAnimInfo.first,
[this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::SLIDE_LOOP_R];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); },
@@ -1004,6 +1016,11 @@ HRESULT CPlayer::Behavior_SlideExitCheck(_float fTimeDelta)
_vector vNextPos = vPos + vLook * m_fSlideSpeed * fTimeDelta;
m_pCharacter_Controller->Set_Position(vNextPos);
}
+ if (m_pGameInstance->Key_Down(DIK_SPACE))
+ {
+ m_pFSM->Change_State(FSMSTATE::JUMP);
+ return E_FAIL;
+ }
if (m_pGameInstance->Key_Up(DIK_E))
{
pairAnimInfo = m_Animation[STATEANIM::SLIDE_STOP_R];
@@ -1027,6 +1044,7 @@ void CPlayer::Behavior_SlideExit()
m_pFSM->Disable_State(FSMSTATE::SLIDE);
m_fSlideSpeed = 0.f;
Reset_Event();
+ Get_PartObject()->Set_Visible(true);
}
void CPlayer::Behavior_CombatEnter()
@@ -2056,6 +2074,49 @@ void CPlayer::Behavior_HitExit()
}
+void CPlayer::Behavior_Spell_LearningEnter()
+{
+ pair<_uint, _bool> pairAnimInfo;
+
+ m_pFSM->Enable_State(FSMSTATE::SPELL_LEARNING);
+ m_bSpell_Learning_Success = false;
+
+ pairAnimInfo = m_Animation[STATEANIM::SPELL_LEARNING_START];
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false);
+ Add_Event(pairAnimInfo.first,
+ [this]() {pair<_uint, _bool> pairAnimInfo;
+ pairAnimInfo = m_Animation[STATEANIM::SPELL_LEARNING_WANDWAVE]; },
+ 0.95f);
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false);
+}
+
+HRESULT CPlayer::Behavior_Spell_LearningExitCheck(_float fTimeDelta)
+{
+ pair<_uint, _bool> pairAnimInfo;
+ _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+
+ if (m_bSpell_Learning_Success)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::SPELL_LEARNING_SUCCESS];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false);
+ }
+
+ if (m_pModelCom->IsFinishedAnim() && iCurrAnimIndex != m_Animation[STATEANIM::SPELL_LEARNING_WANDWAVE].first)
+ {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+void CPlayer::Behavior_Spell_LearningExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::SPELL_LEARNING);
+ m_bSpell_Learning_Success = false;
+}
+
void CPlayer::Behavior_Broom_RideEnter()
{
m_pFSM->Enable_State(FSMSTATE::BROOM_RIDE);
@@ -2290,7 +2351,6 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
{
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
pair<_uint, _bool> pairAnimInfo;
-
if (!m_pBroom->Get_Ride()) {
m_pFSM->Change_State(FSMSTATE::IDLE);
return E_FAIL;
@@ -2645,6 +2705,43 @@ void CPlayer::Behavior_Broom_DismountExit()
m_bOnce = false;
}
+
+void CPlayer::Attach_Broom()
+{
+ if (m_pBroom->Get_Ride()) {
+ _matrix BroomWorld = XMLoadFloat4x4(m_pBroomTransform->Get_WorldMatrixPtr());
+ _matrix BoneLocal = XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
+
+ _vector Scale, Rot, Trans;
+
+ XMMatrixDecompose(&Scale, &Rot, &Trans, BoneLocal);
+
+ _matrix BoneNoScale = XMMatrixRotationQuaternion(Rot) * XMMatrixTranslationFromVector(Trans);
+
+ m_OffsetPos = { 0.f,1.f,0.f };
+
+ _matrix Offset = XMMatrixTranslation(m_OffsetPos.x,
+ m_OffsetPos.y, m_OffsetPos.z);
+
+ _vector BS, BR, BT;
+ XMMatrixDecompose(&BS, &BR, &BT, BroomWorld);
+ _matrix BroomWorld_NoScale =
+ XMMatrixRotationQuaternion(BR) *
+ XMMatrixTranslationFromVector(BT);
+
+
+ _matrix SocketWorld = BoneNoScale * Offset * BroomWorld_NoScale;
+
+ _matrix FixRot = XMMatrixRotationY(XMConvertToRadians(180.f));
+
+ _matrix FinalWorld = FixRot * SocketWorld;
+
+ m_pTransformCom->Set_WorldMatrix(FinalWorld);
+ m_pCharacter_Controller->Set_Position(FinalWorld.r[3]);
+ }
+}
+
+
void CPlayer::Player_InterpTurn(_float fTimeDelta)
{
_uint iCurrIndex = m_pModelCom->Get_AnimIndex();
@@ -2710,6 +2807,8 @@ void CPlayer::Player_InterpTurn(_float fTimeDelta)
}
}
+
+
void CPlayer::Throwing_Interactive()
{
if (nullptr == m_pGrapInteractive) {
@@ -2724,46 +2823,12 @@ void CPlayer::Throwing_Interactive()
vDir = m_pTransformCom->Get_State(STATE::LOOK);
}
m_pGrapInteractive->Set_KinematicFlag(false);
-
+
pBody->Add_Force(pBody->Get_Mass() * vDir * (vDistance / 1.5f), PSX::PxForceMode::eIMPULSE);
SAFE_RELEASE(m_pGrapInteractive);
}
-void CPlayer::Attach_Broom()
-{
- if (m_pBroom->Get_Ride()) {
- _matrix BroomWorld = XMLoadFloat4x4(m_pBroomTransform->Get_WorldMatrixPtr());
- _matrix BoneLocal = XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
-
- _vector Scale, Rot, Trans;
-
- XMMatrixDecompose(&Scale, &Rot, &Trans, BoneLocal);
-
- _matrix BoneNoScale = XMMatrixRotationQuaternion(Rot) * XMMatrixTranslationFromVector(Trans);
-
- m_OffsetPos = { 0.f,1.f,0.f };
-
- _matrix Offset = XMMatrixTranslation(m_OffsetPos.x,
- m_OffsetPos.y, m_OffsetPos.z);
-
- _vector BS, BR, BT;
- XMMatrixDecompose(&BS, &BR, &BT, BroomWorld);
- _matrix BroomWorld_NoScale =
- XMMatrixRotationQuaternion(BR) *
- XMMatrixTranslationFromVector(BT);
-
-
- _matrix SocketWorld = BoneNoScale * Offset * BroomWorld_NoScale;
-
- _matrix FixRot = XMMatrixRotationY(XMConvertToRadians(180.f));
-
- _matrix FinalWorld = FixRot * SocketWorld;
-
- m_pTransformCom->Set_WorldMatrix(FinalWorld);
- m_pCharacter_Controller->Set_Position(FinalWorld.r[3]);
- }
-}
void CPlayer::ProcessHitBehavior()
{
@@ -2967,6 +3032,8 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
pairAnimInfo = m_Animation[STATEANIM::REPARO_START];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+ m_pEffectPool->Use_Skill(SKILL_TYPE::REPARO, Get_PartObject());
+
Add_Event(pairAnimInfo.first,
[this]() {
pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::REPARO_LOOP];
@@ -2976,7 +3043,9 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(m_Animation[STATEANIM::REPARO_LOOP].first,
[this]() {
pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::REPARO_END];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); },
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
+
+ },
0.95f);
}
break;
diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp
index 0ab2b647d..bce139a3f 100644
--- a/Jusin154_Team3D/Client/Private/Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Protego.cpp
@@ -124,10 +124,10 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
m_pSphere->Get_Component()->Set_Scale(vSize);
m_pSphereLay->Get_Component()->Set_Scale(vSize);
-
-
m_fSizeAccTime = 0.f;
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_PROTEGO, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/RandomNpc.cpp b/Jusin154_Team3D/Client/Private/RandomNpc.cpp
index e3d4a14f5..9587430e4 100644
--- a/Jusin154_Team3D/Client/Private/RandomNpc.cpp
+++ b/Jusin154_Team3D/Client/Private/RandomNpc.cpp
@@ -69,18 +69,26 @@ void CRandomNpc::Priority_Update(_float fTimeDelta)
void CRandomNpc::Update(_float fTimeDelta)
{
+ BattleObserve_Anim();
+
if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
return;
}
- BattleObserve_Anim();
if (m_pModelCom->IsFinishedAnim())
{
if (false == m_bBattle)
{
- _int iRandom = m_pGameInstance->Real_Random_Int(0, 12);
- m_pModelCom->Set_AnimationIndex(m_Anims[iRandom], false, 1.f, false, 1.f, false);
+ if (m_bElf)
+ {
+ m_pModelCom->Set_AnimationIndex(1, true, 1.f, false, 1.f, false);
+ }
+ else {
+ _int iRandom = m_pGameInstance->Real_Random_Int(0, 12);
+ m_pModelCom->Set_AnimationIndex(m_Anims[iRandom], false, 1.f, false, 1.f, false);
+ }
+
}
}
@@ -110,9 +118,9 @@ void CRandomNpc::Update(_float fTimeDelta)
void CRandomNpc::Late_Update(_float fTimeDelta)
{
- if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
+ /*if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
return;
- }
+ }*/
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
@@ -311,7 +319,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
Desc.fSpeedPerSec = 10.f;
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
- Desc.fRadius = 10.f;
+ Desc.fRadius = 30.f;
if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, &Desc))) {
return E_FAIL;
@@ -349,6 +357,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("KITCHENFEMALE"), (CComponent**)&m_pNpcStat))) {
return E_FAIL;
}
+ m_bElf = true;
break;
case 5:
m_strModelPrototypeTag = TEXT("Prototype_Component_F_Student_Model");
@@ -447,28 +456,28 @@ void CRandomNpc::BattleObserve_Anim()
{
if (m_eNpcState == ENUM_CLASS(NPC_STATE::OBSERVE))
{
- _int iRand = m_pGameInstance->Real_Random_Int(0, 1);
- _float fRandX = 0.f;
- if (iRand == 0)
- {
- fRandX = m_pGameInstance->Real_Random_Float(1003.f, 1005.f);
- }
- else {
- fRandX = m_pGameInstance->Real_Random_Float(1009.f, 1011.f);
- }
+ static const float SlotX[4] = {
+ 1003.f, 1003.f,
+ 1011.f, 1011.f
+ };
- _float fRandZ = m_pGameInstance->Real_Random_Float(1008.f, 1016.f);
+ static const float SlotZ[4] = {
+ 1010.f, 1014.f,
+ 1010.f, 1014.f
+ };
+
+ _int iSlot = m_pGameInstance->Real_Random_Int(0, 3);
+ _float fRandX = SlotX[m_iBattleIndex];
+ _float fRandZ = SlotZ[m_iBattleIndex];
m_pCharacter_Controller->Set_Position(XMVectorSet(fRandX, 2.f, fRandZ, 1.f));
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(fRandX, 2.f, fRandZ, 1.f));
_vector vPos = Get_WorldPostion();
- _vector vForward = XMVectorZero();
- if (fRandX <= 1007.f) {
- vForward = XMVectorSet(1.f, 0.f, 0.f, 0.f);
- }
- else {
- vForward = XMVectorSet(-1.f, 0.f, 0.f, 0.f);
- }
+
+ _vector vForward = (fRandX < 1007.f)
+ ? XMVectorSet(1.f, 0.f, 0.f, 0.f)
+ : XMVectorSet(-1.f, 0.f, 0.f, 0.f);
_int iRandIndex = m_pGameInstance->Real_Random_Int(14, 21);
m_pModelCom->Set_AnimationIndex(iRandIndex, false, 1.f, false, 1.f, false);
@@ -478,8 +487,8 @@ void CRandomNpc::BattleObserve_Anim()
m_eNpcState = ENUM_CLASS(NPC_STATE::IDLE);
}
- if (m_bBattleObserve_Npc && m_bBattle) {
-
+ if (m_bBattleObserve_Npc && m_bBattle)
+ {
if (m_pModelCom->IsFinishedAnim())
{
_int iRand = m_pGameInstance->Real_Random_Int(14, 21);
@@ -488,6 +497,7 @@ void CRandomNpc::BattleObserve_Anim()
}
}
+
void CRandomNpc::Load_AnimXML(const _char* pFilePath)
{
tinyxml2::XMLDocument doc;
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index 4290df395..dc5cb6024 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp
@@ -306,7 +306,7 @@ HRESULT CRanrok::Render_Shadow(SHADOW eType)
return E_FAIL;
}
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
- for (_uint i = 0; i < iNumMeshes; i++)
+ for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i < ENUM_CLASS(RANROK_MESH_ORDER::END); ++i)
{
if (FAILED(m_pShaderCom->Bind_Matrices(
"g_OffsetMatrix",
@@ -416,6 +416,8 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
if (true == m_bDead) {
return;
}
+ if (m_bDisolve)
+ return;
if (m_bFireBurst || m_pFSM->IsEnable(FSMSTATE::LAND|FSMSTATE::TUCKED) || m_pModelCom->Get_AnimIndex() == m_Animation[STATEANIM::HIT_BWD2].first)
return;
@@ -700,9 +702,9 @@ HRESULT CRanrok::Ready_SubParts()
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.bAutoOwnerTranslation = false;
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANROK_PROP);
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANROK_BODY);
for (_uint i = 0; i < ENUM_CLASS(RANROK_ENUM_BONEMATRICES::END); ++i) {
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pTargetableDO[i], &Desc))) {
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROK_BODY"), (CComponent**)&m_pTargetableDO[i], &Desc))) {
return E_FAIL;
}
m_pTargetableDO[i]->Set_Kinematic(true);
@@ -769,16 +771,16 @@ HRESULT CRanrok::Render_Nonblend()
}*/
#ifdef _DEBUG
- if (true == m_pCharacter_Controller->IsActive()) {
- if (FAILED(m_pCharacter_Controller->Render())) {
- return E_FAIL;
- }
- }
- else if (true == m_pRigidBody->IsActive()) {
- if (FAILED(m_pRigidBody->Render())) {
- return E_FAIL;
- }
- }
+ //if (true == m_pCharacter_Controller->IsActive()) {
+ // if (FAILED(m_pCharacter_Controller->Render())) {
+ // return E_FAIL;
+ // }
+ //}
+ //else if (true == m_pRigidBody->IsActive()) {
+ // if (FAILED(m_pRigidBody->Render())) {
+ // return E_FAIL;
+ // }
+ //}
#endif
if (0.f < m_fDeadRatio) {
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_FireBall.cpp b/Jusin154_Team3D/Client/Private/Ranrok_FireBall.cpp
index f9a7976fb..32b6f382e 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_FireBall.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_FireBall.cpp
@@ -84,7 +84,7 @@ void CRanrok_FireBall::Update(_float fTimeDelta)
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = m_pFireBall->Get_WorldPostion();
- ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.2f, true);
+ ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f, true);
OnCollision(this, &CollisionInfo);
}
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp
index 18b53b35c..db72b0649 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp
@@ -61,7 +61,10 @@ HRESULT CRanrok_Prop::Initialize(void* pArg)
m_fDuration = 10000.f;
m_pInfoInstance->Regist_ActiveEffect(this);
-
+#ifdef _DEBUG
+ m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 12, false, false));
+ m_Batch = make_unique>(m_pContext);
+#endif // _DEBUG
return S_OK;
}
@@ -76,13 +79,12 @@ void CRanrok_Prop::Update(_float fTimeDelta)
if (m_bVisible == false)
return;
-
__super::Update(fTimeDelta);
+ m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
+
Update_Event(fTimeDelta);
-
-
/* 시작 사이즈 러프 */
if (m_fSizeAccTime > XM_PIDIV2 && m_isSizeLerpEnd == false)
{
@@ -119,10 +121,35 @@ void CRanrok_Prop::Late_Update(_float fTimeDelta)
__super::Late_Update(fTimeDelta);
#if _DEBUG
- m_pRigidBody->Render();
+ m_bRender = true;
+ if (m_bRender) {
+ m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
+ }
#endif
}
+HRESULT CRanrok_Prop::Render()
+{
+ if (RENDER::NONLIGHT == m_pGameInstance->Get_CurrentRenderPass()) {
+#ifdef _DEBUG
+ m_pRigidBody->Render();
+ m_Batch->Begin();
+
+ _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
+ _matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
+ _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0f0f, 1.f);
+ _matrix WorldMatrix = XMMatrixScaling(m_pRigidBody->Get_HalfGeometryInfo().x, m_pRigidBody->Get_HalfGeometryInfo().x, m_pRigidBody->Get_HalfGeometryInfo().x) * m_pTransformCom->Get_XMWorldMatrix();
+ m_pSubShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true);
+
+ m_Batch->End();
+ m_bRender = false;
+
+ m_pRigidBody->Render();
+#endif // _DEBUG
+ }
+ return S_OK;
+}
+
HRESULT CRanrok_Prop::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
@@ -187,7 +214,7 @@ HRESULT CRanrok_Prop::Ready_Components(void* pArg)
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(PXOBJECT::RANROK_PROP);
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_SHIELD"), (CComponent**)&m_pRigidBody, &Desc))) {
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_RANROKPROP"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
@@ -284,7 +311,7 @@ void CRanrok_Prop::OnCollision(CGameObject* pOther, void* pDesc)
pBroken_PT->Set_Visible(true);
pBroken_PT2->Set_Visible(true);
- m_fDuration = 2.f;
+ m_fDuration = 1.7f;
m_fAccTime = 0.f;
}
diff --git a/Jusin154_Team3D/Client/Private/Reparo.cpp b/Jusin154_Team3D/Client/Private/Reparo.cpp
new file mode 100644
index 000000000..52ee61fca
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/Reparo.cpp
@@ -0,0 +1,208 @@
+#include "pch.h"
+#include "Reparo.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Player.h"
+#include "Wand.h"
+#include "TrailObject.h"
+
+
+CReparo::CReparo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+
+{
+}
+
+CReparo::CReparo(const CReparo& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CReparo::Initialize_Prototype()
+{
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Reparo")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CReparo::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+ m_wstrEffectName = L"Reparo";
+
+ m_pWandLight = Get_PartObject("Wand_Light");
+ m_pWandTrail = Get_PartObject();
+ m_pWandParticle = Get_PartObject("Reparo_Wand_PT");
+
+ SAFE_ADDREF(m_pWandLight);
+ SAFE_ADDREF(m_pWandTrail);
+ SAFE_ADDREF(m_pWandParticle);
+
+ m_fDuration = 10.f;
+
+
+
+ m_Events.emplace(6.f, [&]() {
+ m_isParticleEnd = true;
+ m_pWandTrail->SetDissolve(true);
+ m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f , -999.f , 0.f , 1.f));
+ });
+
+ return S_OK;
+}
+
+void CReparo::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CReparo::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+ CWand* pWand = static_cast(m_pOwner);
+
+ if (pWand == nullptr)
+ return;
+
+ m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
+
+
+ _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix();
+ m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta);
+
+ if (m_isParticleEnd == false)
+ {
+ m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
+ }
+
+}
+
+void CReparo::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CReparo::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ CWand* pWand = static_cast(m_pOwner);
+
+ if (pWand == nullptr)
+ return E_FAIL;
+
+ m_isTrailEnd = false;
+ m_isParticleEnd = false;
+ m_pWandTrail->SetDissolve(false);
+
+ m_pWandLight->Set_Visible(true);
+ m_pWandParticle->Set_Visible(true);
+
+ /*트레일 초기화 */
+ m_pWandTrail->Set_Visible(true);
+
+ m_pWandTrail->Get_Component()->Reset_Trail();
+
+ m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
+ m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
+ return S_OK;
+}
+
+HRESULT CReparo::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CReparo::Ready_Child()
+{
+ return S_OK;
+}
+
+CReparo* CReparo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CReparo* pInstance = new CReparo(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CReparo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CReparo::Clone(void* pArg, CGameObject* pOwner)
+{
+ CReparo* pInstance = new CReparo(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CReparo");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CReparo::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CReparo::Free()
+{
+ __super::Free();
+
+
+ Safe_Release(m_pWandLight);
+ Safe_Release(m_pWandTrail);
+ Safe_Release(m_pWandParticle);
+}
+#ifdef _DEBUG
+
+void CReparo::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CReparo::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/ReparoObject.cpp b/Jusin154_Team3D/Client/Private/ReparoObject.cpp
index 5fc1d0554..700d2e1e5 100644
--- a/Jusin154_Team3D/Client/Private/ReparoObject.cpp
+++ b/Jusin154_Team3D/Client/Private/ReparoObject.cpp
@@ -41,8 +41,9 @@ HRESULT CReparoObject::Initialize(void* pArg)
// 되돌리기 전 Before
m_ePreState = m_eCurState = REPARO_OBJECT_STATE::SLEEP;
m_pModelCom->Set_AnimationIndex(2);
- m_pInfoInstance->Deregist_PlayerAlly(this);
-
+ //m_pInfoInstance->Deregist_PlayerAlly(this);
+
+ m_pInfoInstance->Deregist_ActiveMonster(this);
return S_OK;
}
@@ -64,8 +65,8 @@ void CReparoObject::Update(_float fTimeDelta)
case Client::CReparoObject::REPARO_OBJECT_STATE::BEFORE:
break;
case Client::CReparoObject::REPARO_OBJECT_STATE::PLAYANIM:
- if (true == m_pModelCom->IsFinishedAnim())
- m_eCurState = REPARO_OBJECT_STATE::AFTER;
+ //if (true == m_pModelCom->IsFinishedAnim())
+ // m_eCurState = REPARO_OBJECT_STATE::AFTER;
break;
case Client::CReparoObject::REPARO_OBJECT_STATE::AFTER:
@@ -240,7 +241,7 @@ void CReparoObject::Change_State()
break;
case Client::CReparoObject::REPARO_OBJECT_STATE::BEFORE:
- m_pInfoInstance->Regist_PlayerAlly(this);
+ m_pInfoInstance->Regist_ActiveMonster(this);
break;
case Client::CReparoObject::REPARO_OBJECT_STATE::PLAYANIM:
@@ -249,7 +250,7 @@ void CReparoObject::Change_State()
case Client::CReparoObject::REPARO_OBJECT_STATE::AFTER:
m_pModelCom->Set_AnimationIndex(1);
- m_pInfoInstance->Deregist_PlayerAlly(this);
+ m_pInfoInstance->Deregist_ActiveMonster(this);
break;
case Client::CReparoObject::REPARO_OBJECT_STATE::END:
diff --git a/Jusin154_Team3D/Client/Private/Revelio.cpp b/Jusin154_Team3D/Client/Private/Revelio.cpp
index 4863ab2c2..bf7c885df 100644
--- a/Jusin154_Team3D/Client/Private/Revelio.cpp
+++ b/Jusin154_Team3D/Client/Private/Revelio.cpp
@@ -152,6 +152,8 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg)
}
+ m_pGameInstance->Sound_Play(SOUND::SD_KIND::VOICE_REVELIO, SD_CHANNEL_GROUP::EFFECT, false, 0.7f);
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/State_Spell_Learning.cpp b/Jusin154_Team3D/Client/Private/State_Spell_Learning.cpp
new file mode 100644
index 000000000..cb52f230a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/State_Spell_Learning.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_Spell_Learning.h"
+#include "Unit.h"
+
+
+CState_Spell_Learning::CState_Spell_Learning()
+ :CState_Root()
+{
+}
+
+void CState_Spell_Learning::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Spell_Learning::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (FAILED(__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_Spell_Learning::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Spell_Learning::Initialize(STATE_SPELL_LEARNING_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Spell_Learning* CState_Spell_Learning::Create(STATE_SPELL_LEARNING_DESC* pDesc)
+{
+ CState_Spell_Learning* pInstance = new CState_Spell_Learning;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Spell_Learning::Free()
+{
+ __super::Free();
+}
+
+void CState_Spell_Learning::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp
index 75a9bf618..a07cfb09e 100644
--- a/Jusin154_Team3D/Client/Private/Stupefy.cpp
+++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp
@@ -193,6 +193,8 @@ 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 7adfede7d..551c6334e 100644
--- a/Jusin154_Team3D/Client/Private/Terrain.cpp
+++ b/Jusin154_Team3D/Client/Private/Terrain.cpp
@@ -32,7 +32,7 @@ HRESULT CTerrain::Initialize(void* pArg)
return E_FAIL;
}
- m_fUsingSurfaceParams = 15.f / 27.f;
+ m_fUsingSurfaceParams = SRO_PARAMETER;
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
{
diff --git a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
index 7a595e639..c0f442291 100644
--- a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
+++ b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp
@@ -57,8 +57,6 @@ HRESULT CThestralCarriage::Initialize(void* pArg)
//for (auto& anim : chain)
// m_pModelCom->Set_ChainAnimation(anim);
- m_iAnimationIndex = 0;
- m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
m_pModelCom->IsRootBone(false);
//
//m_pModelCom->Start_ChainAnimation();
@@ -69,6 +67,7 @@ HRESULT CThestralCarriage::Initialize(void* pArg)
void CThestralCarriage::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
+ Lerp_Transform(fTimeDelta);
}
void CThestralCarriage::Update(_float fTimeDelta)
@@ -192,9 +191,9 @@ void CThestralCarriage::Trigger(CTimeSocket& Socket)
{
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
} break;
- case TIMESOCKET_FUNC::TRANSLATION_LERP:
+ case TIMESOCKET_FUNC::AFFINE_LERP:
{
-
+ Lerp_Start(pContents->pxTransform, pContents->vParam_11.x);
} break;
case TIMESOCKET_FUNC::SET_ANIMSTATE:
{
@@ -269,6 +268,42 @@ _matrix CThestralCarriage::Get_SocketWorldMatrix(CARRIAGE_SOCKET eSocket)
}
}
+void CThestralCarriage::Lerp_Stop()
+{
+ m_LerpStartMatrix = { };
+ m_LerpEndMatrix = { };
+ m_vLerpTimer = { };
+ m_bLerp = { false };
+}
+
+void CThestralCarriage::Lerp_Start(PSX::PxTransform pxTransform, _float fLerpTimer)
+{
+ XMStoreFloat4x4(&m_LerpStartMatrix, m_pTransformCom->Get_XMWorldMatrix());
+ _float3 vScale = m_pTransformCom->Get_Scale();
+ XMStoreFloat4x4(&m_LerpEndMatrix, XMMatrixAffineTransformation(XMLoadFloat3(&vScale), XMVectorZero(),
+ XMLoadFloat4((_float4*)&pxTransform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTransform.p), 1.f)));
+ m_vLerpTimer.x = 0;
+ m_vLerpTimer.y = fLerpTimer;
+ m_bLerp = true;
+}
+
+void CThestralCarriage::Lerp_Transform(_float fTimeDelta)
+{
+ if (true == m_bLerp) {
+ m_vLerpTimer.x += fTimeDelta;
+ _float4x4 vLerpResult = {};
+ if (m_vLerpTimer.x >= m_vLerpTimer.y) {
+ m_bLerp = false;
+ m_vLerpTimer.x = 0.f;
+ CMyTools::MatrixLerp(XMLoadFloat4x4(&m_LerpStartMatrix), XMLoadFloat4x4(&m_LerpEndMatrix), vLerpResult, 1.f);
+ }
+ else {
+ CMyTools::MatrixLerp(XMLoadFloat4x4(&m_LerpStartMatrix), XMLoadFloat4x4(&m_LerpEndMatrix), vLerpResult, m_vLerpTimer.x/m_vLerpTimer.y);
+ }
+ m_pTransformCom->Set_WorldMatrix(vLerpResult);
+ }
+}
+
HRESULT CThestralCarriage::Ready_Components()
{
CTransform::TRANSFORM_DESC Desc = {};
@@ -375,7 +410,7 @@ void CThestralCarriage::Describe_Entity()
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
_float3 Pos;
- XMStoreFloat3(&Pos, Get_WorldPostion());
+ XMStoreFloat3(&Pos, m_pTransformCom->Get_State(STATE::POSITION));
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
GUI::DragFloat3("Pos", Pos3);
@@ -384,7 +419,7 @@ void CThestralCarriage::Describe_Entity()
_float RotR, RotU, RotL;
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
- RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
+ RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
float Rot3[3] = { RotR, RotU,RotL };
diff --git a/Jusin154_Team3D/Client/Private/TransformationSide.cpp b/Jusin154_Team3D/Client/Private/TransformationSide.cpp
index b4d6210ac..7b62bbf24 100644
--- a/Jusin154_Team3D/Client/Private/TransformationSide.cpp
+++ b/Jusin154_Team3D/Client/Private/TransformationSide.cpp
@@ -120,6 +120,7 @@ HRESULT CTransformationSide::Pre_Setting(CGameObject* pObject, void* pArg)
m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고
m_pWandLight->Set_Visible(true);
+ m_pWandTrail->SetDissolve(false);
/*트레일 초기화 */
m_pWandTrail->Set_Visible(true);
diff --git a/Jusin154_Team3D/Client/Private/TriggerBox.cpp b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
index eb45ffbf4..f0aaf170e 100644
--- a/Jusin154_Team3D/Client/Private/TriggerBox.cpp
+++ b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
@@ -23,7 +23,7 @@ HRESULT CTriggerBox::TryScanArea(_float fTimeDelta)
#endif // _DEBUG
m_vScanTimer.x += fTimeDelta;
if (m_vScanTimer.x > m_vScanTimer.y) {
- m_vScanTimer.x = 0.f;
+ m_vScanTimer.x = m_vScanTimer.y;
return Scan();
}
return E_FAIL;
@@ -57,11 +57,15 @@ HRESULT CTriggerBox::Initialize(TRIGGERBOX_DESC* pDesc)
}
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat4(&pDesc->vPosition_Radius), 1.f));
+#ifdef _DEBUG
m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, m_pTransformCom->Get_Radius() * 2.f, 12, false, false));
m_Batch = make_unique>(m_pContext);
+#endif // _DEBUG
+
+ _float3 vScale = { Desc.fRadius * 2.f, Desc.fRadius * 2.f, Desc.fRadius * 2.f };
+ m_pTransformCom->Set_Scale(vScale);
m_vScanTimer.y += m_pGameInstance->Real_Random_Float(0.f, 0.2f);
-
return S_OK;
}
@@ -69,21 +73,21 @@ HRESULT CTriggerBox::Scan()
{
_float fRadius = m_pTransformCom->Get_Radius();
- PSX::PxSweepHit hitBuffer[32];
- PSX::PxSweepBuffer pxBuffer(hitBuffer, 32);
- _bool bHit = m_pGameInstance->SphereCast(fRadius, m_pTransformCom->Get_State(STATE::POSITION), XMVectorSet(0.f, 1.f, 0.f, 0.f), 0.1f,
- PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
+ PSX::PxOverlapBufferN<32> pxBuffer = {};
+ _bool bHit = m_pGameInstance->Overlap(fRadius, m_pTransformCom->Get_State(STATE::POSITION),
+ PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eNO_BLOCK, pxBuffer);
- const PSX::PxSweepHit & hit = pxBuffer.block;
+
+ PSX::PxOverlapHit & hit = pxBuffer.block;
PSX::PxRigidActor* pActor = hit.actor;
- _uint iHitCount = pxBuffer.getNbAnyHits();
+ _uint iHitCount = pxBuffer.getNbTouches();
HRESULT hr = E_FAIL;
if (bHit) {
- hr = CheckPlayerHit(pActor);
+ hr = CheckPlayerHit(pActor, hit.shape);
if (FAILED(hr)) {
for (_uint i = 0; i < iHitCount; ++i) {
- PSX::PxSweepHit* pHit = &pxBuffer.touches[i];
- hr = CheckPlayerHit(pHit->actor);
+ PSX::PxOverlapHit* pHit = &pxBuffer.touches[i];
+ hr = CheckPlayerHit(pHit->actor, pHit->shape);
if (SUCCEEDED(hr)) {
break;
}
@@ -93,11 +97,14 @@ HRESULT CTriggerBox::Scan()
return hr;
}
-HRESULT CTriggerBox::CheckPlayerHit(PSX::PxActor* pActor)
+HRESULT CTriggerBox::CheckPlayerHit(PSX::PxActor* pActor, PSX::PxShape* pShape)
{
- if (nullptr != pActor && nullptr != pActor->userData)
+ if (nullptr != pActor && nullptr != pActor->userData || nullptr != pShape && nullptr != pShape->userData)
{
PHYSX_USERDATA* pUserData = static_cast(pActor->userData);
+ if (nullptr == pUserData) {
+ pUserData = static_cast(pShape->userData);
+ }
switch (pUserData->eKind)
{
case PHYSX_KIND::BODY_DYNAMIC:
@@ -154,7 +161,10 @@ CGameObject* CTriggerBox::Clone(void* pArg, CGameObject* pOwner)
{
return nullptr;
}
-
+#ifdef _DEBUG
void CTriggerBox::Describe_Entity()
{
}
+#endif // _DEBUG
+
+
diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp
index 6ac12d93a..61fd9d497 100644
--- a/Jusin154_Team3D/Client/Private/Troll.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll.cpp
@@ -65,7 +65,7 @@ HRESULT CTroll::Initialize(void* pArg)
- m_pCharacter_Controller->Set_Position(XMVectorSet(110.f, 24.f, 135.f, 1.f));
+ m_pCharacter_Controller->Set_Position(XMVectorSet(96.927f, 15.f, 129.544f, 1.f));
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
SAFE_ADDREF(m_pEffectPool);
diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp
index 6a1e99492..4edd5bb4b 100644
--- a/Jusin154_Team3D/Client/Private/Troll_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp
@@ -725,7 +725,7 @@ void CTroll::Behavior_HitEnter()
m_bLookAt = false;
if (iCurrAnimIndex == m_Animation[STATEANIM::SLAM].first)
{
- if (fRatio <= 0.75f) {
+ if (fRatio >= 0.29f && fRatio <= 0.6f) {
pairAnimInfo = m_Animation[STATEANIM::HIT_FACE];
Add_Event(pairAnimInfo.first,
[this]() {
@@ -797,6 +797,11 @@ void CTroll::Behavior_DeadEnter()
m_pRigidBody->SetActive(false);
m_pCharacter_Controller->SetActive(false);
+ m_pTroll_Particle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f));
+ m_pTroll_Particle2->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f));
+
+ m_pLeft_Smoke->Set_Visible(false);
+ m_pRight_Smoke->Set_Visible(false);
Add_Event(pairAnimInfo.first,
[this]() {
@@ -825,7 +830,8 @@ _bool CTroll::IsHitSpellDisabled()
{
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC) ||
m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC_THROW) ||
- m_eHitSpell == ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA))
+ m_eHitSpell == ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA) ||
+ m_eHitSpell == ENUM_CLASS(SKILL_TYPE::STUPEFY))
{
return true;
}
diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
index 06dad9149..da6dab439 100644
--- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp
+++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp
@@ -86,9 +86,9 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
static_cast(m_pDialogue_Canvas)->Visible(false);
static_cast(m_pInteraction_Key)->Set_Visible(true);
static_cast(m_pNPCInteraction)->Set_Visible(true);
-#ifndef 기무리
- static_cast(m_pBroom_TargetGate)->Set_Visible(false);
-#endif // 기무리
+
+ //static_cast(m_pBroom_TargetGate)->Set_Visible(false);
+
break;
@@ -146,7 +146,6 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
default:
return;
}
- m_pInfoInstance->Event_CallBack(TEXT("Player_CanvasChange"), &m_eType);
m_pGameInstance->Toggle_MouseCenter();
m_pInfoInstance->Event_CallBack(TEXT("Player_CanvasChange"), &m_eType);
}
diff --git a/Jusin154_Team3D/Client/Public/Broom.h b/Jusin154_Team3D/Client/Public/Broom.h
index 9e5d126da..12f7a934b 100644
--- a/Jusin154_Team3D/Client/Public/Broom.h
+++ b/Jusin154_Team3D/Client/Public/Broom.h
@@ -97,6 +97,11 @@ class CBroom final : public CUnit
BroomInput m_Input;
class CEffectParts* m_pWindEffect = { nullptr };
+
+ class CEffectParts* m_pBoostScreenFX = { nullptr };
+ class CTrailObject* m_pBroomTrail = { nullptr };
+ const _float4x4* m_pBroom_TailMat = { nullptr };
+
_float m_fCameraOffset = { 10.f };
private:
@@ -105,7 +110,7 @@ class CBroom final : public CUnit
void Update_CameraCoordinateSystem();
void PlayerInput(_float fTimeDelta);
-
+ void Boost_Effect_Visible(_bool isVisible);
public:
static CBroom* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
diff --git a/Jusin154_Team3D/Client/Public/Goblin_Attack.h b/Jusin154_Team3D/Client/Public/Goblin_Attack.h
index aa9a247c7..63a6b8747 100644
--- a/Jusin154_Team3D/Client/Public/Goblin_Attack.h
+++ b/Jusin154_Team3D/Client/Public/Goblin_Attack.h
@@ -31,10 +31,15 @@ class CGoblin_Attack final : public CEffect_Container
HRESULT Bind_ShaderResources() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
private:
- _wstring m_wstrEffectName = {};
+ _wstring m_wstrEffectName = {};
class CEffectParts* m_pPT1 = { nullptr };
class CEffectParts* m_pPT2 = { nullptr };
- _float4x4 m_vMat = {};
+ class CTrailObject* m_pAttack_Trail = { nullptr };
+ const _float4x4* m_vMat = { nullptr };
+
+ _bool m_isTrailEnd = {};
+ _float4x4 m_TrailStopMat = {};
+
public:
static CGoblin_Attack* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Client/Public/Human_Duelist.h b/Jusin154_Team3D/Client/Public/Human_Duelist.h
index f436358ba..228f736f3 100644
--- a/Jusin154_Team3D/Client/Public/Human_Duelist.h
+++ b/Jusin154_Team3D/Client/Public/Human_Duelist.h
@@ -80,6 +80,8 @@ class CHuman_Duelist final : public CMonster
_bool m_bBattle = {};
_bool m_bCameraShake = { };
_float4 m_OriginPos = { };
+ _bool m_bBattleEnd = {};
+ _float m_fBattleEndTimer = {};
_float m_fSkillCoolTime[ENUM_CLASS(SKILL::END)] = {};
diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h
index f1103d175..0b99775dd 100644
--- a/Jusin154_Team3D/Client/Public/InfoInstance.h
+++ b/Jusin154_Team3D/Client/Public/InfoInstance.h
@@ -66,6 +66,7 @@ DECLARE_SINGLETON(CInfoInstance)
HRESULT Load_ReparoObjects(const _char* pFileName);
HRESULT Load_DADA_INT();
HRESULT Load_Npc();
+ HRESULT Load_Goblin();
#pragma endregion
#pragma region Spell_INFO
HRESULT Load_SpellInfo(const _char* pFilePath);
diff --git a/Jusin154_Team3D/Client/Public/Level_GamePlay.h b/Jusin154_Team3D/Client/Public/Level_GamePlay.h
index d0148d6a7..7c98f5a17 100644
--- a/Jusin154_Team3D/Client/Public/Level_GamePlay.h
+++ b/Jusin154_Team3D/Client/Public/Level_GamePlay.h
@@ -24,6 +24,7 @@ class CLevel_GamePlay final : public CLevel
_bool m_bLevel = { false };
_bool m_bCurrentLevel = { false };
+ _bool m_bIntroCinematic = { false };
private:
virtual HRESULT Initialize() override;
diff --git a/Jusin154_Team3D/Client/Public/MageSide.h b/Jusin154_Team3D/Client/Public/MageSide.h
index a8db89826..64e7d9d33 100644
--- a/Jusin154_Team3D/Client/Public/MageSide.h
+++ b/Jusin154_Team3D/Client/Public/MageSide.h
@@ -34,6 +34,7 @@ class CMageSide final : public CEffect_Container
_wstring m_wstrEffectName = {};
class CEffectParts* m_pMage_PT = { nullptr };
+ class CEffectParts* m_pMage_Fire = { nullptr };
class CTrailObject* m_pMage_Trail = { nullptr };
_bool m_isParticleEnd = {};
diff --git a/Jusin154_Team3D/Client/Public/MapElement_Static.h b/Jusin154_Team3D/Client/Public/MapElement_Static.h
index 6630877e4..87331b550 100644
--- a/Jusin154_Team3D/Client/Public/MapElement_Static.h
+++ b/Jusin154_Team3D/Client/Public/MapElement_Static.h
@@ -17,6 +17,7 @@ class CMapElement_Static : public CMapElement
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+ virtual HRESULT Render_Shadow(SHADOW eType)override;
private:
_bool m_bReadyToCreatePhysX = { false };
diff --git a/Jusin154_Team3D/Client/Public/MapInfo.h b/Jusin154_Team3D/Client/Public/MapInfo.h
index 233b5c89a..a349b95f9 100644
--- a/Jusin154_Team3D/Client/Public/MapInfo.h
+++ b/Jusin154_Team3D/Client/Public/MapInfo.h
@@ -34,6 +34,7 @@ class CMapInfo final : public CBase
HRESULT Load_DADA_INT();
HRESULT Load_Npc();
+ HRESULT Load_Goblin();
private:
CGameInstance* m_pGameInstance = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Monster.h b/Jusin154_Team3D/Client/Public/Monster.h
index b7d8fa705..409c47dde 100644
--- a/Jusin154_Team3D/Client/Public/Monster.h
+++ b/Jusin154_Team3D/Client/Public/Monster.h
@@ -7,6 +7,11 @@ NS_BEGIN(Client)
class CMonster abstract : public CUnit
{
+public:
+ typedef struct tagMonsterInitDesc {
+ _float4 vPos;
+ _float4 vRotQ;
+ }MONSTERDESC;
protected:
enum class HIT_STATE
{
diff --git a/Jusin154_Team3D/Client/Public/NPC_EleazarFig.h b/Jusin154_Team3D/Client/Public/NPC_EleazarFig.h
index 2b89e6499..7128d5769 100644
--- a/Jusin154_Team3D/Client/Public/NPC_EleazarFig.h
+++ b/Jusin154_Team3D/Client/Public/NPC_EleazarFig.h
@@ -24,6 +24,7 @@ class CNPC_EleazarFig final : public CUnit
virtual HRESULT Render() override;
virtual HRESULT Render_Shadow(SHADOW eType) override;
virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override;
+ void Set_Pos(_vector vPos);
protected:
CInfoInstance* m_pInfoInstance = { nullptr };
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index 2a9d517f7..a53b7ccd4 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -195,6 +195,7 @@ class CPlayer final : public CUnit
_float m_fParryTimer = {};
_bool m_bStartSpellAnim = {};
_float4 m_OriginPos = {};
+ _bool m_bSpell_Learning_Success = {};
/* 무적 불 변수*/
@@ -277,6 +278,10 @@ class CPlayer final : public CUnit
HRESULT Behavior_HitExitCheck(_float fTimeDelta);
void Behavior_HitExit();
+ void Behavior_Spell_LearningEnter();
+ HRESULT Behavior_Spell_LearningExitCheck(_float fTimeDelta);
+ void Behavior_Spell_LearningExit();
+
void Behavior_Broom_RideEnter();
HRESULT Behavior_Broom_RideExitCheck(_float fTimeDelta);
void Behavior_Broom_RideExit();
diff --git a/Jusin154_Team3D/Client/Public/RandomNpc.h b/Jusin154_Team3D/Client/Public/RandomNpc.h
index a091619b2..4fc9c8100 100644
--- a/Jusin154_Team3D/Client/Public/RandomNpc.h
+++ b/Jusin154_Team3D/Client/Public/RandomNpc.h
@@ -41,6 +41,7 @@ class CRandomNpc final : public CUnit
_bool Get_BattleObserve_Npc() { return m_bBattleObserve_Npc; }
void Set_NpcState(_int iState) { m_eNpcState = iState; }
void Set_Target(CUnit& pTarget, CTransform& pTransform);
+ void Set_BattleIndex(_int iIndex) { m_iBattleIndex = iIndex; }
protected:
CInfoInstance* m_pInfoInstance = { nullptr };
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
@@ -72,6 +73,9 @@ class CRandomNpc final : public CUnit
_bool m_bBattle = {};
_int m_eNpcState = ENUM_CLASS(NPC_STATE::END);
_bool m_bBroomRacer = {};
+ _bool m_bElf = {};
+ _int m_iBattleIndex = {};
+
vector<_int> m_Anims;
protected:
diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h
index 96e109bfb..951d30a75 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok.h
@@ -127,6 +127,7 @@ class CRanrok final : public CMonster
_bool m_bFireBurst = {true};
_int m_iPropSize = {};
_int m_iHoverDash = { };
+ _bool m_bChangePhase = {};
_float2 m_vCaptureTimer = { 0.f, 0.1f };
diff --git a/Jusin154_Team3D/Client/Public/Ranrok_Prop.h b/Jusin154_Team3D/Client/Public/Ranrok_Prop.h
index e75da92ec..bd382434e 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok_Prop.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok_Prop.h
@@ -19,6 +19,7 @@ class CRanrok_Prop final : public CEffect_Container
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
public:
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
@@ -47,6 +48,11 @@ class CRanrok_Prop final : public CEffect_Container
_float m_fHp = { 3.f };
_bool m_isSizeLerpEnd = {};
+#ifdef _DEBUG
+ _bool m_bRender = false;
+ unique_ptr m_pSubShape = { nullptr };
+ unique_ptr> m_Batch;
+#endif // _DEBUG
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
public:
diff --git a/Jusin154_Team3D/Client/Public/Reparo.h b/Jusin154_Team3D/Client/Public/Reparo.h
new file mode 100644
index 000000000..8b1ee4f57
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/Reparo.h
@@ -0,0 +1,52 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CReparo final : public CEffect_Container
+{
+private:
+ CReparo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CReparo(const CReparo& rhs);
+ virtual ~CReparo() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ _bool m_isTrailEnd = {};
+ _float4x4 m_TrailStopMat = {};
+ _bool m_isParticleEnd = {};
+
+ class CEffectParts* m_pWandLight = { nullptr };
+ class CEffectParts* m_pWandParticle = { nullptr };
+ class CTrailObject* m_pWandTrail = { nullptr };
+public:
+ static CReparo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/State_Spell_Learning.h b/Jusin154_Team3D/Client/Public/State_Spell_Learning.h
new file mode 100644
index 000000000..4fe423389
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/State_Spell_Learning.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Client_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Client)
+
+class CState_Spell_Learning final : public CState_Root
+{
+public:
+ typedef struct tagSpellLearning : public CState_Root::STATE_ROOT_DESC{
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_SPELL_LEARNING_DESC;
+public:
+ CState_Spell_Learning();
+ virtual ~CState_Spell_Learning() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_SPELL_LEARNING_DESC* pDesc);
+
+public:
+ static CState_Spell_Learning* Create(STATE_SPELL_LEARNING_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/ThestralCarriage.h b/Jusin154_Team3D/Client/Public/ThestralCarriage.h
index 3af332df3..c33215415 100644
--- a/Jusin154_Team3D/Client/Public/ThestralCarriage.h
+++ b/Jusin154_Team3D/Client/Public/ThestralCarriage.h
@@ -43,9 +43,17 @@ class CThestralCarriage final : public CUnit
virtual _vector Get_WorldPostion()override;
_matrix Get_SeatMatrix();
_matrix Get_SocketWorldMatrix(CARRIAGE_SOCKET eSocket);
+ void Lerp_Stop();
+ void Lerp_Start(PSX::PxTransform pxTransform, _float fLerpTimer);
+ void Lerp_Transform(_float fTimeDelta);
private:
CInfoInstance* m_pInfoInstance = { nullptr };
+ _float4x4 m_LerpStartMatrix = { };
+ _float4x4 m_LerpEndMatrix = { };
+ _float2 m_vLerpTimer = { };
+ _bool m_bLerp = { false };
+
_uint m_iAnimationIndex = 0;
#ifdef _DEBUG
_bool m_bRender_WireFrame = { false };
diff --git a/Jusin154_Team3D/Client/Public/TriggerBox.h b/Jusin154_Team3D/Client/Public/TriggerBox.h
index e058df699..58eb28876 100644
--- a/Jusin154_Team3D/Client/Public/TriggerBox.h
+++ b/Jusin154_Team3D/Client/Public/TriggerBox.h
@@ -26,11 +26,15 @@ class CTriggerBox final : public CGameObject
virtual HRESULT Render()override;
HRESULT Bind_ShaderResources() override;
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
+
private:
HRESULT Initialize(TRIGGERBOX_DESC*);
HRESULT Scan();
- HRESULT CheckPlayerHit(PSX::PxActor* pActor);
+ HRESULT CheckPlayerHit(PSX::PxActor* pActor, PSX::PxShape* pShape);
private:
diff --git a/Jusin154_Team3D/Client/Public/Troll_Rush.h b/Jusin154_Team3D/Client/Public/Troll_Rush.h
index 1c5c21ed8..c4b5d69fe 100644
--- a/Jusin154_Team3D/Client/Public/Troll_Rush.h
+++ b/Jusin154_Team3D/Client/Public/Troll_Rush.h
@@ -37,7 +37,9 @@ class CTroll_Rush final : public CEffect_Container
static CTroll_Rush* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/Troll_Shout.h b/Jusin154_Team3D/Client/Public/Troll_Shout.h
index e19b766ee..4dd2da0c1 100644
--- a/Jusin154_Team3D/Client/Public/Troll_Shout.h
+++ b/Jusin154_Team3D/Client/Public/Troll_Shout.h
@@ -37,7 +37,11 @@ class CTroll_Shout final : public CEffect_Container
static CTroll_Shout* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
void Describe_Entity() override;
+#endif // _DEBUG
+
+
};
NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
index 2231ff266..fd39eba00 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml
@@ -134,7 +134,7 @@
-
+
@@ -184,8 +184,11 @@
-
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
index b04416f77..8aed2eae7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
@@ -1,4 +1,4 @@
-
+
@@ -73,6 +73,43 @@
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
@@ -115,8 +152,8 @@
-
-
+
+
@@ -222,11 +259,11 @@
-
+
-
+
@@ -329,7 +366,7 @@
-
+
@@ -337,8 +374,8 @@
-
-
+
+
@@ -374,8 +411,8 @@
-
-
+
+
@@ -406,8 +443,230 @@
-
-
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -437,162 +696,17 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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
-
-
-
-
-
-
+
+
+ -->
+
-
+
@@ -628,7 +742,309 @@
-
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -665,7 +1081,44 @@
-
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
@@ -696,13 +1149,13 @@
-
+
-
+
@@ -739,5 +1192,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ 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 9af4ed296..1e712a0ff 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Dialogue/Dialogue.xml
@@ -72,7 +72,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Bombard_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Bombard_Trail.trail
index a973309be..6ca98cea7 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Bombard_Trail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Bombard_Trail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/BoostParticle_Red.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/BoostParticle_Red.bin
new file mode 100644
index 000000000..6a07e1766
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/BoostParticle_Red.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4bfec53a351cdf5e7ec5216129687226be42f20ff6eb99cc18e85cad71f1e2b3
+size 1225
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/BoostParticle_Yellow.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/BoostParticle_Yellow.bin
new file mode 100644
index 000000000..2fde3a861
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/BoostParticle_Yellow.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:95c82154b1ca1de1d09e23b48a7124751c08f03bc6bb33ddfac3c072a890ddac
+size 1225
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/Booster_ScreenFX.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/Booster_ScreenFX.bin
new file mode 100644
index 000000000..ef6eadf86
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/Booster_ScreenFX.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:48058f203cc122f819851508bceccc0d9f770dee93b0897c0682335d4aeb2e44
+size 1265
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/Broom_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/Broom_Trail.trail
new file mode 100644
index 000000000..8096e79bb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomEffect/Broom_Trail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Bubble.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Bubble.bin
new file mode 100644
index 000000000..effbd6cd1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Bubble.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de8c9c0c539a4431037b66b2e40f47f3fc61c301bb2c211f761e8883cb358c9c
+size 1194
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Bubble_Distortion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Bubble_Distortion.bin
new file mode 100644
index 000000000..3451a1639
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Bubble_Distortion.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bcd873348c12d8e19d0aea35307e79f24cdba645a8b928bba6e237ecc0beab54
+size 1103
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Firewark_Blue.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Firewark_Blue.bin
new file mode 100644
index 000000000..9ff5217ca
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Firewark_Blue.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:01339ee98636732b8c5b40d485cbbb8c3bd4b8af36475f104ab180d6cd547704
+size 1235
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Firewark_Red.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Firewark_Red.bin
new file mode 100644
index 000000000..ae1ed14c5
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Firewark_Red.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:21a98a4194b7e467d54c3e03d750320f91d130391a3c05299abda34fb61f9112
+size 1235
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Firewark_Yellow.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Firewark_Yellow.bin
new file mode 100644
index 000000000..09dd0582d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Firewark_Yellow.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e378fbf4d76616f4359bfb90b010485346b5f80e02c500b4b77c5d06f1727a20
+size 1235
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Hit_Bubble.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Hit_Bubble.bin
new file mode 100644
index 000000000..4aac98b59
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Hit_Bubble.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:aba4f8fecff5f63066ea32b8f2301b5ed4f075ab82f2c80ade12243dfc9924e2
+size 1196
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Ring_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Ring_Blur.bin
new file mode 100644
index 000000000..5ee9fc96e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BroomRace/Ring_Blur.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:60a1b800160582d4bf151b23c8d1abb53565eb75fb4993d77fcc68a8d3b1fa73
+size 1152
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinAttack/Attack_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinAttack/Attack_Trail.trail
new file mode 100644
index 000000000..53a511046
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinAttack/Attack_Trail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/MageSide/Mage_Fire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/MageSide/Mage_Fire.bin
new file mode 100644
index 000000000..90a6a5d02
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/MageSide/Mage_Fire.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3473d09b79854983ac84be8eebe75492b471b7a3dbcbfc3928275175f625110f
+size 1202
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_Lay_Corrupted.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_Lay_Corrupted.bin
index f68854280..317adccde 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_Lay_Corrupted.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_Lay_Corrupted.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:4c7ad03cecbde11ec6592986521b2aa82f9cbed0b00dd929da9b36e42b37ac82
-size 1223
+oid sha256:0391bf759f9a9473d6f9a400e30f94b4a5697dc790487c751d50838777d3c06f
+size 1243
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_R.bin
index 3d0b37781..6b551c46a 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_R.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Hit_R.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:53f49b5eef440f5809dfca441703f486126c8a29f8527283beed85fdf0ec6aae
-size 1252
+oid sha256:05e136318176b94229550fa95bd4c72af999e8cd9f25424bc8cd0f2093341531
+size 1202
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Proj_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Proj_PT.bin
index b2159b487..c98744bb9 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Proj_PT.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Proj_PT.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:2cb129055f93b9c0b06f1852e54a8054f413476712d587a3782299487ec6458f
+oid sha256:c880815795d41f00d07e3cff55ed9e639432ced9e702ae916e6c6c1bae8c3e65
size 1350
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Proj_PT2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Proj_PT2.bin
index ed7602741..5ca6b33e8 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Proj_PT2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/GoblinMage/NomalAttack/Proj_PT2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3d3c6d4eb30a8e6fa88a4edaf64fb08c0e9db2d686ecda24bb05aa501157e7e2
+oid sha256:41e9d8a1d454ae696fb9595fca5b12acaa1ffca01e92b5947112e805e787051f
size 1372
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinAttack.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinAttack.bin
index 8c07ff7b8..8ee6dccce 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinAttack.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinAttack.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:22a7983d4691c81dba0003b8c907e2d47cb25e86ef5626c085dd8d46041edc54
-size 159
+oid sha256:30d0b5331529a7fbabda98ac000a0a1fa1bbb3496759138117b5396ab9990a96
+size 235
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/MageSide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/MageSide.bin
index f4ce96cb6..62565485d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/MageSide.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/MageSide.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d35ef44f7e2ccae5159b052b7d4e381461eb2f97f5a20f9b6f61fd6a726a1f38
-size 148
+oid sha256:f867ff483291f5844fd038f36dea098d257d91a8758c4a648dd91e55c3259523
+size 219
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Reparo.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Reparo.bin
new file mode 100644
index 000000000..dcc20f31c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Reparo.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dddd30442abb61f1761205ac5f9779acaccf7e0b1fbf8e578e65bfb316d5a5ee
+size 192
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Reparo/Reparo_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Reparo/Reparo_Trail.trail
new file mode 100644
index 000000000..529220201
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Reparo/Reparo_Trail.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Reparo/Reparo_Wand_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Reparo/Reparo_Wand_PT.bin
new file mode 100644
index 000000000..c499f5707
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Reparo/Reparo_Wand_PT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:13cb3568cd6e4f78aba34f05e93e55d970ca97dbe32ba9a3fd87f865a782571f
+size 1209
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Reparo/Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Reparo/Wand_Light.bin
new file mode 100644
index 000000000..a37f7de73
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Reparo/Wand_Light.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dd6cfc9d4a380580efffea18dceb4a9e23c81443a6e28439011a929bf63f8820
+size 1145
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/Wind.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/Wind.bin
index 7c9a2250d..029e65baf 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/Wind.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/ScreenFX/Wind.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:27d24dd14d81bd4b1387f0c3564ed4e0fa301becf0c2270e377eddb083dc2231
+oid sha256:4d9742c6c18581c7c5bb9fc8773c73227a80fe8ffaa0bd51461af9e6179f235a
size 1222
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 d35dcebef..ab0062bf0 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
@@ -3828,9 +3828,9 @@
-
-
-
+
+
+
Prototype_GameObject_SM_HM_TScrolls_Door
Prototype_GameObject_SM_HM_TScrolls_Door_Lod1
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml
index 26fb4c25c..b00295a89 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml
@@ -312,4 +312,24 @@
MRO
+
+
+ T_HM_BLDG_TeaShop_Windows_A_Glass_D
+ T_HM_BLDG_TeaShop_Windows_A_Glass_N
+ T_HM_BLDG_TeaShop_Windows_A_Glass_MRO
+ MRO
+
+
+ T_HM_BLDG_TeaShop_Windows_A_Glass_D
+ T_HM_BLDG_TeaShop_Windows_A_Glass_N
+ T_HM_BLDG_TeaShop_Windows_A_Glass_MRO
+ MRO
+
+
+ T_HM_BLDG_TeaShop_Door_A_D
+ T_HM_BLDG_TeaShop_Door_A_N
+ T_HM_BLDG_TeaShop_Door_A_MRO
+ MRO
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/Teashop_Door.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/Teashop_Door.bin
new file mode 100644
index 000000000..79bc8a31d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/Teashop_Door.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:09a67b79a184f1a5b010b486f0170d861570c905eaa68e7d4a4fe1222966bc08
+size 196
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
new file mode 100644
index 000000000..e0b9f6fb4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Monster/Goblin_Data.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml
index ec37e8f45..106d480bb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml
@@ -31,7 +31,7 @@
@@ -50,4 +50,14 @@
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds
index df19cee74..4f509bd01 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin
index afd1d0a80..1c946216c 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3105f242284fd06024b2f92a482b7a644c17b7c99f476b289f24cadfcefc7741
-size 7419042
+oid sha256:4481d70e2466f343acb66ed124d38864a0e74cd0f01822baa3373604a22e11ca
+size 7418454
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.fbx
index 4fcd3ad04..b4f4f1670 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:036ae502f672f524c65c103522c570ba654673b919ef5e26dfac41954b035a72
-size 3493500
+oid sha256:2eccdbc0b46d6a62e59ba6a77dd91cadb62e9fb948d6638cbdf92880596f190e
+size 3357868
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig_Anim.bin
index 784640f73..1708bc1d9 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig_Anim.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig_Anim.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:dc8fd14903a2b807e279d7ee07f54756662c6ed08f6333dd03ce14e244c643ea
-size 35685852
+oid sha256:1adfb736b49ddd26748a9f42f26dbf20269b5a6ac6c637b7fd056928b198f21c
+size 25325064
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig_Anim.fbx
index da8d64f2e..b549f4d6d 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig_Anim.fbx
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig_Anim.fbx
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:98fa7d2d6035652e7c191f33f7f8c5a54cea77b46d0f52ae7fe181ee59df406f
-size 38783980
+oid sha256:a2dd570a54b5dc63bf5a996fb9d8e6efa2db33b528bebf41c93e8c1d7b657c41
+size 19794204
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml
index 4c793831b..4d0f251b5 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml
@@ -1,5 +1,5 @@
-
+
@@ -115,7 +115,7 @@
-
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.fbx
deleted file mode 100644
index 61a900666..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:6f2ff4c2214e02c8c9d2e3cb7d6752f605ac52de8b286d63f8339f6c0dc8a131
-size 280284
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_BLDG_TeaShop_Door_A.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_BLDG_TeaShop_Door_A.bin
new file mode 100644
index 000000000..fc2d8708c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_BLDG_TeaShop_Door_A.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0057c18549ddccedc10bf71c501d27b60eadf0b2799bca75f83ef5adaca59ac3
+size 150399
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.fbx
deleted file mode 100644
index 9f0dace08..000000000
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_HM_Quid_StoneKit_A.fbx
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:1610d747ceb8601325fe5d9c8b0e16502db44ecb00d9c0d421cfdffb5f03f9b4
-size 56748
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Door_A_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Door_A_D.dds
new file mode 100644
index 000000000..9cb30a1e5
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Door_A_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Door_A_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Door_A_MRO.dds
new file mode 100644
index 000000000..2beea5708
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Door_A_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Door_A_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Door_A_N.dds
new file mode 100644
index 000000000..cb7a03b7d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Door_A_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Windows_A_Glass_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Windows_A_Glass_D.dds
new file mode 100644
index 000000000..0e63a07bf
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Windows_A_Glass_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Windows_A_Glass_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Windows_A_Glass_MRO.dds
new file mode 100644
index 000000000..38a4dc9d8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Windows_A_Glass_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Windows_A_Glass_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Windows_A_Glass_N.dds
new file mode 100644
index 000000000..13cf9e6e4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_HM_BLDG_TeaShop_Windows_A_Glass_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin
index 8eb4a10e5..82236f2c5 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:a2ceae401a688d6a3be1e31efbdc41094ac55e4b6e52cc1171df4905045854f3
-size 146391
+oid sha256:12549dd62285521e1cc94467a54931b362b318d26cf66395bb1db38aa17fee49
+size 145913
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin
index 302d61b9f..23cdd330f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:08c0e53542fa6f5b850e345c0df241aa59ddaa100415d6f2d9277c590f580671
+oid sha256:a95ac7cb4d69f8780dcee6b6ca9b0910dcffad96c571d48e6dc2464d7229c314
size 68978
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
index 382f137bc..67d65d7e7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
@@ -1117,7 +1117,7 @@ PS_OUT_DELCAL PS_MAIN_DECAL(PS_IN_DECAL In)
vDiffuseColor /= fMaskWeight;
- vDiffuseColor.a = max(0.001f, vDiffuseColor.a);
+ vDiffuseColor.a = saturate(max(0.001f, vDiffuseColor.a));
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Battle_BGM_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Battle_BGM_1.wav
new file mode 100644
index 000000000..ae93ee971
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Battle_BGM_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Battle_BGM_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Battle_BGM_2.wav
new file mode 100644
index 000000000..9e30de60e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Battle_BGM_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Hogwart_BGM_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Hogwart_BGM_0.wav
new file mode 100644
index 000000000..c32bcf268
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Hogwart_BGM_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Hogwart_BGM_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Hogwart_BGM_2.wav
new file mode 100644
index 000000000..69216fc59
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Hogwart_BGM_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Ranrok_BGM.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Ranrok_BGM.wav
new file mode 100644
index 000000000..334b83d7c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/BGM/Ranrok_BGM.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/avadakedavra_voice.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/avadakedavra_voice.wav
new file mode 100644
index 000000000..140a7b699
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/avadakedavra_voice.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/bombarda_voice.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/bombarda_voice.wav
new file mode 100644
index 000000000..46945ff1b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/bombarda_voice.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/decendo_voice.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/decendo_voice.wav
new file mode 100644
index 000000000..81ee002ff
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/decendo_voice.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/levioso_voice.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/levioso_voice.wav
new file mode 100644
index 000000000..c609987fe
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/levioso_voice.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/lumos_voice.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/lumos_voice.wav
new file mode 100644
index 000000000..920a29ff7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/lumos_voice.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/protego_voice.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/protego_voice.wav
new file mode 100644
index 000000000..c2a957bf8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/protego_voice.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/reparo_voice.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/reparo_voice.wav
new file mode 100644
index 000000000..2a5a77d56
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/reparo_voice.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/revelio.voice.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/revelio.voice.wav
new file mode 100644
index 000000000..5000a6952
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/revelio.voice.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/stupefy_voice.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/stupefy_voice.wav
new file mode 100644
index 000000000..7d3f9d850
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/Voice/stupefy_voice.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_0.wav
new file mode 100644
index 000000000..2f32ea48a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_1.wav
new file mode 100644
index 000000000..9ac01d332
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_10.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_10.wav
new file mode 100644
index 000000000..4f6605590
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_10.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_11.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_11.wav
new file mode 100644
index 000000000..87f011a05
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_11.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_12.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_12.wav
new file mode 100644
index 000000000..5745c907b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_12.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_13.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_13.wav
new file mode 100644
index 000000000..8f5ff05e3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_13.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_14.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_14.wav
new file mode 100644
index 000000000..6352e7ff1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_14.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_15.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_15.wav
new file mode 100644
index 000000000..ec05679fd
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_15.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_16.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_16.wav
new file mode 100644
index 000000000..9d3bbdaa7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_16.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_17.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_17.wav
new file mode 100644
index 000000000..625159bc9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_17.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_18.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_18.wav
new file mode 100644
index 000000000..07ba84f8d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_18.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_19.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_19.wav
new file mode 100644
index 000000000..a79e67885
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_19.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_2.wav
new file mode 100644
index 000000000..fc2424062
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_20.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_20.wav
new file mode 100644
index 000000000..a3fd1380a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_20.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_21.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_21.wav
new file mode 100644
index 000000000..e988ed37b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_21.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_22.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_22.wav
new file mode 100644
index 000000000..68c782ff9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_22.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_23.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_23.wav
new file mode 100644
index 000000000..7eae9dae1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_23.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_3.wav
new file mode 100644
index 000000000..3653defe3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_4.wav
new file mode 100644
index 000000000..a41c5cae2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_4.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_5.wav
new file mode 100644
index 000000000..c058526a9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_6.wav
new file mode 100644
index 000000000..633c4c44a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_6.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_7.wav
new file mode 100644
index 000000000..e1848e3e1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_7.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_8.wav
new file mode 100644
index 000000000..9ac18d0fe
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_8.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_9.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_9.wav
new file mode 100644
index 000000000..2f6a67fec
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_accio_akb/accio_9.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_0.wav
new file mode 100644
index 000000000..f43bf7629
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_1.wav
new file mode 100644
index 000000000..6c543b357
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_10.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_10.wav
new file mode 100644
index 000000000..ccebcd0e1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_10.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_11.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_11.wav
new file mode 100644
index 000000000..f4787d821
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_11.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_12.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_12.wav
new file mode 100644
index 000000000..295c487c6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_12.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_2.wav
new file mode 100644
index 000000000..fbb7c36f6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_3.wav
new file mode 100644
index 000000000..ac576174a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_4.wav
new file mode 100644
index 000000000..36055c0f6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_4.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_5.wav
new file mode 100644
index 000000000..f9d945f7c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_6.wav
new file mode 100644
index 000000000..d6c61510f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_6.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_7.wav
new file mode 100644
index 000000000..3ff81386a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_7.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_8.wav
new file mode 100644
index 000000000..b3423fb57
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_8.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_9.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_9.wav
new file mode 100644
index 000000000..99caabc05
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_avada_kedavra_akb/avada_kedavra_9.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_0.wav
new file mode 100644
index 000000000..9ddb7d881
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_1.wav
new file mode 100644
index 000000000..13b6d3385
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_10.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_10.wav
new file mode 100644
index 000000000..59b838721
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_10.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_11.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_11.wav
new file mode 100644
index 000000000..4919fa311
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_11.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_12.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_12.wav
new file mode 100644
index 000000000..f0c6acbf1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_12.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_13.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_13.wav
new file mode 100644
index 000000000..baceea05b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_13.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_14.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_14.wav
new file mode 100644
index 000000000..c6560b886
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_14.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_15.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_15.wav
new file mode 100644
index 000000000..0720aa3c7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_15.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_16.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_16.wav
new file mode 100644
index 000000000..464e34f37
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_16.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_17.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_17.wav
new file mode 100644
index 000000000..c6d511a8d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_17.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_18.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_18.wav
new file mode 100644
index 000000000..086b4e6dc
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_18.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_19.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_19.wav
new file mode 100644
index 000000000..cfd4afaec
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_19.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_2.wav
new file mode 100644
index 000000000..0d2ed1327
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_20.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_20.wav
new file mode 100644
index 000000000..fd6a08ba2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_20.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_21.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_21.wav
new file mode 100644
index 000000000..43104fc28
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_21.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_22.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_22.wav
new file mode 100644
index 000000000..cc7f0dc88
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_22.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_23.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_23.wav
new file mode 100644
index 000000000..89db6199b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_23.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_24.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_24.wav
new file mode 100644
index 000000000..614909607
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_24.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_25.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_25.wav
new file mode 100644
index 000000000..9e5684115
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_25.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_26.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_26.wav
new file mode 100644
index 000000000..716beb6a8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_26.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_27.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_27.wav
new file mode 100644
index 000000000..b5321fb58
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_27.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_28.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_28.wav
new file mode 100644
index 000000000..03eb90288
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_28.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_29.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_29.wav
new file mode 100644
index 000000000..ddcad189e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_29.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_3.wav
new file mode 100644
index 000000000..b6b18d9d7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_30.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_30.wav
new file mode 100644
index 000000000..c55288a17
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_30.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_31.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_31.wav
new file mode 100644
index 000000000..0ab58990c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_31.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_32.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_32.wav
new file mode 100644
index 000000000..df0a99224
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_32.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_33.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_33.wav
new file mode 100644
index 000000000..2277ad65b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_33.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_34.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_34.wav
new file mode 100644
index 000000000..ebcc9240c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_34.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_35.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_35.wav
new file mode 100644
index 000000000..6f17957b2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_35.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_36.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_36.wav
new file mode 100644
index 000000000..239839499
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_36.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_37.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_37.wav
new file mode 100644
index 000000000..d350ae91b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_37.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_38.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_38.wav
new file mode 100644
index 000000000..c55e42e37
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_38.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_39.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_39.wav
new file mode 100644
index 000000000..11d607664
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_39.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_4.wav
new file mode 100644
index 000000000..f22c83b4e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_4.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_40.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_40.wav
new file mode 100644
index 000000000..42417c392
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_40.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_41.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_41.wav
new file mode 100644
index 000000000..d953f30ee
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_41.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_42.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_42.wav
new file mode 100644
index 000000000..d082c1fb8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_42.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_43.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_43.wav
new file mode 100644
index 000000000..7fb78adfe
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_43.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_44.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_44.wav
new file mode 100644
index 000000000..e4e7a03be
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_44.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_45.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_45.wav
new file mode 100644
index 000000000..78b682b44
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_45.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_46.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_46.wav
new file mode 100644
index 000000000..70bd0dec0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_46.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_5.wav
new file mode 100644
index 000000000..0fa3fd406
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_6.wav
new file mode 100644
index 000000000..c2e616419
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_6.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_7.wav
new file mode 100644
index 000000000..126b33149
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_7.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_8.wav
new file mode 100644
index 000000000..75c750d07
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_8.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_9.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_9.wav
new file mode 100644
index 000000000..dad38fbc7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_bombard_akb/bombard_9.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_0.wav
new file mode 100644
index 000000000..1f54332b9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_1.wav
new file mode 100644
index 000000000..64a1a9fcb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_10.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_10.wav
new file mode 100644
index 000000000..5d2838886
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_10.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_11.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_11.wav
new file mode 100644
index 000000000..d3c8dbf11
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_11.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_12.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_12.wav
new file mode 100644
index 000000000..900c78bab
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_12.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_13.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_13.wav
new file mode 100644
index 000000000..e9ee3be6f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_13.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_14.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_14.wav
new file mode 100644
index 000000000..4bc25bad1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_14.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_15.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_15.wav
new file mode 100644
index 000000000..0a3334ca7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_15.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_16.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_16.wav
new file mode 100644
index 000000000..4297bccfe
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_16.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_17.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_17.wav
new file mode 100644
index 000000000..40151854c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_17.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_18.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_18.wav
new file mode 100644
index 000000000..fc93cb8be
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_18.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_19.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_19.wav
new file mode 100644
index 000000000..8df751817
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_19.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_2.wav
new file mode 100644
index 000000000..6637c07fc
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_20.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_20.wav
new file mode 100644
index 000000000..2e02518cd
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_20.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_21.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_21.wav
new file mode 100644
index 000000000..033304732
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_21.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_22.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_22.wav
new file mode 100644
index 000000000..2772e118b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_22.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_23.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_23.wav
new file mode 100644
index 000000000..ac4bdc93d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_23.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_24.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_24.wav
new file mode 100644
index 000000000..7c001f832
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_24.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_25.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_25.wav
new file mode 100644
index 000000000..33fa6ebdf
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_25.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_3.wav
new file mode 100644
index 000000000..eb6659876
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_4.wav
new file mode 100644
index 000000000..5f1a9c3fa
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_4.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_5.wav
new file mode 100644
index 000000000..cd44502c3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_6.wav
new file mode 100644
index 000000000..ef488291f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_6.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_7.wav
new file mode 100644
index 000000000..ae281b258
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_7.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_8.wav
new file mode 100644
index 000000000..55645667d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_8.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_9.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_9.wav
new file mode 100644
index 000000000..d238ecf2c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_descendo_akb/descendo_9.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_0.wav
new file mode 100644
index 000000000..34d720ede
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_1.wav
new file mode 100644
index 000000000..e2502aabc
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_10.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_10.wav
new file mode 100644
index 000000000..ad5aa0ba9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_10.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_11.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_11.wav
new file mode 100644
index 000000000..62a521e03
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_11.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_12.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_12.wav
new file mode 100644
index 000000000..783012e9c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_12.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_13.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_13.wav
new file mode 100644
index 000000000..c1b40aca2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_13.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_14.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_14.wav
new file mode 100644
index 000000000..364693289
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_14.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_15.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_15.wav
new file mode 100644
index 000000000..14796d7ff
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_15.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_16.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_16.wav
new file mode 100644
index 000000000..2864a56e3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_16.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_17.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_17.wav
new file mode 100644
index 000000000..4b326f434
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_17.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_18.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_18.wav
new file mode 100644
index 000000000..7bcb4ea26
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_18.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_19.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_19.wav
new file mode 100644
index 000000000..67068224e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_19.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_2.wav
new file mode 100644
index 000000000..972417824
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_20.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_20.wav
new file mode 100644
index 000000000..6cdb13eb4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_20.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_21.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_21.wav
new file mode 100644
index 000000000..9b853e172
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_21.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_22.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_22.wav
new file mode 100644
index 000000000..79644d04f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_22.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_23.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_23.wav
new file mode 100644
index 000000000..3af669938
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_23.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_24.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_24.wav
new file mode 100644
index 000000000..88f669e5e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_24.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_25.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_25.wav
new file mode 100644
index 000000000..5d5e99db1
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_25.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_26.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_26.wav
new file mode 100644
index 000000000..7e5ff2503
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_26.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_27.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_27.wav
new file mode 100644
index 000000000..1c2ba2dbd
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_27.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_28.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_28.wav
new file mode 100644
index 000000000..0580509ce
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_28.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_29.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_29.wav
new file mode 100644
index 000000000..b76c0d0c2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_29.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_3.wav
new file mode 100644
index 000000000..2cdcaa260
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_30.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_30.wav
new file mode 100644
index 000000000..7c9dc960f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_30.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_31.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_31.wav
new file mode 100644
index 000000000..0993a4dc4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_31.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_32.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_32.wav
new file mode 100644
index 000000000..c892ea324
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_32.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_33.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_33.wav
new file mode 100644
index 000000000..57c28f742
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_33.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_4.wav
new file mode 100644
index 000000000..eeb09aaf6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_4.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_5.wav
new file mode 100644
index 000000000..e8fdb5fe6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_6.wav
new file mode 100644
index 000000000..1cb52e465
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_6.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_7.wav
new file mode 100644
index 000000000..7cfdd0ea0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_7.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_8.wav
new file mode 100644
index 000000000..e22e2df2f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_8.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_9.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_9.wav
new file mode 100644
index 000000000..3daa1a5fc
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_jap_akb/jap_9.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_0.wav
new file mode 100644
index 000000000..f3c293d45
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_1.wav
new file mode 100644
index 000000000..7f0ddf1a9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_10.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_10.wav
new file mode 100644
index 000000000..42c0dfc52
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_10.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_11.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_11.wav
new file mode 100644
index 000000000..3143f0e1c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_11.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_12.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_12.wav
new file mode 100644
index 000000000..52e9f4813
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_12.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_13.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_13.wav
new file mode 100644
index 000000000..66fda3754
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_13.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_14.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_14.wav
new file mode 100644
index 000000000..f4bb346bd
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_14.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_15.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_15.wav
new file mode 100644
index 000000000..ff1743cc5
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_15.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_16.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_16.wav
new file mode 100644
index 000000000..a03570e2f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_16.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_17.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_17.wav
new file mode 100644
index 000000000..e2017e3d3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_17.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_18.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_18.wav
new file mode 100644
index 000000000..653502f23
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_18.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_19.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_19.wav
new file mode 100644
index 000000000..595b9210d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_19.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_2.wav
new file mode 100644
index 000000000..1eda5845e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_20.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_20.wav
new file mode 100644
index 000000000..62a7e7177
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_20.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_21.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_21.wav
new file mode 100644
index 000000000..8bbb9a2e7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_21.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_22.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_22.wav
new file mode 100644
index 000000000..4f974b26b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_22.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_23.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_23.wav
new file mode 100644
index 000000000..8e99182f4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_23.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_24.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_24.wav
new file mode 100644
index 000000000..7484bf99f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_24.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_25.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_25.wav
new file mode 100644
index 000000000..d06db2f9b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_25.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_26.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_26.wav
new file mode 100644
index 000000000..ad2bd5039
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_26.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_27.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_27.wav
new file mode 100644
index 000000000..6c1f91216
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_27.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_3.wav
new file mode 100644
index 000000000..ec1e23577
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_4.wav
new file mode 100644
index 000000000..776ffa503
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_4.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_5.wav
new file mode 100644
index 000000000..ef16b8470
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_6.wav
new file mode 100644
index 000000000..e6f9e68ae
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_6.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_7.wav
new file mode 100644
index 000000000..90c4e9b21
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_7.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_8.wav
new file mode 100644
index 000000000..978bf7b11
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_8.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_9.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_9.wav
new file mode 100644
index 000000000..b584c8490
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_leviosa_akb/leviosa_9.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_lumos_akb/lumos_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_lumos_akb/lumos_0.wav
new file mode 100644
index 000000000..8f09e66a6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_lumos_akb/lumos_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_lumos_akb/lumos_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_lumos_akb/lumos_1.wav
new file mode 100644
index 000000000..61a942aa0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_lumos_akb/lumos_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_0.wav
new file mode 100644
index 000000000..2023b8ae2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_1.wav
new file mode 100644
index 000000000..c3bb183eb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_2.wav
new file mode 100644
index 000000000..e9ea87b51
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_3.wav
new file mode 100644
index 000000000..947656835
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_5.wav
new file mode 100644
index 000000000..7ea0a8900
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_perk_shadowblink_akb/blink_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_0.wav
new file mode 100644
index 000000000..292b13064
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_1.wav
new file mode 100644
index 000000000..231785245
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_10.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_10.wav
new file mode 100644
index 000000000..88c6cc8ce
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_10.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_11.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_11.wav
new file mode 100644
index 000000000..4ce322d27
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_11.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_12.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_12.wav
new file mode 100644
index 000000000..93a5041ab
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_12.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_13.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_13.wav
new file mode 100644
index 000000000..29e8a0225
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_13.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_14.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_14.wav
new file mode 100644
index 000000000..7a01b357c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_14.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_15.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_15.wav
new file mode 100644
index 000000000..ee136bcd0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_15.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_16.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_16.wav
new file mode 100644
index 000000000..333b50920
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_16.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_17.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_17.wav
new file mode 100644
index 000000000..58ac3888e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_17.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_18.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_18.wav
new file mode 100644
index 000000000..ead0dce45
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_18.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_19.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_19.wav
new file mode 100644
index 000000000..1f973311e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_19.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_2.wav
new file mode 100644
index 000000000..a04a5794c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_20.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_20.wav
new file mode 100644
index 000000000..e29995873
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_20.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_21.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_21.wav
new file mode 100644
index 000000000..7f5582722
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_21.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_22.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_22.wav
new file mode 100644
index 000000000..37fce1609
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_22.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_23.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_23.wav
new file mode 100644
index 000000000..2df5935b0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_23.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_24.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_24.wav
new file mode 100644
index 000000000..19c2f60d8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_24.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_25.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_25.wav
new file mode 100644
index 000000000..28d489036
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_25.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_26.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_26.wav
new file mode 100644
index 000000000..27334e18b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_26.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_27.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_27.wav
new file mode 100644
index 000000000..354ea73e7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_27.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_28.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_28.wav
new file mode 100644
index 000000000..37bf36461
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_28.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_29.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_29.wav
new file mode 100644
index 000000000..bd32a9eb0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_29.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_3.wav
new file mode 100644
index 000000000..81ae48a8d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_30.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_30.wav
new file mode 100644
index 000000000..1253dc753
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_30.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_4.wav
new file mode 100644
index 000000000..a9595b877
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_4.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_5.wav
new file mode 100644
index 000000000..b51c0bde8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_6.wav
new file mode 100644
index 000000000..3f899414d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_6.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_7.wav
new file mode 100644
index 000000000..faa5ce6e8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_7.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_8.wav
new file mode 100644
index 000000000..598a7d841
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_8.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_9.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_9.wav
new file mode 100644
index 000000000..7a51a68f5
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_protego_akb/protego_9.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_0.wav
new file mode 100644
index 000000000..aceeed1e2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_1.wav
new file mode 100644
index 000000000..317921abf
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_10.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_10.wav
new file mode 100644
index 000000000..9c7a5c75f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_10.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_11.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_11.wav
new file mode 100644
index 000000000..90bd38107
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_11.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_12.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_12.wav
new file mode 100644
index 000000000..8a371da90
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_12.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_13.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_13.wav
new file mode 100644
index 000000000..7d8015d3c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_13.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_14.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_14.wav
new file mode 100644
index 000000000..4d2d04da0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_14.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_15.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_15.wav
new file mode 100644
index 000000000..c97e4efb3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_15.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_16.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_16.wav
new file mode 100644
index 000000000..9ac09c456
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_16.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_17.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_17.wav
new file mode 100644
index 000000000..db94dec02
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_17.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_18.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_18.wav
new file mode 100644
index 000000000..13b03d02b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_18.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_19.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_19.wav
new file mode 100644
index 000000000..d9f4ad645
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_19.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_2.wav
new file mode 100644
index 000000000..ec65001ad
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_20.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_20.wav
new file mode 100644
index 000000000..f2ed1a6cc
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_20.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_21.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_21.wav
new file mode 100644
index 000000000..bc597bcec
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_21.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_22.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_22.wav
new file mode 100644
index 000000000..c75c76668
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_22.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_23.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_23.wav
new file mode 100644
index 000000000..b46148c56
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_23.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_24.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_24.wav
new file mode 100644
index 000000000..fb1b92444
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_24.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_25.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_25.wav
new file mode 100644
index 000000000..87a3da467
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_25.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_26.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_26.wav
new file mode 100644
index 000000000..85a5a99ab
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_26.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_27.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_27.wav
new file mode 100644
index 000000000..33d31b2ec
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_27.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_28.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_28.wav
new file mode 100644
index 000000000..6595c2b71
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_28.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_29.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_29.wav
new file mode 100644
index 000000000..c77f85818
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_29.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_3.wav
new file mode 100644
index 000000000..5b8b916ea
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_4.wav
new file mode 100644
index 000000000..6ae18fd1a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_4.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_5.wav
new file mode 100644
index 000000000..2ae7e0c1f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_6.wav
new file mode 100644
index 000000000..09dba04c6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_6.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_7.wav
new file mode 100644
index 000000000..54bc161e9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_7.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_8.wav
new file mode 100644
index 000000000..a485c4b47
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_8.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_9.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_9.wav
new file mode 100644
index 000000000..d3826e2ca
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_reparo_akb/reparo_9.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_0.wav
new file mode 100644
index 000000000..8800c6597
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_1.wav
new file mode 100644
index 000000000..7ceecda34
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_10.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_10.wav
new file mode 100644
index 000000000..c91f7e61a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_10.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_11.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_11.wav
new file mode 100644
index 000000000..c6a804ffa
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_11.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_12.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_12.wav
new file mode 100644
index 000000000..e5d8e4d5c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_12.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_2.wav
new file mode 100644
index 000000000..144b7d03f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_3.wav
new file mode 100644
index 000000000..a62b329cb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_4.wav
new file mode 100644
index 000000000..4864228f8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_4.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_5.wav
new file mode 100644
index 000000000..4418a6d9b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_6.wav
new file mode 100644
index 000000000..3df65cdd4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_6.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_7.wav
new file mode 100644
index 000000000..f7b44777b
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_7.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_8.wav
new file mode 100644
index 000000000..fcc57c4ef
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_8.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_9.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_9.wav
new file mode 100644
index 000000000..9d51f4db9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_revelio_akb/revelio_9.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_0.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_0.wav
new file mode 100644
index 000000000..3e47d379a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_0.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_1.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_1.wav
new file mode 100644
index 000000000..fc44654c2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_1.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_2.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_2.wav
new file mode 100644
index 000000000..976b59e53
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_2.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_3.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_3.wav
new file mode 100644
index 000000000..d4f7cb820
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_3.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_4.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_4.wav
new file mode 100644
index 000000000..40bb85858
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_4.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_5.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_5.wav
new file mode 100644
index 000000000..9a94e7204
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_5.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_6.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_6.wav
new file mode 100644
index 000000000..15492c15e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_6.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_7.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_7.wav
new file mode 100644
index 000000000..3f5ac4448
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_7.wav differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_8.wav b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_8.wav
new file mode 100644
index 000000000..76227c4c2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Sounds/Player/spells_wand_doppler_akb/wand_doppler_8.wav differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index 1f280176e..8c53839c9 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -207,6 +207,7 @@ call Update_Shaders.bat
+
@@ -256,6 +257,10 @@ call Update_Shaders.bat
+
+
+
+
@@ -476,6 +481,7 @@ call Update_Shaders.bat
+
@@ -499,6 +505,7 @@ call Update_Shaders.bat
+
@@ -549,6 +556,10 @@ call Update_Shaders.bat
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 6ceddf134..e30df2598 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -801,13 +801,19 @@
{9b246a74-cf6e-4f02-86fb-0a499cb39d4e}
-
+
{aa6ef154-b82d-42eb-82a7-f8b7f6631a1e}
{29bd6d08-5bfd-48ca-bd32-40824c276032}
+
+ {8c55a8be-b0bf-4d8b-ab30-7b7c883f9bd3}
+
+
+ {e0803999-ff32-4356-8a06-2b5a3bc7d49b}
+
@@ -1628,13 +1634,28 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Rush
-
+
02.GameObjects\Dummys\DummyNPC
02.GameObjects\ReparoObject
+
+ 02.GameObjects\Broom\BroomState
+
+
+ 02.GameObjects\Broom\BroomState
+
+
+ 02.GameObjects\Broom\BroomState
+
+
+ 02.GameObjects\Broom\BroomState
+
+
+ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\12.BroomBoost
+
@@ -2463,13 +2484,31 @@
02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Rush
-
+
02.GameObjects\Dummys\DummyNPC
02.GameObjects\ReparoObject
+
+ 02.GameObjects\Broom\BroomState
+
+
+ 02.GameObjects\Broom\BroomState
+
+
+ 02.GameObjects\Broom\BroomState
+
+
+ 02.GameObjects\Broom\BroomState
+
+
+ 02.GameObjects\Broom\BroomState
+
+
+ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\12.BroomBoost
+
diff --git a/Jusin154_Team3D/Editor/Private/Broom.cpp b/Jusin154_Team3D/Editor/Private/Broom.cpp
index c0caa9293..e4e06ae22 100644
--- a/Jusin154_Team3D/Editor/Private/Broom.cpp
+++ b/Jusin154_Team3D/Editor/Private/Broom.cpp
@@ -2,14 +2,20 @@
#include "Broom.h"
#include "GameInstance.h"
+#include "InfoInstance.h"
+#include "Unit.h"
+#include "PartObject.h"
+#include "EditEffect.h"
+#include "TrailObject.h"
CBroom::CBroom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
- : CGameObject(pDevice, pContext)
+ : CUnit(pDevice, pContext)
{
}
CBroom::CBroom(const CBroom& Prototype)
- : CGameObject(Prototype)
+ : CUnit(Prototype),
+ m_pInfoInstance(CInfoInstance::GetInstance())
{
}
@@ -20,38 +26,159 @@ HRESULT CBroom::Initialize_Prototype()
HRESULT CBroom::Initialize(void* pArg)
{
- if (FAILED(__super::Initialize(pArg)))
+ if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
+ }
+
+ if (pArg) {
+ m_iIndex = *static_cast<_int*>(pArg);
+ }
- if (FAILED(Ready_Components()))
+ if (FAILED(Ready_Components())) {
return E_FAIL;
+ }
+
+
+ Add_FSM();
+
+
+ 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)
+ {
+ if (FAILED(Ready_Child())) {
+ return E_FAIL;
+ }
+
+ m_pWindEffect->Get_Effect_Info()->isBillboard = false;
+ }
+ else {
+ m_fAISeed = m_pGameInstance->Real_Random_Float(0.f, XM_2PI);
+ m_fAICondition = 1.f;
+ }
- m_pModelCom->Set_AnimationIndex(11,true);
return S_OK;
}
void CBroom::Priority_Update(_float fTimeDelta)
{
+ __super::Priority_Update(fTimeDelta);
}
void CBroom::Update(_float fTimeDelta)
{
+ __super::Update(fTimeDelta);
+
+ Update_CameraCoordinateSystem();
+
+ if (!m_pParentUnit->IsAI()) {
+ PlayerInput(fTimeDelta);
+ //m_pInfoInstance->Set_Broom_Booster_Timer(m_fTurboBoost);
+ }
+ else {
+ m_fAITime += fTimeDelta;
+
+ _float target = 1.f + sinf(m_fAITime * 0.3f + m_fAISeed) * 0.15f;
+
+ m_fAICondition += (target - m_fAICondition) * fTimeDelta * 0.3f;
+
+ m_fAICondition = clamp(m_fAICondition, 0.85f, 1.15f);
+ }
+ if (!m_bRide)
+ {
+ m_bHoverToggle = true;
+ m_fSpeed = 0.f;
+
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ }
+
+ m_pFSM->Update_State(fTimeDelta);
+
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
+#ifdef _DEBUG
Describe_Entity();
+#endif // _DEBUG
+
+ /* 윈드 이펙트 */
+
+ _matrix BroomTail_Mat = XMLoadFloat4x4(m_pBroom_TailMat);
+
+ for (int i = 0; i < 3; ++i) {
+ BroomTail_Mat.r[i] = XMVector3Normalize(BroomTail_Mat.r[i]);
+ }
+
+ m_pBroomTrail->Oneside_Rope_Trail_Update(BroomTail_Mat * m_pTransformCom->Get_XMWorldMatrix(), fTimeDelta);
+
+ if (m_bRide == true && m_pWindEffect != nullptr)
+ {
+ if (m_fSpeed <= 5.f)
+ {
+ m_pWindEffect->Get_Component()->Set_Loop(false);
+ m_pWindEffect->Get_Effect_Info()->isDissolve = true;
+ m_pBroomTrail->SetDissolve(true);
+ m_pWindEffect->Get_Effect_Info()->fSoftMask = 1.f;
+ return;
+ }
+
+ m_pWindEffect->Get_Component()->Set_Loop(true);
+ m_pWindEffect->Get_Effect_Info()->isDissolve = false;
+
+ m_pBroomTrail->SetDissolve(false);
+ m_pWindEffect->Set_Visible(true);
+ m_pWindEffect->Get_Component()->Set_TimeMult(0.5f + m_fSpeed / 20.f);
+ m_pWindEffect->Get_Effect_Info()->fBlurIntensity = m_fSpeed / 30.f;
+
+ m_pBroomTrail->Set_Visible(true);
+
+ }
+
+
}
void CBroom::Late_Update(_float fTimeDelta)
{
+ if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
+ return;
+ }
+ __super::Late_Update(fTimeDelta);
+
+ if (m_bRide == true && m_pWindEffect != nullptr)
+ {
+ CTransform* WindTransform = m_pWindEffect->Get_Component();
+
+ _matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix()/* * XMMatrixRotationAxis(XMVectorSet(0.f , 1.f, 0.f ,0.f), XMConvertToRadians(180.f))*/;
+ WindTransform->Set_WorldMatrix(WorldMat);
+
+ _vector vCameraLook = XMVector3Normalize(m_pGameInstance->Get_CameraLook());
+ WindTransform->Set_State(STATE::POSITION, m_pGameInstance->Get_CamXMPosition() + vCameraLook * m_fCameraOffset);
+
+ }
+
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+
}
HRESULT CBroom::Render()
{
- if (!m_pModelCom)
+ if (!m_pModelCom) {
return S_OK;
+ }
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
@@ -61,17 +188,23 @@ HRESULT CBroom::Render()
for (_uint i = 0; i < iNumMeshes; i++)
{
- if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
- return E_FAIL;
- }
-
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
+ if (FAILED(m_pShaderCom->Bind_Matrices(
+ "g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size()
+ )))
+ {
return E_FAIL;
}
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
@@ -81,6 +214,43 @@ HRESULT CBroom::Render()
return S_OK;
}
+HRESULT CBroom::Ready_Child()
+{
+
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+ if (FAILED(Add_PartObject("Wind_Screen", NEXT_LEVEL, &m_pWindEffect, &PartsDesc)))
+ {
+ return E_FAIL;
+ }
+ m_pWindEffect->Load("../Bin/Resources/Data/Effect/ScreenFX/Wind", static_cast(NEXT_LEVEL));
+
+ ///
+
+ if (FAILED(Add_PartObject("Boost_Screen", NEXT_LEVEL, &m_pBoostScreenFX, &PartsDesc)))
+ {
+ return E_FAIL;
+ }
+ m_pBoostScreenFX->Load("../Bin/Resources/Data/Effect/BroomEffect/Booster_ScreenFX", static_cast(NEXT_LEVEL));
+
+
+ ///
+
+ if (FAILED(Add_PartObject("Broom_Trail", NEXT_LEVEL, &m_pBroomTrail, &PartsDesc))) {
+ return E_FAIL;
+ }
+
+ m_pBroomTrail->Load_Trail("../Bin/Resources/Data/Effect/BroomEffect/Broom_Trail", static_cast(NEXT_LEVEL));
+ m_pBroomTrail->Set_Visible(false);
+
+
+ m_pBroom_TailMat = m_pModelCom->Get_BoneMatrixPtr("thistleSocket");
+
+ return S_OK;
+}
+
HRESULT CBroom::Ready_Components()
{
CTransform::TRANSFORM_DESC Desc = {};
@@ -91,15 +261,36 @@ HRESULT CBroom::Ready_Components()
__super::Ready_Components(&Desc);
+ switch (m_iIndex)
+ {
+ case 0:
+ m_strModelPrototypeTag = TEXT("Prototype_Component_Broom_Model");
+ break;
+ case 1:
+ m_strModelPrototypeTag = TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model");
+ break;
+ case 2:
+ m_strModelPrototypeTag = TEXT("Prototype_Component_DarkWizardBroom_Model");
+ break;
+ case 3:
+ m_strModelPrototypeTag = TEXT("Prototype_Component_WildFireBroom_Model");
+ break;
+ default:
+ break;
+ }
+
/* Com_Model */
- if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Broom_Model"),
- reinterpret_cast(&m_pModelCom))))
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
+ reinterpret_cast(&m_pModelCom)))) {
return E_FAIL;
+ }
/* Com_Shader */
- if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
- reinterpret_cast(&m_pShaderCom))))
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ reinterpret_cast(&m_pShaderCom)))) {
return E_FAIL;
+ }
+
return S_OK;
}
@@ -109,7 +300,15 @@ HRESULT CBroom::Bind_ShaderResources()
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
return E_FAIL;
}
-
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
+ return E_FAIL;
+ }
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
@@ -124,6 +323,85 @@ HRESULT CBroom::Bind_ShaderResources()
return S_OK;
}
+void CBroom::Update_CameraCoordinateSystem()
+{
+ _vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f));
+ _vector xmvUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
+ XMStoreFloat3(&m_vCameraRightDir, XMVector3Normalize(XMVector3Cross(xmvUp, xmvCameraLook)));
+ XMStoreFloat3(&m_vCameraLookDir, xmvCameraLook);
+ m_pInfoInstance->Update_CameraCoordinateSystem(m_vCameraLookDir, m_vRimLightColor);
+}
+
+
+void CBroom::PlayerInput(_float fTimeDelta)
+{
+ if (!m_bRide)
+ return;
+ m_Input = {};
+
+ m_Input.Z = m_pGameInstance->Key_Pressing(DIK_W) ? 1.f : 0.f;
+
+ m_Input.X = (m_pGameInstance->Key_Pressing(DIK_D) ? 1.f : 0.f)
+ - (m_pGameInstance->Key_Pressing(DIK_A) ? 1.f : 0.f);
+
+ m_Input.Y = (m_pGameInstance->Key_Pressing(DIK_SPACE) ? 1.f : 0.f)
+ - (m_pGameInstance->Key_Pressing(DIK_LCONTROL) ? 1.f : 0.f + m_pGameInstance->Key_Pressing(DIK_N) ? 1.f : 0.f);
+
+ if (m_pGameInstance->Key_Up(DIK_LSHIFT))
+ {
+ m_bHoverToggle = !m_bHoverToggle;
+ }
+
+ if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
+ {
+ if (m_fTurboBoost != 0.f) {
+ m_fTurboBoost -= fTimeDelta;
+ if (m_fTurboBoost <= 0.f) {
+ m_fTurboBoost = 0.f;
+ }
+ m_Input.bTurbo = true;
+ //m_pInfoInstance->Event_CallBack(TEXT("BroomBooster"), &m_Input.bTurbo);
+ }
+ else {
+ m_Input.bTurbo = false;
+ }
+ m_fTurboBoostChargeDelay = 0.f;
+ }
+ else {
+ m_fTurboBoostChargeDelay += fTimeDelta;
+ if (m_fTurboBoostChargeDelay >= 1.f)
+ {
+ m_fTurboBoost += fTimeDelta;
+ if (m_fTurboBoost >= 5.f)
+ {
+ m_fTurboBoost = 5.f;
+ }
+ }
+ m_Input.bTurbo = false;
+ //m_pInfoInstance->Event_CallBack(TEXT("BroomBooster"), &m_Input.bTurbo);
+ }
+
+ m_bTurbo = m_Input.bTurbo;
+}
+
+void CBroom::Boost_Effect_Visible(_bool isVisible)
+{
+ m_pBoostScreenFX->Get_Component()->Set_Loop(isVisible);
+
+ if (isVisible == true)
+ {
+
+ m_pBoostScreenFX->Set_Visible(true);
+ }
+}
+
+void CBroom::Set_AISpeed(_float speedMul, _float accelMul)
+{
+ m_fAISpeedMul = speedMul;
+ m_fAIAccelMul = accelMul;
+}
+
+
CBroom* CBroom::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CBroom* pInstance = new CBroom(pDevice, pContext);
@@ -154,13 +432,60 @@ void CBroom::Free()
{
__super::Free();
- SAFE_RELEASE(m_pShaderCom);
- SAFE_RELEASE(m_pModelCom);
-
+ SAFE_RELEASE(m_pWindEffect);
+ SAFE_RELEASE(m_pBroomTrail);
+ SAFE_RELEASE(m_pBoostScreenFX);
}
+#ifdef _DEBUG
void CBroom::Describe_Entity()
{
+ GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
+ if (GUI::CollapsingHeader("Broom")) {
+ GUI::DragFloat("MaxSpeed", &m_fFlyMaxSpeed, 0.01f);
+ GUI::DragFloat("Speed", &m_fSpeed, 0.01f);
+ GUI::DragFloat("Accle", &m_fAccel, 0.01f);
+ GUI::DragFloat("Decel", &m_fDecel, 0.01f);
+ string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
+ GUI::Text(AnimList.c_str());
+ GUI::Text("AnimIndex %d", m_pModelCom->Get_AnimIndex());
+
+ GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
+ GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
+ _float3 Pos;
+ XMStoreFloat3(&Pos, Get_WorldPostion());
+
+ float Pos3[3] = { Pos.x, Pos.y, Pos.z };
+ GUI::DragFloat3("Pos", Pos3);
+
+
+ _float RotR, RotU, RotL;
+ RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
+ RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
+ RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
+
+ float Rot3[3] = { RotR, RotU,RotL };
+ GUI::DragFloat3("Rot", Rot3);
+
+ if (GUI::Button("ResetTrail"))
+ {
+ SAFE_RELEASE(m_pBroomTrail);
+
+ CPartObject::PARTOBJECT_DESC PartsDesc{};
+
+ PartsDesc.pParentTransform = m_pTransformCom;
+
+ if (FAILED(Add_PartObject("Broom_Trail", NEXT_LEVEL, &m_pBroomTrail, &PartsDesc))) {
+ return ;
+ }
+
+ m_pBroomTrail->Load_Trail("../Bin/Resources/Data/Effect/BroomEffect/Broom_Trail", static_cast(NEXT_LEVEL));
+
+ }
+ }
+ GUI::End();
}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Editor/Private/BroomBoost.cpp b/Jusin154_Team3D/Editor/Private/BroomBoost.cpp
new file mode 100644
index 000000000..647d23599
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/BroomBoost.cpp
@@ -0,0 +1,189 @@
+#include "pch.h"
+#include "BroomBoost.h"
+
+#include "GameInstance.h"
+#include "EditEffect.h"
+
+
+CBroomBoost::CBroomBoost(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CBroomBoost::CBroomBoost(const CBroomBoost& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CBroomBoost::Initialize_Prototype()
+{
+
+ return S_OK;
+
+}
+
+HRESULT CBroomBoost::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/BroomEffect")))
+ return E_FAIL;
+
+ m_wstrEffectName = L"BroomEffect";
+
+ m_pBoostParticle_Y = Get_PartObject("BoostParticle_Yellow");
+ m_pBoostParticle_R = Get_PartObject("BoostParticle_Red");
+
+ SAFE_ADDREF(m_pBoostParticle_Y);
+ SAFE_ADDREF(m_pBoostParticle_R);
+
+ m_fDuration = 9999.f;
+
+ return S_OK;
+}
+
+void CBroomBoost::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CBroomBoost::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+ _matrix BroomTail_Mat = XMLoadFloat4x4(m_pBroom_TailMat);
+
+ for (int i = 0; i < 3; ++i) {
+ BroomTail_Mat.r[i] = XMVector3Normalize(BroomTail_Mat.r[i]);
+ }
+
+ _matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix();/* * XMMatrixRotationAxis(XMVectorSet(0.f , 1.f, 0.f ,0.f), XMConvertToRadians(180.f))*/;
+
+
+ m_pBoostParticle_R->Get_Component()->Set_WorldMatrix(BroomTail_Mat * WorldMat);
+ m_pBoostParticle_Y->Get_Component()->Set_WorldMatrix(BroomTail_Mat * WorldMat);
+}
+
+void CBroomBoost::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CBroomBoost::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+ _vector vHitPos = XMLoadFloat4(static_cast<_float4*>(pArg));
+
+ CEditEffect* pBooster_ScreenFX = Get_PartObject("Booster_ScreenFX");
+
+ m_pBroom_TailMat = m_pOwner->Get_Component()->Get_BoneMatrixPtr("lantern_01");
+
+ _matrix BroomTail_Mat = XMLoadFloat4x4(m_pBroom_TailMat);
+
+ for (int i = 0; i < 3; ++i) {
+ BroomTail_Mat.r[i] = XMVector3Normalize(BroomTail_Mat.r[i]);
+ }
+
+ _matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix();/* * XMMatrixRotationAxis(XMVectorSet(0.f , 1.f, 0.f ,0.f), XMConvertToRadians(180.f))*/;
+
+
+ m_pBoostParticle_R->Get_Component()->Set_WorldMatrix(BroomTail_Mat * WorldMat);
+ m_pBoostParticle_Y->Get_Component()->Set_WorldMatrix(BroomTail_Mat * WorldMat);
+
+ pBooster_ScreenFX->Set_Visible(true);
+ m_pBoostParticle_Y->Set_Visible(true);
+ m_pBoostParticle_R->Set_Visible(true);
+
+ pBooster_ScreenFX->Get_Component()->Set_Loop(true);
+
+ return S_OK;
+}
+
+HRESULT CBroomBoost::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CBroomBoost::Ready_Child()
+{
+ return S_OK;
+}
+
+CBroomBoost* CBroomBoost::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroomBoost* pInstance = new CBroomBoost(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroomBoost");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CBroomBoost::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroomBoost* pInstance = new CBroomBoost(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroomBoost");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CBroomBoost::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ //CTransform* pOtherTransform = p
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CBroomBoost::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pBoostParticle_Y);
+ SAFE_RELEASE(m_pBoostParticle_R);
+}
+#ifdef _DEBUG
+
+void CBroomBoost::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CBroomBoost::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Editor/Private/Broom_States.cpp b/Jusin154_Team3D/Editor/Private/Broom_States.cpp
new file mode 100644
index 000000000..3ce4a0001
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/Broom_States.cpp
@@ -0,0 +1,889 @@
+#include "pch.h"
+#include "Broom.h"
+
+#include "GameInstance.h"
+#include "TrailObject.h"
+
+#pragma region STATE
+#include "State_Idle.h"
+#include "State_Move.h"
+#include "State_Hover.h"
+#include "State_Fly.h"
+#include "State_Broom_TurboFly.h"
+#pragma endregion
+
+#pragma region States
+
+HRESULT CBroom::InputAction()
+{
+ if (m_Input.bTurbo || m_Input.bHoverToggle)
+ return S_OK;
+
+ return E_FAIL;
+}
+
+
+HRESULT CBroom::InputMove()
+{
+ if (fabs(m_Input.X) > 0.01f ||
+ fabs(m_Input.Y) > 0.01f ||
+ m_Input.Z > 0.f)
+ return S_OK;
+
+ return E_FAIL;
+}
+
+
+HRESULT CBroom::InputKeyUpMove()
+{
+ if (m_pGameInstance->Key_Up(DIK_W)
+ || m_pGameInstance->Key_Up(DIK_A)
+ || m_pGameInstance->Key_Up(DIK_S)
+ || m_pGameInstance->Key_Up(DIK_D))
+ {
+ return S_OK;
+ }
+ return E_FAIL;
+}
+
+HRESULT CBroom::InputSpell()
+{
+ if (
+/* m_pGameInstance->Key_Down(DIK_1)
+ ||*/ m_pGameInstance->Key_Down(DIK_2)
+ || m_pGameInstance->Key_Down(DIK_3)
+ || m_pGameInstance->Key_Down(DIK_4)
+ )
+ {
+ return S_OK;
+ }
+ return E_FAIL;
+}
+
+
+HRESULT CBroom::InputAim()
+{
+ if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON) ||
+ m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
+ {
+ return S_OK;
+ }
+ return E_FAIL;
+}
+
+void CBroom::Behavior_IdleEnter()
+{
+ m_pFSM->Enable_State(FSMSTATE::IDLE);
+ pair<_uint, _bool> pairAnimInfo;
+
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE_B];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+}
+
+HRESULT CBroom::Behavior_IdleExitCheck(_float fTimeDelta)
+{
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ pair<_uint, _bool> pairAnimInfo;
+ if (m_bRide && !m_pFSM->IsEnable(FSMSTATE::MOUNT_B)) {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_MOUNT_B];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ m_pFSM->Enable_State(FSMSTATE::MOUNT_B);
+ }
+
+ if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction()))
+ {
+ if (m_bRide)
+ {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
+ }
+
+ if (iCurrAnimIndex == m_Animation[STATEANIM::BROOM_MOUNT_B].first)
+ {
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE_B];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ }
+ }
+
+ return S_OK;
+}
+
+void CBroom::Behavior_IdleExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::IDLE | FSMSTATE::MOUNT_B);
+}
+
+void CBroom::Behavior_MoveEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ m_pFSM->Enable_State(FSMSTATE::MOVE);
+
+ m_pBroomTrail->SetDissolve(false);
+ m_pBroomTrail->Get_Component()->Reset_Trail();
+}
+
+HRESULT CBroom::Behavior_MoveExitCheck(_float fTimeDelta)
+{
+ if (false == m_bMove)
+ return S_OK;
+
+ pair<_uint, _bool> pairAnimInfo = {};
+ _uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex();
+
+ _bool bFwd = m_Input.Z > 0.f;
+ _bool bLeft = m_Input.X < 0.f;
+ _bool bRight = m_Input.X > 0.f;
+ _bool bUp = m_Input.Y > 0.f;
+ _bool bDown = m_Input.Y < 0.f;
+ _bool bShift = m_Input.bHoverToggle;
+ _bool bTurbo = m_Input.bTurbo;
+
+
+ if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction()))
+ {
+ if (bFwd)
+ {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ }
+ else if (bLeft)
+ {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ }
+ else if (bRight)
+ {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ }
+ else if (bDown)
+ {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ }
+ else if (bUp)
+ {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ }
+ else if (bShift)
+ {
+ m_pFSM->Change_State(FSMSTATE::FLY);
+ }
+ else if (bTurbo)
+ {
+ m_pFSM->Change_State(FSMSTATE::TURBOFLY);
+ }
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CBroom::Behavior_MoveExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK);
+}
+
+void CBroom::Behavior_Broom_HoverEnter()
+{
+ m_pFSM->Enable_State(FSMSTATE::HOVER);
+}
+
+HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ _uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex();
+ _bool bFwd = m_Input.Z > 0.f;
+ _bool bLeft = m_Input.X < 0.f;
+ _bool bRight = m_Input.X > 0.f;
+ _bool bUp = m_Input.Y > 0.f;
+ _bool bDown = m_Input.Y < 0.f;
+ _bool bShift = m_Input.bHoverToggle;
+ _bool bTurbo = m_Input.bTurbo;
+
+ if (false == m_bMove)
+ {
+ m_fTargetSpeed = 0.f;
+
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fDecel;
+
+
+ m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ return S_OK;
+ }
+
+ if (m_bHoverToggle)
+ {
+ _float fTargetVertSpeed = 0.f;
+ if (bUp)
+ fTargetVertSpeed = m_fTurnMaxSpeed;
+ else if (bDown)
+ fTargetVertSpeed = -m_fTurnMaxSpeed;
+ else
+ fTargetVertSpeed = 0.f;
+
+ _float fFactor = (fabsf(fTargetVertSpeed) > fabsf(m_fVerticalSpeed)) ? m_fAccel : m_fDecel;
+ m_fVerticalSpeed += (fTargetVertSpeed - m_fVerticalSpeed) * fTimeDelta * fFactor;
+
+ if (fabsf(m_fVerticalSpeed) > 0.001f)
+ {
+ if (m_fVerticalSpeed > 0.f)
+ m_pTransformCom->Go_LerpUp(m_fVerticalSpeed, fTimeDelta);
+ else
+ m_pTransformCom->Go_LerpDown(-m_fVerticalSpeed, fTimeDelta);
+ }
+
+ if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
+ {
+ _float3 vInput = { 0.f, 0.f, 0.f };
+
+ if (bFwd) vInput.z += 1.f;
+ if (bLeft) vInput.x -= 1.f;
+ if (bRight) vInput.x += 1.f;
+ if (bUp) vInput.y += 1.f;
+ if (bDown) vInput.y -= 1.f;
+
+ _float ax = fabsf(vInput.x);
+ _float ay = fabsf(vInput.y);
+ _float az = fabsf(vInput.z);
+
+ _bool bHasInput = !(vInput.x == 0 && vInput.y == 0 && vInput.z == 0);
+ _vector vDir = XMVector3Normalize(XMLoadFloat3(&vInput));
+
+ if (bFwd)
+ {
+ m_fTargetSpeed = m_fHoverMaxSpeed;
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
+ m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
+ }
+
+ if (vInput.x < 0.f)
+ {
+ if (!bFwd)
+ {
+ m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.5f);
+ m_fTargetSpeed = m_fHoverMaxSpeed;
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
+ m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
+ }
+ else {
+ m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.5f);
+ }
+
+ }
+ else if (vInput.x > 0.f)
+ {
+ if (!bFwd)
+ {
+ m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.5f);
+ m_fTargetSpeed = m_fHoverMaxSpeed;
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
+ m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
+ }
+ else {
+ m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.5f);
+ }
+ }
+
+
+ if (ay > ax && ay > az)
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_UP_B];
+ else
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_DOWN_B];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ }
+ else if (ax >= az)
+ {
+ if (ay >= ax)
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_UP_B];
+ else
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_DOWN_B];
+ }
+ else {
+ if (vInput.x < 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_LEFT_B];
+ else if (vInput.x > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_RIGHT_B];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE_B];
+ }
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ }
+ else
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_UP_B];
+ else if (vInput.y < 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_DOWN_B];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE_B];
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ }
+ }
+ else {
+ m_fTargetSpeed = 0.f;
+
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fDecel;
+
+
+ m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
+ }
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ }
+
+ if (!m_bHoverToggle)
+ {
+ m_pFSM->Change_State(FSMSTATE::FLY);
+ return E_FAIL;
+ }
+
+ if (m_bTurbo)
+ {
+ m_pFSM->Change_State(FSMSTATE::TURBOFLY);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CBroom::Behavior_Broom_HoverExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::HOVER);
+}
+
+void CBroom::Behavior_Broom_FlyEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ m_pFSM->Enable_State(FSMSTATE::FLY);
+ m_pModelCom->Set_BlendDuration(0.8f);
+ 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);
+}
+
+HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ _uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex();
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+
+ _bool bFwd = m_Input.Z > 0.f;
+ _bool bLeft = m_Input.X < 0.f;
+ _bool bRight = m_Input.X > 0.f;
+ _bool bUp = m_Input.Y > 0.f;
+ _bool bDown = m_Input.Y < 0.f;
+ _bool bShift = m_Input.bHoverToggle;
+ _bool bTurbo = m_Input.bTurbo;
+
+ if (!m_bHoverToggle) {
+
+ if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
+ {
+
+ if (bFwd) {
+ m_fTargetSpeed = m_fFlyMaxSpeed;
+ }
+ else {
+ m_fTargetSpeed = m_fFlyTurnMaxSpeed;
+ }
+ }
+ else {
+ m_fTargetSpeed = m_fFlyMaxSpeed;
+ }
+
+ if (m_pParentUnit->IsAI())
+ {
+ m_fTargetSpeed *= m_fAICondition;
+ m_fTargetSpeed *= m_fAISpeedMul;
+ }
+
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fFlyAccel* m_fAIAccelMul;
+ m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
+
+ _float fTargetVertSpeed = 0.f;
+
+ if (bUp)
+ fTargetVertSpeed = m_fTurnMaxSpeed;
+ else if (bDown)
+ fTargetVertSpeed = -m_fTurnMaxSpeed;
+ else
+ fTargetVertSpeed = 0.f;
+
+ _float fFactor = (fabsf(fTargetVertSpeed) > fabsf(m_fVerticalSpeed)) ? m_fFlyAccel : m_fFlyDecel;
+ m_fVerticalSpeed += (fTargetVertSpeed - m_fVerticalSpeed) * fTimeDelta * fFactor;
+
+ if (fabsf(m_fVerticalSpeed) > 0.001f)
+ {
+ if (m_fVerticalSpeed > 0.f)
+ m_pTransformCom->Go_LerpUp(m_fVerticalSpeed, fTimeDelta);
+ else
+ m_pTransformCom->Go_LerpDown(-m_fVerticalSpeed, fTimeDelta);
+ }
+
+ if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
+ {
+ _float3 vInput = { 0.f, 0.f, 0.f };
+
+ if (bFwd) vInput.z += 1.f;
+ if (bLeft) vInput.x -= 1.f;
+ if (bRight) vInput.x += 1.f;
+ if (bUp) vInput.y += 1.f;
+ if (bDown) vInput.y -= 1.f;
+
+ _float ax = fabsf(vInput.x);
+ _float ay = fabsf(vInput.y);
+ _float az = fabsf(vInput.z);
+
+ _bool bHasInput = !(vInput.x == 0 && vInput.y == 0 && vInput.z == 0);
+ _vector vDir = XMVector3Normalize(XMLoadFloat3(&vInput));
+
+ if (vInput.x < 0.f)
+ {
+ /*if (vInput.z <= 0.f)
+ {
+ m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.4f);
+ }
+ else {*/
+ m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.3f);
+ //}
+ }
+ else if (vInput.x > 0.f)
+ {
+ /*if (vInput.z <= 0.f)
+ {
+ m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.4f);
+ }
+ else {*/
+ m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.3f);
+ //}
+ }
+
+
+ if (ay > ax && ay > az)
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
+ else
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
+ }
+ else if (ax >= az)
+ {
+ if (ay >= ax)
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
+ else
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
+ }
+ else {
+ if (vInput.x < 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_LEFT_B];
+ else if (vInput.x > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_RIGHT_B];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
+ }
+ }
+ }
+ else
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
+ else if (vInput.y < 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
+ }
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,0.1f);
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
+ }
+
+ if (m_bHoverToggle)
+ {
+ m_fTargetSpeed = 0.f;
+
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fFlyDecel;
+
+ m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
+
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+
+ /*if (bShift && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
+ {
+ m_bHoverToggle = false;
+ }*/
+ if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
+ {
+ if (fRatio >= 0.5f && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
+ {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ return E_FAIL;
+ }
+ }
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ return E_FAIL;
+ }
+ }
+
+ if (m_bTurbo)
+ {
+ m_pFSM->Change_State(FSMSTATE::TURBOFLY);
+ return E_FAIL;
+ }
+
+
+ return S_OK;
+}
+
+void CBroom::Behavior_Broom_FlyExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::FLY);
+ m_pModelCom->Set_BlendDuration(0.3f);
+}
+
+void CBroom::Behavior_Broom_TurboFlyEnter()
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ m_pFSM->Enable_State(FSMSTATE::TURBOFLY);
+ m_pModelCom->Set_BlendDuration(0.8f);
+ m_bTurbo = true;
+ 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);
+
+ Boost_Effect_Visible(true);
+}
+
+HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ _uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex();
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+
+ _bool bFwd = m_Input.Z > 0.f;
+ _bool bLeft = m_Input.X < 0.f;
+ _bool bRight = m_Input.X > 0.f;
+ _bool bUp = m_Input.Y > 0.f;
+ _bool bDown = m_Input.Y < 0.f;
+ _bool bShift = m_Input.bHoverToggle;
+ _bool bTurbo = m_Input.bTurbo;
+
+ if (!m_bHoverToggle)
+ {
+ if (SUCCEEDED(InputMove()))
+ {
+ if (bFwd) {
+ m_fTargetSpeed = m_fTurboMaxSpeed;
+ }
+ else {
+ m_fTargetSpeed = m_fTurboTurnMaxSpeed;
+ }
+ }
+ else {
+ m_fTargetSpeed = m_fTurboMaxSpeed;
+ }
+
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fTurboAccel;
+ m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
+ }
+
+
+ if (!m_bHoverToggle && m_bTurbo) {
+
+ _float fTargetVertSpeed = 0.f;
+
+ if (bUp)
+ fTargetVertSpeed = m_fTurnMaxSpeed;
+ else if (bDown)
+ fTargetVertSpeed = -m_fTurnMaxSpeed;
+ else
+ fTargetVertSpeed = 0.f;
+
+ _float fFactor = (fabsf(fTargetVertSpeed) > fabsf(m_fVerticalSpeed)) ? m_fTurboAccel : m_fTurboDecel;
+ m_fVerticalSpeed += (fTargetVertSpeed - m_fVerticalSpeed) * fTimeDelta * fFactor;
+
+ if (fabsf(m_fVerticalSpeed) > 0.001f)
+ {
+ if (m_fVerticalSpeed > 0.f)
+ m_pTransformCom->Go_LerpUp(m_fVerticalSpeed, fTimeDelta);
+ else
+ m_pTransformCom->Go_LerpDown(-m_fVerticalSpeed, fTimeDelta);
+ }
+
+ if (SUCCEEDED(InputMove()))
+ {
+ _float3 vInput = { 0.f, 0.f, 0.f };
+
+ if (bFwd) vInput.z += 1.f;
+ if (bLeft) vInput.x -= 1.f;
+ if (bRight) vInput.x += 1.f;
+ if (bUp) vInput.y += 1.f;
+ if (bDown) vInput.y -= 1.f;
+
+ _float ax = fabsf(vInput.x);
+ _float ay = fabsf(vInput.y);
+ _float az = fabsf(vInput.z);
+
+ _bool bHasInput = !(vInput.x == 0 && vInput.y == 0 && vInput.z == 0);
+ _vector vDir = XMVector3Normalize(XMLoadFloat3(&vInput));
+
+ if (vInput.x < 0.f)
+ {
+ if (vInput.z <= 0.f)
+ {
+ Camera_InterpTurn(fTimeDelta * 0.35f);
+ }
+ else {
+ Camera_InterpTurn(fTimeDelta * 0.2f);
+ }
+ }
+ else if (vInput.x > 0.f)
+ {
+ if (vInput.z <= 0.f)
+ {
+ Camera_InterpTurn(fTimeDelta * 0.35f);
+ }
+ else {
+ Camera_InterpTurn(fTimeDelta * 0.2f);
+ }
+ }
+
+
+ if (ay > ax && ay > az)
+ {
+ if (vInput.y > 0)
+ 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)
+ {
+ if (ay >= ax)
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
+ else
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
+ }
+ else {
+ if (vInput.x < 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_LEFT_B];
+ else if (vInput.x > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_RIGHT_B];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
+ }
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ }
+ else
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
+ else if (vInput.y < 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
+ }
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ }
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+ }
+ }
+
+ if (m_bHoverToggle)
+ {
+ m_fTargetSpeed = 0.f;
+
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fTurboDecel;
+
+ m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
+
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
+
+ if (bShift && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
+ {
+ m_bHoverToggle = false;
+ }
+ if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
+ {
+ if (fRatio >= 0.5f && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
+ {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ }
+ return E_FAIL;
+ }
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ return E_FAIL;
+ }
+ }
+
+ if (!m_bHoverToggle && !m_bTurbo)
+ {
+ m_pFSM->Change_State(FSMSTATE::FLY);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CBroom::Behavior_Broom_TurboFlyExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::TURBOFLY);
+ m_pModelCom->Set_BlendDuration(0.3f);
+
+ Boost_Effect_Visible(false);
+}
+
+
+void CBroom::Camera_InterpTurn(_float fTimeDelta)
+{
+ if (m_pParentUnit->IsAI())
+ return;
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+
+ _vector xmvCurLook = XMVector4Normalize(
+ XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
+ _float2 vCurLook = { XMVectorGetX(xmvCurLook),XMVectorGetZ(xmvCurLook) };
+
+ _vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f);
+
+ _vector vCameraRight = XMVectorSet(m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z, 0.f);
+
+ _float2 fCamLook = { XMVectorGetX(vCameraLook), XMVectorGetZ(vCameraLook) };
+
+ vCameraRight = XMVector3Normalize(vCameraRight);
+
+ _float angle = CMyTools::Get_Direction2D(vCurLook, fCamLook);
+
+ _float degree = XMConvertToDegrees(angle);
+
+ _vector xmvInput = XMVectorZero();
+
+ if (m_Input.Z> 0.f)
+ xmvInput += vCameraLook;
+ if (m_Input.X > 0.f)
+ xmvInput -= vCameraRight;
+ if (m_Input.X < 0.f)
+ xmvInput += vCameraRight;
+
+ xmvInput = XMVector3Normalize(xmvInput);
+
+ _float2 fInput2D = { XMVectorGetX(xmvInput), XMVectorGetZ(xmvInput) };
+
+ _float targetAngle = XMConvertToDegrees(CMyTools::Get_Direction2D(fCamLook, fInput2D));
+
+ _float angleDiff = degree - targetAngle;
+
+ if (angleDiff > 180.f) {
+ angleDiff -= 360.f;
+ }
+ if (angleDiff < -180.f) {
+ angleDiff += 360.f;
+ }
+
+ _float Offset = 2.f;
+
+ if (angleDiff > Offset)
+ {
+ m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.5f);
+ }
+ else if (angleDiff < -Offset)
+ {
+ m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.5f);
+ }
+}
+
+void CBroom::Add_FSM()
+{
+#pragma region Behavior_Movement_NotFocus
+ {
+ CState_Idle::STATE_IDLE_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_IdleEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_IdleExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc));
+ }
+
+ {
+ CState_Move::STATE_MOVE_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_MoveExit(); };
+ Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
+ if (m_bHoverToggle && m_bMove)
+ {
+ _float3 fMove = m_pGameInstance->Get_MouseMove();
+ m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.02f);
+ }
+ };
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc));
+ }
+
+ {
+ CState_Hover::STATE_HOVER_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_Broom_HoverEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_HoverExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_Broom_HoverExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::HOVER, CState_Hover::Create(&Desc));
+ }
+
+ {
+ CState_Fly::STATE_FLY_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_Broom_FlyEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_FlyExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_Broom_FlyExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::FLY, CState_Fly::Create(&Desc));
+ }
+
+ {
+ CState_Broom_TurboFly::STATE_BROOM_TURBOFLY_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_Broom_TurboFlyEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_TurboFlyExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_Broom_TurboFlyExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::TURBOFLY, CState_Broom_TurboFly::Create(&Desc));
+ }
+#pragma endregion
+}
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp b/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp
index 30977ce34..605a87901 100644
--- a/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp
+++ b/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp
@@ -67,12 +67,12 @@ void CBuildingContainer::Late_Update(_float fTimeDelta)
for (auto& pCollisiton : m_ColiisonPartObjects)
pCollisiton->Late_Update(fTimeDelta);
- if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldExtentPosition), 1.f), m_fMaxRadius)) {
+ // if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldExtentPosition), 1.f), m_fMaxRadius)) {
if (m_bOcclusionPassed)
{
if (m_fCamDepth > 100.f)
{
- if (m_pOcclusionQueryCom->isDraw())
+ // if (m_pOcclusionQueryCom->isDraw())
__super::Late_Update(fTimeDelta);
}
else
@@ -85,7 +85,7 @@ void CBuildingContainer::Late_Update(_float fTimeDelta)
__super::Late_Update(fTimeDelta);
}
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
- }
+ // }
}
diff --git a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
index f215fe4d8..6a190a3aa 100644
--- a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp
@@ -519,7 +519,7 @@ ON_COLLISION_INFO CEffect_Container::SweepTarget(_vector StartPos, _vector EndPo
{
pUserData->pOwner->OnCollision(this, &tagCollInfo);
m_bHit = true;
- }
+ }break;
case PXOBJECT::RANROK_PROP:
{
pUserData->pOwner->OnCollision(this, &tagCollInfo);
diff --git a/Jusin154_Team3D/Editor/Private/InstancedProp.cpp b/Jusin154_Team3D/Editor/Private/InstancedProp.cpp
index 15eacef55..c8960264b 100644
--- a/Jusin154_Team3D/Editor/Private/InstancedProp.cpp
+++ b/Jusin154_Team3D/Editor/Private/InstancedProp.cpp
@@ -340,9 +340,9 @@ void CInstancedProp::Describe_Entity()
m_iInstanceIndex = min(m_iInstanceIndex, m_iNumInstanceIndex);
GUI::Text("----- Transfrom ----");
- GUI::InputFloat("Right", &vMove.x, 0.1f, 5.f);
- GUI::InputFloat("Up", &vMove.y, 0.1f, 5.f);
- GUI::InputFloat("Look", &vMove.z, 0.1f, 5.f);
+ GUI::InputFloat("Right", &vMove.x, 0.01f, 1.f);
+ GUI::InputFloat("Up", &vMove.y, 0.01f, 1.f);
+ GUI::InputFloat("Look", &vMove.z, 0.01f, 1.f);
m_pTransformCom->Move_Right(vMove.x);
m_pTransformCom->Move_Up(vMove.y);
diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
index f6ef9bde9..647d0560e 100644
--- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp
@@ -20,6 +20,7 @@
#include "Terrain.h"
#include "Troll.h"
#include "Ranrok.h"
+#include "RaceRing.h"
CLevel_EffectViewer::CLevel_EffectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
@@ -87,6 +88,17 @@ HRESULT CLevel_EffectViewer::Initialize()
return E_FAIL;
}
+
+ CRaceRing::RACERING_DESC pDesc = {};
+
+ pDesc.vPosition = _float3(0.f, 0.f, 0.f);
+ pDesc.vScale = _float3(1.f, 1.f, 1.f);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Sky") , &pDesc))) {
+ return E_FAIL;
+ }
+
+
//ZeroMemory(&m_PlaneData, sizeof(m_PlaneData));
//m_PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
//m_PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
index 08d4721c6..da8df57ee 100644
--- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp
@@ -139,8 +139,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_Background(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
return E_FAIL;
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
- return E_FAIL;
+ //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
+ // return E_FAIL;
return S_OK;
}
@@ -479,6 +479,14 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
return E_FAIL;
+ /* TeaShop_Door_A */
+ Desc.bEditMode = false;
+ Desc.isShake = false;
+ Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A";
+ Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door2b.bin";
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
+ return E_FAIL;
+
/* OakTree_TallA */
Desc.bEditMode = false;
Desc.isShake = false;
diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
index a31c75cdd..df032518f 100644
--- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp
@@ -331,6 +331,8 @@ void CLevel_ObjectViewer::Show_AnimList()
if (GUI::Button(pModel->Get_AnimList(i)))
{
pModel->Set_AnimationIndex(i);
+ m_iCurAnimIndex = i;
+ m_KeyFrames.clear();
}
}
}
@@ -407,7 +409,11 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
}
_float AnimRatio = pModel->Get_CurrentTrackProgressRatio();
- GUI::DragFloat("AnimRatio", &AnimRatio);
+ if (GUI::DragFloat("AnimRatio", &AnimRatio, 0.001f))
+ {
+ pModel->Set_CurrentTrackProgressRatio(AnimRatio);
+ }
+
_float AnimSpeed = pModel->Get_AnimSpeed();
GUI::DragFloat("AnimSpeed", &AnimSpeed, 0.1f);
@@ -442,7 +448,7 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
{
if (pModel)
{
- _float fKeyFrame = pModel->Get_CurrentTrackPosition();
+ _float fKeyFrame = pModel->Get_CurrentTrackProgressRatio();
m_KeyFrames.emplace(EventName, fKeyFrame);
Save_KeyFrame();
@@ -669,6 +675,8 @@ void CLevel_ObjectViewer::Find_Anim()
if (GUI::Button(pModel->Get_AnimList(m_iAnimIndex)))
{
pModel->Set_AnimationIndex(m_iAnimIndex);
+ m_iCurAnimIndex = m_iAnimIndex;
+ m_KeyFrames.clear();
}
}
@@ -683,6 +691,8 @@ void CLevel_ObjectViewer::Find_Anim()
if (GUI::Button(pModel->Get_AnimList(i)))
{
pModel->Set_AnimationIndex(i);
+ m_iCurAnimIndex = i;
+ m_KeyFrames.clear();
}
}
}
@@ -692,36 +702,66 @@ void CLevel_ObjectViewer::Find_Anim()
void CLevel_ObjectViewer::Save_KeyFrame()
{
+ _char szDrive[MAX_PATH] = {};
_char szDir[MAX_PATH] = {};
+ _splitpath_s(m_DummyPath, szDrive, MAX_PATH, szDir, MAX_PATH, nullptr, 0, nullptr, 0);
- _splitpath_s(m_DummyPath, nullptr, 0, szDir, MAX_PATH, nullptr, 0, nullptr, 0);
+ _string Path = _string(szDrive) + szDir + "KeyFrame.xml";
- _string szFile = "KeyFrame.bin";
- _string Path = szDir + szFile;
+ tinyxml2::XMLDocument doc;
- FILE* fp = nullptr;
- fopen_s(&fp, Path.c_str(), "wb");
- if (!fp) {
- return;
+ tinyxml2::XMLElement* pRoot = nullptr;
+ if (doc.LoadFile(Path.c_str()) == tinyxml2::XML_SUCCESS)
+ pRoot = doc.FirstChildElement("KeyFrames");
+
+ if (!pRoot)
+ {
+ doc.Clear();
+ pRoot = doc.NewElement("KeyFrames");
+ doc.InsertFirstChild(pRoot);
}
- _uint KeyFrameSize = (_uint)m_KeyFrames.size();
+ tinyxml2::XMLElement* pAnimNode = nullptr;
+ for (tinyxml2::XMLElement* pAnim = pRoot->FirstChildElement("Animation");
+ pAnim;
+ pAnim = pAnim->NextSiblingElement("Animation"))
+ {
+ _int idx = -1;
+ pAnim->QueryIntAttribute("Index", &idx);
- fwrite(&KeyFrameSize, sizeof(_uint), 1, fp);
+ if (idx == m_iCurAnimIndex)
+ {
+ pAnimNode = pAnim;
+ break;
+ }
+ }
+
+ if (!pAnimNode)
+ {
+ pAnimNode = doc.NewElement("Animation");
+ pAnimNode->SetAttribute("Index", m_iCurAnimIndex);
+ pRoot->InsertEndChild(pAnimNode);
+ }
+
+ while (tinyxml2::XMLElement* pKey = pAnimNode->FirstChildElement("KeyFrame"))
+ {
+ pAnimNode->DeleteChild(pKey);
+ }
for (auto& iter : m_KeyFrames)
{
- _uint EventSize = (_uint)iter.first.size();
- fwrite(&iter.second, sizeof(_float), 1, fp);
- fwrite(&EventSize, sizeof(_uint), 1, fp);
- fwrite(iter.first.c_str(), sizeof(_char), EventSize, fp);
+ tinyxml2::XMLElement* pKey = doc.NewElement("KeyFrame");
+ pKey->SetAttribute("Event", iter.first.c_str());
+ char buf[32];
+ sprintf_s(buf, "%.3f", iter.second);
+ pKey->SetAttribute("Ratio", buf);
+ pKey->SetAttribute("Volume", m_fVolume);
+ pAnimNode->InsertEndChild(pKey);
}
-
- fclose(fp);
+ doc.SaveFile(Path.c_str());
}
-
HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag)
{
CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{};
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 3bd6f06d4..1990d7f4f 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -1676,6 +1676,11 @@ HRESULT CLoader::Loading_For_Effect()
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_RaceRing_Model"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/RaceRing/SM_BRR_RaceRing_01.bin", XMMatrixRotationX(XMConvertToRadians(90.f)) * XMMatrixIdentity()))))
+ return E_FAIL;
+
vector*>> futures = {};
futures.emplace_back(Deferred_ModelLoad(
@@ -1704,6 +1709,10 @@ HRESULT CLoader::Loading_For_Effect()
TEXT("Prototype_Component_Playable_Model")
));
+ futures.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
+ TEXT("Prototype_Component_Broom_Model")));
+
for (auto& job : futures) {
pair<_wstring, CModel*>* pResult = job.get();
@@ -1922,6 +1931,9 @@ HRESULT CLoader::Loading_For_Effect()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CStunEffect::Create(m_pDevice, m_pContext))))
return E_FAIL;
+ /* For.Prototype_GameObject_RaceRing */
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRaceRing::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
/* For.Prototype_GameObject_DummySkyBox */
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummySkyBox::Create(m_pDevice, m_pContext))))
@@ -1980,6 +1992,10 @@ HRESULT CLoader::Loading_For_Effect()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CGoblin_Protego::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
@@ -4193,7 +4209,7 @@ if(isLoad_Map)
#pragma region INSTANCE_MODEL
CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {};
- InstanceDesc.iNum = 50;
+ InstanceDesc.iNum = 5;
///* For.Prototype_Component_VIBuffer_Model_Instancel */
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel"),
@@ -4354,9 +4370,16 @@ if(isLoad_Map)
/* For.Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker */
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker"),
- CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, &InstanceDesc,
- "../Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.fbx", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
+ CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
+ "../Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
return E_FAIL;
+
+ /* For.Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A */
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A"),
+ CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
+ "../Bin/Resources/Models/InstanceProp/SM_HM_BLDG_TeaShop_Door_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
+ return E_FAIL;
+
#pragma endregion // INSTANCE_MODEL
/* For.Prototype_Component_VIBuffer_Box */
diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
index ed8ba357e..477c985c0 100644
--- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp
@@ -70,20 +70,18 @@ HRESULT CLoader::Loading_For_ObjectViewer()
}
vector*>> futures = {};
+
+
+
#pragma region MONSTER
-#ifndef 기무리
- /* For.Prototype_Component_Hogsmead_NorthLakeShallow */
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\VFX\\Meshes\\Animated\\HM_Troll_OLI_Reparo\\VFX_SK_OLI_TrollFight_BlockerA\\VFX_SK_OLI_TrollFight_BlockerA.fbx", XMMatrixIdentity()))))
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "C:\\MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_BattleAxe01.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
- /* For.Prototype_Component_Hogsmead_NorthLakeShallow */
- if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\VFX\\Meshes\\Animated\\HM_Troll_OLI_Reparo\\VFX_SK_OLI_TrollFight_BlockerB\\VFX_SK_OLI_TrollFight_BlockerB.fbx", XMMatrixIdentity()))))
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
+ CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "C:\\MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_SmallSword.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
-#endif // 기무리
-
-
futures.emplace_back(Deferred_ModelLoad(
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
@@ -136,10 +134,10 @@ HRESULT CLoader::Loading_For_ObjectViewer()
// TEXT("Prototype_Component_ConjuredDragon_Model")
//));
- //futures.emplace_back(Deferred_ModelLoad(
- // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
- // TEXT("Prototype_Component_Professor_EleazarFig_Model")
- //));
+ futures.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin",XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_Professor_EleazarFig_Model")
+ ));
#pragma endregion
diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Door.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Door.cpp
index f76e1a9e3..50b550e2d 100644
--- a/Jusin154_Team3D/Editor/Private/MapElement_Door.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapElement_Door.cpp
@@ -57,6 +57,10 @@ HRESULT CMapElement_Door::Initialize(void* pArg)
static_cast(m_pRigidBody)->Set_HalfGeometryInfo(pDesc->vBoxSize);
static_cast(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition);*/
+ _float3 vOffset = m_pModelComs[0]->Get_RadiusOffset();
+ _matrix OffsetMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * m_pTransformCom->Get_XMWorldMatrix();
+ XMStoreFloat4(&m_vExtentPosition, OffsetMatrix.r[3]);
+
return S_OK;
}
@@ -84,7 +88,7 @@ void CMapElement_Door::Late_Update(_float fTimeDelta)
Describe_Entity();
#endif
- if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
+ if (m_pGameInstance->IsIn_WorldFrustum(XMLoadFloat4(&m_vExtentPosition), m_pModelComs[0]->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
}
}
diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
index 0347ec447..686407b32 100644
--- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp
@@ -75,17 +75,17 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
/*if (FAILED(Load_LightObject("LightElement")))
return E_FAIL;*/
- //
- //if (FAILED(Load_InteractObject("E_INTER_Barrel")))
- // return E_FAIL;
- //if (FAILED(Load_InteractObject("E_INTER_PostPackage_B")))
- // return E_FAIL;
- //if (FAILED(Load_InteractObject("E_INTER_PostPackage_F")))
- // return E_FAIL;
- //if (FAILED(Load_InteractObject("E_INTER_TeaShopTable")))
- // return E_FAIL;
- //if (FAILED(Load_InteractObject("E_INTER_TeaShopChair")))
- // return E_FAIL;
+
+ if (FAILED(Load_InteractObject("E_INTER_Barrel")))
+ return E_FAIL;
+ if (FAILED(Load_InteractObject("E_INTER_PostPackage_B")))
+ return E_FAIL;
+ if (FAILED(Load_InteractObject("E_INTER_PostPackage_F")))
+ return E_FAIL;
+ if (FAILED(Load_InteractObject("E_INTER_TeaShopTable")))
+ return E_FAIL;
+ if (FAILED(Load_InteractObject("E_INTER_TeaShopChair")))
+ return E_FAIL;
#pragma region HOGSMEADE
if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
@@ -135,32 +135,32 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
#pragma endregion
#pragma region EFFECT_PART
- //if (FAILED(Load_EffectParts("Goo0_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0")))
+ //if (FAILED(Load_EditEffect("Goo0_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo0")))
// return E_FAIL;
- //if (FAILED(Load_EffectParts("Goo1_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1")))
+ //if (FAILED(Load_EditEffect("Goo1_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo1")))
// return E_FAIL;
- //if (FAILED(Load_EffectParts("Ranrok_Goo2_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2")))
+ //if (FAILED(Load_EditEffect("Ranrok_Goo2_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo2")))
// return E_FAIL;
- //if (FAILED(Load_EffectParts("Ranrok_Goo3_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3")))
+ //if (FAILED(Load_EditEffect("Ranrok_Goo3_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo3")))
// return E_FAIL;
- //if (FAILED(Load_EffectParts("Ranrok_Goo4_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4")))
+ //if (FAILED(Load_EditEffect("Ranrok_Goo4_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Goo4")))
// return E_FAIL;
- //if (FAILED(Load_EffectParts("Ranrok_Decal_15_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_15")))
+ //if (FAILED(Load_EditEffect("Ranrok_Decal_15_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_15")))
// return E_FAIL;
- //if (FAILED(Load_EffectParts("Rotate_Rock_Small_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Small")))
+ //if (FAILED(Load_EditEffect("Rotate_Rock_Small_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Small")))
// return E_FAIL;
- //if (FAILED(Load_EffectParts("Ranrok_Particle_Black_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Black")))
+ //if (FAILED(Load_EditEffect("Ranrok_Particle_Black_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Black")))
// return E_FAIL;
- //if (FAILED(Load_EffectParts("Ranrok_Particle_Red_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red")))
+ //if (FAILED(Load_EditEffect("Ranrok_Particle_Red_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Red")))
// return E_FAIL;
- ////if (FAILED(Load_EffectParts("Ranrok_Decal_35_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35")))
+ ////if (FAILED(Load_EditEffect("Ranrok_Decal_35_Data", "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35")))
// //return E_FAIL;
- //if (FAILED(Load_EffectParts("Rotate_Rock_Large1_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large1")))
+ //if (FAILED(Load_EditEffect("Rotate_Rock_Large1_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large1")))
// return E_FAIL;
- //if (FAILED(Load_EffectParts("Rotate_Rock_Large2_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large2")))
+ //if (FAILED(Load_EditEffect("Rotate_Rock_Large2_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large2")))
// return E_FAIL;
- //if (FAILED(Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire")))
+ //if (FAILED(Load_EditEffect("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire")))
// return E_FAIL;
#pragma endregion
@@ -277,7 +277,7 @@ void CMapObject_Manager::Update(_float fTimeDelta)
//Update_LightSpawer();
//Update_Decal();
//Update_RaceRing();
- //Update_EffectParts();
+ //Update_EditEffect();
//Update_Balloon();
Update_DummyNpc();
@@ -2220,7 +2220,7 @@ HRESULT CMapObject_Manager::Load_DADA_INT()
return S_OK;
}
-HRESULT CMapObject_Manager::Save_EffectParts(const _char* pFileName)
+HRESULT CMapObject_Manager::Save_EditEffect(const _char* pFileName)
{
CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Effect_EDIT"));
@@ -2235,7 +2235,7 @@ HRESULT CMapObject_Manager::Save_EffectParts(const _char* pFileName)
doc.Clear();
doc.InsertFirstChild(doc.NewDeclaration());
- tinyxml2::XMLElement* root = doc.NewElement("EffectParts");
+ tinyxml2::XMLElement* root = doc.NewElement("EditEffect");
doc.InsertEndChild(root);
if (nullptr != pLayer)
@@ -2265,7 +2265,7 @@ HRESULT CMapObject_Manager::Save_EffectParts(const _char* pFileName)
return S_OK;
}
-HRESULT CMapObject_Manager::Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath)
+HRESULT CMapObject_Manager::Load_EditEffect(const _char* pFileName, const _char* pEffectrFilePath)
{
tinyxml2::XMLDocument xmlDoc;
@@ -2274,7 +2274,7 @@ HRESULT CMapObject_Manager::Load_EffectParts(const _char* pFileName, const _char
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
return E_FAIL;
- tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("EffectParts");
+ tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("EditEffect");
if (nullptr == root)
{
@@ -2310,7 +2310,7 @@ HRESULT CMapObject_Manager::Load_EffectParts(const _char* pFileName, const _char
CEditEffect* pEffect = { nullptr };
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::MAP), NEXT_LEVEL, TEXT("Layer_EffectParts"), &PartsDesc, nullptr, &pEffect)))
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::MAP), NEXT_LEVEL, TEXT("Layer_EditEffect"), &PartsDesc, nullptr, &pEffect)))
return E_FAIL;
if (nullptr == pEffect)
@@ -2744,18 +2744,18 @@ void CMapObject_Manager::Update_RaceRing()
GUI::End();
}
-void CMapObject_Manager::Update_EffectParts()
+void CMapObject_Manager::Update_EditEffect()
{
- GUI::Begin("EffectParts Editor");
+ GUI::Begin("EditEffect Editor");
GUI::InputText("MapFileName", m_szSaveFileName, MAX_PATH);
GUI::Spacing();
- if (GUI::Button("Save EffectParts"))
+ if (GUI::Button("Save EditEffect"))
{
- Save_EffectParts(m_szSaveFileName);
+ Save_EditEffect(m_szSaveFileName);
}
- if (GUI::Button("Load EffectParts"))
+ if (GUI::Button("Load EditEffect"))
{
- Load_EffectParts(m_szSaveFileName, "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Black");
+ Load_EditEffect(m_szSaveFileName, "../Bin/Resources/Data/Effect/MapEffect/Ranrok_Particle_Black");
}
if (GUI::Button("Add Effect"))
{
diff --git a/Jusin154_Team3D/Editor/Private/Player.cpp b/Jusin154_Team3D/Editor/Private/Player.cpp
index 79c674c58..d523e152a 100644
--- a/Jusin154_Team3D/Editor/Private/Player.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player.cpp
@@ -100,6 +100,12 @@ HRESULT CPlayer::Initialize(void* pArg)
// UI 연동 추가
m_pModelCom->Set_DisableRootMotionScale(true);
+ m_pBroomModel = m_pBroom->Get_Component();
+ m_pBroomTransform = m_pBroom->Get_Component();
+ SAFE_ADDREF(m_pBroom);
+ SAFE_ADDREF(m_pBroomModel);
+ SAFE_ADDREF(m_pBroomTransform);
+
#ifdef gimch
m_pCharacter_Controller->Set_GravityAmount(0.f);
#endif
@@ -344,6 +350,17 @@ void CPlayer::Update_CameraShake(_float fTimeDelta)
}
}
+HRESULT CPlayer::InputBroom()
+{
+ if (m_pGameInstance->Key_Pressing(DIK_LCONTROL)
+ || m_pGameInstance->Key_Pressing(DIK_SPACE))
+ {
+
+ return S_OK;
+ }
+ return E_FAIL;
+}
+
HRESULT CPlayer::Ready_Parts()
{
CWand::WAND_DESC WandDesc{};
@@ -370,6 +387,11 @@ HRESULT CPlayer::Ready_Parts()
}
}
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, L"LAYER_ITEM", nullptr, this, &m_pBroom))) {
+ return E_FAIL;
+ }
+
return S_OK;
}
@@ -494,6 +516,8 @@ void CPlayer::Free()
}
#ifdef _DEBUG
+
+
void CPlayer::Describe_Entity()
{
GUI::Begin("PLAYER_DESC");
diff --git a/Jusin154_Team3D/Editor/Private/Player_States.cpp b/Jusin154_Team3D/Editor/Private/Player_States.cpp
index edb06a43c..641ae534b 100644
--- a/Jusin154_Team3D/Editor/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player_States.cpp
@@ -17,11 +17,18 @@
#pragma region STATE
#include "State_Idle.h"
#include "State_Dodge.h"
+#include "State_Blink.h"
#include "State_Jump.h"
#include "State_Land.h"
#include "State_Move.h"
#include "State_Combat.h"
-#include "State_Blink.h"
+#include "State_Hit.h"
+#include "State_Broom_Ride.h"
+#include "State_Broom_Ride_Move.h"
+#include "State_Hover.h"
+#include "State_Fly.h"
+#include "State_Broom_TurboFly.h"
+#include "State_Broom_Dismount.h"
#pragma endregion
#include "EffectPool.h"
@@ -446,7 +453,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
m_pFSM->Change_State(FSMSTATE::COMBAT);
}
else if (m_pGameInstance->Key_Down(DIK_B)) {
-// m_pFSM->Change_State(FSMSTATE::BROOM_RIDE);
+ m_pFSM->Change_State(FSMSTATE::BROOM_RIDE);
}
else if (m_pGameInstance->Key_Down(DIK_LSHIFT)) {
m_bSprintToggle = !m_bSprintToggle;
@@ -1101,21 +1108,630 @@ void CPlayer::Behavior_HitExit()
void CPlayer::Behavior_Broom_RideEnter()
{
-
+ m_pFSM->Enable_State(FSMSTATE::BROOM_RIDE);
+ m_pBroom->Set_Ride(true);
+ pair<_uint, _bool> pairAnimInfo;
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_MOUNT];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
-HRESULT CPlayer::Behavior_Broom_RideExitCheck()
+HRESULT CPlayer::Behavior_Broom_RideExitCheck(_float fTimeDelta)
{
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
-
- return E_FAIL;
+ pair<_uint, _bool> pairAnimInfo;
+
+ if (iCurrAnimIndex == m_Animation[STATEANIM::BROOM_MOUNT].first)
+ {
+ if (m_pModelCom->IsFinishedAnim()) {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_MOUNT_END];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, true);
+ }
+ return S_OK;
+ }
+
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
+ return E_FAIL;
+ }
+
+ if (m_pGameInstance->Key_Pressing(DIK_N))
+ {
+ auto flags = m_pCharacter_Controller->Get_CollisionFlags();
+ if (flags & PSX::PxControllerCollisionFlag::eCOLLISION_DOWN)
+ {
+ m_pFSM->Change_State(FSMSTATE::BROOM_DISMOUNT);
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
}
void CPlayer::Behavior_Broom_RideExit()
{
- m_pFSM->Disable_State(FSMSTATE::BROOM_RIDE | FSMSTATE::DISMOUNT);
+ m_pFSM->Disable_State(FSMSTATE::BROOM_RIDE);
+ Reset_Event();
}
+void CPlayer::Behavior_Broom_Ride_MoveEnter()
+{
+ m_pFSM->Enable_State(FSMSTATE::BROOM_RIDE_MOVE);
+}
+
+HRESULT CPlayer::Behavior_Broom_Ride_MoveExitCheck(_float fTimeDelta)
+{
+ if (m_pBroom->Get_Hover())
+ {
+ m_pFSM->Change_State(FSMSTATE::HOVER);
+ return E_FAIL;
+ }
+ else if (m_pBroom->Get_Turbo()) {
+ m_pFSM->Change_State(FSMSTATE::TURBOFLY);
+ return E_FAIL;
+ }
+ else {
+ m_pFSM->Change_State(FSMSTATE::FLY);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CPlayer::Behavior_Broom_Ride_MoveExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::BROOM_RIDE_MOVE);
+ Reset_Event();
+}
+
+void CPlayer::Behavior_Broom_HoverEnter()
+{
+ m_pFSM->Enable_State(FSMSTATE::HOVER);
+}
+
+HRESULT CPlayer::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
+{
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ pair<_uint, _bool> pairAnimInfo;
+
+ if (!m_pBroom->Get_Ride()) {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ return E_FAIL;
+ }
+
+ _bool bFwd = m_pGameInstance->Key_Pressing(DIK_W);
+ _bool bLft = m_pGameInstance->Key_Pressing(DIK_A);
+ _bool bRht = m_pGameInstance->Key_Pressing(DIK_D);
+ _bool bDown = m_pGameInstance->Key_Pressing(DIK_LCONTROL);
+ _bool bUp = m_pGameInstance->Key_Pressing(DIK_SPACE);
+
+ if (m_pBroom->Get_Hover() && iCurrAnimIndex != m_Animation[STATEANIM::BROOM_HOVER_REVELIO].first)
+ {
+ if (SUCCEEDED(InputBroom()) || SUCCEEDED(InputMove()))
+ {
+ _float3 vInput = { 0.f, 0.f, 0.f };
+
+ if (bFwd) vInput.z += 1.f;
+ if (bLft) vInput.x -= 1.f;
+ if (bRht) vInput.x += 1.f;
+ if (bUp) vInput.y += 1.f;
+ if (bDown) vInput.y -= 1.f;
+
+ _bool bHasInput = !(vInput.x == 0 && vInput.y == 0 && vInput.z == 0);
+ _vector vDir = XMVector3Normalize(XMLoadFloat3(&vInput));
+
+ if (bUp || bDown)
+ {
+ if (bUp)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE];
+ }
+ else
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE];
+ }
+ }
+
+ _float ax = fabsf(vInput.x);
+ _float ay = fabsf(vInput.y);
+ _float az = fabsf(vInput.z);
+
+ if (ay > ax && ay > az)
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE];
+ else
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE];
+ }
+ else if (ax >= az)
+ {
+ if (ay >= ax)
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE];
+ else
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE];
+ }
+ else {
+ if (vInput.x < 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_LEFT];
+ else if (vInput.x > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_RIGHT];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_FWD];
+ }
+ }
+ }
+ else
+ {
+ if (vInput.y > 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE];
+ else if (vInput.y < 0)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_FWD];
+ }
+ }
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_IDLE];
+ }
+
+ if (m_pGameInstance->Key_Down(DIK_R))
+ {
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_HOVER_REVELIO);
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ m_pEffectPool->Use_Skill(SKILL_TYPE::REVELIO, this);
+ }, 0.2f);
+ }
+
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
+
+
+
+ if (iCurrAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_REVELIO].first)
+ {
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
+ }
+
+ if (m_pGameInstance->Key_Pressing(DIK_N))
+ {
+ auto flags = m_pCharacter_Controller->Get_CollisionFlags();
+ if (flags & PSX::PxControllerCollisionFlag::eCOLLISION_DOWN)
+ {
+ m_pFSM->Change_State(FSMSTATE::BROOM_DISMOUNT);
+ return E_FAIL;
+ }
+ }
+
+ if (!m_pBroom->Get_Hover())
+ {
+ m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
+ return E_FAIL;
+ }
+
+ if (m_pBroom->Get_Turbo())
+ {
+ m_pFSM->Change_State(FSMSTATE::TURBOFLY);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CPlayer::Behavior_Broom_HoverExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::HOVER);
+}
+
+void CPlayer::Behavior_Broom_FlyEnter()
+{
+ m_pFSM->Enable_State(FSMSTATE::FLY);
+ Reset_Event();
+}
+
+HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
+{
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ pair<_uint, _bool> pairAnimInfo;
+
+ if (!m_pBroom->Get_Ride()) {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ return E_FAIL;
+ }
+
+ _bool bFwd = m_pGameInstance->Key_Pressing(DIK_W);
+ _bool bLft = m_pGameInstance->Key_Pressing(DIK_A);
+ _bool bRht = m_pGameInstance->Key_Pressing(DIK_D);
+ _bool bDown = m_pGameInstance->Key_Pressing(DIK_LCONTROL);
+ _bool bUp = m_pGameInstance->Key_Pressing(DIK_SPACE);
+
+ if (!m_pBroom->Get_Hover() && iCurrAnimIndex != m_Animation[STATEANIM::BROOM_REVELIO].first)
+ {
+ if (SUCCEEDED(InputBroom()) || SUCCEEDED(InputMove()))
+ {
+ _float3 vInput = { 0.f, 0.f, 0.f };
+
+ if (bFwd) vInput.z += 1.f;
+ if (bLft) vInput.x -= 1.f;
+ if (bRht) vInput.x += 1.f;
+ if (bUp) vInput.y += 1.f;
+ if (bDown) vInput.y -= 1.f;
+
+ _bool bHasInput = !(vInput.x == 0 && vInput.y == 0 && vInput.z == 0);
+ _vector vDir = XMVector3Normalize(XMLoadFloat3(&vInput));
+
+ if (bUp || bDown)
+ {
+ if (bUp)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
+ }
+ else
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
+ }
+ }
+
+ _float ax = fabsf(vInput.x);
+ _float ay = fabsf(vInput.y);
+ _float az = fabsf(vInput.z);
+
+ if (ay > ax && ay > az)
+ {
+ if (vInput.y > 0) {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
+
+ }
+ else if (vInput.y < 0) {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
+ }
+ }
+ else if (ax >= az)
+ {
+ if (ay >= ax)
+ {
+ if (vInput.y > 0) {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
+
+ }
+ else if (vInput.y < 0) {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
+
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_IDLE];
+ }
+ }
+ else {
+ if (vInput.x < 0) {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_LEFT];
+
+ }
+ else if (vInput.x > 0) {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_RIGHT];
+
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_IDLE];
+ }
+ }
+ }
+ else
+ {
+ if (vInput.y > 0) {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
+
+ }
+ else if (vInput.y < 0) {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
+
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FWD];
+ }
+ }
+
+ if (iCurrAnimIndex != pairAnimInfo.first)
+ {
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true);
+ }
+ }
+ else {
+
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_IDLE);
+
+ if (iCurrAnimIndex != pairAnimInfo.first)
+ {
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true);
+ }
+ }
+
+ if (m_pGameInstance->Key_Down(DIK_R))
+ {
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_REVELIO);
+ Add_Event(pairAnimInfo.first,
+ [this]() {
+ m_pEffectPool->Use_Skill(SKILL_TYPE::REVELIO, this);
+ }, 0.2f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
+ }
+
+ if (iCurrAnimIndex == m_Animation[STATEANIM::BROOM_REVELIO].first)
+ {
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ }
+ }
+
+ if (m_pGameInstance->Key_Pressing(DIK_N))
+ {
+ auto flags = m_pCharacter_Controller->Get_CollisionFlags();
+ if (flags & PSX::PxControllerCollisionFlag::eCOLLISION_DOWN)
+ {
+ m_pFSM->Change_State(FSMSTATE::BROOM_DISMOUNT);
+ return E_FAIL;
+ }
+ }
+
+ if (m_pBroom->Get_Hover())
+ {
+ m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
+ return E_FAIL;
+ }
+
+ if (m_pBroom->Get_Turbo())
+ {
+ m_pFSM->Change_State(FSMSTATE::TURBOFLY);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CPlayer::Behavior_Broom_FlyExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::FLY);
+ Reset_Event();
+}
+
+void CPlayer::Behavior_Broom_TurboFlyEnter()
+{
+ m_pFSM->Enable_State(FSMSTATE::TURBOFLY);
+}
+
+HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
+{
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ pair<_uint, _bool> pairAnimInfo;
+
+ if (!m_pBroom->Get_Ride()) {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ return E_FAIL;
+ }
+
+ _bool bFwd = m_pGameInstance->Key_Pressing(DIK_W);
+ _bool bLft = m_pGameInstance->Key_Pressing(DIK_A);
+ _bool bRht = m_pGameInstance->Key_Pressing(DIK_D);
+ _bool bDown = m_pGameInstance->Key_Pressing(DIK_LCONTROL);
+ _bool bUp = m_pGameInstance->Key_Pressing(DIK_SPACE);
+
+ if (!m_pBroom->Get_Hover() && m_pBroom->Get_Turbo())
+ {
+ if (SUCCEEDED(InputBroom()) || SUCCEEDED(InputMove()))
+ {
+ _float3 vInput = { 0.f, 0.f, 0.f };
+
+ if (bFwd) vInput.z += 1.f;
+ if (bLft) vInput.x -= 1.f;
+ if (bRht) vInput.x += 1.f;
+ if (bUp) vInput.y += 1.f;
+ if (bDown) vInput.y -= 1.f;
+
+ _bool bHasInput = !(vInput.x == 0 && vInput.y == 0 && vInput.z == 0);
+ _vector vDir = XMVector3Normalize(XMLoadFloat3(&vInput));
+
+ if (bUp || bDown)
+ {
+ if (bUp)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_UP];
+ }
+ else
+ {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_DOWN];
+ }
+ }
+
+ _float ax = fabsf(vInput.x);
+ _float ay = fabsf(vInput.y);
+ _float az = fabsf(vInput.z);
+
+ if (ay > ax && ay > az)
+ {
+ if (vInput.y > 0.f)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_UP];
+ else if (vInput.y < 0.f)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_DOWN];
+ }
+ else if (ax >= az)
+ {
+ if (ay >= ax)
+ {
+ if (vInput.y > 0.f)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_UP];
+ else if (vInput.y < 0.f)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_DOWN];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_FWD];
+ }
+ }
+ else {
+ if (vInput.x < 0.f)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_LEFT];
+ else if (vInput.x > 0.f)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_RIGHT];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_FWD];
+ }
+ }
+ }
+ else
+ {
+ if (vInput.y > 0.f)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_UP];
+ else if (vInput.y < 0.f)
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_DOWN];
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_FWD];
+ }
+ }
+
+ if (iCurrAnimIndex != pairAnimInfo.first)
+ {
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true);
+ }
+ }
+ else {
+
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_TURBO_FWD);
+
+ if (iCurrAnimIndex != pairAnimInfo.first)
+ {
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false, true);
+ }
+ }
+ }
+
+ if (m_pGameInstance->Key_Pressing(DIK_N))
+ {
+ auto flags = m_pCharacter_Controller->Get_CollisionFlags();
+ if (flags & PSX::PxControllerCollisionFlag::eCOLLISION_DOWN)
+ {
+ m_pFSM->Change_State(FSMSTATE::BROOM_DISMOUNT);
+ return E_FAIL;
+ }
+ }
+
+ if (m_pBroom->Get_Hover())
+ {
+ m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
+ return E_FAIL;
+ }
+
+ if (!m_pBroom->Get_Turbo())
+ {
+ m_pFSM->Change_State(FSMSTATE::FLY);
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CPlayer::Behavior_Broom_TurboFlyExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::TURBOFLY);
+ Reset_Event();
+}
+
+void CPlayer::Behavior_Broom_DismountEnter()
+{
+ pair<_uint, _bool> pairAnimInfo;
+ m_bOnce = false;
+ //m_pInfoInstance->Event_CallBack(TEXT("BroomRide"), &m_bOnce);
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_DISMOUNT);
+ m_pFSM->Enable_State(FSMSTATE::BROOM_DISMOUNT);
+ m_pBroom->Set_Ride(false);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.6f);
+}
+
+HRESULT CPlayer::Behavior_Broom_DismountExitCheck(_float fTimeDelta)
+{
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ pair<_uint, _bool> pairAnimInfo;
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+ if (iCurrAnimIndex == m_Animation[STATEANIM::BROOM_DISMOUNT].first)
+ {
+ m_BroomScale.x -= (m_TargetScale.x - m_BroomScale.x) * fTimeDelta * m_fScaleSmoothSpeed;
+ m_BroomScale.y -= (m_TargetScale.y - m_BroomScale.y) * fTimeDelta * m_fScaleSmoothSpeed;
+ m_BroomScale.z -= (m_TargetScale.z - m_BroomScale.z) * fTimeDelta * m_fScaleSmoothSpeed;
+ if (m_BroomScale.x >= 0.1f)
+ {
+ m_pBroomTransform->Set_Scale(m_BroomScale);
+ }
+ if (fRatio >= 0.5f) {
+ m_BroomScale = { 0.f,0.f,0.f };
+ m_pBroomTransform->Set_State(STATE::POSITION, XMVectorSet(XMVectorGetX(m_pTransformCom->Get_State(STATE::POSITION)),
+ 200.f,
+ XMVectorGetZ(m_pTransformCom->Get_State(STATE::POSITION)), 1.f));
+ if (SUCCEEDED(InputMove()))
+ {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
+ else {
+ m_pFSM->Change_State(FSMSTATE::IDLE);
+ return E_FAIL;
+ }
+ }
+ }
+
+ return S_OK;
+}
+
+void CPlayer::Behavior_Broom_DismountExit()
+{
+ m_pFSM->Disable_State(FSMSTATE::BROOM_DISMOUNT);
+ Reset_Event();
+ m_bOnce = false;
+}
+
+
+void CPlayer::Attach_Broom()
+{
+ if (m_pBroom->Get_Ride()) {
+ _matrix BroomWorld = XMLoadFloat4x4(m_pBroomTransform->Get_WorldMatrixPtr());
+ _matrix BoneLocal = XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
+
+ _vector Scale, Rot, Trans;
+
+ XMMatrixDecompose(&Scale, &Rot, &Trans, BoneLocal);
+
+ _matrix BoneNoScale = XMMatrixRotationQuaternion(Rot) * XMMatrixTranslationFromVector(Trans);
+
+ m_OffsetPos = { 0.f,1.f,0.f };
+
+ _matrix Offset = XMMatrixTranslation(m_OffsetPos.x,
+ m_OffsetPos.y, m_OffsetPos.z);
+
+ _vector BS, BR, BT;
+ XMMatrixDecompose(&BS, &BR, &BT, BroomWorld);
+ _matrix BroomWorld_NoScale =
+ XMMatrixRotationQuaternion(BR) *
+ XMMatrixTranslationFromVector(BT);
+
+
+ _matrix SocketWorld = BoneNoScale * Offset * BroomWorld_NoScale;
+
+ _matrix FixRot = XMMatrixRotationY(XMConvertToRadians(180.f));
+
+ _matrix FinalWorld = FixRot * SocketWorld;
+
+ m_pTransformCom->Set_WorldMatrix(FinalWorld);
+ m_pCharacter_Controller->Set_Position(FinalWorld.r[3]);
+ }
+}
+
+
void CPlayer::Player_InterpTurn(_float fTimeDelta)
{
_uint iCurrIndex = m_pModelCom->Get_AnimIndex();
@@ -1328,9 +1944,114 @@ void CPlayer::Add_FSM()
#pragma endregion
#pragma region Behavior_Broom_Ride
-
+ {
+ CState_Broom_Ride::STATE_BROOM_RIDE_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_Broom_RideEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_RideExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_Broom_RideExit(); };
+ Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ if (!m_bOnce) {
+ m_pBroomTransform->Set_State(
+ STATE::POSITION,
+ m_pTransformCom->Get_State(STATE::POSITION) + XMVectorSet(0.f, 2.f, 0.f, 0.f)
+ );
+
+ m_pBroomTransform->Set_State(STATE::LOOK, m_pTransformCom->Get_State(STATE::LOOK));
+ m_pBroomTransform->Set_State(STATE::UP, m_pTransformCom->Get_State(STATE::UP));
+ m_pBroomTransform->Set_State(STATE::RIGHT, m_pTransformCom->Get_State(STATE::RIGHT));
+
+ _float3 vScale = { 0.3f,0.3f,0.3f };
+ m_pBroomTransform->Set_Scale(vScale);
+ m_bOnce = true;
+ //m_pInfoInstance->Event_CallBack(TEXT("BroomRide"), &m_bOnce);
+ }
+ m_BroomScale.x += (m_TargetScale.x - m_BroomScale.x) * fTimeDelta * m_fScaleSmoothSpeed;
+ m_BroomScale.y += (m_TargetScale.y - m_BroomScale.y) * fTimeDelta * m_fScaleSmoothSpeed;
+ m_BroomScale.z += (m_TargetScale.z - m_BroomScale.z) * fTimeDelta * m_fScaleSmoothSpeed;
+ if (m_BroomScale.x <= 1.f)
+ {
+ m_pBroomTransform->Set_Scale(m_BroomScale);
+ }
+
+
+ Attach_Broom();
+ };
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::BROOM_RIDE, CState_Broom_Ride::Create(&Desc));
+ }
+
+ {
+ CState_Broom_Ride_Move::STATE_BROOM_RIDE_MOVE_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_Broom_Ride_MoveEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_Ride_MoveExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_Broom_Ride_MoveExit(); };
+ Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ Attach_Broom();
+ };
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::BROOM_RIDE_MOVE, CState_Broom_Ride_Move::Create(&Desc));
+ }
+
+ {
+ CState_Hover::STATE_HOVER_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_Broom_HoverEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_HoverExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_Broom_HoverExit(); };
+ Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ Attach_Broom();
+ };
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::HOVER, CState_Hover::Create(&Desc));
+ }
+
+ {
+ CState_Fly::STATE_FLY_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_Broom_FlyEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_FlyExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_Broom_FlyExit(); };
+ Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ Attach_Broom();
+ };
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::FLY, CState_Fly::Create(&Desc));
+ }
+
+ {
+ CState_Broom_TurboFly::STATE_BROOM_TURBOFLY_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_Broom_TurboFlyEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_TurboFlyExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_Broom_TurboFlyExit(); };
+ Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ Attach_Broom();
+ };
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::TURBOFLY, CState_Broom_TurboFly::Create(&Desc));
+ }
+
+ {
+ CState_Broom_Dismount::STATE_BROOM_DISMOUNT_DESC Desc{};
+ Desc.pOwner = this;
+ Desc.funcEnterEvent = [this]() { Behavior_Broom_DismountEnter(); };
+ Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_DismountExitCheck(fTimedelta); };
+ Desc.funcExitEvent = [this]() { Behavior_Broom_DismountExit(); };
+ Desc.funcPriorityUpdate = nullptr;
+ Desc.funcLateUpdate = nullptr;
+ m_States.emplace(FSMSTATE::BROOM_DISMOUNT, CState_Broom_Dismount::Create(&Desc));
+ }
+
#pragma endregion
+
}
void CPlayer::Set_Anim()
diff --git a/Jusin154_Team3D/Editor/Private/State_Broom_Dismount.cpp b/Jusin154_Team3D/Editor/Private/State_Broom_Dismount.cpp
new file mode 100644
index 000000000..fefe17d23
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/State_Broom_Dismount.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_Broom_Dismount.h"
+#include "Unit.h"
+
+
+CState_Broom_Dismount::CState_Broom_Dismount()
+ :CState_Root()
+{
+}
+
+void CState_Broom_Dismount::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Broom_Dismount::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_Broom_Dismount::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Broom_Dismount::Initialize(STATE_BROOM_DISMOUNT_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Broom_Dismount* CState_Broom_Dismount::Create(STATE_BROOM_DISMOUNT_DESC* pDesc)
+{
+ CState_Broom_Dismount* pInstance = new CState_Broom_Dismount;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Broom_Dismount::Free()
+{
+ __super::Free();
+}
+
+void CState_Broom_Dismount::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/State_Broom_Ride.cpp b/Jusin154_Team3D/Editor/Private/State_Broom_Ride.cpp
new file mode 100644
index 000000000..d6dda3206
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/State_Broom_Ride.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_Broom_Ride.h"
+#include "Unit.h"
+
+
+CState_Broom_Ride::CState_Broom_Ride()
+ :CState_Root()
+{
+}
+
+void CState_Broom_Ride::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Broom_Ride::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_Broom_Ride::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Broom_Ride::Initialize(STATE_BROOM_RIDE_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Broom_Ride* CState_Broom_Ride::Create(STATE_BROOM_RIDE_DESC* pDesc)
+{
+ CState_Broom_Ride* pInstance = new CState_Broom_Ride;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Broom_Ride::Free()
+{
+ __super::Free();
+}
+
+void CState_Broom_Ride::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/State_Broom_Ride_Move.cpp b/Jusin154_Team3D/Editor/Private/State_Broom_Ride_Move.cpp
new file mode 100644
index 000000000..16eb8e5d3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/State_Broom_Ride_Move.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_Broom_Ride_Move.h"
+#include "Unit.h"
+
+
+CState_Broom_Ride_Move::CState_Broom_Ride_Move()
+ :CState_Root()
+{
+}
+
+void CState_Broom_Ride_Move::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Broom_Ride_Move::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_Broom_Ride_Move::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Broom_Ride_Move::Initialize(STATE_BROOM_RIDE_MOVE_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Broom_Ride_Move* CState_Broom_Ride_Move::Create(STATE_BROOM_RIDE_MOVE_DESC* pDesc)
+{
+ CState_Broom_Ride_Move* pInstance = new CState_Broom_Ride_Move;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Broom_Ride_Move::Free()
+{
+ __super::Free();
+}
+
+void CState_Broom_Ride_Move::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/State_Broom_TurboFly.cpp b/Jusin154_Team3D/Editor/Private/State_Broom_TurboFly.cpp
new file mode 100644
index 000000000..68df84017
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/State_Broom_TurboFly.cpp
@@ -0,0 +1,64 @@
+#include "pch.h"
+#include "State_Broom_TurboFly.h"
+#include "Unit.h"
+
+
+CState_Broom_TurboFly::CState_Broom_TurboFly()
+ :CState_Root()
+{
+}
+
+void CState_Broom_TurboFly::Enter()
+{
+ __super::Enter();
+}
+
+HRESULT CState_Broom_TurboFly::Update(_float fTimeDelta)
+{
+ if (nullptr != m_funcPriorityUpdate) {
+ m_funcPriorityUpdate(fTimeDelta);
+ }
+ if (E_FAIL == (__super::Update(fTimeDelta))) {
+ return E_FAIL;
+ }
+ if (nullptr != m_funcLateUpdate) {
+ m_funcLateUpdate(fTimeDelta);
+ }
+ return S_OK;
+}
+
+void CState_Broom_TurboFly::Exit()
+{
+ __super::Exit();
+}
+
+HRESULT CState_Broom_TurboFly::Initialize(STATE_BROOM_TURBOFLY_DESC* pDesc)
+{
+ if (FAILED(__super::Initialize(pDesc))) {
+ return E_FAIL;
+ }
+ m_funcPriorityUpdate = pDesc->funcPriorityUpdate;
+ m_funcLateUpdate = pDesc->funcLateUpdate;
+ m_pModel = m_pOwner->Get_Component();
+ m_pFSM = m_pOwner->Get_Component();
+
+ return S_OK;
+}
+
+CState_Broom_TurboFly* CState_Broom_TurboFly::Create(STATE_BROOM_TURBOFLY_DESC* pDesc)
+{
+ CState_Broom_TurboFly* pInstance = new CState_Broom_TurboFly;
+ if (FAILED(pInstance->Initialize(pDesc))) {
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CState_Broom_TurboFly::Free()
+{
+ __super::Free();
+}
+
+void CState_Broom_TurboFly::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Public/Broom.h b/Jusin154_Team3D/Editor/Public/Broom.h
index 9aa0fbb71..c5312aa1b 100644
--- a/Jusin154_Team3D/Editor/Public/Broom.h
+++ b/Jusin154_Team3D/Editor/Public/Broom.h
@@ -1,17 +1,23 @@
#pragma once
#include "Editor_Define.h"
-#include "GameObject.h"
-
-NS_BEGIN(Engine)
-class CShader;
-class CModel;
-NS_END
+#include "Unit.h"
NS_BEGIN(Editor)
-class CBroom final : public CGameObject
+class CBroom final : public CUnit
{
+public:
+ struct BroomInput
+ {
+ _float X;
+ _float Y;
+ _float Z;
+ _bool bHoverToggle;
+ _bool bTurbo;
+ };
+
+
private:
CBroom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CBroom(const CBroom& Prototype);
@@ -24,25 +30,133 @@ class CBroom final : public CGameObject
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
+ void Set_Ride(_bool bRide) { m_bRide = bRide; }
+ _bool Get_Ride() { return m_bRide; }
+ void Set_Hover(_bool bHover) { m_bHoverToggle = bHover; }
+ _bool Get_Hover() { return m_bHoverToggle; }
+ _bool Get_Turbo() { return m_bTurbo; }
+
+ void Set_Input(BroomInput broomInput) { m_Input = broomInput; }
+ 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; }
+ _float Get_TurboBoost() { return m_fTurboBoost; }
+ HRESULT Ready_Child();
private:
- CShader* m_pShaderCom = { nullptr };
- CModel* m_pModelCom = { nullptr };
+ class CInfoInstance* m_pInfoInstance = { nullptr };
- _bool m_bRimLight = { true };
- _float m_fRimLightPower = { 3.2f };
- _float m_fRimLightStrength = { 3.04f };
- _float3 m_vRimLightColor = { 69.f / 255.f, 5.f / 255.f, 10.f / 255.f };
+ class CUnit* m_pParentUnit = { nullptr };
+
+ _bool m_bHoverToggle = { true };
+ _bool m_bTurbo = { false };
+
+ _bool m_bRide = { false };
+
+ _float m_fSpeed = 0.f;
+ _float m_fTurnSpeed = 0.f;
+ _float m_fTargetSpeed = 0.f;
+ _float m_fTurnMaxSpeed = 12.f;
+ _float m_fFlyTurnMaxSpeed = 9.f;
+ _float m_fTurboTurnMaxSpeed = 12.f;
+ _float m_fHoverMaxSpeed = 5.f;
+ _float m_fFlyMaxSpeed = 15.f;
+ _float m_fTurboMaxSpeed = 20.f;
+ _float m_fAccel = 1.f;
+ _float m_fDecel = 1.f;
+ _float m_fTurnDecel = 0.3f;
+ _float m_fVerticalSpeed = 0.f;
+ _float m_fTurboBoost = { 5.f };
+ _float m_fTurboBoostChargeDelay = {};
+
+ _float m_fFlyAccel = 1.f;
+ _float m_fFlyDecel = 1.f;
+
+ _float m_fTurboAccel = 1.3f;
+ _float m_fTurboDecel = 0.6f;
+
+ _bool m_bMove = { true };
+
+
+ _int m_iIndex = {};
+
+#pragma region AI
+ _float m_fAISpeedMul = 1.f;
+ _float m_fAIAccelMul = 1.f;
+
+ _float m_fAICondition = 1.f;
+ _float m_fAISeed = 0.f;
+ _float m_fAITime = 0.f;
+
+#pragma endregion
+
+
+ _float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, };
+ _float3 m_vCameraRightDir = { 1.f, 0.f, 0.f };
+
+ BroomInput m_Input;
+ class CEditEffect* m_pWindEffect = { nullptr };
+
+ class CEditEffect* m_pBoostScreenFX = { nullptr };
+ class CTrailObject* m_pBroomTrail = { nullptr };
+ const _float4x4* m_pBroom_TailMat = { nullptr };
+
+ _float m_fCameraOffset = { 10.f };
private:
HRESULT Ready_Components();
HRESULT Bind_ShaderResources();
+ void Update_CameraCoordinateSystem();
+ void PlayerInput(_float fTimeDelta);
+ void Boost_Effect_Visible(_bool isVisible);
+
public:
static CBroom* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
virtual void Free() override;
+#ifdef _DEBUG
virtual void Describe_Entity() override;
+#endif // _DEBUG
+
+#pragma region STATE
+ void Camera_InterpTurn(_float fTimeDelta);
+ virtual void Add_FSM();
+
+ _float m_fAmount = { 1.f };
+ _float m_fInputTime = {};
+ _bool m_bRatio = { false };
+
+
+ HRESULT InputAction();
+ HRESULT InputMove();
+ HRESULT InputKeyUpMove();
+ HRESULT InputSpell();
+ HRESULT InputAim();
+
+ void Behavior_IdleEnter();
+ HRESULT Behavior_IdleExitCheck(_float fTimeDelta);
+ void Behavior_IdleExit();
+
+ void Behavior_MoveEnter();
+ HRESULT Behavior_MoveExitCheck(_float fTimeDelta);
+ void Behavior_MoveExit();
+
+ 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();
+
+ void Behavior_Broom_TurboFlyEnter();
+ HRESULT Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta);
+ void Behavior_Broom_TurboFlyExit();
+#pragma endregion
+
+
};
NS_END
diff --git a/Jusin154_Team3D/Editor/Public/BroomBoost.h b/Jusin154_Team3D/Editor/Public/BroomBoost.h
new file mode 100644
index 000000000..6da0d7039
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/BroomBoost.h
@@ -0,0 +1,49 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Editor)
+
+class CBroomBoost final : public CEffect_Container
+{
+private:
+ CBroomBoost(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroomBoost(const CBroomBoost& rhs);
+ virtual ~CBroomBoost() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ class CEditEffect* m_pBoostParticle_Y = { nullptr };
+ class CEditEffect* m_pBoostParticle_R = { nullptr };
+
+ const _float4x4* m_pBroom_TailMat = { nullptr };
+public:
+ static CBroomBoost* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h
index c012eb67d..ee8c4d011 100644
--- a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h
+++ b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h
@@ -59,6 +59,8 @@ class CLevel_ObjectViewer final : public CLevel
_char m_FindAnimName[256] = {};
string m_SelectedKey;
_int m_iAnimIndex = {};
+ _int m_iCurAnimIndex = {};
+ _float m_fVolume = {0.f};
class CPlayer* m_Test = { nullptr };
public:
diff --git a/Jusin154_Team3D/Editor/Public/MapElement_Door.h b/Jusin154_Team3D/Editor/Public/MapElement_Door.h
index 63f65ae23..9ccb2a023 100644
--- a/Jusin154_Team3D/Editor/Public/MapElement_Door.h
+++ b/Jusin154_Team3D/Editor/Public/MapElement_Door.h
@@ -40,7 +40,7 @@ class CMapElement_Door final : public CMapElement
_float m_fMass = {};
_float3 m_vBoxSize = {};
#endif // _DEBUG
-
+ _float4 m_vExtentPosition = {};
private:
virtual HRESULT Initialize_Prototype() override;
diff --git a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h
index c4e5eae40..31cd340cf 100644
--- a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h
+++ b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h
@@ -93,8 +93,8 @@ class CMapObject_Manager final : public CGameObject
HRESULT Load_DADA_INT();
- HRESULT Save_EffectParts(const _char* pFileName);
- HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
+ HRESULT Save_EditEffect(const _char* pFileName);
+ HRESULT Load_EditEffect(const _char* pFileName, const _char* pEffectrFilePath);
HRESULT Save_DummyNpc(const _char* pFileName);
#pragma endregion
@@ -107,7 +107,7 @@ class CMapObject_Manager final : public CGameObject
void Update_LightSpawer();
void Update_Decal();
void Update_RaceRing();
- void Update_EffectParts();
+ void Update_EditEffect();
void Update_Balloon();
void Update_DummyNpc();
diff --git a/Jusin154_Team3D/Editor/Public/Player.h b/Jusin154_Team3D/Editor/Public/Player.h
index 17eb658d5..3f7309cfa 100644
--- a/Jusin154_Team3D/Editor/Public/Player.h
+++ b/Jusin154_Team3D/Editor/Public/Player.h
@@ -173,11 +173,32 @@ class CPlayer final : public CUnit
void Behavior_HitExit();
void Behavior_Broom_RideEnter();
- HRESULT Behavior_Broom_RideExitCheck();
+ HRESULT Behavior_Broom_RideExitCheck(_float fTimeDelta);
void Behavior_Broom_RideExit();
+ void Behavior_Broom_Ride_MoveEnter();
+ HRESULT Behavior_Broom_Ride_MoveExitCheck(_float fTimeDelta);
+ void Behavior_Broom_Ride_MoveExit();
+
+ 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();
+
+ void Behavior_Broom_TurboFlyEnter();
+ HRESULT Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta);
+ void Behavior_Broom_TurboFlyExit();
+
+ void Behavior_Broom_DismountEnter();
+ HRESULT Behavior_Broom_DismountExitCheck(_float fTimeDelta);
+ void Behavior_Broom_DismountExit();
void Player_InterpTurn(_float fTimeDelta);
+ void Attach_Broom();
+ HRESULT InputBroom();
#pragma endregion
diff --git a/Jusin154_Team3D/Editor/Public/State_Broom_Dismount.h b/Jusin154_Team3D/Editor/Public/State_Broom_Dismount.h
new file mode 100644
index 000000000..766621e38
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/State_Broom_Dismount.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Editor_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Editor)
+
+class CState_Broom_Dismount final : public CState_Root
+{
+public:
+ typedef struct tagBroomDismount : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_BROOM_DISMOUNT_DESC;
+private:
+ CState_Broom_Dismount();
+ virtual ~CState_Broom_Dismount() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_BROOM_DISMOUNT_DESC* pDesc);
+
+public:
+ static CState_Broom_Dismount* Create(STATE_BROOM_DISMOUNT_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/State_Broom_Ride.h b/Jusin154_Team3D/Editor/Public/State_Broom_Ride.h
new file mode 100644
index 000000000..a34905686
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/State_Broom_Ride.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Editor_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Editor)
+
+class CState_Broom_Ride final : public CState_Root
+{
+public:
+ typedef struct tagBroomRide : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_BROOM_RIDE_DESC;
+private:
+ CState_Broom_Ride();
+ virtual ~CState_Broom_Ride() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_BROOM_RIDE_DESC* pDesc);
+
+public:
+ static CState_Broom_Ride* Create(STATE_BROOM_RIDE_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/State_Broom_Ride_Move.h b/Jusin154_Team3D/Editor/Public/State_Broom_Ride_Move.h
new file mode 100644
index 000000000..3c3db9fc0
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/State_Broom_Ride_Move.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Editor_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Editor)
+
+class CState_Broom_Ride_Move final : public CState_Root
+{
+public:
+ typedef struct tagBroomRideMove : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_BROOM_RIDE_MOVE_DESC;
+private:
+ CState_Broom_Ride_Move();
+ virtual ~CState_Broom_Ride_Move() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_BROOM_RIDE_MOVE_DESC* pDesc);
+
+public:
+ static CState_Broom_Ride_Move* Create(STATE_BROOM_RIDE_MOVE_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/State_Broom_TurboFly.h b/Jusin154_Team3D/Editor/Public/State_Broom_TurboFly.h
new file mode 100644
index 000000000..61e95b990
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/State_Broom_TurboFly.h
@@ -0,0 +1,36 @@
+#pragma once
+#include "Editor_Define.h"
+#include "State_Root.h"
+
+NS_BEGIN(Editor)
+
+class CState_Broom_TurboFly final : public CState_Root
+{
+public:
+ typedef struct tagBroomTurboFly : public CState_Root::STATE_ROOT_DESC {
+ function funcPriorityUpdate = { nullptr };
+ function funcLateUpdate = { nullptr };
+ }STATE_BROOM_TURBOFLY_DESC;
+private:
+ CState_Broom_TurboFly();
+ virtual ~CState_Broom_TurboFly() = default;
+
+public:
+ virtual void Enter();
+ virtual HRESULT Update(_float fTimeDelta);
+ virtual void Exit();
+
+private:
+ function m_funcPriorityUpdate = { nullptr };
+ function m_funcLateUpdate = { nullptr };
+
+private:
+ HRESULT Initialize(STATE_BROOM_TURBOFLY_DESC* pDesc);
+
+public:
+ static CState_Broom_TurboFly* Create(STATE_BROOM_TURBOFLY_DESC* pDesc);
+ virtual void Free() override;
+ virtual void Describe_Entity();
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Engine/Default/Engine.vcxproj b/Jusin154_Team3D/Engine/Default/Engine.vcxproj
index 2027d57d7..e94d28a34 100644
--- a/Jusin154_Team3D/Engine/Default/Engine.vcxproj
+++ b/Jusin154_Team3D/Engine/Default/Engine.vcxproj
@@ -303,6 +303,7 @@ call Update_Lib.bat
+
@@ -544,6 +545,7 @@ call Update_Lib.bat
+
diff --git a/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters b/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters
index 611457454..d56293e14 100644
--- a/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters
+++ b/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters
@@ -615,6 +615,9 @@
00.System\01.Timer\TimeSocket
+
+ 00.System\00.Device\Sound\00.Sound_Manager
+
@@ -1274,6 +1277,9 @@
00.System\01.Timer\TimeSocket
+
+ 00.System\00.Device\Sound\00.Sound_Manager
+
diff --git a/Jusin154_Team3D/Engine/Private/Animation.cpp b/Jusin154_Team3D/Engine/Private/Animation.cpp
index a77d863a2..42346d1f7 100644
--- a/Jusin154_Team3D/Engine/Private/Animation.cpp
+++ b/Jusin154_Team3D/Engine/Private/Animation.cpp
@@ -36,9 +36,13 @@ CAnimation::CAnimation(const CAnimation& rhs)
}
_bool CAnimation::Update_TransformationMatrices(const vector& Bones, _bool bIsLoop, _float fTimeDelta, _bool bIsSpine, vector<_uint> BoneMask, _float4& OutScale, _float4& OutRotation, _float4& OutTranslation, _int RootBoneIndex)
{
- m_fTempTrack += fTimeDelta * m_fAnimSpeed;
- m_fProgress = m_fTickPerSecond * fTimeDelta * m_fAnimSpeed;
- m_fCurrentTrackPosition += m_fProgress;
+ if (m_bPlayAnim)
+ {
+ m_fTempTrack += fTimeDelta * m_fAnimSpeed;
+ m_fProgress = m_fTickPerSecond * fTimeDelta * m_fAnimSpeed;
+ m_fCurrentTrackPosition += m_fProgress;
+ }
+
if (m_fCurrentTrackPosition >= m_fDuration) {
if (false == bIsLoop) {
@@ -345,10 +349,12 @@ void CAnimation::CreateGPUData(ID3D11Device* pDevice)
void CAnimation::Set_CurrentTrackProgressRatio(_float fRatio)
{
fRatio = clamp(fRatio, 0.f, 1.f);
- m_fTempTrack = fRatio * m_fDurationSeconds;
+
+ m_fCurrentTrackPosition = m_fDuration * fRatio;
}
+
#ifdef EDITOR_PROJECT
diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
index 80ad1e4e2..04cb27166 100644
--- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
+++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
@@ -375,9 +375,17 @@ HRESULT CCharacter_Controller::Initialize(void* pArg)
PSX::PxRigidDynamic* pActor = m_pController->getActor();
pActor->userData = &m_tagData;
+ PSX::PxShape* shapes[8]{};
+ PSX::PxU32 count = pActor->getShapes(shapes, 8);
+ for (PSX::PxU32 i = 0; i < count; ++i)
+ {
+ shapes[i]->userData = &m_tagData;
+ shapes[i]->setFlag(PSX::PxShapeFlag::eSCENE_QUERY_SHAPE, true);
+ }
m_pGameInstance->ApplyFilterData(pActor);
m_pController->setStepOffset(pDesc->fStepOffset);
+
if (nullptr == m_pController) {
assert(false);
return E_FAIL;
diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
index 7d84edbeb..d4b1d3ae0 100644
--- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp
+++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
@@ -20,6 +20,7 @@
#include "Resource_Manager.h"
#include "Font_Manager.h"
#include "Volumetric.h"
+#include "Sound_Manager.h"
IMPLEMENT_SINGLETON(CGameInstance)
@@ -130,6 +131,11 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De
return E_FAIL;
}
+ m_pSound_Manager = CSound_Manager::Create(*ppDevice, *ppContext);
+ if (nullptr == m_pSound_Manager) {
+ return E_FAIL;
+ }
+
m_vViewPortSize = _float2((_float)EngineDesc.iWinSizeX, (_float)EngineDesc.iWinSizeY);
@@ -143,7 +149,7 @@ void CGameInstance::Update_Engine(_float fTimeDelta)
m_pKey_Manager->Update();
m_pMouse_Manager->Update();
- //m_pSound_Manager->Update();
+ m_pSound_Manager->Update();
#ifdef _DEBUG
m_pResource_Manager->Describe_Entity();
m_pFog->Update_Fog();
@@ -733,6 +739,12 @@ HRESULT CGameInstance::Bind_PrevMatrix(CShader* pShader, const _char* pConstants
return m_pRenderer->Bind_PrevMatrix(pShader, pConstants, eType);
}
+void CGameInstance::Set_Environment(_float3 vSSAO, _float fExposure, _float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax)
+{
+ m_pRenderer->Set_Environment(vSSAO, fExposure);
+ m_pPipeLine->Set_Environment(vNFBoxRatio, vSafeRadius, vShadowBias, vShadowRadius, vShadowBoxMarginMin, vShadowBoxMarginMax);
+}
+
void CGameInstance::Set_Transform(D3DTS eState, _fmatrix TransformStateMatrix)
{
m_pPipeLine->Set_Transform(eState, TransformStateMatrix);
@@ -1016,6 +1028,18 @@ void CGameInstance::Force_CamPosition(_fvector vPos)
{
return m_pCamera_Manager->Force_CamPosition(vPos);
}
+HRESULT CGameInstance::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode)
+{
+ return m_pSound_Manager->Load_Sound(eKind, wstrSoundFilePath, eSoundMode);
+}
+void CGameInstance::Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume)
+{
+ m_pSound_Manager->Sound_Play(eSoundKind, eSoundChannel, bRepeat, fVolume);
+}
+void CGameInstance::Sound_StopAll()
+{
+ m_pSound_Manager->Sound_StopAll();
+}
_bool CGameInstance::isPicking(_float3* pOut)
{
return m_pPicking->isPicking(pOut);
@@ -1098,6 +1122,10 @@ _bool CGameInstance::SphereCast(_float fRadius, _fvector vStartPos, _gvector vDi
{
return m_pPhysX_Manager->SphereCast(fRadius, vStartPos, vDir, fDistance, flagHitsData, flagQuery, hitBuffer);
}
+_bool CGameInstance::Overlap(_float fRadius, _fvector vCenter, PSX::PxQueryFlags queryFlags, PSX::PxOverlapCallback& overlapBuffer, PSX::PxQueryFilterCallback* filterCallback)
+{
+ return m_pPhysX_Manager->Overlap(fRadius, vCenter, queryFlags, overlapBuffer, filterCallback);
+}
_bool CGameInstance::RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount)
{
return m_pPhysX_Manager->RayCast(_vStartPos, _vDir, fDistance, pRayHitArray, iMaxHitCapacity, iOutHitCount);
@@ -1401,6 +1429,7 @@ void CGameInstance::Release_Engine()
DestroyInstance();
+ SAFE_RELEASE(m_pSound_Manager);
SAFE_RELEASE(m_pFont_Manager);
SAFE_RELEASE(m_pFog);
SAFE_RELEASE(m_pPicking);
diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp
index 39a575afd..a2db9cd90 100644
--- a/Jusin154_Team3D/Engine/Private/Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Model.cpp
@@ -196,10 +196,6 @@ void CModel::Set_ChainAnimation(pair<_uint, _bool> chainAnim)
_bool CModel::Play_Animation(_float fTimeDelta, CTransform* pTransform)
{
- if (!m_bPlayAnim){
- return false;
- }
-
if (m_iCurrentAnimIndex < 0 || m_iCurrentAnimIndex >= (_int)m_iNumAnimations){
return false;
}
@@ -258,9 +254,9 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
m_bLoopRestarted = true;
m_vPrevRootPos = { 0,0,0 };
}
- /*else {
+ else {
m_vPrevRootPos = { m_OutTranslation.x,m_OutTranslation.y,m_OutTranslation.z };
- }*/
+ }
}
@@ -872,6 +868,16 @@ _float CModel::Get_TrackProgressRatio(_uint iIndex)
return m_Animations[iIndex]->Get_CurrentTrackProgressRatio();
}
+void CModel::Set_PlayAnim(_bool bPlayAnim)
+{
+ m_Animations[m_iCurrentAnimIndex]->Set_PlayAnim(bPlayAnim);
+}
+
+_bool CModel::Get_PlayAnim()
+{
+ return m_Animations[m_iCurrentAnimIndex]->Get_PlayAnim();
+}
+
_float CModel::Get_AnimSpeed()
{
return m_Animations[m_iCurrentAnimIndex]->Get_AnimSpeed();
diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
index 06639217f..30eb1103d 100644
--- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
@@ -347,6 +347,24 @@ _bool CPhysX_Manager::SphereCast(_float fRadius, _fvector _vStartPos, _gvector _
return bHit;
}
+_bool CPhysX_Manager::Overlap(_float fRadius, _fvector vCenter, PSX::PxQueryFlags queryFlags, PSX::PxOverlapCallback& overlapBuffer, PSX::PxQueryFilterCallback* filterCallback)
+{
+ const PSX::PxSphereGeometry sphereGeometry(fRadius);
+ PSX::PxVec3 pxCenter = {};
+ XMStoreFloat3((_float3*)&pxCenter, vCenter);
+ const PSX::PxTransform spherePose(pxCenter);
+
+ PSX::PxQueryFilterData filterData;
+ filterData.flags = queryFlags;
+
+ if (filterCallback != nullptr)
+ filterData.flags |= PSX::PxQueryFlag::ePREFILTER;
+
+ _bool hit = m_pScene->overlap( sphereGeometry, spherePose, overlapBuffer, filterData, filterCallback );
+
+ return hit ? true : false;
+}
+
_bool CPhysX_Manager::RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount)
{
return RayCast(XMLoadFloat3(&_vStartPos), XMLoadFloat3(&_vDir), fDistance, pRayHitArray, iMaxHitCapacity, iOutHitCount);
@@ -680,7 +698,7 @@ void CPhysX_Manager::ApplyFilterData(PSX::PxRigidActor* pRigidActor)
PSX::PxFilterData DATAfilter = {};
DATAfilter.word0 = CategoryBit; // 나는 누구인가
- DATAfilter.word1 = MaskBits; // 누구와 부딪힐 것인가
+ DATAfilter.word1 = MaskBits; // 누구와 상호작용(충돌/쿼리)할 것인가
const PSX::PxU32 shapeCount = pRigidActor->getNbShapes();
vector shapes(shapeCount);
@@ -688,8 +706,18 @@ void CPhysX_Manager::ApplyFilterData(PSX::PxRigidActor* pRigidActor)
for (PSX::PxShape* shape : shapes)
{
+ if (!shape) continue;
+
+ // 시뮬레이션 필터
shape->setSimulationFilterData(DATAfilter);
+
+ // 씬쿼리(Overlap/Sweep/Raycast) 필터
+ shape->setQueryFilterData(DATAfilter);
+
+ // 씬쿼리 대상 플래그 보장
+ shape->setFlag(PSX::PxShapeFlag::eSCENE_QUERY_SHAPE, true);
}
+
}
PSX::PxFilterFlags CPhysX_Manager::SimulationFilterShader(PSX::PxFilterObjectAttributes pxAttributes0, PSX::PxFilterData pxFilterData0, PSX::PxFilterObjectAttributes pxAttributes1, PSX::PxFilterData pxFilterData1, PSX::PxPairFlags& pxPairFlags, const void* pConstantBlock, PSX::PxU32 iConstantBlockSize)
diff --git a/Jusin154_Team3D/Engine/Private/PipeLine.cpp b/Jusin154_Team3D/Engine/Private/PipeLine.cpp
index 70572e8a9..0c125e40c 100644
--- a/Jusin154_Team3D/Engine/Private/PipeLine.cpp
+++ b/Jusin154_Team3D/Engine/Private/PipeLine.cpp
@@ -13,6 +13,20 @@ CPipeLine::CPipeLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
SAFE_ADDREF(m_pGameInstance);
}
+void CPipeLine::Set_Environment(_float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax)
+{
+ m_fShadowNearBoxRatio = vNFBoxRatio.x;
+ m_fShadowFarBoxRatio = vNFBoxRatio.y;
+
+ m_fSafe_RadiusMultiplier = vSafeRadius.x;
+ m_fSafe_RadiusMargin = vSafeRadius.y;
+
+ m_vShadowBias = vShadowBias;
+ m_vShadowRadius = vShadowRadius;
+ m_vShadowBoxMarginMin = vShadowBoxMarginMin;
+ m_vShadowBoxMarginMax = vShadowBoxMarginMax;
+}
+
void CPipeLine::Set_Transform(D3DTS eState, _fmatrix TransformStateMatrix)
{
XMStoreFloat4x4(&m_TransformStateMatrices[ENUM_CLASS(eState)], TransformStateMatrix);
diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp
index f243454d3..b3b63508e 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp
@@ -135,6 +135,17 @@ HRESULT CRenderer::Bind_PrevMatrix(class CShader* pShader, const _char* pConstan
return S_OK;
}
+void CRenderer::Set_Environment(_float3 vSSAO, _float fExposure)
+{
+ m_fSSAO_Radius = vSSAO.x;
+ m_fSSAO_BIAS = vSSAO.y;
+ m_fSSAOStrength = vSSAO.z;
+ m_fExposure = fExposure;
+ // m_fSSAO_Radius = 0.585f;
+ // m_fSSAO_BIAS = 0.182f;
+ // m_fSSAOStrength = 2.83f;
+}
+
void CRenderer::Bind_RawValue()
{
_uint iNumViewPort = { 1 };
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
index 72ef5d7cb..5120169bf 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
@@ -202,12 +202,12 @@ HRESULT CRigidBody_Dynamic::ConvertToCCT(CCharacter_Controller& CCTOriginal)
return E_FAIL;
}
+
void CRigidBody_Dynamic::Detach_Actor(_uint iLevel)
{
m_pGameInstance->Detach_Actor(*m_pRigidBody, iLevel); // 현재 액터 비활성화
m_bActive = false;
}
-
_vector CRigidBody_Dynamic::Get_Position()
{
PSX::PxVec3 pxPos = m_pRigidBody->getGlobalPose().p;
diff --git a/Jusin154_Team3D/Engine/Private/SoundSrc.cpp b/Jusin154_Team3D/Engine/Private/SoundSrc.cpp
index 90ed9da08..e28e9b271 100644
--- a/Jusin154_Team3D/Engine/Private/SoundSrc.cpp
+++ b/Jusin154_Team3D/Engine/Private/SoundSrc.cpp
@@ -1,4 +1,4 @@
-#include "pch.h"
+#include "pch.h"
#include "Engine_Define.h"
#include "SoundSrc.h"
@@ -6,15 +6,31 @@
using namespace Engine::SOUND;
const _tchar* const SD_PATH::SD_KIND_PATHS[SD_KIND_COUNT] = {
-#pragma region KIND_A
- TEXT("A/HIT00.ogg"),
- TEXT("A/HIT01.ogg"),
+#pragma region BGM
+ TEXT("BGM/Hogwart_BGM_0.wav"),
+ TEXT("BGM/Ranrok_BGM.wav"),
#pragma endregion
-#pragma region KIND_B
- TEXT("B/HIT00.ogg"),
- TEXT("B/HIT01.ogg"),
+
+#pragma region SPELL
+ TEXT("Player/spells_jap_akb/jap_0.wav"),
+ TEXT("Player/spells_jap_akb/jap_1.wav"),
+ TEXT("Player/spells_jap_akb/jap_13.wav"),
+ TEXT("Player/spells_perk_shadowblink_akb/blink_2.wav"),
#pragma endregion
+
+#pragma region VOICE
+ TEXT("Player/Voice/avadakedavra_voice.wav"),
+ TEXT("Player/Voice/bombarda_voice.wav"),
+ TEXT("Player/Voice/decendo_voice.wav"),
+ TEXT("Player/Voice/levioso_voice.wav"),
+ TEXT("Player/Voice/lumos_voice.wav"),
+ TEXT("Player/Voice/protego_voice.wav"),
+ TEXT("Player/Voice/reparo_voice.wav"),
+ TEXT("Player/Voice/revelio.voice.wav"),
+ TEXT("Player/Voice/stupefy_voice.wav"),
+#pragma endregion
+
};
-static_assert(SD_KIND_COUNT == _countof(SD_PATH::SD_KIND_PATHS),
- "SD_KIND and SD_PATH::SD_KIND_PATHS num is not match" "match same num");
\ No newline at end of file
+//static_assert(SD_KIND_COUNT == _countof(SD_PATH::SD_KIND_PATHS),
+// "SD_KIND and SD_PATH::SD_KIND_PATHS num is not match" "match same num");
diff --git a/Jusin154_Team3D/Engine/Private/Sound_Manager.cpp b/Jusin154_Team3D/Engine/Private/Sound_Manager.cpp
new file mode 100644
index 000000000..6d46c82a7
--- /dev/null
+++ b/Jusin154_Team3D/Engine/Private/Sound_Manager.cpp
@@ -0,0 +1,319 @@
+#include "pch.h"
+#include "Sound_Manager.h"
+#include "Transform.h"
+#include "GameInstance.h"
+
+System* CSound_Manager::s_pSystem = { nullptr };
+_string CSound_Manager::s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)] = { "BGM", "ENVIRONMENT", "EFFECT", "VOICE" };
+list CSound_Manager::s_listChannel[ENUM_CLASS(SD_CHANNEL_GROUP::END)] = {};
+Sound* CSound_Manager::s_ArrSounds[ENUM_CLASS(SOUND::SD_KIND::END)] = {};
+
+
+CSound_Manager::CSound_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : m_pDevice(pDevice),
+ m_pContext(pContext),
+ m_pGameInstance(CGameInstance::GetInstance())
+{
+ SAFE_ADDREF(m_pDevice);
+ SAFE_ADDREF(m_pGameInstance);
+ SAFE_ADDREF(m_pContext);
+}
+
+HRESULT CSound_Manager::Update()
+{
+ s_pSystem->update();
+ for (int i = 0; i < ENUM_CLASS(SD_CHANNEL_GROUP::END); ++i)
+ {
+ auto& channelList = s_listChannel[i];
+ for (auto iter = channelList.begin(); iter != channelList.end(); )
+ {
+ _bool isPlaying = false;
+ if (*iter && FMOD_OK == (*iter)->isPlaying(&isPlaying) && !isPlaying)
+ {
+ iter = channelList.erase(iter); // 재생 끝났으면 삭제
+ }
+ else
+ {
+ ++iter;
+ }
+ }
+ }
+ Sound_Test();
+
+ return S_OK;
+}
+
+void CSound_Manager::Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume)
+{
+ _uint iIndexSound = ENUM_CLASS(eSoundKind);
+ _uint iIndexGroup = ENUM_CLASS(eSoundChannel);
+ Sound* pSound = s_ArrSounds[iIndexSound];
+
+ auto& channelList = s_listChannel[iIndexGroup];
+
+ // 이미 끝난 채널 정리
+ for (auto iter = channelList.begin(); iter != channelList.end(); )
+ {
+ Channel* pChannel = *iter;
+ bool bIsPlaying = false;
+ if (!pChannel || pChannel->isPlaying(&bIsPlaying) != FMOD_OK || !bIsPlaying) {
+ iter = channelList.erase(iter);
+ }
+ else {
+ ++iter;
+ }
+ }
+
+ Channel* pChannel = nullptr;
+ FMOD_RESULT fRersult = s_pSystem->playSound(pSound, nullptr, true, &pChannel);
+ if (fRersult != FMOD_OK || nullptr == pChannel) {
+ return;
+ }
+
+ if (true == bRepeat)
+ {
+ pChannel->setMode(FMOD_LOOP_NORMAL);
+ pChannel->setLoopCount(-1);
+ }
+ else
+ {
+ pChannel->setMode(FMOD_LOOP_OFF);
+ }
+
+
+ pChannel->setVolume(fVolume);
+
+ pChannel->setPaused(false);
+ channelList.push_back(pChannel);
+}
+
+void CSound_Manager::Sound_Play_3DPos(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _float3& refSpeaker, _float fMin, _float fMax, _bool bRepeat)
+{
+ auto& channelList = s_listChannel[ENUM_CLASS(eSoundChannel)];
+
+ // 중복 재생 방지 (같은 Sound가 재생 중인지 확인)
+
+ if (!bRepeat)
+ {
+ for (auto& pChannel : channelList)
+ {
+ Sound* pCurrentSound = nullptr;
+ if (pChannel && FMOD_OK == pChannel->getCurrentSound(&pCurrentSound))
+ {
+ if (pCurrentSound == s_ArrSounds[ENUM_CLASS(eSoundKind)])
+ return; // 이미 같은 사운드 재생 중이면 무시
+ }
+ }
+ }
+
+ Channel* pChannel = nullptr;
+ s_pSystem->playSound(s_ArrSounds[ENUM_CLASS(eSoundKind)], nullptr, true, &pChannel);
+
+ if (pChannel)
+ {
+ FMOD_VECTOR soundPos = { refSpeaker.x, refSpeaker.y, refSpeaker.z };
+ FMOD_VECTOR soundVel = { 0.0f, 0.0f, 0.0f };
+ pChannel->set3DAttributes(&soundPos, &soundVel);
+ pChannel->set3DMinMaxDistance(fMin, fMax);
+ pChannel->setPaused(false);
+
+ s_listChannel[ENUM_CLASS(eSoundChannel)].push_back(pChannel);
+ }
+}
+
+void CSound_Manager::Sound_Pause_Channel(SD_CHANNEL_GROUP eSoundChannel, bool bPause)
+{
+ auto& channelList = s_listChannel[ENUM_CLASS(eSoundChannel)];
+ for (auto& pChannel : channelList)
+ {
+ if (pChannel) {
+ pChannel->setPaused(bPause);
+ }
+ }
+}
+
+void CSound_Manager::Sound_Set3DListenerPos(CTransform* pTransform)
+{
+ _float4 vListener = {};
+ _vector vTemp = pTransform->Get_State(STATE::POSITION);
+ memcpy_s(&vListener, sizeof(_float4), &vTemp, sizeof(_vector));
+ FMOD_VECTOR listenerPos = { vListener.x, vListener.y, vListener.z };
+ FMOD_VECTOR listenerVel = { 0.0f, 0.0f, 0.0f };
+ vTemp = pTransform->Get_State(STATE::LOOK);
+ memcpy_s(&vListener, sizeof(_float4), &vTemp, sizeof(_vector));
+ FMOD_VECTOR forward = { vListener.x, vListener.y, vListener.z };
+ vTemp = pTransform->Get_State(STATE::UP);
+ memcpy_s(&vListener, sizeof(_float4), &vTemp, sizeof(_vector));
+ FMOD_VECTOR up = { vListener.x, vListener.y, vListener.z };
+ s_pSystem->set3DListenerAttributes(0, &listenerPos, &listenerVel, &forward, &up);
+
+}
+
+void CSound_Manager::Sound_StopChannel(SD_CHANNEL_GROUP eSoundChannel)
+{
+ auto& channelList = s_listChannel[ENUM_CLASS(eSoundChannel)];
+ for (auto& pChannel : channelList)
+ {
+ if (pChannel) {
+ pChannel->stop();
+ }
+ } channelList.clear(); // 리스트 초기화
+}
+
+void CSound_Manager::Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel)
+{
+ auto& channelList = s_listChannel[ENUM_CLASS(eSoundChannel)];
+
+ for (auto it = channelList.begin(); it != channelList.end(); )
+ {
+ Sound* pCurrentSound = nullptr;
+ if (*it && FMOD_OK == (*it)->getCurrentSound(&pCurrentSound))
+ {
+ if (pCurrentSound == s_ArrSounds[ENUM_CLASS(eSoundKind)])
+ {
+ (*it)->stop();
+ it = channelList.erase(it);
+ continue;
+ }
+ }
+ ++it;
+ }
+}
+
+void CSound_Manager::Sound_StopAll()
+{
+ for (int i = 0; i < ENUM_CLASS(SD_CHANNEL_GROUP::END); ++i) {
+ auto& channelList = s_listChannel[i];
+ for (auto& pChannel : channelList)
+ {
+ if (pChannel) {
+ pChannel->stop();
+ }
+ }
+ channelList.clear(); // 리스트 초기화
+ }
+}
+
+void CSound_Manager::Sound_SetVolume(SD_CHANNEL_GROUP eSoundChannel, float fVolume)
+{
+ auto& channelList = s_listChannel[ENUM_CLASS(eSoundChannel)];
+ for (auto& pChannel : channelList)
+ {
+ if (pChannel)
+ pChannel->setVolume(fVolume); // 0.0 ~ 1.0
+ }
+}
+
+void CSound_Manager::Sound_Test()
+{
+ //GUI::Begin("Music_Player");
+ //static int item_selected_CHANNEL = 0;
+ //static int item_selected_SD_KIND = 0;
+
+ //GUI::BeginChild("##ITEMs", ImVec2(350.f, 175.f), true, ImGuiWindowFlags_HorizontalScrollbar);
+ //for (int iIndex = 0; iIndex < SOUND::SD_KIND::END; ++iIndex) {
+ // if (GUI::Button(CMyTools::ToString(SOUND::SD_PATH::SD_KIND_STRING[iIndex]).c_str())) {
+ // item_selected_SD_KIND = iIndex;
+ // }
+ //}
+ //GUI::EndChild();
+ //GUI::BeginChild("##Channels", ImVec2(350.f, 175.f), true, ImGuiWindowFlags_HorizontalScrollbar);
+ //for (int iIndex = 0; iIndex < ENUM_CLASS(SD_CHANNEL_GROUP::END); ++iIndex) {
+ // if (GUI::Button(s_ArrChannelName[iIndex].c_str())) {
+ // item_selected_CHANNEL = iIndex;
+ // }
+ //}
+ //GUI::EndChild();
+
+ //if (GUI::Button("Play_Sound", { 50, 50 })) {
+ // Sound_Play(static_cast(item_selected_SD_KIND), static_cast(item_selected_CHANNEL), false, false, 1.f);
+ //} GUI::SameLine();
+ //if (GUI::Button("Sound_STOP", { 50, 50 })) {
+ // Sound_StopAll();
+ //}
+ //GUI::End();
+}
+
+HRESULT CSound_Manager::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode)
+{
+ //const _tchar* pSoundFilePath = TEXT("../Bin/Resources/Sounds/");
+ //for (int iIndex = 0; iIndex < ENUM_CLASS(SOUND::SD_KIND::END); ++iIndex) {
+ // if (FAILED(m_pGameInstance->Load_Sound((SOUND::SD_KIND)iIndex, (_wstring(pSoundFilePath) + SOUND::SD_PATH::SD_KIND_STRING[iIndex]).c_str()))) {
+ // return E_FAIL;
+ // }
+ //}
+
+ //// 사운드 생성, 파일 불러오기
+ FMOD_RESULT fr = CSound_Manager::s_pSystem->createSound(
+ CMyTools::ToString(wstrSoundFilePath).c_str(), // 대상 경로
+ eSoundMode, // 재생 모드
+ 0, // 인덱스?
+ &CSound_Manager::s_ArrSounds[ENUM_CLASS(eKind)]); // 대상 사운드
+ if (fr == 0) {
+ return S_OK;
+ }
+ return E_FAIL;
+}
+
+HRESULT CSound_Manager::Initialize()
+{
+ FMOD_RESULT r = System_Create(&s_pSystem);
+ if (r != FMOD_OK) return E_FAIL;
+
+ int numDrivers = 0;
+ s_pSystem->getNumDrivers(&numDrivers);
+
+ if (numDrivers == 0) {
+ m_bNoSound = true;
+ s_pSystem->setOutput(FMOD_OUTPUTTYPE_NOSOUND);
+ }
+
+ r = s_pSystem->init(512, FMOD_INIT_NORMAL, nullptr);
+ if (r != FMOD_OK) {
+ m_bNoSound = true;
+ s_pSystem->setOutput(FMOD_OUTPUTTYPE_NOSOUND);
+ s_pSystem->init(512, FMOD_INIT_NORMAL, nullptr);
+ }
+
+ return S_OK;
+}
+
+CSound_Manager* CSound_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSound_Manager* pInstance = new CSound_Manager(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize()))
+ {
+ MSG_BOX("Failed to Created : CSound_Manager");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSound_Manager::Free()
+{
+ __super::Free();
+ Sound_StopAll();
+ for (int i = 0; i < ENUM_CLASS(SOUND::SD_KIND::END); ++i) {
+ if (s_ArrSounds[i]) {
+ s_ArrSounds[i]->release();
+ s_ArrSounds[i] = nullptr;
+ }
+ }
+ // System 해제
+ if (s_pSystem) {
+ if (!m_bNoSound) {
+ s_pSystem->close();
+ s_pSystem->release();
+ }
+ else {
+ // 무음 모드면 그냥 close/release 없이 바로 포인터만 비움
+ }
+ s_pSystem = nullptr;
+ }
+
+ SAFE_RELEASE(m_pGameInstance);
+ SAFE_RELEASE(m_pDevice);
+ SAFE_RELEASE(m_pContext);
+}
diff --git a/Jusin154_Team3D/Engine/Private/TimeSocket.cpp b/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
index dd003dba2..52709f3da 100644
--- a/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
+++ b/Jusin154_Team3D/Engine/Private/TimeSocket.cpp
@@ -34,40 +34,18 @@ HRESULT CTimeSocket::Initialize(void* pArg)
m_Contents.vParam_11 = pDesc->vParam_11;
m_Contents.funcEvent = pDesc->funcEvent;
m_Contents.vParam_12 = pDesc->vParam_12;
+ m_Contents.pOtherTarget = pDesc->pOtherTarget;
+ m_Contents.pxTransform = pDesc->pxTransform;
- switch (m_Contents.eTypeParam)
- {
- case TIMESOCKET_PARAM::TARGET:
- m_Contents.pOtherTarget = pDesc->pOtherTarget;
- break;
- case TIMESOCKET_PARAM::TRANSFORM:
- m_Contents.pxTransform = pDesc->pxTransform;
- break;
- case TIMESOCKET_PARAM::NOT_USE:
- break;
- default:
- m_Contents.pOtherTarget = nullptr;
- break;
- }
-
+ SAFE_ADDREF(m_Contents.pOtherTarget);
SAFE_ADDREF(m_Contents.pEventTarget);
- if (m_Contents.eTypeParam == TIMESOCKET_PARAM::TARGET){
- SAFE_ADDREF(m_Contents.pOtherTarget);
- }
return S_OK;
}
void CTimeSocket::Finalize()
{
- switch (m_Contents.eTypeParam)
- {
- case TIMESOCKET_PARAM::TARGET:
- SAFE_RELEASE(m_Contents.pOtherTarget);
- break;
- default:
- break;
- }
+ SAFE_RELEASE(m_Contents.pOtherTarget);
SAFE_RELEASE(m_Contents.pEventTarget);
}
diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp
index e6910695a..4bebf38dc 100644
--- a/Jusin154_Team3D/Engine/Private/Transform.cpp
+++ b/Jusin154_Team3D/Engine/Private/Transform.cpp
@@ -600,7 +600,7 @@ void CTransform::Free()
void CTransform::Describe_Entity()
{
-#ifdef 기무리
+//#ifdef 기무리
if (GUI::TreeNode("NuriDebug")) {
{
_vector vScale, vRotQ, vTrans;
@@ -628,7 +628,7 @@ void CTransform::Describe_Entity()
}
GUI::TreePop();
}
-#endif // 기무리
+//#endif // 기무리
if (GUI::TreeNode("Transform")) {
GUI::Text("----- Gizmo ----");
_float3 vMove = {};
diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp
index 19b8438c7..e050c549b 100644
--- a/Jusin154_Team3D/Engine/Private/Unit.cpp
+++ b/Jusin154_Team3D/Engine/Private/Unit.cpp
@@ -529,6 +529,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
{ "SPELL_LEARNING_SUCCESS", SPELL_LEARNING_SUCCESS },
{ "SPELL_LEARNING_WANDWAVE", SPELL_LEARNING_WANDWAVE },
+ // SPAWN
+ { "SPAWN", SPAWN },
+
// CUT SCENES TROLL
{ "CUTSCENE_TROLLINTRO", CUTSCENE_TROLLINTRO },
// CUT SCENES OPENING
diff --git a/Jusin154_Team3D/Engine/Public/Animation.h b/Jusin154_Team3D/Engine/Public/Animation.h
index 64df874d6..282ad91b0 100644
--- a/Jusin154_Team3D/Engine/Public/Animation.h
+++ b/Jusin154_Team3D/Engine/Public/Animation.h
@@ -32,7 +32,7 @@ class ENGINE_DLL CAnimation : public CBase
void Set_CurrentTrackPosition(_float TrackPosition) { m_fCurrentTrackPosition = TrackPosition; }
_float Get_CurrentTrackPosition() { return m_fCurrentTrackPosition; }
- _float Get_CurrentTrackProgressRatio() { return m_fTempTrack / m_fDurationSeconds;}
+ _float Get_CurrentTrackProgressRatio() { return m_fCurrentTrackPosition / m_fDuration;}
void Set_CurrentTrackProgressRatio(_float fRatio);
void Set_AnimSpeed(_float fSpeed) { m_fAnimSpeed = fSpeed; }
_float Get_AnimSpeed() { return m_fAnimSpeed; }
@@ -48,6 +48,8 @@ class ENGINE_DLL CAnimation : public CBase
ID3D11ShaderResourceView* Get_ChannelSrv() { return m_pChannelSrv; }
_float Get_Progress() { return m_fProgress; }
+ void Set_PlayAnim(_bool bPlay) { m_bPlayAnim = bPlay; }
+ _bool Get_PlayAnim() { return m_bPlayAnim; }
#ifdef EDITOR_PROJECT
private:
HRESULT Initialize(const vector& Bones, const aiAnimation* pAIAnimation);
@@ -88,6 +90,8 @@ class ENGINE_DLL CAnimation : public CBase
vector m_StartKeyFrames; // 이 애니메이션의 영향을 받는 본들의 초기값
vector<_matrix> m_vBoneTransformationMatrix = {};
_float m_fProgress = {};
+ _bool m_bPlayAnim = {true};
+
_uint m_iChannelCount;
_uint m_iKeyframeCount;
diff --git a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h
index 6d3830af9..d0dc7ef8d 100644
--- a/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h
+++ b/Jusin154_Team3D/Engine/Public/CallBack_QueryFilterCallback.h
@@ -33,7 +33,7 @@ class CPhysX_CctQueryFilterCallback final : public PSX::PxQueryFilterCallback
case PXOBJECT::JOINT_ANCHOR:
return PSX::PxQueryHitType::eNONE;
break;
- case PXOBJECT::RANROK_PROP:
+ case PXOBJECT::RANROK_BODY:
return PSX::PxQueryHitType::eNONE;
break;
case PXOBJECT::POTION:
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
index 378f85d80..dc52a61a9 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
@@ -20,6 +20,13 @@ enum class SHADOW : _ubyte {
, END = 3 // 케스케이드 셰도우 한정
};
+enum class SD_CHANNEL_GROUP {
+ BGM,
+ ENVIRONMENT,
+ EFFECT,
+ VOICE,
+ END
+};
enum class TEXTURE_LOAD_TYPE {
SINGLE, // original/diffuseddd.png
@@ -156,6 +163,7 @@ enum class PXOBJECT : _uint {
GOBLIN_PROTEGO,
RANROK_PROP,
DUELIST_PROTEGO,
+ RANROK_BODY,
#pragma endregion
#pragma region ALLY_HITBOX
ALLY_HITBOX = 200,
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Macro.h b/Jusin154_Team3D/Engine/Public/Engine_Macro.h
index d9a55d3cf..6d084ea41 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Macro.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Macro.h
@@ -35,7 +35,7 @@
#undef ASSERT_NURI
#define ASSERT_NURI(expression) assert(expression)
#define MSG_BOX(_message) MessageBox(NULL, TEXT(_message), L"System Message", MB_OK); assert(false);
-//#undef USE_LOWTEXTURE // 매크로 옵션으로 해상도 조절, 주석 걸면 디버그모드에서 저해상도 유지
+#undef USE_LOWTEXTURE // 매크로 옵션으로 해상도 조절, 주석 걸면 디버그모드에서 저해상도 유지
//#undef OPTIONAL_TRUE_KEYINPUTGUICHECK
//#define OPTIONAL_TRUE_KEYINPUTGUICHECK true||
#elif 진우
diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h
index f32daeb72..690ea11f1 100644
--- a/Jusin154_Team3D/Engine/Public/FSM.h
+++ b/Jusin154_Team3D/Engine/Public/FSM.h
@@ -58,6 +58,7 @@ enum ESTATE : _u64Flag
FEAR = 1ULL << 51,
CUTSCENE = 1ULL << 52,
BLOCK = 1ULL << 53,
+ SPELL_LEARNING = 1ULL << 54,
END
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h
index 796b7ba1a..b229b5ac3 100644
--- a/Jusin154_Team3D/Engine/Public/GameInstance.h
+++ b/Jusin154_Team3D/Engine/Public/GameInstance.h
@@ -103,10 +103,11 @@ class ENGINE_DLL CGameInstance final : public CBase
#pragma region RENDERER
HRESULT Add_RenderGroup(RENDER eRenderGroup, class CGameObject* pRenderObject);
- void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
- RENDER Get_CurrentRenderPass();
+ void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
+ RENDER Get_CurrentRenderPass();
HRESULT Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
HRESULT Bind_PrevMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
+ void Set_Environment(_float3 vSSAO, _float fExposure, _float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax);
#pragma endregion
#pragma region KEY_MANAGER
@@ -209,6 +210,9 @@ class ENGINE_DLL CGameInstance final : public CBase
void Force_CamPosition(_fvector vPos);
#pragma endregion
#pragma region SOUND_MANAGER
+ HRESULT Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode);
+ void Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume);
+ void Sound_StopAll(); // 전체 정지
#pragma endregion
#pragma region PICKING
@@ -227,6 +231,7 @@ class ENGINE_DLL CGameInstance final : public CBase
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
_bool SphereCast(_float fRadius, _fvector vStartPos, _gvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
+ _bool Overlap(_float fRadius, _fvector vCenter, PSX::PxQueryFlags queryFlags, PSX::PxOverlapCallback& overlapBuffer, PSX::PxQueryFilterCallback* filterCallback = nullptr);
_bool RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
_bool RayCast(_fvector _vStartPos, _gvector _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
@@ -325,6 +330,7 @@ class ENGINE_DLL CGameInstance final : public CBase
class CResource_Manager* m_pResource_Manager = { nullptr };
class CFont_Manager* m_pFont_Manager = { nullptr };
class CVolumetric* m_pVolumetric = { nullptr };
+ class CSound_Manager* m_pSound_Manager = { nullptr };
mt19937 m_Rng{ random_device{}() };
_float2 m_vViewPortSize = {};
diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h
index 579d3124a..17717391a 100644
--- a/Jusin154_Team3D/Engine/Public/Model.h
+++ b/Jusin154_Team3D/Engine/Public/Model.h
@@ -93,8 +93,8 @@ class ENGINE_DLL CModel final : public CComponent
_float Get_TrackProgressRatio(_uint iIndex);
size_t Get_AnimSize() { return m_Animations.size(); }
- void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; }
- _bool Get_PlayAnim() const { return m_bPlayAnim; }
+ void Set_PlayAnim(_bool bPlayAnim);
+ _bool Get_PlayAnim();
_int Get_AnimIndex() const { return m_iCurrentAnimIndex; }
_int Get_SecondAnimIndex() const { return m_iCurrSecondAnimIndex; }
_float Get_AnimSpeed();
@@ -201,7 +201,6 @@ class ENGINE_DLL CModel final : public CComponent
_bool m_bIsLoop = { false }; // 루프애니메이션인지
_bool m_bIsFinishedAnim = { false }; // 대상 애니메이션이 끝났는지
_bool m_bIsFinishedLerp = { false }; // 럴프 애니메이션이 끝났는지
- _bool m_bPlayAnim = { true };
_int m_iPreAnimIndex = { -1 };
_float m_fBlendTime = { 0.f };
diff --git a/Jusin154_Team3D/Engine/Public/MyTools.h b/Jusin154_Team3D/Engine/Public/MyTools.h
index 18173e55c..2ce27593f 100644
--- a/Jusin154_Team3D/Engine/Public/MyTools.h
+++ b/Jusin154_Team3D/Engine/Public/MyTools.h
@@ -136,18 +136,18 @@ class CMyTools {
_Out_ _float4x4& matOut, _float fRatio) {
_matrix matOrigin = XMLoadFloat4x4(pMatOrigin);
_matrix matTarget = XMLoadFloat4x4(pMatTarget);
- MatrixLerp(&matOrigin, &matTarget, matOut, fRatio);
+ MatrixLerp(matOrigin, matTarget, matOut, fRatio);
}
- inline static void MatrixLerp( _In_ _matrix* pMatOrigin, // Origin -> 0
- _In_ _matrix* pMatTarget, // Target -> 1
+ inline static void MatrixLerp( _In_ _fmatrix pMatOrigin, // Origin -> 0
+ _In_ _cmatrix pMatTarget, // Target -> 1
_Out_ _float4x4& matOut, _float fRatio) {
fRatio = Saturate(fRatio);
_vector vTargetScale{}, vTargetRotq{}, vTargetTrans{};
_vector vOriginScale{}, vOriginRotq{}, vOriginTrans{};
- XMMatrixDecompose(&vTargetScale, &vTargetRotq, &vTargetTrans, *pMatTarget);
- XMMatrixDecompose(&vOriginScale, &vOriginRotq, &vOriginTrans, *pMatOrigin);
+ XMMatrixDecompose(&vTargetScale, &vTargetRotq, &vTargetTrans, pMatTarget);
+ XMMatrixDecompose(&vOriginScale, &vOriginRotq, &vOriginTrans, pMatOrigin);
vTargetScale = XMVectorLerp(vOriginScale, vTargetScale, fRatio);
vTargetRotq = XMQuaternionSlerp(vOriginRotq, vTargetRotq, fRatio);
diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
index 08ad37937..149f75d89 100644
--- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
@@ -46,7 +46,7 @@ class CPhysX_Manager final : public CBase
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
_bool SphereCast(_float fRadius, _fvector vStartPos, _gvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
- // _bool Overlap(_float fRadius, _fvector vStartPos, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
+ _bool Overlap(_float fRadius, _fvector vCenter, PSX::PxQueryFlags queryFlags, PSX::PxOverlapCallback& overlapBuffer, PSX::PxQueryFilterCallback* filterCallback = nullptr);
_bool RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
_bool RayCast(_fvector _vStartPos, _fvector _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
diff --git a/Jusin154_Team3D/Engine/Public/PipeLine.h b/Jusin154_Team3D/Engine/Public/PipeLine.h
index 8e26828df..0b9f95cfd 100644
--- a/Jusin154_Team3D/Engine/Public/PipeLine.h
+++ b/Jusin154_Team3D/Engine/Public/PipeLine.h
@@ -24,6 +24,7 @@ class CPipeLine final : public CBase
CPipeLine(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual ~CPipeLine() = default;
public:
+ void Set_Environment(_float2 vNFBoxRatio, _float2 vSafeRadius, _float4 vShadowBias, _float4 vShadowRadius, _float3 vShadowBoxMarginMin, _float3 vShadowBoxMarginMax);
void Set_Transform(D3DTS eState, _fmatrix TransformStateMatrix);
const _float4x4* Get_Transform_Float4x4(D3DTS eState);
_matrix Get_Transform_Matrix(D3DTS eState);
diff --git a/Jusin154_Team3D/Engine/Public/Renderer.h b/Jusin154_Team3D/Engine/Public/Renderer.h
index c1eb8f018..e2a9582f7 100644
--- a/Jusin154_Team3D/Engine/Public/Renderer.h
+++ b/Jusin154_Team3D/Engine/Public/Renderer.h
@@ -18,6 +18,7 @@ class CRenderer final : public CBase
void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
HRESULT Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
HRESULT Bind_PrevMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
+ void Set_Environment(_float3 vSSAO, _float fExposure);
#ifdef _DEBUG
private:
diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
index cb0be9b99..60782dd23 100644
--- a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
+++ b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
@@ -55,9 +55,9 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
void Move_Kinematic(PSX::PxTransform& pxDestination, _bool bTeleport = true);
HRESULT ConvertToCCT(class CCharacter_Controller& CCTOriginal);
- void Detach_Actor(_uint iLevel);
_bool IsActive() const { return m_bActive; }
void SetActive(_bool bCondition) { m_bActive = bCondition; }
+ void Detach_Actor(_uint iLevel);
_vector Get_Position();
void Set_Position(_vector vPos, _bool bTeleport);
diff --git a/Jusin154_Team3D/Engine/Public/SoundSrc.h b/Jusin154_Team3D/Engine/Public/SoundSrc.h
index 7f1be54ef..f3628c31d 100644
--- a/Jusin154_Team3D/Engine/Public/SoundSrc.h
+++ b/Jusin154_Team3D/Engine/Public/SoundSrc.h
@@ -1,4 +1,4 @@
-#pragma once
+#pragma once
NS_BEGIN(Engine)
NS_BEGIN(SOUND)
@@ -13,13 +13,27 @@ enum class SD_CHANNEL_GROUP {
};
enum class SD_KIND {
-#pragma region KIND_A
- A_HIT00,
- A_HIT01,
+#pragma region BGM
+ BGM_0,
+ BGM_1,
#pragma endregion
-#pragma region KIND_B
- B_HIT00,
- B_HIT01,
+#pragma region SPELL
+ SP_JAP_0,
+ SP_JAP_1,
+ SP_JAP_13,
+ SP_BLINK_2,
+#pragma endregion
+
+#pragma region VOICE
+ VOICE_AVADAKEDAVRA,
+ VOICE_BOMBARDA,
+ VOICE_DECENDO,
+ VOICE_LEVIOSO,
+ VOICE_LUMOS,
+ VOICE_PROTEGO,
+ VOICE_REPARO,
+ VOICE_REVELIO,
+ VOICE_STUPEFY,
#pragma endregion
END,
};
@@ -32,4 +46,4 @@ struct ENGINE_DLL SD_PATH final {
NS_END // NS_SOUND
-NS_END // NS_Engine
\ No newline at end of file
+NS_END // NS_Engine
diff --git a/Jusin154_Team3D/Engine/Public/Sound_Manager.h b/Jusin154_Team3D/Engine/Public/Sound_Manager.h
new file mode 100644
index 000000000..b5931c8e3
--- /dev/null
+++ b/Jusin154_Team3D/Engine/Public/Sound_Manager.h
@@ -0,0 +1,50 @@
+#pragma once
+#include "Base.h"
+
+NS_BEGIN(Engine)
+
+class CSound_Manager final :
+ public CBase
+{
+public:
+ static System* s_pSystem;
+ static _string s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)];
+ static list s_listChannel[ENUM_CLASS(SD_CHANNEL_GROUP::END)];
+ static Sound* s_ArrSounds[ENUM_CLASS(SOUND::SD_KIND::END)];
+
+private:
+ CSound_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual ~CSound_Manager() = default;
+
+public:
+ HRESULT Update();
+ void Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume);
+ void Sound_Play_3DPos(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _float3& refSpeaker, _float fMin = 3.f, _float fMax = 20.f, _bool bRepeat = false);
+
+ void Sound_Pause_Channel(SD_CHANNEL_GROUP eSoundChannel, bool bPause); // 채널 일시정지
+
+ void Sound_Set3DListenerPos(class CTransform* pTransform);
+
+ void Sound_StopChannel(SD_CHANNEL_GROUP eSoundChannel); // 특정채널 정지
+ void Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel); // 특정 사운드 정지
+ void Sound_StopAll(); // 전체 정지
+ void Sound_SetVolume(SD_CHANNEL_GROUP eSoundChannel, float fVolume);
+ void Sound_Test();
+
+ HRESULT Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode);
+
+private:
+ ID3D11Device* m_pDevice = { nullptr };
+ ID3D11DeviceContext* m_pContext = { nullptr };
+ class CGameInstance* m_pGameInstance = { nullptr };
+ bool m_bNoSound = { false };
+
+private:
+ HRESULT Initialize();
+
+public:
+ static CSound_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h
index da2c532f4..96512d939 100644
--- a/Jusin154_Team3D/Engine/Public/State.h
+++ b/Jusin154_Team3D/Engine/Public/State.h
@@ -51,6 +51,7 @@ enum ESTATE
SPELL_LEARNING_FAIL, SPELL_LEARNING_LOOP, SPELL_LEARNING_START, SPELL_LEARNING_SUCCESS, SPELL_LEARNING_WANDWAVE,
OPEN_DOOR,OPEN_DOOR_L,OPEN_DOOR_R,
FEAR_L,FEAR_R,
+ SPAWN,
#pragma region BROOM
BROOM_MOUNT_B, BROOM_HOVER_IDLE_B, BROOM_HOVER_STOP_B, BROOM_HOVER_DOWN_B, BROOM_HOVER_UP_B, BROOM_HOVER_LEFT_B, BROOM_HOVER_RIGHT_B, BROOM_FLY_DOWN_B, BROOM_FLY_LEFT_B, BROOM_FLY_RIGHT_B, BROOM_FLY_UP_B, BROOM_FLY_B, BROOM_ADD,
#pragma endregion
diff --git a/Jusin154_Team3D/Engine/Public/TimeSocket.h b/Jusin154_Team3D/Engine/Public/TimeSocket.h
index 2b3da839d..762a52fc2 100644
--- a/Jusin154_Team3D/Engine/Public/TimeSocket.h
+++ b/Jusin154_Team3D/Engine/Public/TimeSocket.h
@@ -27,6 +27,7 @@ typedef enum class typeTimeSocket_Func {
TRANSLATION_LERP,
ROTATION,
ROTATION_LERP,
+ AFFINE_LERP,
TOGGLE_FLAGS,
// CAMERA
@@ -74,6 +75,7 @@ static constexpr pair g_SocketFuncTypeTable[ENUM_C
{"TRANSLATION_LERP", TIMESOCKET_FUNC::TRANSLATION_LERP},
{"ROTATION", TIMESOCKET_FUNC::ROTATION},
{"ROTATION_LERP", TIMESOCKET_FUNC::ROTATION_LERP},
+ {"AFFINE_LERP", TIMESOCKET_FUNC::AFFINE_LERP},
{"TOGGLE_FLAGS", TIMESOCKET_FUNC::TOGGLE_FLAGS},
// CAMERA
@@ -122,10 +124,8 @@ typedef struct tagSocketContents {
_wstring wstrKeyName = {};
TIMESOCKET_PARAM eTypeParam = {};
TIMESOCKET_FUNC eTypeFunc = {};
- union {
- CGameObject* pOtherTarget = { nullptr };
- PSX::PxTransform pxTransform;
- };
+ CGameObject* pOtherTarget = { nullptr };
+ PSX::PxTransform pxTransform;
_boolean vFlags = {};
_uint4 vParam_10 = {};
_float4 vParam_11 = {};
diff --git a/Jusin154_Team3D/Jusin154_Team3D.sln b/Jusin154_Team3D/Jusin154_Team3D.sln
index 78e5e4dca..08c3e18a8 100644
--- a/Jusin154_Team3D/Jusin154_Team3D.sln
+++ b/Jusin154_Team3D/Jusin154_Team3D.sln
@@ -61,7 +61,6 @@ Global
{F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Debug|x86.ActiveCfg = Debug|Win32
{F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Debug|x86.Build.0 = Debug|Win32
{F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Release|x64.ActiveCfg = Release|x64
- {F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Release|x64.Build.0 = Release|x64
{F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Release|x86.ActiveCfg = Release|Win32
{F91AD988-A0C8-4169-AA7D-A7596A403CFF}.Release|x86.Build.0 = Release|Win32
{2133313A-E5E1-41CD-B976-21753FBCD083}.Debug|x64.ActiveCfg = Debug|x64