[merge commit]
This commit is contained in:
@@ -179,7 +179,7 @@ ATOM MyRegisterClass(HINSTANCE hInstance)
|
||||
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||
{
|
||||
g_hInstance = hInstance;
|
||||
|
||||
#ifdef _DEBUG
|
||||
RECT rcWindow = { 0, 0, g_iWinSizeX, g_iWinSizeY };
|
||||
|
||||
AdjustWindowRect(&rcWindow, WS_OVERLAPPEDWINDOW, FALSE);
|
||||
@@ -196,7 +196,35 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||
UpdateWindow(hWnd);
|
||||
|
||||
g_hWnd = hWnd;
|
||||
#endif // _DEBUG
|
||||
|
||||
#ifdef Bin
|
||||
#ifndef _DEBUG
|
||||
int screenX = GetSystemMetrics(SM_CXSCREEN);
|
||||
int screenY = GetSystemMetrics(SM_CYSCREEN);
|
||||
|
||||
HWND hWnd = CreateWindowW(
|
||||
szWindowClass,
|
||||
szTitle,
|
||||
WS_POPUP,
|
||||
0, 0,
|
||||
screenX, screenY,
|
||||
nullptr,
|
||||
nullptr,
|
||||
hInstance,
|
||||
nullptr
|
||||
);
|
||||
|
||||
if (!hWnd)
|
||||
return FALSE;
|
||||
|
||||
g_hWnd = hWnd;
|
||||
|
||||
ShowWindow(hWnd, SW_SHOW);
|
||||
UpdateWindow(hWnd);
|
||||
|
||||
#endif // !_DEBUG
|
||||
#endif // Bin
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,25 +2,25 @@
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Client.h">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="framework.h">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Resource.h">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="targetver.h">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Client_Define.h">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define</Filter>
|
||||
<Filter>99.Define</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Client_Enum.h">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define</Filter>
|
||||
<Filter>99.Define</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Client_Macro.h">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define</Filter>
|
||||
<Filter>99.Define</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\MainApp.h">
|
||||
<Filter>00.MainApp</Filter>
|
||||
@@ -146,7 +146,7 @@
|
||||
<Filter>02.GameObjects\Environment\01.MapPartObject</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Client_Struct.h">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define</Filter>
|
||||
<Filter>99.Define</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MapObject_Collision.h">
|
||||
<Filter>02.GameObjects\Environment\01.MapPartObject\Collision</Filter>
|
||||
@@ -803,10 +803,10 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</Image>
|
||||
<Image Include="small.ico">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</Image>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -1656,22 +1656,22 @@
|
||||
<Filter Include="02.GameObjects\ReparoObject">
|
||||
<UniqueIdentifier>{4fbbe0ec-6b65-49f1-a72d-fe73ddbf2b4d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\ReparoObject\99.Define">
|
||||
<UniqueIdentifier>{2899f7fc-0ed2-41c0-8e24-0d89f08ffc39}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\ReparoObject\99.Define\00.DEFAULT">
|
||||
<UniqueIdentifier>{05a0db73-4fbf-456c-9137-bb605c632d68}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\02.InstancedProp\Light">
|
||||
<UniqueIdentifier>{2e3b9cee-41ee-4984-a1d0-3aaebbcf41a4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="99.Define">
|
||||
<UniqueIdentifier>{2899f7fc-0ed2-41c0-8e24-0d89f08ffc39}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="99.Define\00.DEFAULT">
|
||||
<UniqueIdentifier>{05a0db73-4fbf-456c-9137-bb605c632d68}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\pch.cpp">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\MainApp.cpp">
|
||||
<Filter>00.MainApp</Filter>
|
||||
@@ -2459,7 +2459,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
<Filter>02.GameObjects\ReparoObject\99.Define\00.DEFAULT</Filter>
|
||||
<Filter>99.Define\00.DEFAULT</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -78,8 +78,6 @@ void CBroomRaceManager::Update(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
@@ -160,11 +158,27 @@ void CBroomRaceManager::Free()
|
||||
|
||||
void CBroomRaceManager::Describe_Entity()
|
||||
{
|
||||
if (GUI::Button("Add Race Ring"))
|
||||
{
|
||||
|
||||
}
|
||||
if (GUI::Button("Race Start"))
|
||||
{
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
|
||||
const _float SPAWN_DISTANCE = 80.f;
|
||||
|
||||
if (FAILED(Load_RaceRing()))
|
||||
{
|
||||
MSG_BOX("Failed Load RaceRing");
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < 3; i++)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroomRacerAI>(g_iStaticLevel, NEXT_LEVEL, LAYER_RACERAI, this)))
|
||||
return;
|
||||
}
|
||||
m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object<CPlayer>()->Set_RaceInfo();
|
||||
|
||||
for (auto& racer : m_Racers)
|
||||
{
|
||||
CTransform* pRingTransform =
|
||||
@@ -178,20 +192,20 @@ void CBroomRaceManager::Describe_Entity()
|
||||
|
||||
if (racer.pAI)
|
||||
{
|
||||
CTransform* pBroomTransform =
|
||||
racer.pAI->Get_Broom()->Get_Component<CTransform>();
|
||||
CTransform* pTransform =
|
||||
racer.pAI->Get_Component<CTransform>();
|
||||
_float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
|
||||
spawnPos.m128_f32[2] += fRand;
|
||||
spawnPos.m128_f32[0] += fRand;
|
||||
|
||||
pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
|
||||
pBroomTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
pBroomTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
racer.pAI->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
else if (racer.pRacer)
|
||||
{
|
||||
CTransform* pTransform =
|
||||
racer.pRacer->Get_Component<CTransform>();
|
||||
spawnPos.m128_f32[1] -= 2.f;
|
||||
pTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
@@ -330,12 +344,12 @@ void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
|
||||
{
|
||||
if (racer.pAI)
|
||||
{
|
||||
if (racer.curRing == m_pRaceRings.size() - 1)
|
||||
racer.pAI->Set_RaceRing(m_pRaceRings[racer.curRing]);
|
||||
if (racer.curRing == m_pRaceRings.size())
|
||||
{
|
||||
racer.pAI->Get_Broom()->Set_Hover(true);
|
||||
racer.pAI->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
racer.pAI->Set_RaceRing(m_pRaceRings[racer.curRing]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -343,16 +357,18 @@ void CBroomRaceManager::SetTargetRing(CGameObject* pRacer)
|
||||
{
|
||||
if (racer.pRacer == pRacer)
|
||||
{
|
||||
if (racer.curRing == m_pRaceRings.size() - 1)
|
||||
racer.pRacer->Set_RaceRing(m_pRaceRings[racer.curRing]);
|
||||
if (racer.curRing == m_pRaceRings.size())
|
||||
{
|
||||
racer.pRacer->Get_Broom()->Set_Hover(true);
|
||||
racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
|
||||
}
|
||||
racer.pRacer->Set_RaceRing(m_pRaceRings[racer.curRing]);
|
||||
m_pInfoInstance->Event_CallBack(TEXT("CurrentRing"));
|
||||
m_iLastRing++;
|
||||
}
|
||||
}
|
||||
m_iLastRing++;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -379,3 +395,49 @@ void CBroomRaceManager::Push_RaceRing(CRaceRing* Ring)
|
||||
SAFE_ADDREF(Ring);
|
||||
}
|
||||
|
||||
HRESULT CBroomRaceManager::Load_RaceRing()
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/RaceRing/RaceRing_Data.xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Ring");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CRaceRing::RACERING_DESC Desc = {};
|
||||
|
||||
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<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, LAYER_RING, &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
|
||||
|
||||
Add_FSM();
|
||||
|
||||
Load_AnimXML("../Bin/Resources/Data/AnimList/RacerAI.xml");
|
||||
Load_AnimXML("../Bin/Resources/Data/AnimList/BroomRacerAI.xml");
|
||||
|
||||
{
|
||||
CFSM::FSM_DESC FSMDesc{};
|
||||
@@ -748,12 +748,12 @@ void CBroomRacerAI::Set_Input(_float fTimeDelta)
|
||||
InputDesc.Y = 0.f;
|
||||
InputDesc.Z = 0.f;
|
||||
|
||||
/*if (m_bMove)
|
||||
{*/
|
||||
if (m_pBroom->Get_Move())
|
||||
{
|
||||
InputDesc.Z = 1.f;
|
||||
InputDesc.X = targetX*m_TurnGain;
|
||||
InputDesc.Y = targetY*m_HeightGain;
|
||||
//}
|
||||
}
|
||||
|
||||
InputDesc.bHoverToggle = (m_pBroomRaceManager->Get_RaceState() != ENUM_CLASS(CBroomRaceManager::RACE_STATE::RACING));
|
||||
|
||||
|
||||
@@ -205,12 +205,10 @@ HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
|
||||
|
||||
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;
|
||||
|
||||
@@ -94,13 +94,13 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_RaceRing(TEXT("Layer_RaceRing")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(Ready_Layer_RaceRing(TEXT("Layer_RaceRing")))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(Ready_Layer_SkyBox(TEXT("Layer_SkyBox")))) {
|
||||
return E_FAIL;
|
||||
@@ -108,12 +108,12 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Layer_Player(LAYER_PLAYER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Layer_BroomRacerAI(TEXT("Layer_BroomRacerAI")))) {
|
||||
/*if (FAILED(Ready_Layer_BroomRacerAI(TEXT("Layer_BroomRacerAI")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Layer_Monster())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}*/
|
||||
//if (FAILED(Ready_Layer_Monster())) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if(FAILED(m_pInfoInstance->Late_Initialize()))
|
||||
return E_FAIL;
|
||||
@@ -325,8 +325,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
|
||||
#ifdef gimch
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogwart = false;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogwart = true;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
isReady_Background = false;
|
||||
@@ -695,7 +695,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
|
||||
#endif //
|
||||
#ifdef Bin
|
||||
|
||||
isLoad_NPC = false;
|
||||
#endif // Bin
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -724,7 +724,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_BroomRacerAI(const _wstring& strLayerTag)
|
||||
{
|
||||
#ifdef Bin
|
||||
for (_uint i = 0; i < 0; ++i) {
|
||||
for (_uint i = 0; i < 5; ++i) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroomRacerAI>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_pBroomRaceManager))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -740,11 +740,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Item(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_RaceRing(const _wstring& strLayerTag)
|
||||
{
|
||||
for (_uint i = 0; i < 1; ++i) {
|
||||
for (_uint i = 0; i < 10; ++i) {
|
||||
|
||||
CRaceRing::RACERING_DESC RaceRingDesc{};
|
||||
RaceRingDesc.pBroomRaceManager = m_pBroomRaceManager;
|
||||
RaceRingDesc.iIndex = i;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &RaceRingDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -375,8 +375,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
#ifdef _DEBUG
|
||||
#ifdef gimch
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_Background = false;
|
||||
isLoad_Hogwart = true;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
|
||||
@@ -180,7 +180,6 @@ _float2 CMonster::Get_Hp()
|
||||
{
|
||||
return { m_pStat->Get_Stat().fCurrentHp, m_pStat->Get_Stat().fMaxHp };
|
||||
}
|
||||
|
||||
CStat* CMonster::Get_Stat()
|
||||
{
|
||||
return m_pStat;
|
||||
@@ -191,6 +190,11 @@ const _float4x4* CMonster::Get_HeadMatrix()
|
||||
return m_pModelCom->Get_BoneMatrixPtr("Head");
|
||||
}
|
||||
|
||||
float CMonster::Get_HpRatio()
|
||||
{
|
||||
return Get_Hp().x / Get_Hp().y;
|
||||
}
|
||||
|
||||
void CMonster::CameraShake(_float ClampValue, _float Min, _float Max, _float Time)
|
||||
{
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pInfoInstance->Get_NearestPlayerAlly(Get_WorldPostion()).first);
|
||||
|
||||
@@ -93,17 +93,6 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
m_pTransformCom->Rotation(vRotQ);
|
||||
|
||||
m_pBroomRaceManager = pDesc->pBroomRaceManager;
|
||||
|
||||
if (m_pBroomRaceManager)
|
||||
{
|
||||
CBroomRaceManager::RacerInfo Info;
|
||||
|
||||
Info.pRacer = this;
|
||||
Info.curRing = 0;
|
||||
Info.prevPos = Get_WorldPostion();
|
||||
|
||||
m_pBroomRaceManager->Push_BroomRacer(Info);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
@@ -220,20 +209,6 @@ void CPlayer::Late_Update(_float fTimeDelta)
|
||||
m_pTransformCom->Set_State(STATE::UP, up);
|
||||
m_pTransformCom->Set_State(STATE::LOOK, look);
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
if (nullptr == m_pRobePart) {
|
||||
{
|
||||
CPlayerRobe::PlayerRobe_DESC Desc{};
|
||||
Desc.pModel = m_pModelCom;
|
||||
Desc.pParentTransform = m_pTransformCom;
|
||||
Desc.pSocketMatrix = m_pModelCom->Get_BoneMatrixPtr("Hips_Cloth");
|
||||
if (FAILED(Add_PartObject<CPlayerRobe>("RobePart", g_iStaticLevel, &m_pRobePart, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -452,6 +427,20 @@ void CPlayer::Set_RaceRing(CRaceRing* pRaceRing)
|
||||
SAFE_ADDREF(m_pRaceRing);
|
||||
}
|
||||
|
||||
void CPlayer::Set_RaceInfo()
|
||||
{
|
||||
if (m_pBroomRaceManager)
|
||||
{
|
||||
CBroomRaceManager::RacerInfo Info;
|
||||
|
||||
Info.pRacer = this;
|
||||
Info.curRing = 0;
|
||||
Info.prevPos = Get_WorldPostion();
|
||||
|
||||
m_pBroomRaceManager->Push_BroomRacer(Info);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Ready_Components()
|
||||
{
|
||||
CTransform::TRANSFORM_DESC Desc = {};
|
||||
@@ -563,6 +552,19 @@ HRESULT CPlayer::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//m_pModelCom->Play_Animation()
|
||||
//XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("broomSocket"));
|
||||
{
|
||||
CPlayerRobe::PlayerRobe_DESC Desc{};
|
||||
Desc.pModel = m_pModelCom;
|
||||
Desc.pParentTransform = m_pTransformCom;
|
||||
Desc.pSocketMatrix = m_pModelCom->Get_BoneMatrixPtr("Hips_Cloth");
|
||||
if (FAILED(Add_PartObject<CPlayerRobe>("RobePart", g_iStaticLevel, &m_pRobePart, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,9 @@ void CPlayerRobe::Late_Update(_float fTimeDelta)
|
||||
HRESULT CPlayerRobe::Render()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Render_BonePhysX();
|
||||
#ifdef 기무리
|
||||
//Render_BonePhysX();
|
||||
#endif // 기무리
|
||||
#endif // _DEBUG
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -344,6 +344,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
void CPlayer::Behavior_IdleExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::IDLE | FSMSTATE::IDLE_TURN);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_MoveEnter()
|
||||
@@ -781,6 +782,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
void CPlayer::Behavior_MoveExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::STOP);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_JumpEnter()
|
||||
@@ -831,6 +833,7 @@ HRESULT CPlayer::Behavior_JumpExitCheck()
|
||||
void CPlayer::Behavior_JumpExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::JUMP);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_LandEnter()
|
||||
@@ -884,6 +887,7 @@ void CPlayer::Behavior_LandExit()
|
||||
m_pFSM->Disable_State(FSMSTATE::LAND);
|
||||
m_pCharacter_Controller->Set_GravityAmount(m_fOriginGravityAmount);
|
||||
m_fGravityAmount = 0.f;
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_FallEnter()
|
||||
@@ -906,6 +910,7 @@ HRESULT CPlayer::Behavior_FallExitCheck(_float fTimeDelta)
|
||||
void CPlayer::Behavior_FallExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::FALL);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_DodgeEnter()
|
||||
@@ -943,6 +948,7 @@ HRESULT CPlayer::Behavior_DodgeExitCheck(_float fTimeDelta)
|
||||
void CPlayer::Behavior_DodgeExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::DODGE);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_BlinkEnter()
|
||||
@@ -1001,6 +1007,7 @@ void CPlayer::Behavior_BlinkExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::BLINK);
|
||||
m_fBlinkTime = 0.f;
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_SlideEnter()
|
||||
@@ -1053,6 +1060,7 @@ void CPlayer::Behavior_SlideExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::SLIDE);
|
||||
m_fSlideSpeed = 0.f;
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_CombatEnter()
|
||||
@@ -1062,64 +1070,71 @@ void CPlayer::Behavior_CombatEnter()
|
||||
|
||||
if (m_pModelCom->Get_SecondAnimIndex() == m_Animation[STATEANIM::LUMOS].first)
|
||||
{
|
||||
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R) ,-1) ;
|
||||
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), -1);
|
||||
m_eSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_R)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::SKILL);
|
||||
pairAnimInfo = m_Animation[STATEANIM::SKILL];
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::REVELIO, this);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Q)) {
|
||||
|
||||
m_pFSM->Change_State(FSMSTATE::SHIELD);
|
||||
return;
|
||||
}
|
||||
else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
|
||||
m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK);
|
||||
return;
|
||||
}
|
||||
else if (SUCCEEDED(InputSpell())) {
|
||||
m_pFSM->Change_State(FSMSTATE::SPELL);
|
||||
return;
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::MAPHELP);
|
||||
pairAnimInfo = m_Animation[STATEANIM::MAPHELP];
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_X)) {
|
||||
m_pFSM->Change_State(FSMSTATE::ANCIENT_SPELL);
|
||||
return;
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
|
||||
if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pGrapInteractive = m_LockOnInfo.pInteractive;
|
||||
SAFE_ADDREF(m_pGrapInteractive);
|
||||
m_pGrapInteractive->Set_KinematicFlag(true);
|
||||
m_vGrapInteratableLerp.x = 0.f;
|
||||
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_R)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::SKILL);
|
||||
pairAnimInfo = m_Animation[STATEANIM::SKILL];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::REVELIO, this);
|
||||
}
|
||||
else {
|
||||
else if (m_pGameInstance->Key_Down(DIK_Q)) {
|
||||
|
||||
m_pFSM->Change_State(FSMSTATE::SHIELD);
|
||||
return;
|
||||
}
|
||||
else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
|
||||
m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK);
|
||||
return;
|
||||
}
|
||||
else if (SUCCEEDED(InputSpell())) {
|
||||
m_pFSM->Change_State(FSMSTATE::SPELL);
|
||||
return;
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::MAPHELP);
|
||||
pairAnimInfo = m_Animation[STATEANIM::MAPHELP];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_X)) {
|
||||
m_pFSM->Change_State(FSMSTATE::ANCIENT_SPELL);
|
||||
return;
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Z)) {
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_bLookAt = true; },
|
||||
0.12f);
|
||||
if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_pGrapInteractive = m_LockOnInfo.pInteractive;
|
||||
SAFE_ADDREF(m_pGrapInteractive);
|
||||
m_pGrapInteractive->Set_KinematicFlag(true);
|
||||
m_vGrapInteratableLerp.x = 0.f;
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { Throwing_Interactive(); },
|
||||
0.2f);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_bLookAt = true; },
|
||||
0.12f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pGameInstance->SlowMotion(0.1f, 0.35f);
|
||||
},
|
||||
0.1f);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { Throwing_Interactive(); },
|
||||
0.2f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pGameInstance->SlowMotion(0.1f, 0.35f);
|
||||
},
|
||||
0.1f);
|
||||
}
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
@@ -1209,6 +1224,7 @@ void CPlayer::Behavior_CombatExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::SKILL |
|
||||
FSMSTATE::MAPHELP | FSMSTATE::ANCIENT_THROW);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_LightAttackEnter()
|
||||
@@ -1391,6 +1407,7 @@ void CPlayer::Behavior_LightAttackExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::LIGHT_ATTACK);
|
||||
m_pModelCom->Set_BlendDuration(0.3f);
|
||||
Reset_Event();
|
||||
m_bLookAt = false;
|
||||
}
|
||||
|
||||
@@ -1422,12 +1439,21 @@ void CPlayer::Behavior_SpellEnter()
|
||||
_vector vCross = XMVector3Cross(vLook, vCameraLook);
|
||||
_float Cross = XMVectorGetY(vCross);
|
||||
|
||||
if (Degree <= 45.f)
|
||||
if (Degree <= 30.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
fRatio = 0.2f;
|
||||
}
|
||||
else if (Degree <= 85.f)
|
||||
else if (Degree <= 60.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
fRatio = 0.2f;
|
||||
Add_Event(m_Animation[STATEANIM::SPELL].first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
}
|
||||
else if (Degree <= 120.f)
|
||||
{
|
||||
if (Cross < 0.f)
|
||||
{
|
||||
@@ -1441,7 +1467,10 @@ void CPlayer::Behavior_SpellEnter()
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_90_L2];
|
||||
break;
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.95f);
|
||||
fRatio = 0.17f;
|
||||
}
|
||||
else {
|
||||
@@ -1458,8 +1487,14 @@ void CPlayer::Behavior_SpellEnter()
|
||||
break;
|
||||
case 1:
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_90_R];
|
||||
fRatio = 0.17f;
|
||||
fAnimSpeed = 1.3f;
|
||||
fRatio = 0.14f;
|
||||
if (Degree >= 120.f)
|
||||
{
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1467,6 +1502,10 @@ void CPlayer::Behavior_SpellEnter()
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_180_R];
|
||||
fRatio = 0.23f;
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
},
|
||||
0.01f);
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, fAnimSpeed);
|
||||
|
||||
@@ -1546,15 +1585,19 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
}
|
||||
else if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
|
||||
{
|
||||
if (fRatio >= 0.5f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
if (iIndex != m_Animation[STATEANIM::AVADA_KEDAVRA].first) {
|
||||
if (fRatio >= 0.5f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_Q)) {
|
||||
else if (iIndex != m_Animation[STATEANIM::AVADA_KEDAVRA].first)
|
||||
{
|
||||
if (m_pGameInstance->Key_Down(DIK_Q)) {
|
||||
m_pFSM->Change_State(FSMSTATE::SHIELD);
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1575,6 +1618,8 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Play_SpellHitAnim();
|
||||
|
||||
@@ -1604,10 +1649,11 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
void CPlayer::Behavior_SpellExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::SPELL);
|
||||
|
||||
m_pModelCom->Set_BlendDuration(0.3f);
|
||||
Reset_Event();
|
||||
m_bLookAt = false;
|
||||
m_bSpellHit = false;
|
||||
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_AncientSpellEnter()
|
||||
@@ -1663,6 +1709,7 @@ HRESULT CPlayer::Behavior_AncientSpellExitCheck()
|
||||
void CPlayer::Behavior_AncientSpellExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::ANCIENT_SPELL);
|
||||
Reset_Event();
|
||||
m_bLookAt = false;
|
||||
}
|
||||
|
||||
@@ -1798,6 +1845,7 @@ void CPlayer::Behavior_ShieldExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::SHIELD);
|
||||
m_pFSM->Disable_State(FSMSTATE::PARRY);
|
||||
Reset_Event();
|
||||
m_bShield = false;
|
||||
m_bLookAt = false;
|
||||
}
|
||||
@@ -1930,6 +1978,7 @@ HRESULT CPlayer::Behavior_HitExitCheck()
|
||||
void CPlayer::Behavior_HitExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::HIT);
|
||||
Reset_Event();
|
||||
m_bLookAt = false;
|
||||
}
|
||||
|
||||
@@ -1978,6 +2027,7 @@ HRESULT CPlayer::Behavior_Broom_RideExitCheck(_float fTimeDelta)
|
||||
void CPlayer::Behavior_Broom_RideExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::BROOM_RIDE);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_Broom_Ride_MoveEnter()
|
||||
@@ -2007,6 +2057,7 @@ HRESULT CPlayer::Behavior_Broom_Ride_MoveExitCheck(_float fTimeDelta)
|
||||
void CPlayer::Behavior_Broom_Ride_MoveExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::BROOM_RIDE_MOVE);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_Broom_HoverEnter()
|
||||
@@ -2153,6 +2204,7 @@ void CPlayer::Behavior_Broom_HoverExit()
|
||||
void CPlayer::Behavior_Broom_FlyEnter()
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::FLY);
|
||||
Reset_Event();
|
||||
m_fNeutralTime = 0.f;
|
||||
m_fNoInputTime = 0.f;
|
||||
}
|
||||
@@ -2344,6 +2396,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
void CPlayer::Behavior_Broom_FlyExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::FLY);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_Broom_TurboFlyEnter()
|
||||
@@ -2493,6 +2546,7 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
|
||||
void CPlayer::Behavior_Broom_TurboFlyExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::TURBOFLY);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_Broom_DismountEnter()
|
||||
@@ -2552,6 +2606,7 @@ HRESULT CPlayer::Behavior_Broom_DismountExitCheck(_float fTimeDelta)
|
||||
void CPlayer::Behavior_Broom_DismountExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::BROOM_DISMOUNT);
|
||||
Reset_Event();
|
||||
}
|
||||
|
||||
void CPlayer::Player_InterpTurn(_float fTimeDelta)
|
||||
|
||||
@@ -30,14 +30,19 @@ HRESULT CRaceRing::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pBroomRaceManager = static_cast<RACERING_DESC*>(pArg)->pBroomRaceManager;
|
||||
m_iIndex = static_cast<RACERING_DESC*>(pArg)->iIndex;
|
||||
_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
|
||||
_float Y = m_pGameInstance->Real_Random_Float(15.f, 60.f);
|
||||
_float Z = m_pGameInstance->Real_Random_Float(-50.f, 50.f);
|
||||
|
||||
//m_iIndex = static_cast<RACERING_DESC*>(pArg)->iIndex;
|
||||
//_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
|
||||
//_float Y = m_pGameInstance->Real_Random_Float(15.f, 60.f);
|
||||
//_float Z = m_pGameInstance->Real_Random_Float(-50.f, 50.f);
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet((_float)m_iIndex *100.f, Y, Z, 1.f));
|
||||
RACERING_DESC* pDesc = static_cast<RACERING_DESC*>(pArg);
|
||||
|
||||
m_pBroomRaceManager = pDesc->pBroomRaceManager;
|
||||
_float3 vRotation = pDesc->vRotation;
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(vRotation.x), XMConvertToRadians(vRotation.y), XMConvertToRadians(vRotation.z));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(pDesc->vPosition.x, pDesc->vPosition.y, pDesc->vPosition.z, 1.f));
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pBroomRaceManager->Push_RaceRing(this);
|
||||
|
||||
return S_OK;
|
||||
@@ -54,7 +59,6 @@ void CRaceRing::Priority_Update(_float fTimeDelta)
|
||||
void CRaceRing::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
|
||||
}
|
||||
|
||||
void CRaceRing::Late_Update(_float fTimeDelta)
|
||||
|
||||
@@ -67,8 +67,8 @@ HRESULT CRanrok::Initialize(void* pArg)
|
||||
|
||||
if (NEXT_LEVEL == ENUM_CLASS(LEVEL::FIELD))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(58.990f, 71.321f, 241.628f, 1.f));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(58.990f, 71.321f, 241.628f, 1.f));
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(75.550f, 33.734f, 164.013f, 1.f));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(75.550f, 33.734f, 164.013f, 1.f));
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -250,7 +250,7 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
|
||||
m_DamageInfo.vTarget_Pos = m_pCharacter_Controller->Get_HeadPosition();
|
||||
//m_DamageInfo.vTarget_Pos = m_pCharacter_Controller->Get_HeadPosition();
|
||||
|
||||
CEffect_Container* pEffect_Container = dynamic_cast<CEffect_Container*>(pOther);
|
||||
|
||||
@@ -302,17 +302,32 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
}
|
||||
|
||||
|
||||
m_DamageInfo.fDamage = damagePair.first;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
/*m_DamageInfo.fDamage = damagePair.first;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);*/
|
||||
if (0 == damagePair.second) {
|
||||
m_pFSM->Change_State(FSMSTATE::DEAD);
|
||||
return;
|
||||
}
|
||||
if (damagePair.second <= Get_Hp().y / 2.f && m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_AIR))
|
||||
|
||||
|
||||
if (Get_HpRatio() == 0.85f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::LAND);
|
||||
m_pFSM->Change_State(FSMSTATE::TUCKED);
|
||||
return;
|
||||
}
|
||||
else if (Get_HpRatio() == 0.7f) {
|
||||
m_pFSM->Change_State(FSMSTATE::TUCKED);
|
||||
return;
|
||||
}
|
||||
else if (Get_HpRatio() == 0.5f)
|
||||
{
|
||||
m_ePhase = ENUM_CLASS(RANROK_PHASE::PHASE_GROUND);
|
||||
m_pFSM->Change_State(FSMSTATE::TUCKED);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
}
|
||||
|
||||
@@ -634,8 +649,9 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
|
||||
_vector toTarget = Target - CurPos;
|
||||
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
|
||||
GUI::Text("Dist %.2f", fDist);
|
||||
|
||||
if (m_iCurrentPoint + 1 < m_Points[m_iCurrentFlow].size() && fDist < 30.f)
|
||||
if (m_iCurrentPoint + 1 < m_Points[m_iCurrentFlow].size() && fDist < 15.f)
|
||||
{
|
||||
NextTarget = m_Points[m_iCurrentFlow][m_iCurrentPoint + 1];
|
||||
}
|
||||
@@ -645,7 +661,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
if (fDist < 10.f)
|
||||
if (fDist < 5.f)
|
||||
{
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
@@ -657,7 +673,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (fDist < 20.f)
|
||||
else if (fDist < 10.f)
|
||||
{
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
@@ -671,7 +687,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
|
||||
_vector LerpTarget = XMVectorLerp(Target, NextTarget, 0.5f);
|
||||
|
||||
m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta,2.5f);
|
||||
m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta,5.f);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(CurPos + vLook * m_fTuckedSpeed * fTimeDelta);
|
||||
}
|
||||
@@ -785,55 +801,65 @@ void CRanrok::Describe_Entity()
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSetW(XMLoadFloat3(&Pos), 1.f));
|
||||
}
|
||||
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("Copy"))
|
||||
{
|
||||
char buf[128];
|
||||
sprintf_s(buf, "<Pos x=\"%.3f\" y=\"%.3f\" z=\"%.3f\"/>", Pos.x, Pos.y, Pos.z);
|
||||
|
||||
GUI::SetClipboardText(buf);
|
||||
|
||||
m_Points[0].push_back(XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f));
|
||||
}
|
||||
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("Clear"))
|
||||
{
|
||||
m_Points[0].clear();
|
||||
}
|
||||
|
||||
GUI::Separator();
|
||||
GUI::Text("Points[0] Count : %d", (_int)m_Points[0].size());
|
||||
|
||||
for (_uint i = 0; i < m_Points[0].size();)
|
||||
{
|
||||
_vector v = m_Points[0][i];
|
||||
XMFLOAT3 p;
|
||||
XMStoreFloat3(&p, v);
|
||||
|
||||
GUI::PushID(i);
|
||||
|
||||
GUI::Text("[%d] (%.2f, %.2f, %.2f)", i, p.x, p.y, p.z);
|
||||
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("X"))
|
||||
{
|
||||
m_Points[0].erase(m_Points[0].begin() + i);
|
||||
GUI::PopID();
|
||||
continue;
|
||||
}
|
||||
|
||||
GUI::PopID();
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
if (GUI::Button("MovePos"))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z,1.f));
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z, 1.f));
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < m_Points.size(); ++i)
|
||||
{
|
||||
GUI::Separator();
|
||||
|
||||
if (GUI::TreeNode(("Points " + to_string(i)).c_str()))
|
||||
{
|
||||
if (GUI::SmallButton("Copy"))
|
||||
{
|
||||
char buf[128];
|
||||
sprintf_s(buf, "<Pos x=\"%.3f\" y=\"%.3f\" z=\"%.3f\"/>", Pos.x, Pos.y, Pos.z);
|
||||
|
||||
GUI::SetClipboardText(buf);
|
||||
|
||||
m_Points[i].push_back(XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f));
|
||||
}
|
||||
|
||||
GUI::Text("Points[%d] Count : %d", i, (_int)m_Points[i].size());
|
||||
|
||||
for (_uint j = 0; j < m_Points[i].size(); )
|
||||
{
|
||||
_float3 p;
|
||||
XMStoreFloat3(&p, m_Points[i][j]);
|
||||
|
||||
GUI::PushID((int)(i * 10000 + j));
|
||||
|
||||
GUI::Text("[%d] (%.2f, %.2f, %.2f)", j, p.x, p.y, p.z);
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("Move"))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
XMVectorSet(p.x, p.y, p.z, 1.f));
|
||||
}
|
||||
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("X"))
|
||||
{
|
||||
m_Points[i].erase(m_Points[i].begin() + j);
|
||||
GUI::PopID();
|
||||
continue;
|
||||
}
|
||||
|
||||
GUI::PopID();
|
||||
++j;
|
||||
}
|
||||
|
||||
if (GUI::SmallButton(("Clear##" + to_string(i)).c_str()))
|
||||
{
|
||||
m_Points[i].clear();
|
||||
}
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
m_pTransformCom->Describe_Entity();
|
||||
|
||||
@@ -314,6 +314,11 @@ void CRanrok::Behavior_FireBreathEnter()
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_G];
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
|
||||
}, 0.1f);
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
@@ -521,7 +526,7 @@ HRESULT CRanrok::Behavior_FireBallExitCheck(_float fTimeDelta)
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND)) {
|
||||
m_pFSM->Change_State(FSMSTATE::GROUND);
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
@@ -711,8 +716,15 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
|
||||
if (m_bTucked && iCurrAnimIndex != m_Animation[STATEANIM::FLY_TO_HOVER].first)
|
||||
{
|
||||
m_iCurrentFlow++;
|
||||
pairAnimInfo = m_Animation[STATEANIM::FLY_TO_HOVER];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND)) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.5f);
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::FLY_TO_HOVER];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim() && iCurrAnimIndex == m_Animation[STATEANIM::FLY_TO_HOVER].first)
|
||||
@@ -739,7 +751,6 @@ void CRanrok::Behavior_LandEnter()
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::LAND);
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
m_ePhase = ENUM_CLASS(RANROK_PHASE::PHASE_GROUND);
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
@@ -38,6 +38,7 @@ class CBroom final : public CUnit
|
||||
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; }
|
||||
HRESULT Ready_Child();
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
@@ -41,6 +41,8 @@ class CBroomRaceManager final : public CGameObject
|
||||
void Push_BroomRacer(RacerInfo Info);
|
||||
void Push_RaceRing(class CRaceRing* Ring);
|
||||
_int Get_RaceState() const { return m_eRaceState; }
|
||||
|
||||
HRESULT Load_RaceRing();
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
@@ -73,7 +75,6 @@ class CBroomRaceManager final : public CGameObject
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
@@ -41,7 +41,6 @@ class CBroomRacerAI final : public CUnit
|
||||
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
|
||||
void Set_RaceRing(class CRaceRing* pRaceRing) {m_pRaceRing = pRaceRing;}
|
||||
class CBroom* Get_Broom() { return m_pBroom; }
|
||||
void Set_Move(_bool bMove) { m_bMove = bMove; }
|
||||
private:
|
||||
CLight* m_pLightCom = { nullptr };
|
||||
LIGHT_DESC LightDesc = {};
|
||||
@@ -99,7 +98,6 @@ class CBroomRacerAI final : public CUnit
|
||||
_float m_fScaleSmoothSpeed = 2.5f;
|
||||
_float m_fAnimTime = {};
|
||||
_bool m_bTurbo = {};
|
||||
_bool m_bMove = {};
|
||||
_float m_LaneOffsetX = 0.f;
|
||||
_float m_LaneOffsetY = 0.f;
|
||||
_float m_TurnGain = 1.f;
|
||||
|
||||
@@ -67,6 +67,8 @@ namespace Client {
|
||||
#define LAYER_UNIFIED TEXT("Layer_Unified")
|
||||
#define LAYER_DOOR TEXT("Layer_Door")
|
||||
#define LAYER_HIDDEN TEXT("Layer_HIDDEN")
|
||||
#define LAYER_RING TEXT("Layer_Ring")
|
||||
#define LAYER_RACERAI TEXT("Layer_RacerAI")
|
||||
|
||||
|
||||
#define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager")
|
||||
|
||||
@@ -33,6 +33,7 @@ class CMonster abstract : public CUnit
|
||||
virtual _float2 Get_Hp();
|
||||
virtual CStat* Get_Stat();
|
||||
const _float4x4* Get_HeadMatrix();
|
||||
_float Get_HpRatio();
|
||||
void CameraShake(_float ClampValue, _float Min, _float Max, _float Time);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -34,6 +34,10 @@ class CPlayer final : public CUnit
|
||||
_int Get_UIState() { return m_eUIState; }
|
||||
void Set_RaceRing(class CRaceRing* pRaceRing);
|
||||
class CBroom* Get_Broom() { return m_pBroom; }
|
||||
void Set_RaceInfo();
|
||||
#ifdef _DEBUG
|
||||
void Render_CameraCoordinateSystem();
|
||||
#endif // _DEBUG
|
||||
_bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; }
|
||||
_matrix Get_WandPos();
|
||||
void UpdateGrapInteractive(_float fTimeDelta);
|
||||
@@ -61,6 +65,8 @@ class CPlayer final : public CUnit
|
||||
_float m_fOriginGravityAmount = {};
|
||||
_float m_fGravityAmount = {};
|
||||
|
||||
_float m_fTempWeight = {};
|
||||
|
||||
class CCamPosition_Shoulder* m_pCamPosition_ShoulderPart = { nullptr };
|
||||
class CCamPosition_Head* m_pCamPosition_HeadPart = { nullptr };
|
||||
_float m_fRayDistance = { 10.f };
|
||||
@@ -83,13 +89,6 @@ class CPlayer final : public CUnit
|
||||
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
|
||||
class CRaceRing* m_pRaceRing = { nullptr };
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
_float m_fTempWeight = {};
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -11,7 +11,9 @@ class CRaceRing final : public CGameObject
|
||||
typedef struct RaceRingDesc
|
||||
{
|
||||
class CBroomRaceManager* pBroomRaceManager = { nullptr };
|
||||
_int iIndex = { 0 };
|
||||
_float3 vPosition{};
|
||||
_float3 vRotation{};
|
||||
_float3 vScale{};
|
||||
}RACERING_DESC;
|
||||
private:
|
||||
CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -115,7 +115,7 @@ class CRanrok final : public CMonster
|
||||
_float m_fHeadAimWeight = {};
|
||||
|
||||
class CEffect_Container* m_pRanrok_Point = { nullptr };
|
||||
_float m_fTuckedSpeed = { 75.f };
|
||||
_float m_fTuckedSpeed = { 50.f };
|
||||
|
||||
void Behavior_IdleEnter();
|
||||
HRESULT Behavior_IdleExitCheck();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<Rotation x="-0" y="-60" z="-0"/>
|
||||
<MapContainerType type="0"/>
|
||||
<BoundingBox_Min x="-7.0020647" y="-0.45976496" z="-1.5148951"/>
|
||||
<BoundingBox_Max x="6.3698497" y="12.858675" z="14.645905"/>
|
||||
<BoundingBox_Max x="20.3698497" y="12.858675" z="30.645905"/>
|
||||
<PartObject Lod_Level="1" Key_Index="4">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1</PrototypeTag>
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Ring>
|
||||
<Object Type="0">
|
||||
<Position x="-624.6828" y="-5.8805885" z="-346.03726"/>
|
||||
<Scale x="0.99942404" y="1" z="0.99942404"/>
|
||||
<Rotation x="0" y="90" z="0"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-538.65613" y="-9.7019424" z="-220.7928"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-337.73676" y="22.321819" z="-370.07764"/>
|
||||
<Scale x="1.000001" y="1" z="1.000001"/>
|
||||
<Rotation x="0" y="99" z="0"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-406.02249" y="84.212677" z="-460.5611"/>
|
||||
<Scale x="0.99931335" y="1" z="0.99931335"/>
|
||||
<Rotation x="0" y="105" z="0"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-310.34567" y="69.336639" z="-551.00226"/>
|
||||
<Scale x="0.9941389" y="0.99323529" z="0.99999595"/>
|
||||
<Rotation x="0" y="7" z="0"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-261.31503" y="41.564301" z="-528.52368"/>
|
||||
<Scale x="0.99999613" y="0.99954367" z="0.9994064"/>
|
||||
<Rotation x="-90" y="-45" z="-8"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-238.78645" y="-10.563053" z="-466.24268"/>
|
||||
<Scale x="0.99976027" y="0.99999475" z="0.99999315"/>
|
||||
<Rotation x="30" y="-63" z="-14"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-96.618591" y="-16.054264" z="-351.12924"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-128.33682" y="38.68256" z="-522.79828"/>
|
||||
<Scale x="0.99999386" y="1" z="0.99999386"/>
|
||||
<Rotation x="0" y="105" z="0"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-128.85426" y="20.893711" z="-592.85968"/>
|
||||
<Scale x="0.9999308" y="0.99835175" z="0.99809289"/>
|
||||
<Rotation x="-90" y="-15" z="-20"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-213.46817" y="135.46735" z="-562.4892"/>
|
||||
<Scale x="0.99988467" y="0.99907112" z="0.99889481"/>
|
||||
<Rotation x="-90" y="48" z="0"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-276.20966" y="50.973507" z="-426.81964"/>
|
||||
<Scale x="0.99997073" y="1" z="0.99997073"/>
|
||||
<Rotation x="0" y="75" z="0"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-263.67758" y="20.335052" z="-315.45111"/>
|
||||
<Scale x="0.99999481" y="1" z="0.99999481"/>
|
||||
<Rotation x="0" y="60" z="0"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-567.87341" y="6.0618649" z="-402.6113"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
</Ring>
|
||||
@@ -1,115 +1,153 @@
|
||||
<RanrokPosInfo>
|
||||
<RanrokPosData>
|
||||
<Name Flow ="3">
|
||||
<!--<Position>
|
||||
<Pos x="29.016" y="-36.927" z="278.618"/>
|
||||
</Position>-->
|
||||
<Position>
|
||||
<Pos x="-5.609" y="-36.633" z="276.578"/>
|
||||
<Pos x="-10.619" y="3.829" z="222.073"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-34.520" y="-42.285" z="255.976"/>
|
||||
<Pos x="-25.924" y="11.595" z="213.374"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-34.520" y="-42.285" z="255.976"/>
|
||||
<Pos x="-33.721" y="-1.115" z="190.815"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-21.337" y="-64.176" z="177.173"/>
|
||||
<Pos x="-26.962" y="-5.371" z="162.183"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="19.772" y="-71.264" z="166.086"/>
|
||||
<Pos x="-5.953" y="-5.958" z="152.081"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="59.578" y="-61.212" z="166.694"/>
|
||||
<Pos x="17.473" y="-4.045" z="160.776"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="97.511" y="-52.889" z="163.356"/>
|
||||
<Pos x="29.420" y="-4.414" z="165.479"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="121.751" y="-47.490" z="180.649"/>
|
||||
<Pos x="39.591" y="-10.167" z="181.184"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="115.634" y="-43.836" z="212.510"/>
|
||||
<Pos x="24.508" y="-9.579" z="200.380"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="93.052" y="-48.890" z="232.340"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="32.569" y="-61.375" z="227.195"/>
|
||||
<Pos x="8.232" y="-14.972" z="202.142"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name Flow="2">
|
||||
<Position>
|
||||
<Pos x="16.141" y="-50.299" z="221.423"/>
|
||||
<Pos x="-14.318" y="6.094" z="138.133"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="41.967" y="-53.684" z="246.943"/>
|
||||
<Pos x="-6.853" y="17.268" z="118.995"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="11.950" y="-51.993" z="263.268"/>
|
||||
<Pos x="22.444" y="26.718" z="89.211"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-17.090" y="-51.099" z="236.738"/>
|
||||
<Pos x="71.620" y="40.022" z="95.501"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-13.968" y="-53.362" z="201.439"/>
|
||||
<Pos x="89.480" y="52.386" z="131.227"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-13.968" y="-53.362" z="201.439"/>
|
||||
<Pos x="116.321" y="45.927" z="173.314"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="35.842" y="-48.150" z="189.827"/>
|
||||
<Pos x="126.576" y="31.942" z="212.061"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="51.975" y="-47.209" z="207.986"/>
|
||||
<Pos x="97.259" y="27.504" z="246.896"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="40.875" y="-48.956" z="256.929"/>
|
||||
<Pos x="36.582" y="18.214" z="267.056"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-6.689" y="16.055" z="256.872"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-32.793" y="9.117" z="227.905"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-41.259" y="-9.095" z="197.628"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-30.269" y="-6.395" z="168.142"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-1.485" y="-8.459" z="153.276"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="25.978" y="-7.944" z="163.286"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="40.503" y="-9.522" z="192.299"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="35.584" y="-10.649" z="218.376"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="10.786" y="-11.037" z="236.955"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name Flow="1">
|
||||
<Position>
|
||||
<Pos x="-23.129" y="5.847" z="120.080"/>
|
||||
<Pos x="-23.674" y="2.889" z="88.944"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-35.026" y="2.671" z="144.041"/>
|
||||
<Pos x="-52.506" y="3.156" z="104.534"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-0.334" y="-18.565" z="186.488"/>
|
||||
<Pos x="-64.457" y="0.623" z="134.250"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-51.603" y="-2.990" z="167.553"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-17.432" y="-2.766" z="167.063"/>
|
||||
</Position>
|
||||
</Name>
|
||||
<Name Flow="0">
|
||||
<Position>
|
||||
<Pos x="58.990" y="68.320" z="241.628"/>
|
||||
<Pos x="75.550" y="33.734" z="164.013"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-108.540" y="-20.997" z="129.920"/>
|
||||
<Pos x="5.451" y="22.609" z="178.547"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-78.388" y="-7.777" z="23.252"/>
|
||||
<Pos x="-51.900" y="7.879" z="161.170"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="-17.085" y="18.315" z="34.801"/>
|
||||
<Pos x="-123.376" y="-12.861" z="101.634"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="38.669" y="17.004" z="4.037"/>
|
||||
<Pos x="-109.508" y="-4.704" z="63.085"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="86.242" y="23.649" z="4.595"/>
|
||||
<Pos x="-33.545" y="3.208" z="35.854"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="128.830" y="7.499" z="79.664"/>
|
||||
<Pos x="21.568" y="16.357" z="17.125"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="147.229" y="7.463" z="171.466"/>
|
||||
<Pos x="65.475" y="7.915" z="15.032"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="123.945" y="4.664" z="189.885"/>
|
||||
<Pos x="94.002" y="11.938" z="45.093"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="32.682" y=" 7.561" z="131.725"/>
|
||||
<Pos x="113.964" y="8.984" z="97.496"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="124.186" y="4.729" z="142.306"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="103.940" y="3.978" z="152.634"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="80.791" y="2.533" z="153.991"/>
|
||||
</Position>
|
||||
<Position>
|
||||
<Pos x="8.371" y="2.245" z="101.730"/>
|
||||
</Position>
|
||||
|
||||
</Name>
|
||||
</RanrokPosData>
|
||||
</RanrokPosInfo>
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -54,7 +54,7 @@ void CS_MAIN(uint3 DTid : SV_DispatchThreadID)
|
||||
int p = g_ParentBuffer[global];
|
||||
while (p != -1)
|
||||
{
|
||||
combined = mul(combined,g_LocalMatIn[p]);
|
||||
combined = mul(combined, g_LocalMatIn[p]);
|
||||
p = g_ParentBuffer[p];
|
||||
}
|
||||
|
||||
|
||||
@@ -211,6 +211,7 @@ call Update_Shaders.bat
|
||||
<ClInclude Include="..\public\Quest_Panel.h" />
|
||||
<ClInclude Include="..\public\Quest_Slot.h" />
|
||||
<ClInclude Include="..\public\Quest_Status.h" />
|
||||
<ClInclude Include="..\public\RaceRing.h" />
|
||||
<ClInclude Include="..\Public\Ranrok.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
||||
@@ -471,6 +472,7 @@ call Update_Shaders.bat
|
||||
<ClCompile Include="..\private\Quest_Panel.cpp" />
|
||||
<ClCompile Include="..\private\Quest_Slot.cpp" />
|
||||
<ClCompile Include="..\private\Quest_Status.cpp" />
|
||||
<ClCompile Include="..\private\RaceRing.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
||||
|
||||
@@ -712,6 +712,9 @@
|
||||
<Filter Include="02.GameObjects\Env\06.InstancedProp\Light">
|
||||
<UniqueIdentifier>{1402a2f4-a28b-4f95-b4ec-249a840fa819}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\RaceRing">
|
||||
<UniqueIdentifier>{189b5f72-c985-4bf8-a33e-4257f6d74d25}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Editor.h">
|
||||
@@ -1443,6 +1446,9 @@
|
||||
<ClInclude Include="..\public\InstancedProp_Light.h">
|
||||
<Filter>02.GameObjects\Env\06.InstancedProp\Light</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\RaceRing.h">
|
||||
<Filter>02.GameObjects\RaceRing</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Editor.ico">
|
||||
@@ -2182,6 +2188,9 @@
|
||||
<ClCompile Include="..\private\InstancedProp_Light.cpp">
|
||||
<Filter>02.GameObjects\Env\06.InstancedProp\Light</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\RaceRing.cpp">
|
||||
<Filter>02.GameObjects\RaceRing</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Editor.rc">
|
||||
|
||||
@@ -62,6 +62,14 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
Set_InitialPos();
|
||||
}
|
||||
|
||||
_long LWheel = m_pGameInstance->Get_DIMouseMove(MOUSEMOVESTATE::W);
|
||||
if (LWheel > 0)
|
||||
{
|
||||
m_pTransformCom->Add_SpeedPerSec(0.5f);
|
||||
}
|
||||
else if (LWheel < 0)
|
||||
m_pTransformCom->Add_SpeedPerSec(-0.5f);
|
||||
|
||||
#pragma endregion
|
||||
#pragma region Angle
|
||||
|
||||
|
||||
@@ -64,21 +64,21 @@ HRESULT CLevel_MapViewer::Initialize()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//if (FAILED(Ready_Layer_Land(TEXT("Layer_Land")))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
|
||||
if (FAILED(Ready_Layer_Land(TEXT("Layer_Land")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/*if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) {
|
||||
return E_FAIL;
|
||||
}*/
|
||||
|
||||
//if (FAILED(Ready_Layer_BuildingContainer(TEXT("Layer_Building")))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
//if (FAILED(Ready_Layer_Unified(TEXT("Layer_Unified")))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
if (FAILED(Ready_Layer_Unified(TEXT("Layer_Unified")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/*if (FAILED(Ready_Layer_Door(TEXT("Layer_Door")))) {
|
||||
return E_FAIL;
|
||||
@@ -427,27 +427,27 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
|
||||
|
||||
CInstancedProp_Light::INSTANCE_PROP_LIGHT_DESC LightDesc = {};
|
||||
|
||||
/* LightPost */
|
||||
LightDesc.bEditMode = false;
|
||||
LightDesc.isShake = false;
|
||||
LightDesc.iGlassMeshIndex = 0;
|
||||
LightDesc.vRadius = _float2(0.f, 0.f);
|
||||
LightDesc.vSpeed = _float2(0.f, 0.f);
|
||||
LightDesc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_LightPost";
|
||||
LightDesc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Light_Post_Floating.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp_Light>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &LightDesc)))
|
||||
return E_FAIL;
|
||||
///* LightPost */
|
||||
//LightDesc.bEditMode = false;
|
||||
//LightDesc.isShake = false;
|
||||
//LightDesc.iGlassMeshIndex = 0;
|
||||
//LightDesc.vRadius = _float2(0.f, 0.f);
|
||||
//LightDesc.vSpeed = _float2(0.f, 0.f);
|
||||
//LightDesc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_LightPost";
|
||||
//LightDesc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Light_Post_Floating.bin";
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp_Light>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &LightDesc)))
|
||||
// return E_FAIL;
|
||||
|
||||
/* LightPost_Floating */
|
||||
LightDesc.bEditMode = false;
|
||||
LightDesc.isShake = false;
|
||||
LightDesc.iGlassMeshIndex = 1;
|
||||
LightDesc.vRadius = _float2(0.f, 0.f);
|
||||
LightDesc.vSpeed = _float2(0.f, 0.f);
|
||||
LightDesc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Light_Post_Floating";
|
||||
LightDesc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/LightPost.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp_Light>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &LightDesc)))
|
||||
return E_FAIL;
|
||||
///* LightPost_Floating */
|
||||
//LightDesc.bEditMode = false;
|
||||
//LightDesc.isShake = false;
|
||||
//LightDesc.iGlassMeshIndex = 1;
|
||||
//LightDesc.vRadius = _float2(0.f, 0.f);
|
||||
//LightDesc.vSpeed = _float2(0.f, 0.f);
|
||||
//LightDesc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_Light_Post_Floating";
|
||||
//LightDesc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/LightPost.bin";
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp_Light>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &LightDesc)))
|
||||
// return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -569,8 +569,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_Player_And_Ranrok()
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
|
||||
return E_FAIL;
|
||||
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
|
||||
return E_FAIL;*/
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -759,13 +759,13 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag)
|
||||
{
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
|
||||
//{
|
||||
// return E_FAIL;
|
||||
//}
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, nullptr, nullptr, &m_Test)))
|
||||
// return E_FAIL;
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, nullptr, nullptr, &m_Test)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummySkyBox>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE)))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -167,6 +167,8 @@
|
||||
#include "MapElement_Chest.h"
|
||||
#include "MapElement_Chest_Lid.h"
|
||||
#include "LightSpawner.h"
|
||||
#include "RaceRing.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -2411,10 +2413,10 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
|
||||
// CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
@@ -2663,6 +2665,7 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
vector<_wstring> ModelPrototypeTags = {};
|
||||
vector<filesystem::path> ModelPrototypePath = {};
|
||||
|
||||
|
||||
#pragma region HOGSMEADE
|
||||
/* Hogsmead LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\HogsmeadeLOD\\ProxyAssets",
|
||||
@@ -2852,108 +2855,106 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Collision",
|
||||
// ".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
// return E_FAIL;
|
||||
|
||||
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
_bool bLoadHogsmeade = false;
|
||||
if (bLoadHogsmeade)
|
||||
{
|
||||
#pragma region HOGSMEADE_OBJECT
|
||||
/* Light */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\LightPosts",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
// /* Fences */
|
||||
//if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\fences",
|
||||
// ".fbx", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
// return E_FAIL;
|
||||
/* Doors */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Doors",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* Light */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\LightPosts",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Step */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\GroundSurfaces",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* Doors */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Doors",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\GroundSurfaces",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* Step */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\GroundSurfaces",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Box */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\MiscProps",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\GroundSurfaces",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* TeaShop Table */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Tables",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* Box */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\MiscProps",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* TeaShop Table */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Tables",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* TeaShop Chair*/
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Chairs",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* TeaShop Chair*/
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Chairs",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
/* Barrel */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Objects\\Meshes",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Barrel */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Objects\\Meshes",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* Object Interactables */
|
||||
/* Chest */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Objects\\Interactables",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Object Interactables */
|
||||
/* Chest */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Objects\\Interactables",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
#pragma region HOGSMEADE_LOD
|
||||
/* SUB_HogsHead */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_HogsHead\\SUB_HogsHead_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* SUB_PippensPotions */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_PippensPotions\\SUB_Pippens_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* GEN_E_LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_E\\SUB_GEN_E_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* GEN_F_LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_F\\SUB_GEN_F_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* GEN_G_LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_G\\SUB_GEN_G_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* GEN_H_LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_H\\SUB_GEN_H_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* GEN_J_LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_J\\SUB_GEN_J_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* SUB_HogsHead */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_HogsHead\\SUB_HogsHead_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* SUB_PippensPotions */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_PippensPotions\\SUB_Pippens_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* GEN_E_LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_E\\SUB_GEN_E_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* GEN_F_LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_F\\SUB_GEN_F_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* GEN_G_LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_G\\SUB_GEN_G_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* GEN_H_LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_H\\SUB_GEN_H_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* GEN_J_LOD */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\SUB_GEN_J\\SUB_GEN_J_EXTLOD\\ProxyAssets",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
|
||||
}
|
||||
|
||||
#pragma region HOGWART
|
||||
_bool bHogwartLoad = { false };
|
||||
_bool bHogwartLoad = { true };
|
||||
|
||||
/* Hogwart LOD */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
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;
|
||||
|
||||
if(bHogwartLoad)
|
||||
{
|
||||
/* QuidditchPitch */
|
||||
@@ -3247,7 +3248,7 @@ vector<future<void>> jobFutures;
|
||||
_uint iLoadCount = 46;
|
||||
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
|
||||
|
||||
_bool isLoad_Map = { true };
|
||||
_bool isLoad_Map = { false };
|
||||
if(isLoad_Map)
|
||||
{
|
||||
{ /* Terrain */
|
||||
@@ -3852,6 +3853,10 @@ if(isLoad_Map)
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDummyDecal>(g_iStaticLevel, CDummyDecal::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_RaceRing */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRaceRing>(g_iStaticLevel, CRaceRing::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_MapObject_Manager */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapObject_Manager>(g_iStaticLevel, CMapObject_Manager::Create(m_pDevice, m_pContext, ModelPrototypeTags, ModelPrototypePath))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -91,6 +91,11 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
TEXT("Prototype_Component_SK_GOB_M_Assassin_Master_Model")
|
||||
));
|
||||
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master_Tumble.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_SK_GOB_M_Assassin_Master_Model")
|
||||
));
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include "MapElement_Lake.h"
|
||||
#include "LightSpawner.h"
|
||||
#include "DummyDecal.h"
|
||||
#include "RaceRing.h"
|
||||
|
||||
|
||||
CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext)
|
||||
@@ -93,6 +94,10 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
//m_pInfoInstance->Load_Decal("Duengon_Decal_Data");
|
||||
//m_pInfoInstance->Load_PointLights("Duengon_PointLight_Data");
|
||||
#pragma endregion
|
||||
if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
|
||||
return E_FAIL;
|
||||
if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
#pragma region Light
|
||||
@@ -206,8 +211,9 @@ void CMapObject_Manager::Update(_float fTimeDelta)
|
||||
|
||||
Update_Edit();
|
||||
|
||||
Update_LightSpawer();
|
||||
//Update_LightSpawer();
|
||||
//Update_Decal();
|
||||
Update_RaceRing();
|
||||
|
||||
Update_Unified();
|
||||
|
||||
@@ -1945,6 +1951,51 @@ HRESULT CMapObject_Manager::Save_Decal(const _char* pFileName)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapObject_Manager::Save_RaceRing(const _char* pFileName)
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_RaceRing"));
|
||||
|
||||
if (nullptr == pLayer)
|
||||
return S_OK;
|
||||
|
||||
tinyxml2::XMLDocument doc;
|
||||
string strPath = "../Bin/Resources/Data/Map/RaceRing/" + string(pFileName) + ".xml";
|
||||
|
||||
tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str());
|
||||
|
||||
doc.Clear();
|
||||
doc.InsertFirstChild(doc.NewDeclaration());
|
||||
|
||||
tinyxml2::XMLElement* root = doc.NewElement("Ring");
|
||||
doc.InsertEndChild(root);
|
||||
|
||||
if (nullptr != pLayer)
|
||||
{
|
||||
const list<CGameObject*>* pList = pLayer->Get_Objects();
|
||||
|
||||
for (auto pGamObject : *pList)
|
||||
{
|
||||
CRaceRing* pRaceRing = dynamic_cast<CRaceRing*>(pGamObject);
|
||||
|
||||
if (nullptr == pRaceRing)
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(pRaceRing->Save_XML(doc, root)))
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) {
|
||||
MSG_BOX("Failed to Save File");
|
||||
}
|
||||
else
|
||||
{
|
||||
MSG_BOX("Succeed to Save DummyDecals");
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapObject_Manager::Update_PrototypeList()
|
||||
{
|
||||
GUI::Begin("Model Prototype List");
|
||||
@@ -2282,6 +2333,40 @@ void CMapObject_Manager::Update_Decal()
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
void CMapObject_Manager::Update_RaceRing()
|
||||
{
|
||||
GUI::Begin("RaceRing Editor");
|
||||
if (GUI::Button("Save RaceRings"))
|
||||
{
|
||||
Save_RaceRing("RaceRing_Data");
|
||||
}
|
||||
if (GUI::Button("Load Ring"))
|
||||
{
|
||||
//m_pInfoInstance->Load_Decal("Duengon_Decal_Data");
|
||||
}
|
||||
if (GUI::Button("Add Ring"))
|
||||
{
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_RaceRing"));
|
||||
}
|
||||
|
||||
GUI::InputInt("Index : ", (_int*)&m_iSelectedIndex);
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_RaceRing"));
|
||||
|
||||
if (nullptr != pLayer)
|
||||
{
|
||||
_uint iIndex = {};
|
||||
for (auto& pObject : *pLayer->Get_Objects())
|
||||
{
|
||||
if (m_iSelectedIndex == iIndex)
|
||||
pObject->Describe_Entity();
|
||||
|
||||
++iIndex;
|
||||
}
|
||||
}
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag)
|
||||
{
|
||||
vector<_uint> LodModelIndices;
|
||||
|
||||
@@ -109,7 +109,8 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
void CPlayer::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
ReLockOnTarget();
|
||||
SetGravity();
|
||||
if (m_pCharacter_Controller->Get_GravityAmount() > 0.f)
|
||||
SetGravity();
|
||||
m_pTransformCom->RewindMomentum();
|
||||
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
@@ -497,6 +498,13 @@ void CPlayer::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("PLAYER_DESC");
|
||||
m_pCharacter_Controller->Describe_Entity();
|
||||
|
||||
if (m_pGameInstance->Key_Up(DIK_HOME))
|
||||
{
|
||||
m_pCharacter_Controller->Set_GravityAmount(0.f);
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z, 1.f));
|
||||
}
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
@@ -0,0 +1,218 @@
|
||||
#include "pch.h"
|
||||
#include "RaceRing.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CRaceRing::CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CRaceRing::CRaceRing(const CRaceRing& Prototype)
|
||||
: CGameObject(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CRaceRing::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRaceRing::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Components())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_iIndex = 0;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRaceRing::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void CRaceRing::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
}
|
||||
|
||||
void CRaceRing::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CRaceRing::Render()
|
||||
{
|
||||
if (!m_pModelCom)
|
||||
return S_OK;
|
||||
|
||||
if (!m_bVisible)
|
||||
return S_OK;
|
||||
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRaceRing::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_RaceRing_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRaceRing::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
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;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRaceRing* CRaceRing::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRaceRing* pInstance = new CRaceRing(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRaceRing");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CRaceRing::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRaceRing* pInstance = new CRaceRing(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRaceRing");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRaceRing::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CRaceRing::Describe_Entity()
|
||||
{
|
||||
m_pTransformCom->Describe_Entity();
|
||||
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
|
||||
{
|
||||
_float3 vPosition = {};
|
||||
if (m_pGameInstance->isPicking(&vPosition))
|
||||
{
|
||||
vPosition.y += 20.7f;
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CRaceRing::Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root)
|
||||
{
|
||||
tinyxml2::XMLElement* object = doc.NewElement("Object");
|
||||
object->SetAttribute("Type", 0);
|
||||
root->InsertEndChild(object);
|
||||
|
||||
#pragma region TRANSFORM
|
||||
_float3 vPosition = {};
|
||||
XMStoreFloat3(&vPosition, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
|
||||
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||
|
||||
_float3 vRotation = m_pTransformCom->Get_Rotation();
|
||||
|
||||
tinyxml2::XMLElement* Position = doc.NewElement("Position");
|
||||
Position->SetAttribute("x", vPosition.x);
|
||||
Position->SetAttribute("y", vPosition.y);
|
||||
Position->SetAttribute("z", vPosition.z);
|
||||
object->InsertEndChild(Position);
|
||||
|
||||
tinyxml2::XMLElement* Scale = doc.NewElement("Scale");
|
||||
Scale->SetAttribute("x", vScale.x);
|
||||
Scale->SetAttribute("y", vScale.y);
|
||||
Scale->SetAttribute("z", vScale.z);
|
||||
object->InsertEndChild(Scale);
|
||||
|
||||
tinyxml2::XMLElement* Rotation = doc.NewElement("Rotation");
|
||||
Rotation->SetAttribute("x", vRotation.x);
|
||||
Rotation->SetAttribute("y", vRotation.y);
|
||||
Rotation->SetAttribute("z", vRotation.z);
|
||||
object->InsertEndChild(Rotation);
|
||||
#pragma endregion
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -532,10 +532,11 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
_vector CurPos = m_pCharacter_Controller->Get_Position();
|
||||
_vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
|
||||
_vector toTarget = Target - CurPos;
|
||||
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
|
||||
|
||||
if (m_iCurrentPoint + 1 < m_Points[m_iCurrentFlow].size() && fDist < 30.f)
|
||||
if (m_iCurrentPoint + 1 < m_Points[m_iCurrentFlow].size() && fDist < 15.f)
|
||||
{
|
||||
NextTarget = m_Points[m_iCurrentFlow][m_iCurrentPoint + 1];
|
||||
}
|
||||
@@ -545,7 +546,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
if (fDist < 20.f)
|
||||
if (fDist < 5.f)
|
||||
{
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
@@ -557,7 +558,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (fDist < 20.f)
|
||||
else if (fDist < 10.f)
|
||||
{
|
||||
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
|
||||
{
|
||||
@@ -571,7 +572,7 @@ void CRanrok::MoveTo(_float fTimeDelta)
|
||||
|
||||
_vector LerpTarget = XMVectorLerp(Target, NextTarget, 0.5f);
|
||||
|
||||
m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta, 2.5f);
|
||||
m_pTransformCom->LookAt_Lerp(LerpTarget, fTimeDelta, 5.f);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(CurPos + vLook * m_fTuckedSpeed * fTimeDelta);
|
||||
}
|
||||
@@ -671,6 +672,54 @@ void CRanrok::Describe_Entity()
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z, 1.f));
|
||||
}
|
||||
|
||||
GUI::DragFloat("Tucked Speed", &m_fTuckedSpeed);
|
||||
|
||||
for (_uint i = 0; i < m_Points.size(); ++i)
|
||||
{
|
||||
GUI::Separator();
|
||||
|
||||
if (GUI::TreeNode(("Points " + to_string(i)).c_str()))
|
||||
{
|
||||
GUI::Text("Points[%d] Count : %d", i, (_int)m_Points[i].size());
|
||||
|
||||
for (_uint j = 0; j < m_Points[i].size(); )
|
||||
{
|
||||
_float3 p;
|
||||
XMStoreFloat3(&p, m_Points[i][j]);
|
||||
|
||||
GUI::PushID((int)(i * 10000 + j));
|
||||
|
||||
GUI::Text("[%d] (%.2f, %.2f, %.2f)", j, p.x, p.y, p.z);
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("Move"))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
XMVectorSet(p.x, p.y, p.z, 1.f));
|
||||
}
|
||||
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("X"))
|
||||
{
|
||||
m_Points[i].erase(m_Points[i].begin() + j);
|
||||
GUI::PopID();
|
||||
continue;
|
||||
}
|
||||
|
||||
GUI::PopID();
|
||||
++j;
|
||||
}
|
||||
|
||||
if (GUI::SmallButton(("Clear##" + to_string(i)).c_str()))
|
||||
{
|
||||
m_Points[i].clear();
|
||||
}
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#ifdef gimch
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_L))
|
||||
@@ -686,7 +735,7 @@ void CRanrok::Describe_Entity()
|
||||
|
||||
m_pTransformCom->Describe_Entity();
|
||||
|
||||
GUI::DragFloat("Tucked Speed", &m_fTuckedSpeed);
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -84,6 +84,10 @@ class CMapObject_Manager final : public CGameObject
|
||||
|
||||
HRESULT Save_PointLightObject(const _char* pFileName);
|
||||
HRESULT Save_Decal(const _char* pFileName);
|
||||
|
||||
HRESULT Save_RaceRing(const _char* pFileName);
|
||||
|
||||
|
||||
#pragma endregion
|
||||
|
||||
void Update_PrototypeList();
|
||||
@@ -93,6 +97,7 @@ class CMapObject_Manager final : public CGameObject
|
||||
void Update_Unified();
|
||||
void Update_LightSpawer();
|
||||
void Update_Decal();
|
||||
void Update_RaceRing();
|
||||
|
||||
void Create_PartObject(_wstring& strPrototypeTag);
|
||||
void Create_Elemnt(_wstring& strPrototypeTag);
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "PartObject.h"
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CRaceRing final : public CGameObject
|
||||
{
|
||||
private:
|
||||
CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRaceRing(const CRaceRing& Prototype);
|
||||
virtual ~CRaceRing() = default;
|
||||
|
||||
public:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
void Set_Target(_bool bTarget) { m_bTarget = bTarget; }
|
||||
|
||||
private:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
_bool m_bTarget = { false };
|
||||
_int m_iIndex = {};
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
public:
|
||||
static CRaceRing* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
|
||||
virtual void Free() override;
|
||||
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
HRESULT Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root);
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -54,7 +54,7 @@ void CS_MAIN(uint3 DTid : SV_DispatchThreadID)
|
||||
int p = g_ParentBuffer[global];
|
||||
while (p != -1)
|
||||
{
|
||||
combined = mul(combined,g_LocalMatIn[p]);
|
||||
combined = mul(combined, g_LocalMatIn[p]);
|
||||
p = g_ParentBuffer[p];
|
||||
}
|
||||
|
||||
|
||||
@@ -28,10 +28,14 @@ CCollider::CCollider(const CCollider& rhs)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CCollider::Set_Desc(void* pDesc)
|
||||
{
|
||||
m_pBounding->Set_Desc(pDesc);
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
|
||||
HRESULT CCollider::Initialize_Prototype()
|
||||
{
|
||||
|
||||
@@ -162,6 +162,11 @@ void CUnit::Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio,
|
||||
m_PendingEvents.push_back(Desc);
|
||||
}
|
||||
|
||||
void CUnit::Reset_Event()
|
||||
{
|
||||
m_PendingEvents.clear();
|
||||
}
|
||||
|
||||
void CUnit::Check_HitAngle(_vector ProjectileDir)
|
||||
{
|
||||
_vector vProjectileDir = ProjectileDir;
|
||||
|
||||
@@ -93,6 +93,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
|
||||
HRESULT Ready_Components(void*pArg);
|
||||
void Play_Event();
|
||||
void Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio = 0.f, _bool bKeep = false);
|
||||
void Reset_Event();
|
||||
void Check_HitAngle(_vector ProjectileDir);
|
||||
void Load_AnimXML(const string& path);
|
||||
STATEANIM::ESTATE StringToStateAnim(const string& s);
|
||||
|
||||
Reference in New Issue
Block a user