diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index e3e7ff72a..1095ac1ce 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -161,6 +161,7 @@ call Update_Resources.bat
+
@@ -357,6 +358,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index b70bc3383..3ef893796 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -562,7 +562,7 @@
02.GameObjects\Effect\Effects\Accio
-
+
02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Border
@@ -602,6 +602,7 @@
02.GameObjects\Item\RaceRing
+
@@ -1223,7 +1224,7 @@
{170066b9-f360-4d15-be18-8a82f2cecf10}
-
+
{3bb81c23-be27-44c8-9fe8-3d9004391173}
@@ -1263,6 +1264,9 @@
{f00654f0-c372-4289-ab1d-167941076573}
+
+ {9e8bccb6-c491-4f3a-bdb8-5f03f13ad84d}
+
@@ -1769,7 +1773,7 @@
02.GameObjects\Effect\Effects\Accio
-
+
02.GameObjects\UI\Quest_Canvas\Quest_Panel\Quest_Border
@@ -1809,6 +1813,7 @@
02.GameObjects\Item\RaceRing
+
diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp
index 3aa24724d..46baa2e75 100644
--- a/Jusin154_Team3D/Client/Private/Broom.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom.cpp
@@ -63,6 +63,10 @@ void CBroom::Update(_float fTimeDelta)
if(!m_pParentUnit->IsAI())
PlayerInput();
+ else {
+ m_bHoverToggle = m_Input.bHoverToggle;
+ m_bTurbo = m_Input.bTurbo;
+ }
if (!m_bRide)
{
@@ -189,8 +193,15 @@ void CBroom::PlayerInput()
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);
- m_Input.bHoverToggle = m_pGameInstance->Key_Down(DIK_LSHIFT);
+ if (m_pGameInstance->Key_Up(DIK_LSHIFT))
+ {
+ m_Input.bHoverToggle = !m_Input.bHoverToggle;
+ m_bHoverToggle = m_Input.bHoverToggle;
+ }
+
+
m_Input.bTurbo = m_pGameInstance->Mouse_Pressing(DIM_LBUTTON);
+ m_bTurbo = m_Input.bTurbo;
}
diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
new file mode 100644
index 000000000..eabc93d8b
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp
@@ -0,0 +1,193 @@
+#include "pch.h"
+#include "BroomRaceManager.h"
+
+#include "GameInstance.h"
+#include "RaceRing.h"
+#include "Layer.h"
+
+CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CGameObject(pDevice, pContext)
+{
+}
+
+CBroomRaceManager::CBroomRaceManager(const CBroomRaceManager& Prototype)
+ : CGameObject(Prototype)
+{
+}
+
+HRESULT CBroomRaceManager::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CBroomRaceManager::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Ready_Components())) {
+ return E_FAIL;
+ }
+
+#ifdef _DEBUG
+ m_pGripShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 10, false, false));
+ m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.2f, 10, false, false));
+#endif // _DEBUG
+
+ return S_OK;
+}
+
+void CBroomRaceManager::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+ Check_RingPassed();
+}
+
+void CBroomRaceManager::Update(_float fTimeDelta)
+{
+ __super::Update(fTimeDelta);
+#ifdef _DEBUG
+ Describe_Entity();
+#endif // _DEBUG
+}
+
+void CBroomRaceManager::Late_Update(_float fTimeDelta)
+{
+ __super::Late_Update(fTimeDelta);
+}
+
+
+HRESULT CBroomRaceManager::Ready_Components()
+{
+ CTransform::TRANSFORM_DESC Desc = {};
+
+ Desc.fSpeedPerSec = 10.f;
+ Desc.fRotationPerSec = XMConvertToRadians(180.0f);
+ Desc.fRadius = 10.f;
+
+ if (FAILED(__super::Ready_Components(&Desc))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CBroomRaceManager::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+CBroomRaceManager* CBroomRaceManager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CBroomRaceManager* pInstance = new CBroomRaceManager(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CBroomRaceManager");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+CGameObject* CBroomRaceManager::Clone(void* pArg, CGameObject* pOwner)
+{
+ CBroomRaceManager* pInstance = new CBroomRaceManager(*this);
+
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CBroomRaceManager");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CBroomRaceManager::Free()
+{
+ __super::Free();
+
+ for (auto& Racer : m_Racers)
+ {
+ SAFE_RELEASE(Racer.pRacer);
+ }
+ m_Racers.clear();
+
+ for (auto& Ring : m_pRaceRings)
+ {
+ SAFE_RELEASE(Ring);
+ }
+ m_pRaceRings.clear();
+}
+#ifdef _DEBUG
+
+void CBroomRaceManager::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+void CBroomRaceManager::Check_RingPassed()
+{
+ for (auto& racer : m_Racers)
+ {
+ CRaceRing* pRing = m_pRaceRings[racer.curRing];
+ _vector ringPos = pRing->Get_WorldPostion();
+ _vector broomPos = racer.pRacer->Get_WorldPostion();
+
+ _vector ringFwd =pRing->Get_Component()->Get_State(STATE::LOOK);
+ ringFwd = XMVector3Normalize(ringFwd);
+
+ _float prevSide = XMVectorGetX(XMVector3Dot(ringFwd, racer.prevPos - ringPos));
+ _float currSide = XMVectorGetX(XMVector3Dot(ringFwd, broomPos - ringPos));
+
+ _float dist = XMVectorGetX(XMVector3Length(broomPos - ringPos));
+
+ const _float PASS_RADIUS = 50.f;
+
+ GUI::Text("CurRing %d", racer.curRing);
+
+#ifdef _DEBUG
+ m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
+ m_pSubShape->Draw(pRing->Get_Component()->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);
+#endif // _DEBUG
+
+ if (prevSide < 0.f && currSide >= 0.f && dist < PASS_RADIUS)
+ {
+ racer.curRing++;
+ if (racer.curRing >= m_pRaceRings.size())
+ racer.curRing = 0;
+ }
+
+ racer.prevPos = broomPos;
+ }
+}
+
+CRaceRing* CBroomRaceManager::GetTargetRing(CGameObject* pRacer)
+{
+ for (auto& racer : m_Racers)
+ {
+ if (racer.pRacer == pRacer)
+ return m_pRaceRings[racer.curRing];
+ }
+ return nullptr;
+}
+
+void CBroomRaceManager::Push_BroomRacer(RacerInfo Info)
+{
+ RacerInfo info;
+ info.pRacer = Info.pRacer;
+ info.curRing = Info.curRing;
+ info.prevPos = Info.prevPos;
+
+ m_Racers.push_back(info);
+ SAFE_ADDREF(Info.pRacer);
+}
+
+void CBroomRaceManager::Push_RaceRing(CRaceRing* Ring)
+{
+ m_pRaceRings.push_back(Ring);
+ SAFE_ADDREF(Ring);
+}
+
diff --git a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp
index 5bd377c76..0922a5c2c 100644
--- a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp
@@ -4,6 +4,8 @@
#include "GameInstance.h"
#include "Broom.h"
#include "RaceRing.h"
+#include "CamPosition_Shoulder.h"
+#include "BroomRaceManager.h"
#pragma region STATE
#include "State_Broom_Ride.h"
@@ -53,8 +55,6 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
SAFE_ADDREF(m_pBroomModel);
SAFE_ADDREF(m_pBroomTransform);
-
-
Add_FSM();
Set_Anim();
@@ -68,7 +68,11 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
}
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-82.f, -30.f, -56.f, 1.f));
+ _float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
+ _float Y = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
+ _float Z = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
+
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(X, Y, Z, 1.f));
#ifdef _DEBUG
m_BasicEffect = make_unique(m_pDevice);
@@ -83,21 +87,15 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
m_pBroom->Set_Ride(true);
- m_pRaceRingList = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_RaceRing"))->Get_Objects();
+ m_pBroomRaceManager = static_cast(pArg);
- if (m_pRaceRingList && !m_pRaceRingList->empty())
- {
- m_itCurRing = m_pRaceRingList->begin();
- m_pRaceRing = static_cast(*m_itCurRing);
- }
- else
- {
- m_pRaceRing = nullptr;
- }
+ CBroomRaceManager::RacerInfo Info;
+ Info.pRacer = this;
+ Info.curRing = 0;
+ Info.prevPos = Get_WorldPostion();
- m_vPrevPos = m_pBroom->Get_WorldPostion();
-
+ m_pBroomRaceManager->Push_BroomRacer(Info);
return S_OK;
}
@@ -106,7 +104,7 @@ void CBroomRacerAI::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
- Check_RingPassed();
+ m_pRaceRing = m_pBroomRaceManager->GetTargetRing(this);
}
void CBroomRacerAI::Update(_float fTimeDelta)
@@ -133,7 +131,7 @@ void CBroomRacerAI::Update(_float fTimeDelta)
void CBroomRacerAI::Late_Update(_float fTimeDelta)
{
- Set_Input();
+ Set_Input(fTimeDelta);
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
@@ -289,23 +287,40 @@ HRESULT CBroomRacerAI::Bind_ShaderResources()
_float CBroomRacerAI::ComputeTurnToRing()
{
- _vector toRing = XMVector3Normalize(m_pRaceRing->Get_WorldPostion() - m_pBroom->Get_WorldPostion());
+ _vector toRing = m_pRaceRing->Get_WorldPostion() - m_pBroom->Get_WorldPostion();
+ toRing = XMVector3Normalize(XMVectorSetY(toRing, 0.f));
- _vector myRight = m_pBroom->Get_Component()->Get_State(STATE::RIGHT);
+ _vector myLook = m_pBroom->Get_Component()->Get_State(STATE::LOOK);
+ myLook = XMVector3Normalize(XMVectorSetY(myLook, 0.f));
- _float turn = XMVectorGetX(XMVector3Dot(toRing, myRight));
+ _vector cross = XMVector3Cross(myLook, toRing);
+ _float turn = XMVectorGetY(cross);
+
+ _float DEAD = 0.05f;
+ if (fabsf(turn) < DEAD)
+ return 0.f;
return clamp(turn, -1.f, 1.f);
}
+
+
_float CBroomRacerAI::ComputeHeightAdjust()
{
- _float dy = (XMVectorGetY(m_pRaceRing->Get_WorldPostion()) - (XMVectorGetY(m_pBroom->Get_WorldPostion())));
- dy += 13.f;
- return clamp(dy, -1.f, 1.f);
+ _float dy = (XMVectorGetY(m_pRaceRing->Get_WorldPostion()) + 15.f)
+ - XMVectorGetY(m_pBroom->Get_WorldPostion());
+
+ _float DEAD = 5.f;
+ _float RANGE = 40.f;
+
+ if (fabsf(dy) < DEAD)
+ return 0.f;
+
+ return clamp(dy / RANGE, -1.f, 1.f);
}
+
CBroomRacerAI* CBroomRacerAI::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CBroomRacerAI* pInstance = new CBroomRacerAI(pDevice, pContext);
@@ -338,12 +353,12 @@ void CBroomRacerAI::Free()
SAFE_RELEASE(m_pBroomModel);
SAFE_RELEASE(m_pBroomTransform);
SAFE_RELEASE(m_pBroom);
+ SAFE_RELEASE(m_pCamPosition_ShoulderPart);
}
#ifdef _DEBUG
void CBroomRacerAI::Describe_Entity()
{
- GUI::Text("Index %d", m_iIndex);
}
#endif // _DEBUG
@@ -638,57 +653,23 @@ void CBroomRacerAI::Set_Anim()
m_Animation[STATEANIM::BROOM_TURBO_UP] = { 720,true };
}
-void CBroomRacerAI::Check_RingPassed()
+void CBroomRacerAI::Set_Input(_float fTimeDelta)
{
- if (m_pRaceRing == nullptr)
- return;
+ _float targetX = ComputeTurnToRing();
+ _float targetY = ComputeHeightAdjust();
- _vector ringPos = m_pRaceRing->Get_WorldPostion();
- _vector broomPos = m_pBroom->Get_WorldPostion();
+ _float SMOOTH = 6.f;
- _vector ringFwd = m_pRaceRing->Get_Component()->Get_State(STATE::LOOK);
- ringFwd = XMVector3Normalize(ringFwd);
+ m_fSmoothX += (targetX - m_fSmoothX) * SMOOTH * fTimeDelta;
+ m_fSmoothY += (targetY - m_fSmoothY) * SMOOTH * fTimeDelta;
- _float prevSide = XMVectorGetX(XMVector3Dot(ringFwd, m_vPrevPos - ringPos));
- _float currSide = XMVectorGetX(XMVector3Dot(ringFwd, broomPos - ringPos));
-
- _float dist = XMVectorGetX(XMVector3Length(broomPos - ringPos));
-
- const _float PASS_RADIUS = 30.f;
-
- if (prevSide < 0.f && currSide >= 0.f && dist < PASS_RADIUS)
- {
- OnRingPassed();
- }
- else if (prevSide > 0.f && currSide <= 0.f && dist < PASS_RADIUS)
- {
- OnRingPassed();
- }
-
-
- m_vPrevPos = broomPos;
-}
-
-void CBroomRacerAI::OnRingPassed()
-{
- ++m_itCurRing;
- ++m_iIndex;
- if (m_itCurRing == m_pRaceRingList->end())
- {
- m_itCurRing = m_pRaceRingList->begin();
- }
-
- m_pRaceRing = static_cast(*m_itCurRing);
-}
-
-void CBroomRacerAI::Set_Input()
-{
CBroom::BroomInput InputDesc;
InputDesc.Z = 1.f;
- InputDesc.Y = ComputeHeightAdjust();
- InputDesc.X = ComputeTurnToRing();
+ InputDesc.X = m_fSmoothX;
+ InputDesc.Y = m_fSmoothY;
InputDesc.bHoverToggle = false;
InputDesc.bTurbo = false;
m_pBroom->Set_Input(InputDesc);
}
+
diff --git a/Jusin154_Team3D/Client/Private/Broom_States.cpp b/Jusin154_Team3D/Client/Private/Broom_States.cpp
index 129a80c1e..ea62232a9 100644
--- a/Jusin154_Team3D/Client/Private/Broom_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Broom_States.cpp
@@ -191,7 +191,6 @@ HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
_bool bUp = m_Input.Y > 0.f;
_bool bDown = m_Input.Y < 0.f;
_bool bShift = m_Input.bHoverToggle;
- m_bHoverToggle = m_Input.bHoverToggle;
_bool bTurbo = m_Input.bTurbo;
if (m_bHoverToggle)
@@ -234,7 +233,6 @@ HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
if (bFwd)
{
- //Camera_InterpTurn(fTimeDelta*0.5f);
m_fTargetSpeed = m_fHoverMaxSpeed;
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
@@ -244,7 +242,6 @@ HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
{
if (!bFwd)
{
- //Camera_InterpTurn(fTimeDelta * 0.5f);
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;
@@ -259,7 +256,6 @@ HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
{
if (!bFwd)
{
- //Camera_InterpTurn(fTimeDelta * 0.5f);
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;
@@ -434,11 +430,9 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
{
if (vInput.z <= 0.f)
{
- //Camera_InterpTurn(fTimeDelta * 0.4f);
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.4f);
}
else {
- //Camera_InterpTurn(fTimeDelta * 0.2f);
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.2f);
}
}
@@ -446,11 +440,9 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
{
if (vInput.z <= 0.f)
{
- //Camera_InterpTurn(fTimeDelta * 0.4f);
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.4f);
}
else {
- //Camera_InterpTurn(fTimeDelta * 0.2f);
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.2f);
}
}
@@ -593,9 +585,9 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
m_bTurbo = false;
}
- if (!m_bHoverToggle && m_bTurbo) {
-
- if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
+ if (!m_bHoverToggle)
+ {
+ if (SUCCEEDED(InputMove()))
{
if (bFwd) {
m_fTargetSpeed = m_fTurboMaxSpeed;
@@ -610,6 +602,10 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
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;
@@ -631,7 +627,7 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
m_pTransformCom->Go_LerpDown(-m_fVerticalSpeed, fTimeDelta);
}
- if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
+ if (SUCCEEDED(InputMove()))
{
_float3 vInput = { 0.f, 0.f, 0.f };
@@ -655,7 +651,7 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
Camera_InterpTurn(fTimeDelta * 0.3f);
}
else {
- Camera_InterpTurn(fTimeDelta * 0.1f);
+ Camera_InterpTurn(fTimeDelta * 0.15f);
}
}
else if (vInput.x > 0.f)
@@ -665,7 +661,7 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
Camera_InterpTurn(fTimeDelta * 0.3f);
}
else {
- Camera_InterpTurn(fTimeDelta * 0.1f);
+ Camera_InterpTurn(fTimeDelta * 0.15f);
}
}
diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
index e19971e54..a5b50cbbd 100644
--- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp
+++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp
@@ -815,6 +815,11 @@ ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_vector StartPos, _vecto
m_bHit = true;
}
break;
+ case PXOBJECT::SKILL_PROTEGO:
+ {
+ pUserData->pOwner->OnCollision(this, &tagCollInfo);
+ m_bHit = true;
+ }
}
}
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
index efb513af5..99a67667b 100644
--- a/Jusin154_Team3D/Client/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -64,7 +64,9 @@ HRESULT CGoblin::Initialize(void* pArg)
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody);
- m_pCharacter_Controller->Set_Position(XMVectorSet(-60.f, 5.f, -50.f, 1.f));
+
+ m_pCharacter_Controller->Set_Position(XMVectorSet(-30.f, 0.f, -14.f, 1.f));
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-30.f, 0.f, -14.f, 1.f));
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
diff --git a/Jusin154_Team3D/Client/Private/Goblin_BattleAxe.cpp b/Jusin154_Team3D/Client/Private/Goblin_BattleAxe.cpp
index 6ca593f4e..72349055c 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_BattleAxe.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_BattleAxe.cpp
@@ -216,7 +216,7 @@ void CGoblin_BattleAxe::CheckAxeHits(_uint& iHitCount, vector&
_bool bCollision = false;
m_SweepBufferAxe = {};
- bCollision = m_pGameInstance->SphereCast(1.f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferAxe);
+ bCollision = m_pGameInstance->SphereCast(0.5f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferAxe);
if (true == bCollision) {
iHitCount += m_SweepBufferAxe.getNbTouches() + m_SweepBufferAxe.hasBlock;
auto touches = m_SweepBufferAxe.getTouches();
@@ -237,7 +237,7 @@ void CGoblin_BattleAxe::CheckAxeHits(_uint& iHitCount, vector&
_bool bCollision = false;
m_SweepBufferGrip = {};
- bCollision = m_pGameInstance->SphereCast(1.f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip);
+ bCollision = m_pGameInstance->SphereCast(0.5f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip);
if (true == bCollision) {
iHitCount += m_SweepBufferGrip.getNbTouches() + m_SweepBufferGrip.hasBlock;
auto touches = m_SweepBufferGrip.getTouches();
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
index 8649b7280..f051f8efe 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
@@ -64,10 +64,8 @@ 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(-65.f, 5.f, -50.f, 1.f));
-
-
+ m_pCharacter_Controller->Set_Position(XMVectorSet(-52.f, 0.f, -4.f, 1.f));
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-52.f, 0.f, -4.f, 1.f));
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp b/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp
index 0100c46c4..0cc39e596 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp
@@ -2,6 +2,7 @@
#include "Goblin_Spector.h"
#include "GameInstance.h"
+#include "InfoInstance.h"
#include "Goblin.h"
#include "Effect_Container.h"
#include "Goblin_BattleAxe.h"
@@ -38,6 +39,8 @@ HRESULT CGoblin_Spector::Initialize(void* pArg)
if (FAILED(Ready_Parts()))
return E_FAIL;
+ m_pInfoInstance->Deregist_ActiveMonster(this);
+
m_pGoblin = dynamic_cast(m_pOwner);
SAFE_ADDREF(m_pGoblin);
@@ -212,10 +215,6 @@ HRESULT CGoblin_Spector::Ready_Components()
return E_FAIL;
}
- if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN"), (CComponent**)&m_pStat))) {
- return E_FAIL;
- }
-
CPartObject::PARTOBJECT_DESC PartsDesc{};
PartsDesc.pParentTransform = m_pTransformCom;
diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
index 594bcd588..e9d362a88 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
@@ -363,7 +363,7 @@ HRESULT CGoblin::Behavior_BlinkExitCheck(_float fTimeDelta)
m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::TP)] = m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::TP)];
_vector vPlayerPos = XMLoadFloat4(&m_vTargetPos);
_vector vPlayerLook = m_pTarget->Get_Component()->Get_State(STATE::LOOK);
- vPlayerLook = XMVectorSetY(vPlayerLook, 1.f);
+ vPlayerLook = XMVectorSetY(vPlayerLook, 0.f);
vPlayerLook = XMVector3Normalize(vPlayerLook);
_float randAngleDeg = m_pGameInstance->Real_Random_Float(-60.f, 60.f);
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 93bf46c19..292758ec3 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -18,6 +18,7 @@
#include "Unified.h"
#include "MapElement_Lake.h"
#include "RaceRing.h"
+#include "BroomRaceManager.h"
#pragma region ACTOR
#include "Player.h"
@@ -62,6 +63,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
if (FAILED(Ready_Layer_Item(LAYER_ITEM))) {
return E_FAIL;
}
+ if (FAILED(Ready_Layer_Manager(TEXT("Layer_Manager")))) {
+ return E_FAIL;
+ }
if (FAILED(Ready_Layer_RaceRing(TEXT("Layer_RaceRing")))) {
return E_FAIL;
@@ -79,7 +83,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
if (FAILED(Ready_Layer_Monster())) {
return E_FAIL;
}
-
+
return S_OK;
}
@@ -247,7 +251,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
isReady_Background = true;
#endif // gimch
#ifdef Bin
- isReady_Background = true;
+ isReady_Background = false;
#endif //
#ifdef 진우
isReady_Background = true;
@@ -515,10 +519,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
HRESULT CLevel_GamePlay::Ready_Layer_BroomRacerAI(const _wstring& strLayerTag)
{
- 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, m_pBroomRaceManager))) {
+ return E_FAIL;
+ }
}
-
return S_OK;
}
@@ -530,7 +535,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Item(const _wstring& strLayerTag)
HRESULT CLevel_GamePlay::Ready_Layer_RaceRing(const _wstring& strLayerTag)
{
for (_uint i = 0; i < 50; ++i) {
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_pBroomRaceManager))) {
return E_FAIL;
}
}
@@ -579,6 +584,15 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
return S_OK;
}
+HRESULT CLevel_GamePlay::Ready_Layer_Manager(const _wstring& strLayerTag)
+{
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag,nullptr,nullptr,&m_pBroomRaceManager))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
HRESULT CLevel_GamePlay::Reday_Layer_EffectPool()
{
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 0b36f9b53..8187da523 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -21,6 +21,7 @@
#include "Item_Potion.h"
#include "RaceRing.h"
#include "Goblin_BattleAxe.h"
+#include "BroomRaceManager.h"
#pragma region ACTOR
@@ -328,7 +329,7 @@ HRESULT CLoader::Loading_For_GamePlay()
isLoad_Background = true;
#endif // gimch
#ifdef Bin
- isLoad_Background = true;
+ isLoad_Background = false;
#endif //
#ifdef 진우
isLoad_Background = true;
@@ -1454,6 +1455,24 @@ HRESULT CLoader::Loading_For_GamePlay()
Desc.vLocalTranslation = { 0.f, 0.f, 0.f };
}
+ CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc1{};
+ {
+ Desc.eType = ACTOR::BOX;
+ Desc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ };
+ Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
+ Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
+ Desc.vMatInfo = { 0.5f, 0.5f, 0.6f };
+ Desc.fContactOffset = { 0.05f };
+ Desc.vhalfGeometryInfo = { 1.f, 1.f, 1.f };
+ Desc.fDensity = 1.f;
+ Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
+ Desc.eLockFlag = {};
+ Desc.vAutoDamping = { 1.f, 1.f };
+ Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
+ Desc.vLocalTranslation = { 0.f, 0.f, 0.f };
+ }
+
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
return E_FAIL;
}
@@ -1461,6 +1480,9 @@ 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)))) {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -2370,6 +2392,10 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom::Create(m_pDevice, m_pContext))))
return E_FAIL;
+ /* For.Prototype_GameObject_BroomRaceManager */
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroomRaceManager::Create(m_pDevice, m_pContext))))
+ return E_FAIL;
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXWall::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Monster.cpp b/Jusin154_Team3D/Client/Private/Monster.cpp
index 73b5be826..e7bd04418 100644
--- a/Jusin154_Team3D/Client/Private/Monster.cpp
+++ b/Jusin154_Team3D/Client/Private/Monster.cpp
@@ -194,6 +194,7 @@ HRESULT CMonster::Render_Disolve()
{
if (FLT_EPSILON3 * 10 < m_fDisolveTime)
{
+ m_bDrawOutLine = false;
_bool bDisolve = true;
_float fDisolveAmount = 0.1f;
_float fDisolveEdgeWidth = 0.1f;
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 2f66d1495..f3971c9db 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -91,8 +91,9 @@ HRESULT CPlayer::Initialize(void* pArg)
m_pInfoInstance->Regist_PlayerAlly(this);
m_pInfoInstance->Set_Damage(m_pStat->Get_Stat().fDamage);
- m_pCharacter_Controller->Set_Position(XMVectorSet(-82.f, -30.f, -56.f, 1.f));
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-82.f, -30.f, -56.f, 1.f));
+ m_pCharacter_Controller->Set_Position(XMVectorSet(-21.f, 0.f, -14.f, 1.f));
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-21.f, 0.f, -14.f, 1.f));
+
#ifdef _DEBUG
m_BasicEffect = make_unique(m_pDevice);
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index c8b3b8a9e..02d424b42 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -1461,29 +1461,79 @@ void CPlayer::Behavior_ShieldEnter()
m_pFSM->Enable_State(FSMSTATE::SHIELD);
pairAnimInfo = m_Animation[STATEANIM::SKILL2];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true,0.5f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true,1.f);
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
- 0.4f);
+ 0.1f);
}
HRESULT CPlayer::Behavior_ShieldExitCheck()
{
pair<_uint, _bool> pairAnimInfo;
-
- if (m_pModelCom->IsFinishedAnim()) {
+ _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+
+ if (m_bShield)
+ {
if (m_pGameInstance->Key_Pressing(DIK_Q))
{
- if (m_bShield)
+ m_pFSM->Enable_State(FSMSTATE::PARRY);
+ if (m_LockOnInfo.pUnit)
{
- pairAnimInfo = m_Animation[STATEANIM::PARRY];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- m_bShield = false;
- return S_OK;
- }
- }
+ _vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
+ _vector vTargetLook = m_LockOnInfo.pUnit->Get_Component()->Get_State(STATE::LOOK);
+ vLook = XMVector3Normalize(vLook);
+ vTargetLook = XMVector3Normalize(vTargetLook);
+
+ _float fDot = XMVectorGetX(XMVector3Dot(vLook, vTargetLook));
+ fDot = clamp(fDot, -1.0f, 1.0f);
+
+ _float fAngleRad = acosf(fDot);
+ _float Degree = XMConvertToDegrees(fAngleRad);
+ _vector vCross = XMVector3Cross(vLook, vTargetLook);
+ _float Cross = XMVectorGetY(vCross);
+
+ if (Degree <= 45.f)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
+ }
+ else if (Degree <= 120.f)
+ {
+ if (Cross > 0.f)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::PARRY2];
+
+ }
+ else
+ {
+ pairAnimInfo = m_Animation[STATEANIM::PARRY3];
+ }
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::PARRY4];
+ }
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_bLookAt = true;
+ },
+ 0.01f);
+ }
+
+ Start_CameraShake(0.3f, 2.f);
+ m_pGameInstance->SlowMotion(0.8f, 0.3f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+
+ /* Add_Event(pairAnimInfo.first,
+ [this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject(), &iIndex); },
+ 0.2f);
+*/ m_bShield = false;
+ return S_OK;
+
+ }
+ }
+
+ if (m_pModelCom->IsFinishedAnim()) {
if (SUCCEEDED(InputMove()))
{
m_pFSM->Change_State(FSMSTATE::MOVE);
@@ -1494,13 +1544,31 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
return E_FAIL;
}
}
+
+ if (m_pFSM->IsEnable(FSMSTATE::PARRY))
+ {
+ if (fRatio >= 0.35f)
+ {
+ 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_ShieldExit()
{
m_pFSM->Disable_State(FSMSTATE::SHIELD);
+ m_pFSM->Disable_State(FSMSTATE::PARRY);
m_bShield = false;
+ m_bLookAt = false;
}
void CPlayer::Behavior_HitEnter()
@@ -1826,7 +1894,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
{
if (vInput.y > 0)
pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
- else
+ else if (vInput.y < 0)
pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
}
else if (ax >= az)
@@ -1835,7 +1903,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
{
if (vInput.y > 0)
pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
- else
+ else if (vInput.y < 0)
pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
}
else {
@@ -1860,7 +1928,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
}
}
else {
- pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_FWD);
+ pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_IDLE);
}
if (m_pGameInstance->Key_Down(DIK_R))
@@ -1963,24 +2031,24 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
if (ay > ax && ay > az)
{
- if (vInput.y > 0)
+ if (vInput.y > 0.f)
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_UP];
- else
+ else if(vInput.y<0.f)
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_DOWN];
}
else if (ax >= az)
{
if (ay >= ax)
{
- if (vInput.y > 0)
+ if (vInput.y > 0.f)
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_UP];
- else
+ else if(vInput.y<0.f)
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_DOWN];
}
else {
- if (vInput.x < 0)
+ if (vInput.x < 0.f)
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_LEFT];
- else if (vInput.x > 0)
+ else if (vInput.x > 0.f)
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_RIGHT];
else {
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_FWD];
@@ -1989,9 +2057,9 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
}
else
{
- if (vInput.y > 0)
+ if (vInput.y > 0.f)
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_UP];
- else if (vInput.y < 0)
+ else if (vInput.y < 0.f)
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_DOWN];
else {
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_FWD];
@@ -2002,7 +2070,7 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_TURBO_FWD);
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true,1.f,false);
}
@@ -2559,7 +2627,10 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::SPELL_FAIL] = { 906,false };
- m_Animation[STATEANIM::PARRY] = { 915,false };
+ m_Animation[STATEANIM::PARRY_180] = { 947,false };
+ m_Animation[STATEANIM::PARRY2] = { 913,false };
+ m_Animation[STATEANIM::PARRY3] = { 915,false };
+ m_Animation[STATEANIM::PARRY4] = { 921,false };
m_Animation[STATEANIM::HIT_L] = { 1200,false };
@@ -2570,18 +2641,19 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::FLINCH_RIGHT] = { 1063,false };
m_Animation[STATEANIM::KNOCKBACK] = { 1078,false };
- m_Animation[STATEANIM::BROOM_FWD] = { 710,true };
+ m_Animation[STATEANIM::BROOM_IDLE] = { 710,true };
+ m_Animation[STATEANIM::BROOM_FWD] = { 711,true };
m_Animation[STATEANIM::BROOM_LEFT] = { 713,true };
m_Animation[STATEANIM::BROOM_RIGHT] = { 714,true };
m_Animation[STATEANIM::BROOM_DOWN] = { 712,true };
m_Animation[STATEANIM::BROOM_UP] = { 715,true };
m_Animation[STATEANIM::BROOM_REVELIO] = { 678,false };
- m_Animation[STATEANIM::BROOM_TURBO_DOWN] = { 695,true };
- m_Animation[STATEANIM::BROOM_TURBO_FWD] = { 711,true };
- m_Animation[STATEANIM::BROOM_TURBO_LEFT] = { 713,true };
- m_Animation[STATEANIM::BROOM_TURBO_RIGHT] = { 714,true };
- m_Animation[STATEANIM::BROOM_TURBO_UP] = { 698,true };
+ m_Animation[STATEANIM::BROOM_TURBO_DOWN] = { 716,true };
+ m_Animation[STATEANIM::BROOM_TURBO_FWD] = { 717,true };
+ m_Animation[STATEANIM::BROOM_TURBO_LEFT] = { 718,true };
+ m_Animation[STATEANIM::BROOM_TURBO_RIGHT] = { 719,true };
+ m_Animation[STATEANIM::BROOM_TURBO_UP] = { 720,true };
m_Animation[STATEANIM::BROOM_MOUNT] = { 734,false };
m_Animation[STATEANIM::BROOM_MOUNT_END] = { 737,false };
@@ -2626,7 +2698,7 @@ void CPlayer::Set_Anim()
// 915
// 716 아래 앞 왼 오 업
- //
+ // 947
}
diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp
index ec0d946df..45e3852a4 100644
--- a/Jusin154_Team3D/Client/Private/Protego.cpp
+++ b/Jusin154_Team3D/Client/Private/Protego.cpp
@@ -3,6 +3,7 @@
#include "GameInstance.h"
#include "EffectParts.h"
+#include "Player.h"
CProtego::CProtego(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -18,9 +19,6 @@ CProtego::CProtego(const CProtego& rhs)
HRESULT CProtego::Initialize_Prototype()
{
- if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
- return E_FAIL;
-
return S_OK;
}
@@ -33,29 +31,24 @@ HRESULT CProtego::Initialize(void* pArg)
if (FAILED(Ready_Components(pArg)))
return E_FAIL;
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
+ return E_FAIL;
+
if (FAILED(Create_Effect()))
return E_FAIL;
m_pSphere = Get_PartObject("ProtegoSphere");
- m_pBottom = Get_PartObject("ProtegoBottom");
- m_pCircle = Get_PartObject("ProtegoCircle");
SAFE_ADDREF(m_pSphere);
- SAFE_ADDREF(m_pBottom);
- SAFE_ADDREF(m_pCircle);
+
m_wstrEffectName = L"Protego";
-
-
-
m_fAmountSize = 0.1f;
m_fSpeed = 5.f;
- m_fDuration = 2.5f;
-
- m_isLoop = true;
+ m_fDuration = 3.f;
return S_OK;
}
@@ -72,15 +65,11 @@ void CProtego::Update(_float fTimeDelta)
return;
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pBottom->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pCircle->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
-
-
/* 시작 사이즈 러프 */
if (m_fSizeAccTime > XM_PIDIV2)
return;
@@ -91,7 +80,6 @@ void CProtego::Update(_float fTimeDelta)
_float3 vSize = _float3(fSize, fSize, fSize);
m_pSphere->Get_Component()->Set_Scale(vSize);
- m_pCircle->Get_Component()->Set_Scale(vSize);
}
void CProtego::Late_Update(_float fTimeDelta)
@@ -106,22 +94,17 @@ void CProtego::Late_Update(_float fTimeDelta)
HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
{
- if (FAILED(__super::Pre_Setting(pObject)))
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
-
m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pBottom->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
- m_pCircle->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pSphere->Set_Visible(true);
- m_pCircle->Set_Visible(true);
- m_pBottom->Set_Visible(true);
+
_float3 vSize = _float3(1.f, 1.f, 1.f);
m_pSphere->Get_Component()->Set_Scale(vSize);
- m_pCircle->Get_Component()->Set_Scale(vSize);
m_fSizeAccTime = 0.f;
@@ -134,6 +117,16 @@ HRESULT CProtego::Ready_Components(void* pArg)
return E_FAIL;
}
+
+ { // DO
+ CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::SKILL_PROTEGO);
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
+ return E_FAIL;
+ }
+ m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor());
+ }
+
return S_OK;
}
@@ -171,25 +164,29 @@ CGameObject* CProtego::Clone(void* pArg, CGameObject* pOwner)
void CProtego::OnCollision(CGameObject* pOther, void* pDesc)
{
- //CTransform* pOtherTransform = p
+ if (!m_bVisible)
+ return;
ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+ dynamic_cast(m_pOwner)->Set_Shield(true);
}
void CProtego::Free()
{
__super::Free();
+ //if(m_pPhysHitBox != nullptr)
+ // if (m_pPhysHitBox->Get_Depth() == false)
+ // SAFE_RELEASE(m_pPhysHitBox);
+ SAFE_RELEASE(m_pRigidBody);
SAFE_RELEASE(m_pSphere);
- SAFE_RELEASE(m_pBottom);
- SAFE_RELEASE(m_pCircle);
}
#ifdef _DEBUG
void CProtego::Describe_Entity()
{
- GUI::Begin("PROTEGO", 0, IMGUI_GLOBAL_BEGIN_FLAG);
+ GUI::Begin("PROTEGO");
GUI::DragFloat("fAmountSize", &m_fAmountSize);
GUI::DragFloat("fSpeed", &m_fSpeed);
diff --git a/Jusin154_Team3D/Client/Private/RaceRing.cpp b/Jusin154_Team3D/Client/Private/RaceRing.cpp
index 5b19befd1..daf1f633d 100644
--- a/Jusin154_Team3D/Client/Private/RaceRing.cpp
+++ b/Jusin154_Team3D/Client/Private/RaceRing.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "RaceRing.h"
+#include "BroomRaceManager.h"
#include "GameInstance.h"
CRaceRing::CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -30,9 +31,16 @@ HRESULT CRaceRing::Initialize(void* pArg)
}
_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
- _float Y = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
+ _float Y = m_pGameInstance->Real_Random_Float(-5.f, 5.f);
_float Z = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
- m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(X, Y,Z, 1.f));
+
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(X, Y, Z, 1.f));
+
+ m_pBroomRaceManager = static_cast(pArg);
+
+ m_pBroomRaceManager->Push_RaceRing(this);
+
+
return S_OK;
}
@@ -87,6 +95,7 @@ HRESULT CRaceRing::Render()
}
}
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp
index fc834321a..0db4d82eb 100644
--- a/Jusin154_Team3D/Client/Private/Troll_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp
@@ -333,6 +333,7 @@ HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta)
void CTroll::Behavior_RushExit()
{
m_pFSM->Disable_State(FSMSTATE::RUSH);
+ m_fRushTime = 0.f;
}
void CTroll::Behavior_ThrowEnter()
@@ -528,12 +529,26 @@ HRESULT CTroll::Behavior_SlamExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
- if (m_pModelCom->IsFinishedAnim())
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+
+ if (m_fDegree >= 90.f)
{
+ m_bLookAt = true;
+ if (m_pModelCom->IsFinishedAnim())
+ {
+ m_bLookAt = true;
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
+
+ return S_OK;
+ }
+ else if (fRatio >= 0.4f) {
m_bLookAt = true;
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
}
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Public/BroomRaceManager.h b/Jusin154_Team3D/Client/Public/BroomRaceManager.h
new file mode 100644
index 000000000..13e94259d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/BroomRaceManager.h
@@ -0,0 +1,57 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameObject.h"
+
+NS_BEGIN(Client)
+
+class CBroomRaceManager final : public CGameObject
+{
+public:
+ struct RacerInfo
+ {
+ CGameObject* pRacer = nullptr;
+ _uint curRing = 0;
+ _vector prevPos = XMVectorZero();
+ };
+
+private:
+ CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CBroomRaceManager(const CBroomRaceManager& Prototype);
+ virtual ~CBroomRaceManager() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ class CRaceRing* GetTargetRing(CGameObject* pRacer);
+ void Push_BroomRacer(RacerInfo Info);
+ void Push_RaceRing(CRaceRing* Ring);
+private:
+ vector m_pRaceRings = {};
+ vector m_Racers = {};
+
+
+#ifdef _DEBUG
+ unique_ptr m_pGripShape = { nullptr };
+ unique_ptr m_pSubShape = { nullptr };
+#endif // _DEBUG
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ HRESULT Ready_Components();
+ HRESULT Bind_ShaderResources() override;
+ void Check_RingPassed();
+
+public:
+ static CBroomRaceManager* 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
+
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/BroomRacerAI.h b/Jusin154_Team3D/Client/Public/BroomRacerAI.h
index 26fa597a8..a3b88d874 100644
--- a/Jusin154_Team3D/Client/Public/BroomRacerAI.h
+++ b/Jusin154_Team3D/Client/Public/BroomRacerAI.h
@@ -27,10 +27,9 @@ class CBroomRacerAI final : public CUnit
class CModel* m_pBroomModel = { nullptr };
class CTransform* m_pBroomTransform = { nullptr };
class CBroom* m_pBroom = { nullptr };
- const list* m_pRaceRingList = { nullptr };
class CRaceRing* m_pRaceRing = { nullptr };
- list::const_iterator m_itCurRing;
- _int m_iIndex = {};
+ class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
+ class CCamPosition_Shoulder* m_pCamPosition_ShoulderPart = { nullptr };
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -60,9 +59,7 @@ class CBroomRacerAI final : public CUnit
private:
virtual void Add_FSM();
virtual void Set_Anim();
- void Check_RingPassed();
- void OnRingPassed();
- void Set_Input();
+ void Set_Input(_float fTimeDelta);
function m_InputAction = nullptr;
_int m_eUIState = { };
@@ -78,7 +75,8 @@ class CBroomRacerAI final : public CUnit
_float m_fScaleSmoothSpeed = 2.5f;
_float m_fAnimTime = {};
_bool m_bTurbo = {};
- _vector m_vPrevPos = {};
+ _float m_fSmoothX = {};
+ _float m_fSmoothY = {};
void Behavior_Broom_Ride_MoveEnter();
HRESULT Behavior_Broom_Ride_MoveExitCheck(_float fTimeDelta);
diff --git a/Jusin154_Team3D/Client/Public/Level_GamePlay.h b/Jusin154_Team3D/Client/Public/Level_GamePlay.h
index ffacd4082..2c9c4f8a0 100644
--- a/Jusin154_Team3D/Client/Public/Level_GamePlay.h
+++ b/Jusin154_Team3D/Client/Public/Level_GamePlay.h
@@ -18,7 +18,7 @@ class CLevel_GamePlay final : public CLevel
private:
class CInfoInstance* m_pInfoInstance = { nullptr };
- class CBroom* m_pBroom = { nullptr };
+ class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
private:
virtual HRESULT Initialize() override;
HRESULT Initialize(void* pArg);
@@ -35,6 +35,7 @@ class CLevel_GamePlay final : public CLevel
HRESULT Ready_Layer_RaceRing(const _wstring& strLayerTag);
HRESULT Ready_Layer_SkyBox(const _wstring& strLayerTag);
HRESULT Ready_Layer_Monster();
+ HRESULT Ready_Layer_Manager(const _wstring& strLayerTag);
HRESULT Reday_Layer_EffectPool();
public:
diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h
index 632a12347..f452245a4 100644
--- a/Jusin154_Team3D/Client/Public/Player.h
+++ b/Jusin154_Team3D/Client/Public/Player.h
@@ -22,6 +22,7 @@ class CPlayer final : public CUnit
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
_bool Get_Aim() { return m_bAim; }
void Set_SpellHit(_bool bHit) { m_bSpellHit = bHit; }
+ void Set_Shield(_bool bShield) { m_bShield = bShield; }
void Start_CameraShake(_float fTime, _float fIntense);
#ifdef _DEBUG
void Render_CameraCoordinateSystem();
diff --git a/Jusin154_Team3D/Client/Public/Protego.h b/Jusin154_Team3D/Client/Public/Protego.h
index 8f07d8c01..00f331c97 100644
--- a/Jusin154_Team3D/Client/Public/Protego.h
+++ b/Jusin154_Team3D/Client/Public/Protego.h
@@ -3,9 +3,6 @@
#include "Client_Define.h"
#include "Effect_Container.h"
-NS_BEGIN(Engine)
-NS_END
-
NS_BEGIN(Client)
class CProtego final : public CEffect_Container
@@ -31,15 +28,14 @@ class CProtego 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_pSphere = { nullptr };
- class CEffectParts* m_pBottom = { nullptr };
- class CEffectParts* m_pCircle = { nullptr };
-
+ CRigidBody_Dynamic* m_pRigidBody = { nullptr };
_float m_fSizeAccTime = {};
_float m_fAmountSize = {};
_float m_fSpeed = {};
+
public:
static CProtego* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual void Free() override;
diff --git a/Jusin154_Team3D/Client/Public/RaceRing.h b/Jusin154_Team3D/Client/Public/RaceRing.h
index d296e4c2b..643c2b98e 100644
--- a/Jusin154_Team3D/Client/Public/RaceRing.h
+++ b/Jusin154_Team3D/Client/Public/RaceRing.h
@@ -23,6 +23,9 @@ class CRaceRing final : public CGameObject
private:
CShader* m_pShaderCom = { nullptr };
CModel* m_pModelCom = { nullptr };
+ class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
+
+
private:
HRESULT Ready_Components();
diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp
index bf99324ce..e0c7149ba 100644
--- a/Jusin154_Team3D/Engine/Private/Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Model.cpp
@@ -348,7 +348,7 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform)
return m_bIsFinishedAnim;
}
-void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop, _float fAmount, _bool bRatio, _float fAnimSpeed)
+void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop, _float fAmount, _bool bRatio, _float fAnimSpeed,_bool bRootBone)
{
if (m_iCurrentAnimIndex == iIndex)
return;
@@ -370,7 +370,7 @@ void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop, _float fAmount, _boo
m_fBlendTime = 0.f;
m_fRatio = 0.f;
-
+ m_bRootBone = bRootBone;
m_iCurrentAnimIndex = iIndex;
m_bIsLoop = isLoop;
m_fAmount = fAmount;
@@ -447,7 +447,9 @@ void CModel::Update_RootBone(_float Amount)
vDeltaWorld *= Amount;
vDeltaWorld = XMVectorSetW(vDeltaWorld, 1.f);
- m_pTransform->AccumulateMomentum(vDeltaWorld);
+
+ if(m_bRootBone)
+ m_pTransform->AccumulateMomentum(vDeltaWorld);
m_vPrevRootPos = vCurRootPos;
diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
index 368ff8a22..4acebbd99 100644
--- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h
+++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h
@@ -130,6 +130,7 @@ enum class PXOBJECT : _uint {
#pragma region ALLY_HITBOX
ALLY_HITBOX = 200,
SKILL_REVAILIO,
+ SKILL_PROTEGO,
SKILL_ACCIO,
SKILL_DEPULSO,
SKILL_DEPULSO_OBSTACLE,
diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h
index d15f9e296..0dff408b9 100644
--- a/Jusin154_Team3D/Engine/Public/FSM.h
+++ b/Jusin154_Team3D/Engine/Public/FSM.h
@@ -42,6 +42,7 @@ enum ESTATE : _u64Flag
HOVER = 1ULL << 35,
FLY = 1ULL << 36,
TURBOFLY = 1ULL << 37,
+ PARRY = 1ULL << 38,
END
};
NS_END
diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h
index 98a1b9347..8894c519b 100644
--- a/Jusin154_Team3D/Engine/Public/Model.h
+++ b/Jusin154_Team3D/Engine/Public/Model.h
@@ -35,7 +35,7 @@ class ENGINE_DLL CModel final : public CComponent
_bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌
_bool Play_Anim(_float fTimeDelta, CTransform* pTransform);
_bool Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform);
- void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false,_float fAnimSpeed = 1.f);
+ void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false,_float fAnimSpeed = 1.f,_bool bRootBone = true);
void Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLoop = false);
_bool IsFinishedAnim() const { return m_bIsFinishedAnim; }
_bool IsFinishedSecondAnim() const { return m_bIsSecondFinishedAnim; }
@@ -172,6 +172,7 @@ class ENGINE_DLL CModel final : public CComponent
_bool m_bIsSecondFinishedAnim = { false };
_bool m_bIsSecondLoop = { false };
_bool m_bRatio = { false };
+ _bool m_bRootBone = {};
private:
#ifdef EDITOR_PROJECT
diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h
index 5e46793b1..284be18df 100644
--- a/Jusin154_Team3D/Engine/Public/State.h
+++ b/Jusin154_Team3D/Engine/Public/State.h
@@ -20,7 +20,7 @@ enum ESTATE
MAPHELP,POTION,
ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,LUMOS_STOP,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW,
SPELL_FAIL, SPELL_CHARGE,
- PARRY,
+ PARRY_180,PARRY2, PARRY3, PARRY4,
BROOM_IDLE,BROOM_FWD,BROOM_LEFT,BROOM_RIGHT,BROOM_DOWN,BROOM_UP, BROOM_REVELIO, BROOM_HOVER_IDLE, BROOM_HOVER_FWD, BROOM_HOVER_LEFT, BROOM_HOVER_RIGHT, BROOM_HOVER_START, BROOM_HOVER_REVELIO,BROOM_MOUNT, BROOM_MOUNT_END,BROOM_DISMOUNT,BROOM_TURBO_FWD, BROOM_TURBO_DOWN, BROOM_TURBO_UP, BROOM_TURBO_LEFT, BROOM_TURBO_RIGHT,
RUSH_START,RUSH_LOOP,RUSH_END,
THROW_ROCK_START,THROW_ROCK,