@@ -166,10 +166,14 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_Behavior.h" />
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_HitReport.h" />
|
||||
<ClInclude Include="..\Public\CallBack_Ranrok_HitReport.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_FireBall.h" />
|
||||
<ClInclude Include="..\Public\CamPosition_AI.h" />
|
||||
<ClInclude Include="..\public\Dialogue.h" />
|
||||
<ClInclude Include="..\public\Dialogue_Data.h" />
|
||||
<ClInclude Include="..\public\Dialogue_Font.h" />
|
||||
<ClInclude Include="..\public\NPCInteraction.h" />
|
||||
<ClInclude Include="..\public\PointLight.h" />
|
||||
<ClInclude Include="..\Public\State_Fall.h" />
|
||||
<ClInclude Include="..\Public\State_FireBall.h" />
|
||||
<ClInclude Include="..\Public\TransformationSide.h" />
|
||||
@@ -392,6 +396,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\public\UI_Manager.h" />
|
||||
<ClInclude Include="..\public\Unified.h" />
|
||||
<ClInclude Include="..\Public\Wand.h" />
|
||||
<ClInclude Include="..\public\WorldDecal.h" />
|
||||
<ClInclude Include="Client.h" />
|
||||
<ClInclude Include="framework.h" />
|
||||
<ClInclude Include="Resource.h" />
|
||||
@@ -404,10 +409,14 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_Behavior.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_Ranrok_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_FireBall.cpp" />
|
||||
<ClCompile Include="..\Private\CamPosition_AI.cpp" />
|
||||
<ClCompile Include="..\private\Dialogue.cpp" />
|
||||
<ClCompile Include="..\private\Dialogue_Data.cpp" />
|
||||
<ClCompile Include="..\private\Dialogue_Font.cpp" />
|
||||
<ClCompile Include="..\private\NPCInteraction.cpp" />
|
||||
<ClCompile Include="..\private\PointLight.cpp" />
|
||||
<ClCompile Include="..\Private\State_Fall.cpp" />
|
||||
<ClCompile Include="..\Private\TransformationSide.cpp" />
|
||||
<ClCompile Include="..\Private\Transformation.cpp" />
|
||||
@@ -637,6 +646,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\private\UI_Manager.cpp" />
|
||||
<ClCompile Include="..\private\Unified.cpp" />
|
||||
<ClCompile Include="..\Private\Wand.cpp" />
|
||||
<ClCompile Include="..\private\WorldDecal.cpp" />
|
||||
<ClCompile Include="Client.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<Filter>02.GameObjects\Cameras\Debug</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Light_Main.h">
|
||||
<Filter>02.GameObjects\Environment\Lights\Main</Filter>
|
||||
<Filter>02.GameObjects\Environment\99.Lights\Main</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\PlayerInfo.h">
|
||||
<Filter>03.InfoInstance\00.PlayerInfo</Filter>
|
||||
@@ -731,6 +731,21 @@
|
||||
<ClInclude Include="..\public\Dialogue.h">
|
||||
<Filter>04.Mechanic\Dialogue</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\WorldDecal.h">
|
||||
<Filter>02.GameObjects\Environment\98,WorldDecal</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\PointLight.h">
|
||||
<Filter>02.GameObjects\Environment\99.Lights\PointLight</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_FireBall.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_FireBall</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Breath.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Breath</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\CamPosition_AI.h">
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\AI</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Dialogue_Data.h">
|
||||
<Filter>04.Mechanic\Dialogue\Dialogue_Data</Filter>
|
||||
</ClInclude>
|
||||
@@ -804,15 +819,9 @@
|
||||
<Filter Include="01.Levels\99.Restart">
|
||||
<UniqueIdentifier>{e12b3048-dd6d-41bf-b346-e4abdaa4f215}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\Lights">
|
||||
<UniqueIdentifier>{74f21f9b-30bf-412e-ba4e-526958ab2a52}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Cameras\Debug">
|
||||
<UniqueIdentifier>{8d89a59c-fbd2-4a4a-ab01-a70abb80cc49}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\Lights\Main">
|
||||
<UniqueIdentifier>{b24c78ef-dccc-41f0-a086-053ae6b7fbf4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\Plane">
|
||||
<UniqueIdentifier>{603938cc-e4fe-44d8-890b-784174a86161}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1515,12 +1524,36 @@
|
||||
<Filter Include="02.GameObjects\PhysX\CallBack\HitReport\Monster\Ranrok">
|
||||
<UniqueIdentifier>{93545681-c4c5-4a6a-9496-7b2e7b8a9302}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok">
|
||||
<UniqueIdentifier>{087ad9ea-445d-4bf7-8ec4-0f29a0c2dd53}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\NPCInteraction">
|
||||
<UniqueIdentifier>{09764279-bf54-48e4-853a-45b5a65c92a7}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\Dialogue">
|
||||
<UniqueIdentifier>{11c35878-12b4-4c55-b872-004fed9a4fb2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\99.Lights">
|
||||
<UniqueIdentifier>{74f21f9b-30bf-412e-ba4e-526958ab2a52}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\99.Lights\Main">
|
||||
<UniqueIdentifier>{b24c78ef-dccc-41f0-a086-053ae6b7fbf4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\98,WorldDecal">
|
||||
<UniqueIdentifier>{511923f0-d74a-4e9e-9fc6-30ae8ddf8d53}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\99.Lights\PointLight">
|
||||
<UniqueIdentifier>{4151af66-59d0-496d-a9a0-0c0603166192}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_FireBall">
|
||||
<UniqueIdentifier>{a682b36b-cead-4c0d-abda-466b0a5f52c2}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Breath">
|
||||
<UniqueIdentifier>{a3b5e707-dbb3-47da-a77b-b0ca62b89e99}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Cameras\CameraPosition\AI">
|
||||
<UniqueIdentifier>{a24f4687-f540-44e5-ae47-fe176c4c9042}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\Dialogue\Dialogue_Data">
|
||||
<UniqueIdentifier>{b03591a7-a14e-425a-8a3f-2a6a054c884a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1560,7 +1593,7 @@
|
||||
<Filter>02.GameObjects\Cameras\Debug</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Light_Main.cpp">
|
||||
<Filter>02.GameObjects\Environment\Lights\Main</Filter>
|
||||
<Filter>02.GameObjects\Environment\99.Lights\Main</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\PlayerInfo.cpp">
|
||||
<Filter>03.InfoInstance\00.PlayerInfo</Filter>
|
||||
@@ -2202,6 +2235,21 @@
|
||||
<ClCompile Include="..\private\Dialogue.cpp">
|
||||
<Filter>04.Mechanic\Dialogue</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\WorldDecal.cpp">
|
||||
<Filter>02.GameObjects\Environment\98,WorldDecal</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\PointLight.cpp">
|
||||
<Filter>02.GameObjects\Environment\99.Lights\PointLight</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_FireBall.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_FireBall</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Breath.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Breath</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\CamPosition_AI.cpp">
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\AI</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\Dialogue_Data.cpp">
|
||||
<Filter>04.Mechanic\Dialogue\Dialogue_Data</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -35,8 +35,6 @@ HRESULT CBroom::Initialize(void* pArg)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Add_FSM();
|
||||
|
||||
Set_Anim();
|
||||
@@ -50,7 +48,7 @@ HRESULT CBroom::Initialize(void* pArg)
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 10.f, 0.f, 1.f));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f,-100.f, 0.f, 1.f));
|
||||
|
||||
m_pParentUnit = dynamic_cast<CUnit*>(m_pOwner);
|
||||
|
||||
@@ -62,8 +60,10 @@ HRESULT CBroom::Initialize(void* pArg)
|
||||
|
||||
m_pWindEffect->Get_Effect_Info()->isBillboard = false;
|
||||
}
|
||||
|
||||
|
||||
else {
|
||||
m_fAISeed = m_pGameInstance->Real_Random_Float(0.f, XM_2PI);
|
||||
m_fAICondition = 1.f;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
@@ -85,8 +85,15 @@ void CBroom::Update(_float fTimeDelta)
|
||||
else {
|
||||
m_bHoverToggle = m_Input.bHoverToggle;
|
||||
m_bTurbo = m_Input.bTurbo;
|
||||
}
|
||||
|
||||
m_fAITime += fTimeDelta;
|
||||
|
||||
_float target = 1.f + sinf(m_fAITime * 0.3f + m_fAISeed) * 0.15f;
|
||||
|
||||
m_fAICondition += (target - m_fAICondition) * fTimeDelta * 0.3f;
|
||||
|
||||
m_fAICondition = clamp(m_fAICondition, 0.85f, 1.15f);
|
||||
}
|
||||
if (!m_bRide)
|
||||
{
|
||||
m_bHoverToggle = true;
|
||||
@@ -122,7 +129,7 @@ void CBroom::Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
|
||||
m_pWindEffect->Set_Visible(true);
|
||||
m_pWindEffect->Set_Visible(false);
|
||||
m_pWindEffect->Get_Component<CInstance_Model>()->Set_TimeMult(0.5f + m_fSpeed / 20.f);
|
||||
m_pWindEffect->Get_Effect_Info()->fBlurIntensity = m_fSpeed / 30.f;
|
||||
|
||||
@@ -287,15 +294,19 @@ void CBroom::PlayerInput()
|
||||
|
||||
if (m_pGameInstance->Key_Up(DIK_LSHIFT))
|
||||
{
|
||||
m_Input.bHoverToggle = !m_Input.bHoverToggle;
|
||||
m_bHoverToggle = m_Input.bHoverToggle;
|
||||
m_bHoverToggle = !m_bHoverToggle;
|
||||
}
|
||||
|
||||
|
||||
m_Input.bTurbo = m_pGameInstance->Mouse_Pressing(DIM_LBUTTON);
|
||||
m_bTurbo = m_Input.bTurbo;
|
||||
}
|
||||
|
||||
void CBroom::Set_AISpeed(_float speedMul, _float accelMul)
|
||||
{
|
||||
m_fAISpeedMul = speedMul;
|
||||
m_fAIAccelMul = accelMul;
|
||||
}
|
||||
|
||||
|
||||
CBroom* CBroom::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
#include "GameInstance.h"
|
||||
#include "RaceRing.h"
|
||||
#include "Layer.h"
|
||||
#include "BroomRacerAI.h"
|
||||
#include "Player.h"
|
||||
#include "Broom.h"
|
||||
|
||||
CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -30,10 +33,6 @@ HRESULT CBroomRaceManager::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
m_pGripShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 10, false, false));
|
||||
m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.2f, 10, false, false));
|
||||
#endif // _DEBUG
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -41,13 +40,25 @@ HRESULT CBroomRaceManager::Initialize(void* pArg)
|
||||
void CBroomRaceManager::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
switch (m_eRaceState)
|
||||
{
|
||||
case ENUM_CLASS(RACE_STATE::COUNTDOWN):
|
||||
Update_Countdown(fTimeDelta);
|
||||
break;
|
||||
case ENUM_CLASS(RACE_STATE::RACING):
|
||||
Check_RingPassed();
|
||||
break;
|
||||
}
|
||||
|
||||
Check_RingPassed();
|
||||
}
|
||||
|
||||
void CBroomRaceManager::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
@@ -56,8 +67,15 @@ void CBroomRaceManager::Update(_float fTimeDelta)
|
||||
void CBroomRaceManager::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Late_Update(fTimeDelta);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
|
||||
HRESULT CBroomRaceManager::Render()
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), ToolTip.c_str(), _float2(g_iWinSizeX*0.5f, g_iWinSizeY*0.5f),XMVectorSet(1.f,1.f,1.f,1.f),5.f);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBroomRaceManager::Ready_Components()
|
||||
{
|
||||
@@ -123,64 +141,201 @@ void CBroomRaceManager::Free()
|
||||
|
||||
void CBroomRaceManager::Describe_Entity()
|
||||
{
|
||||
if (GUI::Button("Race Start"))
|
||||
{
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
|
||||
const _float SPAWN_DISTANCE = 80.f;
|
||||
|
||||
for (auto& racer : m_Racers)
|
||||
{
|
||||
CTransform* pRingTransform =
|
||||
m_pRaceRings[0]->Get_Component<CTransform>();
|
||||
|
||||
_vector ringPos = pRingTransform->Get_State(STATE::POSITION);
|
||||
_vector ringLook = pRingTransform->Get_State(STATE::RIGHT);
|
||||
ringLook = XMVector3Normalize(ringLook);
|
||||
|
||||
_vector spawnPos = ringPos - ringLook * SPAWN_DISTANCE;
|
||||
|
||||
if (racer.pAI)
|
||||
{
|
||||
CTransform* pBroomTransform =
|
||||
racer.pAI->Get_Broom()->Get_Component<CTransform>();
|
||||
_float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
|
||||
spawnPos.m128_f32[2] += fRand;
|
||||
|
||||
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);
|
||||
racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY))
|
||||
{
|
||||
if (GUI::Button("Countdown"))
|
||||
{
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
void CBroomRaceManager::Update_Countdown(_float fTimeDelta)
|
||||
{
|
||||
m_fCountTimer += fTimeDelta;
|
||||
|
||||
if (m_fCountTimer >= 1.f)
|
||||
{
|
||||
m_fCountTimer = 0.f;
|
||||
--m_iCount;
|
||||
|
||||
if (m_iCount > 0)
|
||||
{
|
||||
ToolTip = to_wstring(m_iCount);
|
||||
}
|
||||
else
|
||||
{
|
||||
ToolTip = to_wstring(0);
|
||||
StartRaceMove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CBroomRaceManager::StartRaceMove()
|
||||
{
|
||||
for (auto& racer : m_Racers)
|
||||
{
|
||||
if (racer.pAI)
|
||||
{
|
||||
racer.pAI->Get_Broom()->Set_Move(true);
|
||||
}
|
||||
else if (racer.pRacer)
|
||||
{
|
||||
racer.pRacer->Get_Broom()->Set_Move(true);
|
||||
}
|
||||
}
|
||||
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::RACING);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CBroomRaceManager::Check_RingPassed()
|
||||
{
|
||||
const float PASS_RADIUS = 5.f;
|
||||
|
||||
for (auto& racer : m_Racers)
|
||||
{
|
||||
CRaceRing* pRing = m_pRaceRings[racer.curRing];
|
||||
_vector ringPos = pRing->Get_WorldPostion();
|
||||
_vector broomPos = racer.pRacer->Get_WorldPostion();
|
||||
|
||||
_vector ringFwd =pRing->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
_vector ringPos = pRing->Get_WorldPostion();
|
||||
|
||||
_vector ringFwd =
|
||||
pRing->Get_Component<CTransform>()->Get_State(STATE::RIGHT);
|
||||
ringFwd = XMVector3Normalize(ringFwd);
|
||||
|
||||
_float prevSide = XMVectorGetX(XMVector3Dot(ringFwd, racer.prevPos - ringPos));
|
||||
_float currSide = XMVectorGetX(XMVector3Dot(ringFwd, broomPos - ringPos));
|
||||
|
||||
_float dist = XMVectorGetX(XMVector3Length(broomPos - ringPos));
|
||||
_vector currPos = racer.pAI ? racer.pAI->Get_WorldPostion() : racer.pRacer->Get_WorldPostion();
|
||||
|
||||
const _float PASS_RADIUS = 50.f;
|
||||
|
||||
GUI::Text("CurRing %d", racer.curRing);
|
||||
_vector prevPos = racer.prevPos;
|
||||
|
||||
_float d0 = XMVectorGetX(
|
||||
XMVector3Dot(prevPos - ringPos, ringFwd));
|
||||
_float d1 = XMVectorGetX(
|
||||
XMVector3Dot(currPos - ringPos, ringFwd));
|
||||
#ifdef _DEBUG
|
||||
m_pGripShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Green, nullptr, true);
|
||||
m_pSubShape->Draw(pRing->Get_Component<CTransform>()->Get_XMWorldMatrix(), m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW), m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ), DirectX::Colors::Purple, nullptr, true);
|
||||
GUI::Text("%s", racer.pAI ? "AI" : "Player");
|
||||
GUI::SameLine();
|
||||
GUI::Text("CurRing %d", racer.curRing);
|
||||
GUI::Text("PrevSide %.2f", d0);
|
||||
GUI::Text("CurrSide %.2f", d1);
|
||||
#endif // _DEBUG
|
||||
|
||||
if (prevSide < 0.f && currSide >= 0.f && dist < PASS_RADIUS)
|
||||
if (d0 * d1 <= 0.f && fabs(d0 - d1) > 1e-4f)
|
||||
{
|
||||
racer.curRing++;
|
||||
if (racer.curRing >= m_pRaceRings.size())
|
||||
racer.curRing = 0;
|
||||
_float t = d0 / (d0 - d1);
|
||||
t = std::clamp(t, 0.f, 1.f);
|
||||
|
||||
_vector hitPos =
|
||||
prevPos + (currPos - prevPos) * t;
|
||||
|
||||
_vector v = hitPos - ringPos;
|
||||
_float side = XMVectorGetX(XMVector3Dot(v, ringFwd));
|
||||
_vector proj = hitPos - ringFwd * side;
|
||||
|
||||
_float dist =
|
||||
XMVectorGetX(XMVector3Length(proj - ringPos));
|
||||
|
||||
if (dist <= PASS_RADIUS)
|
||||
{
|
||||
if(racer.pRacer){
|
||||
pRing->Set_Target(false);
|
||||
}
|
||||
|
||||
|
||||
racer.curRing = (racer.curRing + 1) % m_pRaceRings.size();
|
||||
|
||||
if (racer.pRacer) {
|
||||
m_pRaceRings[racer.curRing]->Set_Target(true);
|
||||
}
|
||||
|
||||
racer.pAI ? SetTargetRing(racer.pAI) : SetTargetRing(racer.pRacer);
|
||||
}
|
||||
}
|
||||
|
||||
racer.prevPos = broomPos;
|
||||
racer.prevPos = currPos;
|
||||
}
|
||||
}
|
||||
|
||||
CRaceRing* CBroomRaceManager::GetTargetRing(CGameObject* pRacer)
|
||||
{
|
||||
|
||||
void CBroomRaceManager::SetTargetRing(CGameObject*pRacer)
|
||||
{
|
||||
for (auto& racer : m_Racers)
|
||||
{
|
||||
if (racer.pRacer == pRacer)
|
||||
return m_pRaceRings[racer.curRing];
|
||||
if (racer.pAI)
|
||||
{
|
||||
if (racer.pAI == pRacer)
|
||||
{
|
||||
if (racer.pAI)
|
||||
{
|
||||
racer.pAI->Set_RaceRing(m_pRaceRings[racer.curRing]);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (racer.pRacer)
|
||||
{
|
||||
if (racer.pRacer == pRacer)
|
||||
{
|
||||
racer.pRacer->Set_RaceRing(m_pRaceRings[racer.curRing]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void CBroomRaceManager::Push_BroomRacer(RacerInfo Info)
|
||||
{
|
||||
RacerInfo info;
|
||||
info.pRacer = Info.pRacer;
|
||||
info.pAI = Info.pAI;
|
||||
info.curRing = Info.curRing;
|
||||
info.prevPos = Info.prevPos;
|
||||
|
||||
if(Info.pAI)
|
||||
info.pAI->Set_RaceRing(m_pRaceRings[info.curRing]);
|
||||
else if(Info.pRacer)
|
||||
info.pRacer->Set_RaceRing(m_pRaceRings[info.curRing]);
|
||||
|
||||
m_Racers.push_back(info);
|
||||
SAFE_ADDREF(Info.pRacer);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "GameInstance.h"
|
||||
#include "Broom.h"
|
||||
#include "RaceRing.h"
|
||||
#include "CamPosition_Shoulder.h"
|
||||
#include "CamPosition_AI.h"
|
||||
#include "BroomRaceManager.h"
|
||||
|
||||
#pragma region STATE
|
||||
@@ -71,10 +71,11 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
|
||||
}
|
||||
|
||||
_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
|
||||
_float Y = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
|
||||
_float Z = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
|
||||
_float Y = m_pGameInstance->Real_Random_Float(-5.f, 5.f);
|
||||
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-200.f, Y, 0.f, 1.f));
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(X, Y, Z, 1.f));
|
||||
|
||||
#ifdef _DEBUG
|
||||
m_BasicEffect = make_unique<BasicEffect>(m_pDevice);
|
||||
@@ -85,20 +86,30 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
|
||||
m_Batch = make_unique<PrimitiveBatch<VertexPositionColor>>(m_pContext);
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
|
||||
m_pBroom->Set_Ride(true);
|
||||
|
||||
m_pBroomRaceManager = static_cast<CBroomRaceManager*>(pArg);
|
||||
|
||||
CBroomRaceManager::RacerInfo Info;
|
||||
|
||||
Info.pRacer = this;
|
||||
Info.pAI = this;
|
||||
Info.curRing = 0;
|
||||
Info.prevPos = Get_WorldPostion();
|
||||
|
||||
m_pBroomRaceManager->Push_BroomRacer(Info);
|
||||
|
||||
m_LaneOffsetX = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
|
||||
m_LaneOffsetY = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
|
||||
|
||||
m_TurnGain = m_pGameInstance->Real_Random_Float(0.85f, 1.15f);
|
||||
m_HeightGain = m_pGameInstance->Real_Random_Float(0.85f, 1.15f);
|
||||
|
||||
m_pBroom->Set_AISpeed(
|
||||
m_pGameInstance->Real_Random_Float(0.8f, 1.2f),
|
||||
m_pGameInstance->Real_Random_Float(0.8f, 1.2f)
|
||||
);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -106,11 +117,13 @@ void CBroomRacerAI::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
m_pRaceRing = m_pBroomRaceManager->GetTargetRing(this);
|
||||
|
||||
}
|
||||
|
||||
void CBroomRacerAI::Update(_float fTimeDelta)
|
||||
{
|
||||
Set_Input(fTimeDelta);
|
||||
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
@@ -125,7 +138,6 @@ void CBroomRacerAI::Update(_float fTimeDelta)
|
||||
|
||||
void CBroomRacerAI::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
Set_Input(fTimeDelta);
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
@@ -189,6 +201,7 @@ HRESULT CBroomRacerAI::Render()
|
||||
}
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CBroomRacerAI::Render_Shadow(SHADOW eType)
|
||||
@@ -247,8 +260,22 @@ HRESULT CBroomRacerAI::Ready_Components()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_VictorRookWood_Model");
|
||||
//m_strModelPrototypeTag = TEXT("Prototype_Component_Npc_Model");
|
||||
_int iRand = m_pGameInstance->Real_Random_Int(0, 2);
|
||||
|
||||
switch (iRand)
|
||||
{
|
||||
case 0:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_VictorRookWood_Model");
|
||||
break;
|
||||
case 1:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Npc_Model");
|
||||
break;
|
||||
case 2:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Ghost_Peeves_Model");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
|
||||
@@ -310,6 +337,10 @@ HRESULT CBroomRacerAI::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
_float Intensity = 0.f;
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMBIntensity", &Intensity, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -368,41 +399,59 @@ HRESULT CBroomRacerAI::Bind_ShaderParameters(_uint iMeshOrder)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CBroomRacerAI::Get_RingForwardTarget()
|
||||
{
|
||||
_vector ringPos = m_pRaceRing->Get_WorldPostion();
|
||||
_vector ringFwd = m_pRaceRing->Get_Component<CTransform>()->Get_State(STATE::RIGHT);
|
||||
ringFwd = XMVector3Normalize(ringFwd);
|
||||
|
||||
_vector targetPos = ringPos + ringFwd;
|
||||
targetPos = XMVectorSet(targetPos.m128_f32[0] + m_LaneOffsetX, targetPos.m128_f32[1] + m_LaneOffsetY, targetPos.m128_f32[2], 1.f);
|
||||
|
||||
return targetPos;
|
||||
}
|
||||
|
||||
_float CBroomRacerAI::ComputeTurnToRing()
|
||||
{
|
||||
_vector toRing = m_pRaceRing->Get_WorldPostion() - m_pBroom->Get_WorldPostion();
|
||||
toRing = XMVector3Normalize(XMVectorSetY(toRing, 0.f));
|
||||
_vector targetPos = Get_RingForwardTarget();
|
||||
|
||||
_vector toTarget = targetPos - m_pBroom->Get_WorldPostion();
|
||||
toTarget = XMVector3Normalize(XMVectorSetY(toTarget, 0.f));
|
||||
|
||||
_vector myLook = m_pBroom->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
myLook = XMVector3Normalize(XMVectorSetY(myLook, 0.f));
|
||||
|
||||
_vector cross = XMVector3Cross(myLook, toRing);
|
||||
_float turn = XMVectorGetY(cross);
|
||||
_float turn = XMVectorGetY(XMVector3Cross(myLook, toTarget));
|
||||
|
||||
_float DEAD = 0.05f;
|
||||
if (fabsf(turn) < DEAD)
|
||||
_float dist = XMVectorGetX(XMVector3Length(targetPos - m_pBroom->Get_WorldPostion()));
|
||||
|
||||
_float atten = clamp(dist / 40.f, 0.f, 1.f);
|
||||
|
||||
if (fabsf(turn) < 0.02f)
|
||||
return 0.f;
|
||||
|
||||
return clamp(turn, -1.f, 1.f);
|
||||
return clamp(turn * atten, -1.f, 1.f);
|
||||
}
|
||||
|
||||
|
||||
_float CBroomRacerAI::ComputeHeightAdjust()
|
||||
{
|
||||
_float dy = (XMVectorGetY(m_pRaceRing->Get_WorldPostion()) + 15.f)
|
||||
- XMVectorGetY(m_pBroom->Get_WorldPostion());
|
||||
_vector targetPos = Get_RingForwardTarget();
|
||||
_vector broomPos = m_pBroom->Get_WorldPostion();
|
||||
|
||||
_float DEAD = 5.f;
|
||||
_float RANGE = 40.f;
|
||||
_float dy = XMVectorGetY(targetPos) - XMVectorGetY(broomPos);
|
||||
|
||||
if (fabsf(dy) < DEAD)
|
||||
_float dist = XMVectorGetX(XMVector3Length(targetPos - broomPos));
|
||||
|
||||
_float atten = clamp(dist / 40.f, 0.f, 1.f);
|
||||
|
||||
if (fabsf(dy) < 1.f)
|
||||
return 0.f;
|
||||
|
||||
return clamp(dy / RANGE, -1.f, 1.f);
|
||||
return clamp((dy / 20.f) * atten, -1.f, 1.f);
|
||||
}
|
||||
|
||||
|
||||
|
||||
CBroomRacerAI* CBroomRacerAI::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CBroomRacerAI* pInstance = new CBroomRacerAI(pDevice, pContext);
|
||||
@@ -435,7 +484,7 @@ void CBroomRacerAI::Free()
|
||||
SAFE_RELEASE(m_pBroomModel);
|
||||
SAFE_RELEASE(m_pBroomTransform);
|
||||
SAFE_RELEASE(m_pBroom);
|
||||
SAFE_RELEASE(m_pCamPosition_ShoulderPart);
|
||||
SAFE_RELEASE(m_pCamPosition_AIPart);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -493,9 +542,10 @@ HRESULT CBroomRacerAI::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
|
||||
if (!m_pBroom->Get_Hover())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBroomRacerAI::Behavior_Broom_HoverExit()
|
||||
@@ -520,34 +570,19 @@ HRESULT CBroomRacerAI::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
if (!m_pBroom->Get_Hover())
|
||||
{
|
||||
|
||||
if (Y > 0.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
|
||||
}
|
||||
else if (Y < 0.f)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
|
||||
}
|
||||
|
||||
_float ax = fabsf(X);
|
||||
_float ay = fabsf(Y);
|
||||
_float az = fabsf(Z);
|
||||
|
||||
if (ay > ax && ay > az)
|
||||
{
|
||||
if (Y > 0)
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
|
||||
else
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FWD];
|
||||
}
|
||||
else if (ax >= az)
|
||||
{
|
||||
if (ay >= ax)
|
||||
{
|
||||
if (Y > 0)
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
|
||||
else
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FWD];
|
||||
}
|
||||
else {
|
||||
if (X < 0)
|
||||
@@ -561,13 +596,7 @@ HRESULT CBroomRacerAI::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Y > 0)
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
|
||||
else if (Y< 0)
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FWD];
|
||||
}
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FWD];
|
||||
}
|
||||
|
||||
|
||||
@@ -577,9 +606,10 @@ HRESULT CBroomRacerAI::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
if (m_pBroom->Get_Hover())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBroomRacerAI::Behavior_Broom_FlyExit()
|
||||
@@ -606,9 +636,10 @@ HRESULT CBroomRacerAI::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
|
||||
if (m_pBroom->Get_Hover())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBroomRacerAI::Behavior_Broom_TurboFlyExit()
|
||||
@@ -741,18 +772,24 @@ void CBroomRacerAI::Set_Input(_float fTimeDelta)
|
||||
_float targetX = ComputeTurnToRing();
|
||||
_float targetY = ComputeHeightAdjust();
|
||||
|
||||
_float SMOOTH = 6.f;
|
||||
CBroom::BroomInput InputDesc{};
|
||||
|
||||
m_fSmoothX += (targetX - m_fSmoothX) * SMOOTH * fTimeDelta;
|
||||
m_fSmoothY += (targetY - m_fSmoothY) * SMOOTH * fTimeDelta;
|
||||
InputDesc.X = 0.f;
|
||||
InputDesc.Y = 0.f;
|
||||
InputDesc.Z = 0.f;
|
||||
|
||||
/*if (m_bMove)
|
||||
{*/
|
||||
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));
|
||||
|
||||
CBroom::BroomInput InputDesc;
|
||||
InputDesc.Z = 1.f;
|
||||
InputDesc.X = m_fSmoothX;
|
||||
InputDesc.Y = m_fSmoothY;
|
||||
InputDesc.bHoverToggle = false;
|
||||
InputDesc.bTurbo = false;
|
||||
|
||||
m_pBroom->Set_Input(InputDesc);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -123,6 +123,9 @@ void CBroom::Behavior_MoveEnter()
|
||||
|
||||
HRESULT CBroom::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (false == m_bMove)
|
||||
return S_OK;
|
||||
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
@@ -183,6 +186,8 @@ void CBroom::Behavior_Broom_HoverEnter()
|
||||
|
||||
HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (false == m_bMove)
|
||||
return S_OK;
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
_bool bFwd = m_Input.Z > 0.f;
|
||||
@@ -317,15 +322,6 @@ HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
|
||||
}
|
||||
|
||||
if (bShift)
|
||||
{
|
||||
m_bHoverToggle = false;
|
||||
}
|
||||
if (bTurbo)
|
||||
{
|
||||
m_bTurbo = true;
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
|
||||
}
|
||||
|
||||
@@ -376,6 +372,7 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
|
||||
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
|
||||
{
|
||||
|
||||
if (bFwd) {
|
||||
m_fTargetSpeed = m_fFlyMaxSpeed;
|
||||
}
|
||||
@@ -387,7 +384,13 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
m_fTargetSpeed = m_fFlyMaxSpeed;
|
||||
}
|
||||
|
||||
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fFlyAccel;
|
||||
if (m_pParentUnit->IsAI())
|
||||
{
|
||||
m_fTargetSpeed *= m_fAICondition;
|
||||
m_fTargetSpeed *= m_fAISpeedMul;
|
||||
}
|
||||
|
||||
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fFlyAccel* m_fAIAccelMul;
|
||||
m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
|
||||
|
||||
_float fTargetVertSpeed = 0.f;
|
||||
@@ -495,15 +498,6 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (bShift)
|
||||
{
|
||||
m_bHoverToggle = true;
|
||||
}
|
||||
if (bTurbo)
|
||||
{
|
||||
m_bTurbo = true;
|
||||
}
|
||||
|
||||
if (m_bHoverToggle)
|
||||
{
|
||||
m_fTargetSpeed = 0.f;
|
||||
@@ -515,17 +509,17 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
|
||||
|
||||
if (bShift && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
|
||||
/*if (bShift && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
|
||||
{
|
||||
m_bHoverToggle = false;
|
||||
}
|
||||
}*/
|
||||
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
|
||||
{
|
||||
if (fRatio >= 0.5f && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::HOVER);
|
||||
return E_FAIL;
|
||||
}
|
||||
return E_FAIL;
|
||||
}
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
@@ -573,19 +567,6 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
|
||||
_bool bShift = m_Input.bHoverToggle;
|
||||
_bool bTurbo = m_Input.bTurbo;
|
||||
|
||||
if (bShift)
|
||||
{
|
||||
m_bHoverToggle = true;
|
||||
}
|
||||
|
||||
if (bTurbo)
|
||||
{
|
||||
m_bTurbo = true;
|
||||
}
|
||||
else {
|
||||
m_bTurbo = false;
|
||||
}
|
||||
|
||||
if (!m_bHoverToggle)
|
||||
{
|
||||
if (SUCCEEDED(InputMove()))
|
||||
@@ -649,20 +630,20 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (vInput.z <= 0.f)
|
||||
{
|
||||
Camera_InterpTurn(fTimeDelta * 0.3f);
|
||||
Camera_InterpTurn(fTimeDelta * 0.35f);
|
||||
}
|
||||
else {
|
||||
Camera_InterpTurn(fTimeDelta * 0.15f);
|
||||
Camera_InterpTurn(fTimeDelta * 0.2f);
|
||||
}
|
||||
}
|
||||
else if (vInput.x > 0.f)
|
||||
{
|
||||
if (vInput.z <= 0.f)
|
||||
{
|
||||
Camera_InterpTurn(fTimeDelta * 0.3f);
|
||||
Camera_InterpTurn(fTimeDelta * 0.35f);
|
||||
}
|
||||
else {
|
||||
Camera_InterpTurn(fTimeDelta * 0.15f);
|
||||
Camera_InterpTurn(fTimeDelta * 0.2f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -837,7 +818,7 @@ void CBroom::Add_FSM()
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_MoveExit(); };
|
||||
Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
|
||||
if (m_bHoverToggle)
|
||||
if (m_bHoverToggle && m_bMove)
|
||||
{
|
||||
_float3 fMove = m_pGameInstance->Get_MouseMove();
|
||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.02f);
|
||||
@@ -900,15 +881,6 @@ void CBroom::Set_Anim()
|
||||
m_Animation[STATEANIM::BROOM_FLY_LEFT_B] = { 15,true };
|
||||
m_Animation[STATEANIM::BROOM_FLY_RIGHT_B] = { 16,true };
|
||||
m_Animation[STATEANIM::BROOM_FLY_UP_B] = { 17,true };
|
||||
//Mount 29
|
||||
//호버 스탑 6
|
||||
//호버 제자리 24
|
||||
//플라이 업 17 다운 13 왼쪽15 오른쪽 16
|
||||
|
||||
//호버 다운 25
|
||||
//호버 왼쪽 26
|
||||
// 호버 오른쪽 27
|
||||
//호버 업 28
|
||||
}
|
||||
#pragma endregion State
|
||||
|
||||
|
||||
@@ -0,0 +1,378 @@
|
||||
#include "pch.h"
|
||||
#include "CamPosition_AI.h"
|
||||
#include "CamPosition_Target.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Camera_Gaze.h"
|
||||
#include "Player.h"
|
||||
|
||||
CCamPosition_AI::CCamPosition_AI(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CCamPosition(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
CCamPosition_AI::CCamPosition_AI(const CCamPosition_AI& rhs)
|
||||
: CCamPosition(rhs)
|
||||
{
|
||||
}
|
||||
HRESULT CCamPosition_AI::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CCamPosition_AI::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_SubParts())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CAMERA_AI_DESC* pDesc = static_cast<CAMERA_AI_DESC*>(pArg);
|
||||
{
|
||||
m_pLookTransform = m_pTarget_LookPart->Get_Component<CTransform>();
|
||||
m_pFollowTransform = m_pTarget_FollowPart->Get_Component<CTransform>();
|
||||
m_pParentPos = m_pParentTransformCom->Get_StatePtr(STATE::POSITION);
|
||||
m_vDampingStartPosition = *m_pParentPos;
|
||||
m_vDampingDestPosition = *m_pParentPos;
|
||||
m_vDampingLerpTimer.x = m_vDampingLerpTimer.y;
|
||||
m_vFocalRatio.x = m_vFocalRatio.y;
|
||||
m_fFocalRatioTargetValue = m_vFocalRatio.y;
|
||||
|
||||
_vector vLookTargetPos = Calc_LookTargetPos();
|
||||
m_pLookTransform->Set_State(STATE::POSITION, vLookTargetPos);
|
||||
m_pFollowTransform->Set_State(STATE::POSITION, Calc_FollowTargetPos(vLookTargetPos) + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||
}
|
||||
m_bDampingParentPos = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CCamPosition_AI::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_AI))) {
|
||||
return;
|
||||
}
|
||||
{
|
||||
if (false == m_bDampingParentPos) {
|
||||
m_vDampingLerpTimer.x = 0.f;
|
||||
m_vDampingStartPosition = *m_pParentPos;
|
||||
m_vDampingDestPosition = *m_pParentPos;
|
||||
}
|
||||
else {
|
||||
m_vDampingLerpTimer.x += fTimeDelta;
|
||||
if (m_vDampingLerpTimer.x >= m_vDampingLerpTimer.y) {
|
||||
XMStoreFloat4(&m_vDampingStartPosition, Calc_DampingParentPos());
|
||||
m_vDampingLerpTimer.x = max(m_vDampingLerpTimer.x - m_vDampingLerpTimer.y, 0.f);
|
||||
m_vDampingDestPosition = *m_pParentPos;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (true == m_bMovable) {
|
||||
m_vAccRotDegrees.y += m_pGameInstance->Get_MouseMove().x * m_fMouseSensor;
|
||||
m_vAccRotDegrees.x += m_pGameInstance->Get_MouseMove().y * m_fMouseSensor;
|
||||
CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccRotDegrees);
|
||||
}
|
||||
{
|
||||
_vector vLookTargetPos = Calc_LookTargetPos();
|
||||
m_pLookTransform->Set_State(STATE::POSITION, vLookTargetPos);
|
||||
m_pFollowTransform->Set_State(STATE::POSITION, Calc_FollowTargetPos(vLookTargetPos));
|
||||
|
||||
_float focalRatioLerpAlpha = fTimeDelta * m_fFocalRatioLerpSpeed;
|
||||
if (focalRatioLerpAlpha > 1.f)
|
||||
{
|
||||
focalRatioLerpAlpha = 1.f;
|
||||
}
|
||||
|
||||
m_vFocalRatio.x = CMyTools::Lerp_f1D(m_vFocalRatio.x, m_fFocalRatioTargetValue, focalRatioLerpAlpha);
|
||||
}
|
||||
}
|
||||
|
||||
void CCamPosition_AI::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->Key_Up(DIK_HOME)) {
|
||||
|
||||
m_pBinded_Camera->Toggle_AIPriority();
|
||||
}
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_AI))) {
|
||||
return;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void CCamPosition_AI::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_AI))) {
|
||||
return;
|
||||
}
|
||||
if (true == m_bShoulderLerp)
|
||||
{
|
||||
m_vShoulderLerpTimer.x += fTimeDelta;
|
||||
|
||||
_float fLerpRatio = m_vShoulderLerpTimer.x/m_vShoulderLerpTimer.y;
|
||||
if (fLerpRatio >= 1.f) {
|
||||
fLerpRatio = 1.f;
|
||||
m_bShoulderLerp = false;
|
||||
}
|
||||
if (false == m_bShoulderLerp) {
|
||||
m_vShoulderLerpTimer.x = 0.f;
|
||||
m_fFollowTargetIncludedAngleDegree = m_vShoulderLerpDegree.y;
|
||||
} else {
|
||||
m_fFollowTargetIncludedAngleDegree = CMyTools::Lerp_f1D(m_vShoulderLerpDegree.x, m_vShoulderLerpDegree.y, fLerpRatio);
|
||||
}
|
||||
}
|
||||
if (true == m_bStartGame) {
|
||||
m_vStartLerpTimer.x += fTimeDelta;
|
||||
if (m_vStartLerpTimer.x >= m_vStartLerpTimer.y) {
|
||||
m_vStartLerpTimer.x = 0.f;
|
||||
m_bDampingParentPos = true;
|
||||
m_bStartGame = false;
|
||||
}
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI_OVERLAY, this);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CCamPosition_AI::Render()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_vector CCamPosition_AI::Get_WorldPostion()
|
||||
{
|
||||
return m_pTransformCom->Get_State(STATE::POSITION);
|
||||
}
|
||||
|
||||
_vector CCamPosition_AI::Calc_LookTargetPos()
|
||||
{
|
||||
_vector vDestPos = Calc_DampingParentPos();
|
||||
|
||||
_vector vFoward = { 0.f, 0.f, 1.f, 0.f };
|
||||
_vector vRotCameraq = XMQuaternionRotationRollPitchYaw(XMConvertToRadians(m_vAccRotDegrees.x + m_vAccRealDegrees.x), XMConvertToRadians(m_vAccRotDegrees.y + m_vAccRealDegrees.y), 0.f);
|
||||
vFoward = XMVector3Normalize(XMVector3Rotate(vFoward, vRotCameraq));
|
||||
|
||||
_vector vHeadPos = vDestPos + XMVectorSet(0.f, m_fHeadHeight, 0.f, 0.f);
|
||||
_vector vFowardPos = vHeadPos + vFoward * m_fCameraFowardDistance;
|
||||
|
||||
return XMVectorLerp(vHeadPos, vFowardPos, m_vFocalRatio.x);
|
||||
}
|
||||
_vector CCamPosition_AI::Calc_FollowTargetPos(_vector vLookTargetWorldPos)
|
||||
{
|
||||
_float fBestFollowTargetDistance = m_fCameraBarrelLength * (1.f - m_fDefaultCameraBackToFrontRatio);
|
||||
|
||||
_vector fRotQ = XMQuaternionRotationAxis(XMVectorSet(0.f, 1.f, 0.f, 0.f), XMConvertToRadians(-m_fFollowTargetIncludedAngleDegree));
|
||||
_vector vDestPos = Calc_DampingParentPos();
|
||||
_vector vHeadPos = vDestPos + XMVectorSet(0.f, m_fHeadHeight, 0.f, 0.f);
|
||||
_vector vDir = vHeadPos - vLookTargetWorldPos;
|
||||
_float fLengthSQ = XMVectorGetX(XMVector3LengthSq(vDir));
|
||||
|
||||
if (fLengthSQ < FLT_EPSILON)
|
||||
{
|
||||
vDir = XMVectorSet(0.f, 0.f, 1.f, 0.f);
|
||||
vDir = XMVector3Rotate(vDir, fRotQ);
|
||||
}
|
||||
else
|
||||
{
|
||||
vDir = XMVector3Normalize(vDir);
|
||||
vDir = XMVector3Rotate(vDir, fRotQ);
|
||||
}
|
||||
|
||||
m_BufferHit = {};
|
||||
_bool bHit = m_pGameInstance->SphereCast( 0.25f, vLookTargetWorldPos, vDir, fBestFollowTargetDistance,
|
||||
PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eSTATIC/*|PSX::PxQueryFlag::eDYNAMIC*/, m_BufferHit);
|
||||
|
||||
if (false == bHit) {
|
||||
return vLookTargetWorldPos + vDir * fBestFollowTargetDistance;
|
||||
}
|
||||
|
||||
vector<PSX::PxSweepHit> sweepHits;
|
||||
_uint iTouchCount = m_BufferHit.getNbTouches();
|
||||
|
||||
if (true == m_BufferHit.hasBlock) {
|
||||
sweepHits.reserve(iTouchCount + 1);
|
||||
sweepHits.emplace_back(m_BufferHit.block);
|
||||
}
|
||||
else {
|
||||
sweepHits.reserve(iTouchCount);
|
||||
}
|
||||
|
||||
auto* touches = m_BufferHit.getTouches();
|
||||
for (_uint index = 0; index < iTouchCount; ++index) {
|
||||
sweepHits.emplace_back(touches[index]);
|
||||
}
|
||||
CMyTools::SortHitsByDistance(sweepHits);
|
||||
|
||||
// 벽면에서 팔로우 타겟을 살짝 띄우는 오프셋
|
||||
_float fCameraSurfaceOffset = 0.05f;
|
||||
_float fCameraMinDistance = 0.20f;
|
||||
_float fDistance = { };
|
||||
_float fFinalTargetDistance = fBestFollowTargetDistance;
|
||||
for (auto& hit : sweepHits)
|
||||
{
|
||||
fDistance = hit.distance - fCameraSurfaceOffset;
|
||||
if (fDistance < fFinalTargetDistance) {
|
||||
if (fDistance < fCameraMinDistance) {
|
||||
fDistance = fCameraMinDistance;
|
||||
}
|
||||
fFinalTargetDistance = fDistance;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
_float fSafeDistance = fBestFollowTargetDistance;
|
||||
if (fSafeDistance < FLT_EPSILON3)
|
||||
{
|
||||
fSafeDistance = FLT_EPSILON3;
|
||||
}
|
||||
|
||||
_float fBestFocalRatio = m_vFocalRatio.y * fFinalTargetDistance / fSafeDistance;
|
||||
|
||||
if (fBestFocalRatio < m_fFocalRatioMin) {
|
||||
fBestFocalRatio = m_fFocalRatioMin;
|
||||
} else if (fBestFocalRatio > m_vFocalRatio.y) {
|
||||
fBestFocalRatio = m_vFocalRatio.y;
|
||||
}
|
||||
|
||||
m_fFocalRatioTargetValue = fBestFocalRatio;
|
||||
|
||||
return vLookTargetWorldPos + vDir * fFinalTargetDistance;
|
||||
}
|
||||
_vector CCamPosition_AI::Calc_DampingParentPos()
|
||||
{
|
||||
_float duration = max(m_vDampingLerpTimer.y, FLT_EPSILON);
|
||||
_float fTime = m_vDampingLerpTimer.x / duration;
|
||||
fTime = CMyTools::Saturate(fTime); // 0~1
|
||||
|
||||
return XMVectorLerp(XMLoadFloat4(&m_vDampingStartPosition), XMLoadFloat4(&m_vDampingDestPosition), fTime);
|
||||
}
|
||||
void CCamPosition_AI::Set_CameraShake(_float fXShock, _float fYShock)
|
||||
{
|
||||
m_vAccRealDegrees.x = fXShock;
|
||||
m_vAccRealDegrees.y = fYShock;
|
||||
}
|
||||
_vector CCamPosition_AI::Get_ShoulderGlobalPos()
|
||||
{
|
||||
// Right/Left 숄더를 로컬 X 부호로 결정
|
||||
_float shoulderSideSign = (true == m_bRightShoulderActive) ? 1.f : -1.f;
|
||||
|
||||
_float3 shoulderLocalPosition = m_vShoulderLocalPos;
|
||||
shoulderLocalPosition.x *= shoulderSideSign;
|
||||
|
||||
_vector shoulderLocalOffset = XMLoadFloat3(&shoulderLocalPosition);
|
||||
|
||||
// 카메라 회전(현재 마우스로 누적된 pitch/yaw)
|
||||
_vector cameraRotationQuaternion = XMQuaternionRotationRollPitchYaw(
|
||||
XMConvertToRadians(m_vAccRotDegrees.x + m_vAccRealDegrees.x),
|
||||
XMConvertToRadians(m_vAccRotDegrees.y + m_vAccRealDegrees.y), 0.f
|
||||
);
|
||||
|
||||
// 카메라 로컬 오프셋을 카메라 회전에 맞춰 월드로 회전
|
||||
_vector shoulderWorldOffset = XMVector3Rotate(shoulderLocalOffset, cameraRotationQuaternion);
|
||||
|
||||
return shoulderWorldOffset;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CCamPosition_AI::Ready_Components(void* pArg)
|
||||
{
|
||||
CTransform::TRANSFORM_DESC DescTransfrom = {};
|
||||
DescTransfrom.fRadius = 30.f;
|
||||
DescTransfrom.fRotationPerSec = 0.f;
|
||||
DescTransfrom.fSpeedPerSec = 0.f;
|
||||
if (FAILED(__super::Ready_Components(&DescTransfrom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CCamPosition_AI::Ready_SubParts()
|
||||
{
|
||||
{
|
||||
CCamPosition_Target::CAMERAPOSITION_TARGET_DESC Desc{};
|
||||
Desc.pParentTransform = m_pTransformCom;
|
||||
m_pTarget_LookPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc);
|
||||
m_pTarget_LookPart->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -10.4f, 1.f));
|
||||
m_pTarget_FollowPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc);
|
||||
m_pTarget_FollowPart->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f));
|
||||
}
|
||||
|
||||
CCamera_Gaze::CAMERA_GAZE_DESC CameraDesc{};
|
||||
CameraDesc.fFovy = XMConvertToRadians(60.0f);
|
||||
CameraDesc.fNear = 0.1f;
|
||||
CameraDesc.fFar = 500.f;
|
||||
CameraDesc.fSpeedPerSec = 5.f;
|
||||
CameraDesc.fRotationPerSec = XMConvertToRadians(90.f);
|
||||
CameraDesc.pFollowTarget = m_pTarget_FollowPart;
|
||||
CameraDesc.pLookTarget = m_pTarget_LookPart;
|
||||
CameraDesc.iPriority = 102;
|
||||
CameraDesc.pCameraKey = CAMERA_AI;
|
||||
CameraDesc.bEnableTransitionLerp = true;
|
||||
CameraDesc.bEnableFollowLerp = false;
|
||||
CameraDesc.bEnableLookLerp = false;
|
||||
CameraDesc.vTransitionTime = { 0.f, 1.f };
|
||||
CameraDesc.vFollowLerpTime = { 0.f, TIMER_SHORT_LERP };
|
||||
CameraDesc.vLookLerpTime = { 0.f, TIMER_SHORT_LERP };
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCamera_Gaze>(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &CameraDesc, nullptr, &m_pBinded_Camera)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, m_pBinded_Camera, CAMERA_AI);
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_AI, true))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CCamPosition_AI* CCamPosition_AI::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CCamPosition_AI* pInstance = new CCamPosition_AI(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CCamPosition_AI");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
CCamPosition_AI* CCamPosition_AI::Clone(void* pArg, class CGameObject* pOWner)
|
||||
{
|
||||
CCamPosition_AI* pInstance = new CCamPosition_AI(*this);
|
||||
pInstance->m_pOwner = pOWner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CCamPosition_AI");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
void CCamPosition_AI::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pTarget_LookPart);
|
||||
SAFE_RELEASE(m_pTarget_FollowPart);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CCamPosition_AI::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Cam_Shoulder")) {
|
||||
m_pTransformCom->Describe_Entity();
|
||||
|
||||
GUI::Text("fMouseSensor : %.1f", m_fMouseSensor);
|
||||
GUI::SliderFloat("m_fFollowTargetIncludedAngleDegree", &m_fFollowTargetIncludedAngleDegree, -360.f, 360.f, "%.1f");
|
||||
GUI::SliderFloat("m_fDefaultCameraBackToFrontRatio", &m_fDefaultCameraBackToFrontRatio, -1.f, 1.f);
|
||||
GUI::SliderFloat("m_vFocalRatio", &m_vFocalRatio.x, 0.f, 1.f);
|
||||
GUI::SliderFloat("m_fCameraFowardDistance", &m_fCameraFowardDistance, 0.f, 4.f);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -95,6 +95,10 @@ void CCamPosition_Shoulder::Update(_float fTimeDelta)
|
||||
|
||||
m_pBinded_Camera->Toggle_Priority();
|
||||
}
|
||||
if (m_pGameInstance->Key_Up(DIK_HOME)) {
|
||||
|
||||
m_pBinded_Camera->Toggle_AIPriority();
|
||||
}
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -109,6 +109,17 @@ void CCamera_Gaze::Toggle_Priority()
|
||||
}
|
||||
}
|
||||
|
||||
void CCamera_Gaze::Toggle_AIPriority()
|
||||
{
|
||||
if (m_iPriority == 55) {
|
||||
m_iPriority = 102;
|
||||
}
|
||||
else {
|
||||
m_iPriority = 55;
|
||||
m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_SHOULDER, false);
|
||||
}
|
||||
}
|
||||
|
||||
void CCamera_Gaze::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (false == m_bActive) {
|
||||
|
||||
@@ -279,7 +279,10 @@ void CDialogue::Free()
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CDialogue::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ HRESULT CEffectObject::Render_Blur()
|
||||
}
|
||||
}
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONPOS)
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NONPOS || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT_NONPOS)
|
||||
BlurPass = SHADER_PASS_INSTANCE_MODEL::NONPOS_BLUR;
|
||||
|
||||
if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::WB_CULLING)
|
||||
@@ -365,6 +365,22 @@ HRESULT CEffectObject::Load(CEffect_Container::EFFECT_SAVE_INFO EffectSaveInfo,
|
||||
}
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isNomalMap)
|
||||
{
|
||||
|
||||
m_strNomalMapName = EffectSaveInfo.wstrNomalName;;
|
||||
|
||||
if (m_strDistortionName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strNomalMapName,
|
||||
reinterpret_cast<CComponent**>(&m_pNormal_TextureCom))))
|
||||
{
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_strModelName = EffectSaveInfo.wstrModelName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strModelName,
|
||||
@@ -627,6 +643,38 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (m_EffectInfo.isNomalMap)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strNomalMapName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strNomalMapName,
|
||||
reinterpret_cast<CComponent**>(&m_pNormal_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
size_t iComponentLength = {};
|
||||
@@ -719,7 +767,7 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
if (m_EffectInfo.isMotionBlur == true)
|
||||
if (m_EffectInfo.isMotionBlur == true || m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::DEFAULT)
|
||||
{
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
@@ -1008,7 +1056,9 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoDissolveSmoothStep", &m_EffectInfo.isNoDissolveSmoothStep, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (m_pDiffuse_TextureCom != nullptr)
|
||||
@@ -1053,7 +1103,22 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pNormal_TextureCom != nullptr)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormal_TextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_float fUsingSurfaceParams = MRO_PARAMETER;
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_SurfaceParamsTexture", m_pSurface_TextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
@@ -1106,6 +1171,8 @@ void CEffectObject::Free()
|
||||
SAFE_RELEASE(m_pDissolve_TextureCom);
|
||||
SAFE_RELEASE(m_pEmissive_TextureCom);
|
||||
SAFE_RELEASE(m_pDistortion_TextureCom);
|
||||
SAFE_RELEASE(m_pNormal_TextureCom);
|
||||
SAFE_RELEASE(m_pSurface_TextureCom);
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pInstance_ModelCom);
|
||||
|
||||
@@ -119,6 +119,12 @@ HRESULT CEffectParts::Ready_Components(void* pArg)
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Base_MRO"),
|
||||
reinterpret_cast<CComponent**>(&m_pSurface_TextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,6 +42,8 @@
|
||||
#include "Blink.h"
|
||||
#include "Transformation.h"
|
||||
#include "Avadakedavra.h"
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -81,7 +83,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
m_isActiveEffectCreate = true;
|
||||
@@ -560,6 +562,29 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_FIREBALL, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_FireBall* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_FireBall>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::RANROK_BREATH, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CRanrok_Breath* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CRanrok_Breath>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -347,6 +347,30 @@ HRESULT CEffect_Container::Load_Data(const _char* pPath)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isNomalMap)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrNomalName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
size_t iComponentLength = {};
|
||||
@@ -595,7 +619,6 @@ HRESULT CEffect_Container::Reset_EffectParts()
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_int CEffect_Container::CollisionCheck()
|
||||
{
|
||||
_bool bIsCollide = { false };
|
||||
@@ -633,10 +656,10 @@ _int CEffect_Container::CollisionCheck()
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
//switch (pUserData->eKind)
|
||||
//{
|
||||
|
||||
|
||||
//case PHYSX_KIND::BODY_STATIC:
|
||||
//case PHYSX_KIND::BODY_DYNAMIC:
|
||||
//{
|
||||
@@ -654,7 +677,6 @@ _int CEffect_Container::CollisionCheck()
|
||||
return -1;
|
||||
|
||||
}
|
||||
|
||||
ON_COLLISION_INFO CEffect_Container::SweepTarget(_vector StartPos, _vector EndPos, _float fRadius , _bool isTerrainCollision )
|
||||
{
|
||||
_vector vStartPos = StartPos;
|
||||
@@ -880,6 +902,83 @@ ON_COLLISION_INFO CEffect_Container::MonsterSweepTarget(_vector StartPos, _vecto
|
||||
return tagCollInfo;
|
||||
}
|
||||
|
||||
ON_COLLISION_INFO CEffect_Container::MonsterRayCast(_vector StartPos, _vector _vDir, _float _fLength, _uint iMaxHitCapacity)
|
||||
{
|
||||
_vector vStartPos = StartPos;
|
||||
_vector vDir = _vDir;
|
||||
|
||||
_float fLength = _fLength;
|
||||
|
||||
vector<PSX::PxRaycastHit> Raycasts = {};
|
||||
Raycasts.resize(iMaxHitCapacity);
|
||||
|
||||
_bool bHit = m_pGameInstance->RayCast(vStartPos, vDir, fLength, Raycasts.data(), iMaxHitCapacity, m_iHitCount);
|
||||
|
||||
ON_COLLISION_INFO tagCollInfo = {};
|
||||
|
||||
for (_uint i = 0; i < iMaxHitCapacity; i++)
|
||||
{
|
||||
PSX::PxRigidActor* pActor = Raycasts[i].actor;
|
||||
PSX::PxShape* pShape = Raycasts[i].shape;
|
||||
|
||||
|
||||
tagCollInfo.vWorldPos.w = 1.f;
|
||||
|
||||
if (bHit) {
|
||||
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &Raycasts[i].position, sizeof(Raycasts[i].position));
|
||||
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &Raycasts[i].normal, sizeof(Raycasts[i].normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fLength;
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PhsXUserData* pUserData = static_cast<PhsXUserData*>(pActor->userData);
|
||||
tagCollInfo.pObject = pUserData->pOwner;
|
||||
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
|
||||
case PXOBJECT::PLAYER:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::SKILL_PROTEGO:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::TERRAIN:
|
||||
{
|
||||
|
||||
m_bHit = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return tagCollInfo;
|
||||
}
|
||||
|
||||
return tagCollInfo;
|
||||
}
|
||||
|
||||
|
||||
void CEffect_Container::Update_Event(_float fTimeDelta)
|
||||
{
|
||||
|
||||
@@ -134,6 +134,14 @@ HRESULT CInfoInstance::Load_ChestElemet(const _char* pFileName, const _wchar* pL
|
||||
{
|
||||
return m_pMapInfo->Load_ChestElemet(pFileName, pLayerTag);
|
||||
}
|
||||
HRESULT CInfoInstance::Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag)
|
||||
{
|
||||
return m_pMapInfo->Load_WorldDecal(pFileName, pLayerTag);
|
||||
}
|
||||
HRESULT CInfoInstance::Load_PointLights(const _char* pFileName, const _wchar* pLayerTag)
|
||||
{
|
||||
return m_pMapInfo->Load_PointLights(pFileName, pLayerTag);;
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region SPELL_INFO
|
||||
|
||||
@@ -34,6 +34,14 @@ void CInteractiveInfo::Change_Level()
|
||||
for (CMapElement_Interactable* pInteractive : m_ActiveInteractive) {
|
||||
SAFE_RELEASE(pInteractive);
|
||||
} m_ActiveInteractive.clear();
|
||||
|
||||
for (CMapElement_Interactable* pInteractive : m_PoolingInteractive) {
|
||||
SAFE_RELEASE(pInteractive);
|
||||
} m_PoolingInteractive.clear();
|
||||
|
||||
for (CMapElement_Interactable* pInteractive : m_PoolingActiveInteractive) {
|
||||
SAFE_RELEASE(pInteractive);
|
||||
} m_PoolingActiveInteractive.clear();
|
||||
}
|
||||
|
||||
HRESULT CInteractiveInfo::Regist_ActiveInteractive(CMapElement_Interactable* pUnit)
|
||||
@@ -191,6 +199,7 @@ HRESULT CInteractiveInfo::Ready_PoolingInteractive()
|
||||
|
||||
if (nullptr != pInteractable)
|
||||
{
|
||||
SAFE_ADDREF(pInteractable);
|
||||
m_PoolingInteractive.push_back(pInteractable);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -134,8 +134,8 @@ HRESULT CLevel_Field::Ready_Lights()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_float4 vDiffuse = _float4(0.3f, 0.3f, 0.3f, 0.f);
|
||||
_float4 vAmbient = _float4(0.12f, 0.12f, 0.12f, 0.f);
|
||||
_float4 vDiffuse = _float4(0.745f, 0.797f, 0.8f, 0.f);
|
||||
_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f);
|
||||
_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f);
|
||||
|
||||
pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
@@ -187,11 +187,13 @@ HRESULT CLevel_Field::Ready_Layer_SkyBox()
|
||||
|
||||
HRESULT CLevel_Field::Ready_Background()
|
||||
{
|
||||
_float4 vColor = _float4(0.2f, 0.2f, 0.2f, 1.f);
|
||||
_float4 vColor = _float4(0.2f, 0.246f, 0.253f, 1.f);
|
||||
m_pGameInstance->Set_FogColor(vColor);
|
||||
m_pGameInstance->Set_Fog(10.f, 5.f);
|
||||
m_pGameInstance->Set_Fog(10.f, 8.f);
|
||||
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Dungeon_Map_Data", LAYER_BACKGROUND);
|
||||
CInfoInstance::GetInstance()->Load_WorldDecal("Duengon_Decal_Data", LAYER_BACKGROUND);
|
||||
CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data", LAYER_BACKGROUND);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -577,6 +577,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
CPlayer::PLAYERDESC playerDesc = {};
|
||||
playerDesc.vPos = _float4(-21.f, 0.f, -14.f, 1.f);
|
||||
playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
|
||||
playerDesc.pBroomRaceManager = m_pBroomRaceManager;
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &playerDesc))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -603,7 +604,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_BroomRacerAI(const _wstring& strLayerTag)
|
||||
{
|
||||
for (_uint i = 0; i < 1; ++i) {
|
||||
for (_uint i = 0; i < 10; ++i) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroomRacerAI>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_pBroomRaceManager))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -618,8 +619,12 @@ 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) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_pBroomRaceManager))) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -665,11 +670,13 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#if 진우
|
||||
#else
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#if 진우
|
||||
#else
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "CamPosition_Shoulder.h"
|
||||
#include "CamPosition_Socket.h"
|
||||
#include "CamPosition_Target.h"
|
||||
#include "CamPosition_AI.h"
|
||||
#include "SkyBox.h"
|
||||
#include "Troll_Weapon.h"
|
||||
#include "Troll_Rock.h"
|
||||
@@ -180,6 +181,8 @@
|
||||
#include "Mage_Down_Attack.h"
|
||||
#include "Mage_Nomal_Attack.h"
|
||||
#include "MageSide.h"
|
||||
#include "Ranrok_FireBall.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
|
||||
#include "StunEffect.h"
|
||||
#include "Box_Splesh.h"
|
||||
@@ -212,6 +215,8 @@
|
||||
#include "MapElement_Chest.h"
|
||||
#include "MapElement_Chest_Lid.h"
|
||||
#include "MapElement_Static.h"
|
||||
#include "WorldDecal.h"
|
||||
#include "PointLight.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -1417,6 +1422,11 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Base_MRO"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment//MasterMaterials/BaseTextures/T_Base011_MRO.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#pragma region EFFECT
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Textures/Effect/Trails", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
@@ -1520,7 +1530,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"),
|
||||
VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
@@ -1688,7 +1698,6 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
Desc1.vLocalTranslation = { 0.f, 0.f, 0.f };
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1756,11 +1765,6 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VictorRookWood_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
||||
return E_FAIL;
|
||||
@@ -1784,6 +1788,16 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VictorRookWood_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
||||
return E_FAIL;
|
||||
@@ -1807,7 +1821,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
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", XMMatrixIdentity()))))
|
||||
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 (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"),
|
||||
@@ -1979,7 +1993,15 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_FireBall>(g_iStaticLevel, CRanrok_FireBall::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok_Breath>(g_iStaticLevel, CRanrok_Breath::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(g_iStaticLevel, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
@@ -2737,6 +2759,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CCamPosition_Shoulder>(g_iStaticLevel, CCamPosition_Shoulder::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_CamPosition_AI */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CCamPosition_AI>(g_iStaticLevel, CCamPosition_AI::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_CamPosition_Target */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CCamPosition_Target>(g_iStaticLevel, CCamPosition_Target::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
@@ -2830,8 +2856,6 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
HRESULT CLoader::Loading_For_Field()
|
||||
{
|
||||
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
||||
|
||||
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
||||
|
||||
#pragma region DUNGEON
|
||||
@@ -2922,7 +2946,6 @@ HRESULT CLoader::Loading_For_Field()
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
{ // MapModels
|
||||
_uint iIndex = 0;
|
||||
for (auto& JobMapModels : jobMapModels)
|
||||
@@ -2946,12 +2969,61 @@ HRESULT CLoader::Loading_For_Field()
|
||||
}
|
||||
}
|
||||
|
||||
/* For.Prototype_Component_DecalBox */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_DecalBox"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/Decal/DecalBox.fbx", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다.");
|
||||
|
||||
#pragma region MAP_TEXTURE
|
||||
/* Base_MRO */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Base_MRO"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment//MasterMaterials/BaseTextures/T_Base011_MRO.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Decal_MSK */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Decal_MSK"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment/Sanctum_Dungeon/Textures/Repository/T_Rift_Material_MSK.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Decal_Noraml */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Decal_Noraml"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment/Sanctum_Dungeon/Textures/Repository/T_Rift_Veins_N.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Decal_Fade */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Decal_Fade"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/VFX/Textures/Noises/VFX_T_Noise08_D.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Decal_MaskNoise */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Decal_MaskNoise"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/VFX/Textures/Noises/VFX_T_TankMoteNoiseVinceTest_D.png"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Decal_MaskNoise */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Decal_DiffuseMask"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/VFX/Textures/VFX_T_DementorTatter_D.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
|
||||
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
|
||||
|
||||
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
|
||||
|
||||
/* For.Prototype_GameObject_PointLight */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CPointLight>(ENUM_CLASS(LEVEL::FIELD), CPointLight::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_WorldDecal */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWorldDecal>(ENUM_CLASS(LEVEL::FIELD), CWorldDecal::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
m_strMessage = TEXT("정보를 불러오는 중입니다.");
|
||||
|
||||
m_strMessage = TEXT("로딩이 완료되었습니다..");
|
||||
|
||||
@@ -21,8 +21,6 @@ CMage_Nomal_Attack::CMage_Nomal_Attack(const CMage_Nomal_Attack& rhs)
|
||||
|
||||
HRESULT CMage_Nomal_Attack::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/NomalAttack")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@
|
||||
#include "MapElement_Door.h"
|
||||
#include "MapElement_Chest.h"
|
||||
#include "MapElement_Static.h"
|
||||
#include "WorldDecal.h"
|
||||
#include "PointLight.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
@@ -733,6 +735,139 @@ HRESULT CMapInfo::Load_ChestElemet(const _char* pFileName, const _wchar* pLayerT
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/Decal/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Decal");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CWorldDecal::WORLD_DECAL_DESC Desc = {};
|
||||
|
||||
/* 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);
|
||||
|
||||
/* Decal Desc */
|
||||
auto* Shader_Value = Object->FirstChildElement("Shader_Value");
|
||||
Shader_Value->QueryFloatAttribute("UVTiling", &Desc.fUVTiling);
|
||||
Shader_Value->QueryFloatAttribute("UVSpeedX", &Desc.vUVSpeed.x);
|
||||
Shader_Value->QueryFloatAttribute("UVSpeedY", &Desc.vUVSpeed.y);
|
||||
|
||||
/* MaskRed */
|
||||
auto* MaskRed = Object->FirstChildElement("MaskRed");
|
||||
MaskRed->QueryFloatAttribute("r", &Desc.vMaskRed.x);
|
||||
MaskRed->QueryFloatAttribute("g", &Desc.vMaskRed.y);
|
||||
MaskRed->QueryFloatAttribute("b", &Desc.vMaskRed.z);
|
||||
MaskRed->QueryFloatAttribute("a", &Desc.vMaskRed.w);
|
||||
|
||||
/* MaskGreen */
|
||||
auto* MaskGreen = Object->FirstChildElement("MaskGreen");
|
||||
MaskGreen->QueryFloatAttribute("r", &Desc.vMaskGreen.x);
|
||||
MaskGreen->QueryFloatAttribute("g", &Desc.vMaskGreen.y);
|
||||
MaskGreen->QueryFloatAttribute("b", &Desc.vMaskGreen.z);
|
||||
MaskGreen->QueryFloatAttribute("a", &Desc.vMaskGreen.w);
|
||||
|
||||
/* MaskBlue */
|
||||
auto* MaskBlue = Object->FirstChildElement("MaskBlue");
|
||||
MaskBlue->QueryFloatAttribute("r", &Desc.vMaskBlue.x);
|
||||
MaskBlue->QueryFloatAttribute("g", &Desc.vMaskBlue.y);
|
||||
MaskBlue->QueryFloatAttribute("b", &Desc.vMaskBlue.z);
|
||||
MaskBlue->QueryFloatAttribute("a", &Desc.vMaskBlue.w);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CWorldDecal>(NEXT_LEVEL, NEXT_LEVEL, pLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Load_PointLights(const _char* pFilePath, const _wchar* pLayerTag)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/Light/" + string(pFilePath) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("MapLightObjects");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CPointLight::POINTLIGHT_DESC Desc = {};
|
||||
|
||||
/* Transform */
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
/* Light Desc */
|
||||
auto* Diffuse = Object->FirstChildElement("Diffuse");
|
||||
Diffuse->QueryFloatAttribute("x", &Desc.vDiffuse.x);
|
||||
Diffuse->QueryFloatAttribute("y", &Desc.vDiffuse.y);
|
||||
Diffuse->QueryFloatAttribute("z", &Desc.vDiffuse.z);
|
||||
|
||||
auto* Ambient = Object->FirstChildElement("Ambient");
|
||||
Ambient->QueryFloatAttribute("x", &Desc.vAmbient.x);
|
||||
Ambient->QueryFloatAttribute("y", &Desc.vAmbient.y);
|
||||
Ambient->QueryFloatAttribute("z", &Desc.vAmbient.z);
|
||||
|
||||
auto* Specular = Object->FirstChildElement("Specular");
|
||||
Specular->QueryFloatAttribute("x", &Desc.vSpecular.x);
|
||||
Specular->QueryFloatAttribute("y", &Desc.vSpecular.y);
|
||||
Specular->QueryFloatAttribute("z", &Desc.vSpecular.z);
|
||||
|
||||
auto* PosOffset = Object->FirstChildElement("PosOffset");
|
||||
PosOffset->QueryFloatAttribute("x", &Desc.vPosOffset.x);
|
||||
PosOffset->QueryFloatAttribute("y", &Desc.vPosOffset.y);
|
||||
PosOffset->QueryFloatAttribute("z", &Desc.vPosOffset.z);
|
||||
|
||||
auto* Info = Object->FirstChildElement("Info");
|
||||
Info->QueryFloatAttribute("LightAttRange", &Desc.fLightAttRange);
|
||||
Info->QueryFloatAttribute("LightAttSpeed", &Desc.fLightAttSpeed);
|
||||
Info->QueryFloatAttribute("Range", &Desc.fRange);
|
||||
_uint iPow = {};
|
||||
Info->QueryUnsignedAttribute("Pow", &iPow);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPointLight>(NEXT_LEVEL, NEXT_LEVEL, pLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
{
|
||||
m_pGameInstance = CGameInstance::GetInstance();
|
||||
|
||||
@@ -298,7 +298,10 @@ void CNPCInteraction::Free()
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CNPCInteraction::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
#include "Monster.h"
|
||||
#include "Broom.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "BroomRaceManager.h"
|
||||
#include "RaceRing.h"
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
@@ -102,6 +104,19 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
m_pCharacter_Controller->Set_Position(vPos);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vPos);
|
||||
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
|
||||
@@ -123,6 +138,9 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
|
||||
m_pModelCom->Set_Temp(true);
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -726,6 +744,7 @@ void CPlayer::Free()
|
||||
SAFE_RELEASE(m_pBroomModel);
|
||||
SAFE_RELEASE(m_pBroomTransform);
|
||||
SAFE_RELEASE(m_pBroom);
|
||||
SAFE_RELEASE(m_pRaceRing);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -355,7 +355,7 @@ void CPlayer::Behavior_MoveEnter()
|
||||
_bool bRight = m_pGameInstance->Key_Pressing(DIK_D);
|
||||
_bool bBackward = m_pGameInstance->Key_Pressing(DIK_S);
|
||||
m_pFSM->Enable_State(FSMSTATE::MOVE);
|
||||
if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE | FSMSTATE::DODGE | FSMSTATE::LAND)) {
|
||||
if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE | FSMSTATE::DODGE | FSMSTATE::LAND | FSMSTATE::DISMOUNT)) {
|
||||
|
||||
if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE))
|
||||
{
|
||||
@@ -2142,6 +2142,8 @@ void CPlayer::Behavior_Broom_HoverExit()
|
||||
void CPlayer::Behavior_Broom_FlyEnter()
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::FLY);
|
||||
m_fNeutralTime = 0.f;
|
||||
m_fNoInputTime = 0.f;
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
@@ -2159,6 +2161,7 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (SUCCEEDED(InputBroom()) || SUCCEEDED(InputMove()))
|
||||
{
|
||||
m_fNoInputTime = 0.f;
|
||||
_float3 vInput = { 0.f, 0.f, 0.f };
|
||||
|
||||
if (bFwd) vInput.z += 1.f;
|
||||
@@ -2188,43 +2191,96 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
|
||||
if (ay > ax && ay > az)
|
||||
{
|
||||
if (vInput.y > 0)
|
||||
if (vInput.y > 0) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
|
||||
else if (vInput.y < 0)
|
||||
|
||||
}
|
||||
else if (vInput.y < 0) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
|
||||
}
|
||||
}
|
||||
else if (ax >= az)
|
||||
{
|
||||
if (ay >= ax)
|
||||
{
|
||||
if (vInput.y > 0)
|
||||
if (vInput.y > 0) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
|
||||
else if (vInput.y < 0)
|
||||
|
||||
}
|
||||
else if (vInput.y < 0) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
|
||||
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_IDLE];
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (vInput.x < 0)
|
||||
if (vInput.x < 0) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_LEFT];
|
||||
else if (vInput.x > 0)
|
||||
|
||||
}
|
||||
else if (vInput.x > 0) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_RIGHT];
|
||||
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FWD];
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_IDLE];
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (vInput.y > 0)
|
||||
if (vInput.y > 0) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_UP];
|
||||
else if (vInput.y < 0)
|
||||
|
||||
}
|
||||
else if (vInput.y < 0) {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_DOWN];
|
||||
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FWD];
|
||||
}
|
||||
}
|
||||
|
||||
_bool bNeutralAnim =
|
||||
(pairAnimInfo.first == m_Animation[STATEANIM::BROOM_FWD].first ||
|
||||
pairAnimInfo.first == m_Animation[STATEANIM::BROOM_IDLE].first);
|
||||
|
||||
if (!bNeutralAnim)
|
||||
{
|
||||
m_fNeutralTime = 0.f;
|
||||
if (iCurrAnimIndex != pairAnimInfo.first)
|
||||
{
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_fNeutralTime += fTimeDelta;
|
||||
|
||||
if (m_fNeutralTime > 0.2f)
|
||||
{
|
||||
if (iCurrAnimIndex != pairAnimInfo.first)
|
||||
{
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_IDLE);
|
||||
m_fNoInputTime += fTimeDelta;
|
||||
|
||||
if (m_fNoInputTime > 0.2f)
|
||||
{
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_IDLE);
|
||||
|
||||
if (iCurrAnimIndex != pairAnimInfo.first)
|
||||
{
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_R))
|
||||
@@ -2234,9 +2290,8 @@ HRESULT CPlayer::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::REVELIO, this);
|
||||
}, 0.2f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true,0.8f);
|
||||
}
|
||||
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::BROOM_REVELIO].first)
|
||||
@@ -2281,6 +2336,8 @@ void CPlayer::Behavior_Broom_FlyExit()
|
||||
void CPlayer::Behavior_Broom_TurboFlyEnter()
|
||||
{
|
||||
m_pFSM->Enable_State(FSMSTATE::TURBOFLY);
|
||||
m_fNeutralTime = 0.f;
|
||||
m_fNoInputTime = 0.f;
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
|
||||
@@ -2298,6 +2355,7 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (SUCCEEDED(InputBroom()) || SUCCEEDED(InputMove()))
|
||||
{
|
||||
m_fNoInputTime = 0.f;
|
||||
_float3 vInput = { 0.f, 0.f, 0.f };
|
||||
|
||||
if (bFwd) vInput.z += 1.f;
|
||||
@@ -2361,15 +2419,39 @@ HRESULT CPlayer::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_TURBO_FWD];
|
||||
}
|
||||
}
|
||||
|
||||
_bool bNeutralAnim =
|
||||
(pairAnimInfo.first == m_Animation[STATEANIM::BROOM_TURBO_FWD].first);
|
||||
|
||||
if (!bNeutralAnim)
|
||||
{
|
||||
m_fNeutralTime = 0.f;
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true,1.f,false);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_fNeutralTime += fTimeDelta;
|
||||
|
||||
if (m_fNeutralTime > 0.2f)
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_TURBO_FWD);
|
||||
|
||||
m_fNoInputTime += fTimeDelta;
|
||||
|
||||
if (m_fNoInputTime > 0.2f)
|
||||
{
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_TURBO_FWD);
|
||||
|
||||
if (iCurrAnimIndex != pairAnimInfo.first)
|
||||
{
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,true,1.f,false);
|
||||
}
|
||||
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_N))
|
||||
{
|
||||
auto flags = m_pCharacter_Controller->Get_CollisionFlags();
|
||||
@@ -2434,8 +2516,11 @@ HRESULT CPlayer::Behavior_Broom_DismountExitCheck(_float fTimeDelta)
|
||||
{
|
||||
m_pBroomTransform->Set_Scale(m_BroomScale);
|
||||
}
|
||||
if (fRatio >= 0.85f) {
|
||||
if (fRatio >= 0.5f) {
|
||||
m_BroomScale = { 0.f,0.f,0.f };
|
||||
m_pBroomTransform->Set_State(STATE::POSITION,XMVectorSet(XMVectorGetX(m_pTransformCom->Get_State(STATE::POSITION)),
|
||||
200.f,
|
||||
XMVectorGetZ(m_pTransformCom->Get_State(STATE::POSITION)), 1.f));
|
||||
if (SUCCEEDED(InputMove()))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
@@ -3039,7 +3124,7 @@ void CPlayer::Add_FSM()
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
if (!m_bOnce) {
|
||||
m_pBroomTransform->Set_WorldMatrix(m_pTransformCom->Get_XMWorldMatrix());
|
||||
m_pBroomTransform->Set_State(STATE::POSITION, m_pBroomTransform->Get_State(STATE::POSITION) + XMVectorSet(0.f,2.f,0.f,0.f));
|
||||
m_pBroomTransform->Set_State(STATE::POSITION, m_pTransformCom->Get_State(STATE::POSITION) + XMVectorSet(0.f,2.f,0.f,0.f));
|
||||
_float3 vScale = { 0.3f,0.3f,0.3f };
|
||||
m_pBroomTransform->Set_Scale(vScale);
|
||||
m_bOnce = true;
|
||||
@@ -3249,7 +3334,7 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::BROOM_MOUNT] = { 735,false };
|
||||
m_Animation[STATEANIM::BROOM_MOUNT_END] = { 738,false };
|
||||
m_Animation[STATEANIM::BROOM_HOVER_START] = { 700,false };
|
||||
m_Animation[STATEANIM::BROOM_DISMOUNT] = { 739,false };
|
||||
m_Animation[STATEANIM::BROOM_DISMOUNT] = { 676,false };
|
||||
|
||||
m_Animation[STATEANIM::BROOM_HOVER_IDLE] = { 704,true };
|
||||
m_Animation[STATEANIM::BROOM_HOVER_FWD] = { 701,true };
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
#include "pch.h"
|
||||
#include "PointLight.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CPointLight::CPointLight(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CPointLight::CPointLight(const CPointLight& rhs)
|
||||
: CGameObject(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
void CPointLight::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CPointLight::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fAttenuationTime += fTimeDelta * m_fLightIntensitySpeed;
|
||||
}
|
||||
|
||||
void CPointLight::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pLightCom->Set_AttPower(sinf(m_fAttenuationTime) * sinf(m_fAttenuationTime) * m_fLightIntensity + m_fLightIntensity + 1.f);
|
||||
}
|
||||
|
||||
HRESULT CPointLight::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPointLight::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPointLight::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPointLight::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
LIGHT_DESC LightDesc{};
|
||||
LightDesc.iLevel = NEXT_LEVEL;
|
||||
LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION);
|
||||
|
||||
|
||||
POINTLIGHT_DESC* pDesc = static_cast<POINTLIGHT_DESC*>(pArg);
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
LightDesc.eType = LIGHT::POINT;
|
||||
LightDesc.vDiffuse = pDesc->vDiffuse;
|
||||
LightDesc.vAmbient = pDesc->vAmbient;
|
||||
LightDesc.vSpecular = pDesc->vSpecular;
|
||||
LightDesc.vPosOffset = _float4(pDesc->vPosOffset.x, pDesc->vPosOffset.y, pDesc->vPosOffset.z, 1.f);
|
||||
LightDesc.fRange = pDesc->fRange;
|
||||
|
||||
m_fLightIntensity = pDesc->fLightAttRange;
|
||||
m_fLightIntensitySpeed = pDesc->fLightAttSpeed;
|
||||
|
||||
/* Com_Light*/
|
||||
if (FAILED(Add_Component<CLight>(g_iStaticLevel, &m_pLightCom, &LightDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Light(NEXT_LEVEL, m_pLightCom);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CPointLight::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CPointLight* CPointLight::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CPointLight* pInstance = new CPointLight(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CPointLight");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CPointLight::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CPointLight* pInstance = new CPointLight(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CPointLight");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
void CPointLight::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pLightCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CPointLight::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -30,25 +30,21 @@ 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(-5.f, 5.f);
|
||||
_float Z = 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(X, Y, Z, 1.f));
|
||||
|
||||
m_pBroomRaceManager = static_cast<CBroomRaceManager*>(pArg);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet((_float)m_iIndex *100.f, Y, Z, 1.f));
|
||||
|
||||
m_pBroomRaceManager->Push_RaceRing(this);
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRaceRing::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
|
||||
@@ -146,6 +142,7 @@ HRESULT CRaceRing::Bind_ShaderResources()
|
||||
}
|
||||
|
||||
|
||||
|
||||
CRaceRing* CRaceRing::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRaceRing* pInstance = new CRaceRing(pDevice, pContext);
|
||||
|
||||
@@ -62,8 +62,8 @@ HRESULT CRanrok::Initialize(void* pArg)
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody,&m_bCollisionPlayer);
|
||||
|
||||
//m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
//SAFE_ADDREF(m_pEffectPool);
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
SAFE_ADDREF(m_pEffectPool);
|
||||
|
||||
if (NEXT_LEVEL == ENUM_CLASS(LEVEL::FIELD))
|
||||
{
|
||||
@@ -646,7 +646,7 @@ void CRanrok::Free()
|
||||
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
//SAFE_RELEASE(m_pEffectPool);
|
||||
SAFE_RELEASE(m_pEffectPool);
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,308 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_Breath.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_Breath::CRanrok_Breath(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_Breath::CRanrok_Breath(const CRanrok_Breath& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Breath::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokBreath")))
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Breath::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"RanrokBreath";
|
||||
|
||||
|
||||
m_pBreath = Get_PartObject<CEffectParts>("Breath");
|
||||
m_pBreath_Black = Get_PartObject<CEffectParts>("Breath_Black");
|
||||
m_pBreathSlog = Get_PartObject<CEffectParts>("BreathSlog");
|
||||
m_pMouthFire = Get_PartObject<CEffectParts>("MouthFire");
|
||||
|
||||
SAFE_ADDREF(m_pBreath);
|
||||
SAFE_ADDREF(m_pBreath_Black);
|
||||
SAFE_ADDREF(m_pBreathSlog);
|
||||
SAFE_ADDREF(m_pMouthFire);
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
|
||||
m_Events.emplace(0.5f, [&]() {
|
||||
m_isStartRayCast = true;
|
||||
});
|
||||
|
||||
|
||||
m_Events.emplace(3.f, [&]() {
|
||||
|
||||
// 파티클 제어
|
||||
m_isParticleEnd = true;
|
||||
|
||||
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
CEffectParts* pBottomFire = Get_PartObject<CEffectParts>("BottomFire");
|
||||
CEffectParts* pSplatterBottom0 = Get_PartObject<CEffectParts>("SplatterBottom0");
|
||||
|
||||
m_pMouthFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
pBottomFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
pSplatterBottom0->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
m_pBreath->Get_Component<CInstance_Model>()->Set_Loop(false);
|
||||
m_pBreath->Get_Effect_Info()->isDissolve = true;
|
||||
|
||||
m_pBreath_Black->Get_Component<CInstance_Model>()->Set_Loop(false);
|
||||
m_pBreath_Black->Get_Effect_Info()->isDissolve = true;
|
||||
|
||||
m_pBreathSlog->Set_Visible(false);
|
||||
|
||||
});
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_Breath::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Breath::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("tongue_01"));
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
|
||||
}
|
||||
|
||||
_matrix WorldMat = m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix() ;
|
||||
|
||||
_matrix CombinedMat = BoneMat * WorldMat;
|
||||
|
||||
|
||||
|
||||
m_pBreath->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
m_pBreath_Black->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
m_pBreathSlog->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
|
||||
if(m_isParticleEnd == false)
|
||||
m_pMouthFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, CombinedMat.r[3]);
|
||||
|
||||
|
||||
_vector vStartPos = CombinedMat.r[3];
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
|
||||
if(m_isStartRayCast == true)
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterRayCast(XMLoadFloat4(&m_vStartPos), CombinedMat.r[2] * -1.f, 50.f, 50);
|
||||
if (m_bHit = true)
|
||||
OnCollision(this, &CollisionInfo);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_Breath::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Breath::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
|
||||
CEffectParts* pBlurMesh = Get_PartObject<CEffectParts>("BlurMesh");
|
||||
|
||||
m_pBreath->Set_Visible(true);
|
||||
m_pBreath_Black->Set_Visible(true);
|
||||
m_pBreathSlog->Set_Visible(true);
|
||||
m_pMouthFire->Set_Visible(true);
|
||||
pBlurMesh->Set_Visible(true);
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("tongue_01"));
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
|
||||
}
|
||||
|
||||
_matrix WorldMat = m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix() ;
|
||||
|
||||
_matrix CombinedMat = BoneMat * WorldMat;
|
||||
|
||||
|
||||
|
||||
m_pBreath->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
m_pBreath_Black->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
m_pBreathSlog->Get_Component<CTransform>()->Set_WorldMatrix(CombinedMat);
|
||||
|
||||
_vector vStartPos = CombinedMat.r[3];
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
|
||||
|
||||
|
||||
m_pMouthFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, CombinedMat.r[3]);
|
||||
pBlurMesh->Get_Component<CTransform>()->Set_State(STATE::POSITION, CombinedMat.r[3]);
|
||||
|
||||
/* 브레스 디졸브를 위해 초기값 설정*/
|
||||
m_pBreath->Get_Component<CInstance_Model>()->Set_Loop(true);
|
||||
m_pBreath->Get_Effect_Info()->isDissolve = false;
|
||||
|
||||
m_pBreath_Black->Get_Component<CInstance_Model>()->Set_Loop(true);
|
||||
m_pBreath_Black->Get_Effect_Info()->isDissolve = false;
|
||||
|
||||
m_isParticleEnd = false;
|
||||
m_isStartRayCast = false;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Breath::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_Breath::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_Breath* CRanrok_Breath::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_Breath* pInstance = new CRanrok_Breath(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_Breath");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_Breath::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_Breath* pInstance = new CRanrok_Breath(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_Breath");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_Breath::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
if (XMVectorGetX(XMVector4Length(vPos)) <= 0.f) /* 000 일때 들어오지마 */
|
||||
return;
|
||||
|
||||
_vector vPrePos = XMLoadFloat4(&m_vPreCollisionPos);
|
||||
_vector vDir = XMVector3Normalize(vPos - vPrePos);
|
||||
|
||||
if (m_isParticleEnd == true)
|
||||
return;
|
||||
|
||||
CEffectParts* pRock_PT = Get_PartObject<CEffectParts>("Rock_PT");
|
||||
CEffectParts* pBottomFire = Get_PartObject<CEffectParts>("BottomFire");
|
||||
CEffectParts* pSplatterBottom0 = Get_PartObject<CEffectParts>("SplatterBottom0");
|
||||
|
||||
pRock_PT->Set_Visible(true);
|
||||
pRock_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
pBottomFire->Set_Visible(true);
|
||||
pBottomFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
pSplatterBottom0->Set_Visible(true);
|
||||
pSplatterBottom0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos + vDir * 3.f);
|
||||
|
||||
XMStoreFloat4(&m_vPreCollisionPos, vPos);
|
||||
}
|
||||
|
||||
void CRanrok_Breath::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
SAFE_RELEASE(m_pBreath);
|
||||
SAFE_RELEASE(m_pBreath_Black);
|
||||
SAFE_RELEASE(m_pBreathSlog);
|
||||
SAFE_RELEASE(m_pMouthFire);
|
||||
|
||||
//SAFE_RELEASE(m_pFireBall_Tail);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_Breath::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_Breath::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,268 @@
|
||||
#include "pch.h"
|
||||
#include "Ranrok_FireBall.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CRanrok_FireBall::CRanrok_FireBall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CRanrok_FireBall::CRanrok_FireBall(const CRanrok_FireBall& rhs)
|
||||
: CEffect_Container(rhs),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
}
|
||||
|
||||
HRESULT CRanrok_FireBall::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokFireBall")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_FireBall::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"RanrokFireBall";
|
||||
|
||||
|
||||
m_pFireBall = Get_PartObject<CEffectParts>("FireBall");
|
||||
m_pFireBall_PT = Get_PartObject<CEffectParts>("FireBall_PT");
|
||||
m_pFireBall_Surface = Get_PartObject<CEffectParts>("FireBall_Surface");
|
||||
|
||||
|
||||
SAFE_ADDREF(m_pFireBall);
|
||||
SAFE_ADDREF(m_pFireBall_PT);
|
||||
SAFE_ADDREF(m_pFireBall_Surface);
|
||||
|
||||
m_fDuration = 4.f;
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CRanrok_FireBall::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, m_pFireBall->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CRanrok_FireBall::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
m_pFireBall->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
|
||||
m_pFireBall_PT->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
|
||||
m_pFireBall_Surface->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
|
||||
//m_pFireBall_Tail->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vLook) * m_fLinearSpeed);
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = m_pFireBall->Get_WorldPostion();
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.2f, true);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_FireBall::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CRanrok_FireBall::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CEffectParts* pBlack_Smoke = Get_PartObject<CEffectParts>("Black_Smoke");
|
||||
CEffectParts* pFireBall_Ring = Get_PartObject<CEffectParts>("FireBall_Ring");
|
||||
|
||||
/* 초기 객체 비지블*/
|
||||
m_pFireBall->Set_Visible(true);
|
||||
m_pFireBall_PT->Set_Visible(true);
|
||||
m_pFireBall_Surface->Set_Visible(true);
|
||||
|
||||
pBlack_Smoke->Set_Visible(true);
|
||||
pFireBall_Ring->Set_Visible(true);
|
||||
|
||||
/* 초기 객체 위치 초기화*/
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr("jaw"));
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
|
||||
}
|
||||
|
||||
_matrix WorldMat = m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
_matrix CombinedMat = BoneMat * WorldMat;
|
||||
|
||||
_vector vStartPos = CombinedMat.r[3];
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, vStartPos);
|
||||
|
||||
/* 플레이어 위치 받기 */
|
||||
CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first;
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return E_FAIL;
|
||||
|
||||
/* 초기 방향 */
|
||||
XMStoreFloat4(&m_vTargetPos, pPlayer->Get_Component<CCharacter_Controller>()->Get_Position());
|
||||
XMStoreFloat3(&m_vLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos)));
|
||||
|
||||
m_pFireBall_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, vStartPos);
|
||||
//m_pFireBall_Tail->Get_Component<CTransform>()->Set_State(STATE::POSITION, vStartPos - XMLoadFloat3(&m_vLook) * 5.f);
|
||||
pBlack_Smoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vStartPos);
|
||||
pFireBall_Ring->Get_Component<CTransform>()->Set_State(STATE::POSITION, vStartPos);
|
||||
/* PJ 월드 구성하기 */
|
||||
|
||||
|
||||
_vector vLook = XMVector3Normalize(XMLoadFloat3(&m_vLook));
|
||||
_vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vLook));
|
||||
_vector vUp = XMVector3Normalize(XMVector3Cross(vLook, vRight));
|
||||
_vector vPos = vStartPos;
|
||||
|
||||
_matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos };
|
||||
|
||||
m_pFireBall->Get_Component<CTransform>()->Set_WorldMatrix(PJ_WorldMat);
|
||||
m_pFireBall_Surface->Get_Component<CTransform>()->Set_WorldMatrix(PJ_WorldMat);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_FireBall::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok_FireBall::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CRanrok_FireBall* CRanrok_FireBall::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CRanrok_FireBall* pInstance = new CRanrok_FireBall(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CRanrok_FireBall");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CRanrok_FireBall::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CRanrok_FireBall* pInstance = new CRanrok_FireBall(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CRanrok_FireBall");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CRanrok_FireBall::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
m_pFireBall->Set_Visible(false);
|
||||
m_pFireBall_Surface->Set_Visible(false);
|
||||
|
||||
//m_pFireBall_Tail->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
m_pFireBall_PT->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
|
||||
CEffectParts* pBlack_Smoke = Get_PartObject<CEffectParts>("Black_Smoke");
|
||||
|
||||
pBlack_Smoke->Set_Visible(false);
|
||||
|
||||
CPlayer* pPlayer = static_cast<CPlayer*>(m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first);
|
||||
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return;
|
||||
|
||||
pPlayer->Start_CameraShake(0.3f, 2.f);
|
||||
|
||||
}
|
||||
|
||||
void CRanrok_FireBall::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
SAFE_RELEASE(m_pFireBall);
|
||||
SAFE_RELEASE(m_pFireBall_PT);
|
||||
SAFE_RELEASE(m_pFireBall_Surface);
|
||||
//SAFE_RELEASE(m_pFireBall_Tail);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CRanrok_FireBall::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CRanrok_FireBall::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include "GameInstance.h"
|
||||
#include "Player.h"
|
||||
#include "Effect_Container.h"
|
||||
#include "EffectParts.h"
|
||||
#include "EffectPool.h"
|
||||
|
||||
#pragma region STATE
|
||||
@@ -39,7 +38,7 @@ void CRanrok::Behavior_IdleEnter()
|
||||
|
||||
HRESULT CRanrok::Behavior_IdleExitCheck()
|
||||
{
|
||||
if (m_fTargetDistance <= 35.f && m_fTargetDistance !=0.f)
|
||||
if (m_fTargetDistance <= 100.f && m_fTargetDistance != 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
@@ -87,7 +86,7 @@ HRESULT CRanrok::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (m_fTargetDistance <= 35.f && m_fTargetDistance != 0.f)
|
||||
if (m_fTargetDistance <= 100.f && m_fTargetDistance != 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
@@ -117,33 +116,33 @@ HRESULT CRanrok::Behavior_CombatExitCheck(_float fTimeDelta)
|
||||
}
|
||||
|
||||
|
||||
if (m_fTargetDistance <= 35.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] <= 0.f)
|
||||
if (m_fTargetDistance <= 100.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::FIREBREATH);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 35.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBALL)] <= 0.f)
|
||||
else if (m_fTargetDistance <= 100.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBALL)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::FIREBALL);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 35.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)] <= 0.f)
|
||||
else if (m_fTargetDistance <= 100.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::FIRESWEEP);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 35.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::RUSH)] <= 0.f && m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
else if (m_fTargetDistance <= 100.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::RUSH)] <= 0.f && m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::RUSH);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_fTargetDistance <= 35.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] <= 0.f && m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
else if (m_fTargetDistance <= 100.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::SWIPE)] <= 0.f && m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::SWIPE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
else if (m_fTargetDistance <= 35.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] <= 0.f)
|
||||
else if (m_fTargetDistance <= 100.f && m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] <= 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::PULSE);
|
||||
return E_FAIL;
|
||||
@@ -154,7 +153,7 @@ HRESULT CRanrok::Behavior_CombatExitCheck(_float fTimeDelta)
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND)) {
|
||||
if (m_pFSM->IsEnable_Previous(FSMSTATE::TUCKED| FSMSTATE::PULSE))
|
||||
if (m_pFSM->IsEnable_Previous(FSMSTATE::TUCKED | FSMSTATE::PULSE))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::LAND);
|
||||
}
|
||||
@@ -184,7 +183,7 @@ void CRanrok::Behavior_GroundEnter()
|
||||
|
||||
HRESULT CRanrok::Behavior_GroundExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (m_fTargetDistance <= 35.f && m_fTargetDistance != 0.f)
|
||||
if (m_fTargetDistance <= 100.f && m_fTargetDistance != 0.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
@@ -290,15 +289,25 @@ void CRanrok::Behavior_FireBreathEnter()
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_WINDUP_A];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)]; },
|
||||
0.95f);
|
||||
[&]() {
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBREATH)];
|
||||
m_bLookAt = false;
|
||||
}, 0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); },
|
||||
0.95f);
|
||||
[&]() {
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBREATH_COOLDOWN_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bLookAt = true;
|
||||
}, 0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIREBREATH_A].first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
|
||||
}, 0.1f);
|
||||
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
@@ -345,18 +354,32 @@ void CRanrok::Behavior_FireSweepEnter()
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)]; },
|
||||
0.95f);
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)];
|
||||
m_bLookAt = false;
|
||||
}, 0.95f);
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
|
||||
[&]() { pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_COOLDOWN_A];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); },
|
||||
0.95f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bLookAt = true;
|
||||
},
|
||||
0.94f);
|
||||
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIRESWEEP_A].first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
|
||||
}, 0.08f);
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIRESWEEP_G];
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIRESWEEP)];
|
||||
|
||||
Add_Event(m_Animation[STATEANIM::FIRESWEEP_G].first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_BREATH, this);
|
||||
}, 0.2f);
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
@@ -399,11 +422,24 @@ void CRanrok::Behavior_FireBallEnter()
|
||||
{
|
||||
case 0:
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBALL1_A];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
|
||||
}, 0.38f);
|
||||
|
||||
break;
|
||||
case 1:
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBALL2_A];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
|
||||
}, 0.5f);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
@@ -413,11 +449,25 @@ void CRanrok::Behavior_FireBallEnter()
|
||||
{
|
||||
case 0:
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBALL1_G];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
|
||||
}, 0.4f);
|
||||
|
||||
break;
|
||||
case 1:
|
||||
pairAnimInfo = m_Animation[STATEANIM::FIREBALL2_G];
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
|
||||
}, 0.45f);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBALL)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::FIREBALL)];
|
||||
@@ -436,7 +486,7 @@ HRESULT CRanrok::Behavior_FireBallExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND)){
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND)) {
|
||||
m_pFSM->Change_State(FSMSTATE::GROUND);
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -456,13 +506,13 @@ void CRanrok::Behavior_SwipeEnter()
|
||||
m_pFSM->Enable_State(FSMSTATE::SWIPE);
|
||||
if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
{
|
||||
if (m_fCross > 0)
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::GROUND_SWIPE_L];
|
||||
}
|
||||
/*if (m_fCross > 0)
|
||||
{*/
|
||||
pairAnimInfo = m_Animation[STATEANIM::GROUND_SWIPE_L];
|
||||
/*}
|
||||
else {
|
||||
pairAnimInfo = m_Animation[STATEANIM::GROUND_SWIPE_R];
|
||||
}
|
||||
}*/
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
}
|
||||
@@ -530,8 +580,8 @@ HRESULT CRanrok::Behavior_RushExitCheck(_float fTimeDelta)
|
||||
m_fRushTime += fTimeDelta;
|
||||
if (m_fRushTime >= 2.5f && iCurrAnimIndex == m_Animation[STATEANIM::RUSH_LOOP].first)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::SWIPE);
|
||||
return E_FAIL;
|
||||
m_pFSM->Change_State(FSMSTATE::SWIPE);
|
||||
return E_FAIL;
|
||||
|
||||
}
|
||||
else if (iCurrAnimIndex == m_Animation[STATEANIM::RUSH_LOOP].first)
|
||||
@@ -570,9 +620,9 @@ void CRanrok::Behavior_PulseEnter()
|
||||
m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
/*Add_Event(pairAnimInfo.first,
|
||||
[this]() { CameraShake(10.f, 2.f, 5.f, 1.2f); },
|
||||
0.39f);
|
||||
0.39f);*/
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Behavior_PulseExitCheck(_float fTimeDelta)
|
||||
@@ -581,7 +631,7 @@ HRESULT CRanrok::Behavior_PulseExitCheck(_float fTimeDelta)
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
|
||||
if (fRatio>=0.95f)
|
||||
if (fRatio >= 0.95f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
@@ -599,8 +649,7 @@ void CRanrok::Behavior_TuckedEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::TUCKED);
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
|
||||
|
||||
//if (m_iCurrentFlow == 0)
|
||||
//{
|
||||
// pairAnimInfo = m_Animation[STATEANIM::FLY];
|
||||
@@ -619,7 +668,7 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
|
||||
|
||||
MoveTo(fTimeDelta);
|
||||
|
||||
if (m_bTucked && iCurrAnimIndex !=m_Animation[STATEANIM::FLY_TO_HOVER].first)
|
||||
if (m_bTucked && iCurrAnimIndex != m_Animation[STATEANIM::FLY_TO_HOVER].first)
|
||||
{
|
||||
m_iCurrentFlow++;
|
||||
pairAnimInfo = m_Animation[STATEANIM::FLY_TO_HOVER];
|
||||
@@ -651,9 +700,9 @@ void CRanrok::Behavior_LandEnter()
|
||||
pairAnimInfo = m_Animation[STATEANIM::LAND];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
/*Add_Event(pairAnimInfo.first,
|
||||
[this]() { CameraShake(30.f, 5.f, 10.f, 1.2f); },
|
||||
0.53f);
|
||||
0.53f);*/
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Behavior_LandExitCheck(_float fTimeDelta)
|
||||
@@ -1018,7 +1067,7 @@ void CRanrok::Set_Anim()
|
||||
m_Animation[STATEANIM::HIT_BWD3] = { 35,false }; // Ground Large
|
||||
m_Animation[STATEANIM::HIT_BWD4] = { 36,false }; // Ground Small
|
||||
|
||||
m_Animation[STATEANIM::DEAD] = { 34,false };
|
||||
m_Animation[STATEANIM::DEAD] = { 34,false };
|
||||
|
||||
m_Animation[STATEANIM::FLY] = { 18,true };
|
||||
|
||||
|
||||
@@ -0,0 +1,255 @@
|
||||
#include "pch.h"
|
||||
#include "WorldDecal.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CWorldDecal::CWorldDecal(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CWorldDecal::CWorldDecal(const CWorldDecal& rhs)
|
||||
: CGameObject(rhs)
|
||||
, m_fWinSizeX{ rhs.m_fWinSizeX }
|
||||
, m_fWinSizeY{ rhs.m_fWinSizeY }
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CWorldDecal::Initialize_Prototype()
|
||||
{
|
||||
m_fWinSizeX = g_iWinSizeX;
|
||||
m_fWinSizeY = g_iWinSizeY;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CWorldDecal::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
WORLD_DECAL_DESC* pDesc = static_cast<WORLD_DECAL_DESC*>(pArg);
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
|
||||
m_fUVTiling = pDesc->fUVTiling;
|
||||
m_vUVSpeed = pDesc->vUVSpeed;
|
||||
m_vMaskRed = pDesc->vMaskRed;
|
||||
m_vMaskGreen = pDesc->vMaskGreen;
|
||||
m_vMaskBlue = pDesc->vMaskBlue;
|
||||
|
||||
_float fBoxRadius = 0.86f; // 1,1,1 기준
|
||||
_float fMaxScale = max(pDesc->vScale.x, max(pDesc->vScale.y, pDesc->vScale.z)) * fBoxRadius;
|
||||
|
||||
m_pTransformCom->Set_Radius(fMaxScale);
|
||||
|
||||
XMStoreFloat4x4(&m_WorldMatrixInv, m_pTransformCom->Get_WorldMatrixInv());
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CWorldDecal::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CWorldDecal::Update(_float fTimeDelta)
|
||||
{
|
||||
m_fTimeAcc.x += fTimeDelta * m_vUVSpeed.x;
|
||||
m_fTimeAcc.y += fTimeDelta * m_vUVSpeed.y;
|
||||
}
|
||||
|
||||
void CWorldDecal::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::DECAL, this);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CWorldDecal::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMesh = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMesh; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_MaskingTexture", m_pMaskTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_SurfaceParamsTexture", m_pSurfaceTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_NoiseTexture", m_pFadeTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_SRV("g_DiffsueMaskTexture", m_pDiffuseMaskTextureCom->Get_SRV(0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DECAL)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CWorldDecal::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Decal_MSK"),
|
||||
reinterpret_cast<CComponent**>(&m_pMaskTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Decal_Noraml"),
|
||||
reinterpret_cast<CComponent**>(&m_pNormalTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Base_MRO"),
|
||||
reinterpret_cast<CComponent**>(&m_pSurfaceTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Decal_Fade"),
|
||||
reinterpret_cast<CComponent**>(&m_pFadeTextureCom))))
|
||||
return E_FAIL;
|
||||
/* Com_Texture */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Decal_DiffuseMask"),
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuseMaskTextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_DecalBox"),
|
||||
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 CWorldDecal::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
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_Matrix("g_WorldMatrixInv", &m_WorldMatrixInv))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW_INV)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrixInv", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ_INV)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fWinSizeX", &m_fWinSizeX, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fWinSizeY", &m_fWinSizeY, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vTime", &m_fTimeAcc, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fUVTiling", &m_fUVTiling, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskColorRed", &m_vMaskRed, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskColorGreen", &m_vMaskGreen, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskColorBlue", &m_vMaskBlue, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), m_pShaderCom, "g_DepthTexture"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_NormalCopy"), m_pShaderCom, "g_NormalMapTexture"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CWorldDecal* CWorldDecal::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CWorldDecal* pInstance = new CWorldDecal(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CWorldDecal");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CWorldDecal::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CWorldDecal* pInstance = new CWorldDecal(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CWorldDecal");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CWorldDecal::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pDiffuseMaskTextureCom);
|
||||
SAFE_RELEASE(m_pFadeTextureCom);
|
||||
SAFE_RELEASE(m_pMaskTextureCom);
|
||||
SAFE_RELEASE(m_pNormalTextureCom);
|
||||
SAFE_RELEASE(m_pSurfaceTextureCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CWorldDecal::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -35,6 +35,8 @@ class CBroom final : public CUnit
|
||||
_bool Get_Turbo() { return m_bTurbo; }
|
||||
|
||||
void Set_Input(BroomInput broomInput) { m_Input = broomInput; }
|
||||
void Set_AISpeed(_float speedMul, _float accelMul);
|
||||
void Set_Move(_bool bMove) { m_bMove = bMove; }
|
||||
HRESULT Ready_Child();
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
@@ -60,13 +62,23 @@ class CBroom final : public CUnit
|
||||
_float m_fTurnDecel = 0.3f;
|
||||
_float m_fVerticalSpeed = 0.f;
|
||||
|
||||
|
||||
_float m_fFlyAccel = 1.f;
|
||||
_float m_fFlyDecel = 1.f;
|
||||
|
||||
_float m_fTurboAccel = 1.3f;
|
||||
_float m_fTurboDecel = 0.6f;
|
||||
|
||||
_bool m_bMove = { true };
|
||||
|
||||
#pragma region AI
|
||||
_float m_fAISpeedMul = 1.f;
|
||||
_float m_fAIAccelMul = 1.f;
|
||||
|
||||
_float m_fAICondition = 1.f;
|
||||
_float m_fAISeed = 0.f;
|
||||
_float m_fAITime = 0.f;
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
_float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, };
|
||||
@@ -75,6 +87,7 @@ class CBroom final : public CUnit
|
||||
BroomInput m_Input;
|
||||
class CEffectParts* m_pWindEffect = { nullptr };
|
||||
_float m_fCameraOffset = { 10.f };
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
@@ -98,6 +111,7 @@ class CBroom final : public CUnit
|
||||
_float m_fAmount = { 1.f };
|
||||
_float m_fInputTime = {};
|
||||
_bool m_bRatio = { false };
|
||||
|
||||
|
||||
HRESULT InputAction();
|
||||
HRESULT InputMove();
|
||||
|
||||
@@ -10,11 +10,23 @@ class CBroomRaceManager final : public CGameObject
|
||||
public:
|
||||
struct RacerInfo
|
||||
{
|
||||
CGameObject* pRacer = nullptr;
|
||||
class CPlayer* pRacer = nullptr;
|
||||
class CBroomRacerAI* pAI = nullptr;
|
||||
_uint curRing = 0;
|
||||
_vector prevPos = XMVectorZero();
|
||||
};
|
||||
|
||||
enum class RACE_STATE
|
||||
{
|
||||
READY,
|
||||
COUNTDOWN,
|
||||
START,
|
||||
RACING,
|
||||
FINISH,
|
||||
END
|
||||
};
|
||||
|
||||
|
||||
private:
|
||||
CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CBroomRaceManager(const CBroomRaceManager& Prototype);
|
||||
@@ -24,23 +36,25 @@ class CBroomRaceManager final : public CGameObject
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
class CRaceRing* GetTargetRing(CGameObject* pRacer);
|
||||
virtual HRESULT Render() override;
|
||||
void SetTargetRing(CGameObject* pRacer);
|
||||
void Push_BroomRacer(RacerInfo Info);
|
||||
void Push_RaceRing(CRaceRing* Ring);
|
||||
void Push_RaceRing(class CRaceRing* Ring);
|
||||
_int Get_RaceState() const { return m_eRaceState; }
|
||||
private:
|
||||
vector<class CRaceRing*> m_pRaceRings = {};
|
||||
vector<RacerInfo> m_Racers = {};
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
unique_ptr<GeometricPrimitive> m_pGripShape = { nullptr };
|
||||
unique_ptr<GeometricPrimitive> m_pSubShape = { nullptr };
|
||||
#endif // _DEBUG
|
||||
_float m_fCountTimer = {};
|
||||
_int m_iCount = { 3 };
|
||||
_int m_eRaceState = { ENUM_CLASS(RACE_STATE::END) };
|
||||
_wstring ToolTip;
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
void Update_Countdown(_float fTimeDelta);
|
||||
void StartRaceMove();
|
||||
void Check_RingPassed();
|
||||
|
||||
public:
|
||||
|
||||
@@ -39,6 +39,9 @@ class CBroomRacerAI final : public CUnit
|
||||
virtual HRESULT Render_Shadow(SHADOW eType) override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
|
||||
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 = {};
|
||||
@@ -48,7 +51,7 @@ class CBroomRacerAI final : public CUnit
|
||||
class CBroom* m_pBroom = { nullptr };
|
||||
class CRaceRing* m_pRaceRing = { nullptr };
|
||||
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
|
||||
class CCamPosition_Shoulder* m_pCamPosition_ShoulderPart = { nullptr };
|
||||
class CCamPosition_AI* m_pCamPosition_AIPart = { nullptr };
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
@@ -57,6 +60,8 @@ class CBroomRacerAI final : public CUnit
|
||||
HRESULT Bind_ShaderResources();
|
||||
HRESULT Bind_ShaderParameters(_uint iMeshOrder);
|
||||
|
||||
_vector Get_RingForwardTarget();
|
||||
|
||||
_float ComputeTurnToRing();
|
||||
_float ComputeHeightAdjust();
|
||||
#ifdef _DEBUG
|
||||
@@ -95,8 +100,11 @@ class CBroomRacerAI final : public CUnit
|
||||
_float m_fScaleSmoothSpeed = 2.5f;
|
||||
_float m_fAnimTime = {};
|
||||
_bool m_bTurbo = {};
|
||||
_float m_fSmoothX = {};
|
||||
_float m_fSmoothY = {};
|
||||
_bool m_bMove = {};
|
||||
_float m_LaneOffsetX = 0.f;
|
||||
_float m_LaneOffsetY = 0.f;
|
||||
_float m_TurnGain = 1.f;
|
||||
_float m_HeightGain =1.f;
|
||||
|
||||
void Behavior_Broom_Ride_MoveEnter();
|
||||
HRESULT Behavior_Broom_Ride_MoveExitCheck(_float fTimeDelta);
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
#include "CamPosition.h"
|
||||
#include "CamPosition_Target.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CCamPosition_AI final : public CCamPosition
|
||||
{
|
||||
public:
|
||||
typedef struct tagCameraAI_Desc : public CCamPosition::CAMERAPOSITION_DESC
|
||||
{
|
||||
}CAMERA_AI_DESC;
|
||||
private:
|
||||
CCamPosition_AI(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CCamPosition_AI(const CCamPosition_AI& rhs);
|
||||
virtual ~CCamPosition_AI() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
_vector Get_ShoulderGlobalPos();
|
||||
void Set_CameraShake(_float fXShock, _float fYShock);
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components(void* pArg);
|
||||
HRESULT Ready_SubParts();
|
||||
_vector Calc_LookTargetPos();
|
||||
_vector Calc_FollowTargetPos(_vector vLookTargetWorldPos);
|
||||
_vector Calc_DampingParentPos();
|
||||
|
||||
#pragma region Base
|
||||
_float m_fMouseSensor = { 0.1f };
|
||||
_float m_fCameraFowardDistance = { 3.45f };
|
||||
_float m_fCameraBarrelLength = { 10.f };
|
||||
_float2 m_vFocalRatio = { 0.f, 0.467f };
|
||||
_float m_fHeadHeight = { 1.61f };
|
||||
_float m_fFollowTargetIncludedAngleDegree = { 20.f };
|
||||
_float m_fDefaultCameraBackToFrontRatio = { 0.61f };
|
||||
_float2 m_vAccRotDegrees = { 0.f, 0.f };
|
||||
_float2 m_vAccRealDegrees = { 0.f, 0.f };
|
||||
_float3 m_vShoulderLocalPos = { 1.f, 2.f, 2.f };
|
||||
#pragma endregion
|
||||
#pragma region Lerp
|
||||
_bool m_bStartGame = { true };
|
||||
_bool m_bDampingParentPos = { true };
|
||||
_bool m_bShoulderLerp = { false };
|
||||
_bool m_bRightShoulderActive = { true };
|
||||
_float2 m_vShoulderLerpTimer = { 0.f, 0.30f };
|
||||
_float2 m_vDampingLerpTimer = { 0.f, 0.10f };
|
||||
_float2 m_vStartLerpTimer = { 0.f, 0.30f };
|
||||
|
||||
_float2 m_vShoulderLerpDegree = { };
|
||||
_float2 m_vShoulderLerpIncludedAngleDegree = { -20.f, 20.f };
|
||||
_float4 m_vDampingStartPosition = { };
|
||||
_float4 m_vDampingDestPosition = { };
|
||||
|
||||
_float m_fFocalRatioTargetValue = 0.f;
|
||||
_float m_fFocalRatioLerpSpeed = 6.f;
|
||||
_float m_fFocalRatioMin = 0.05f;
|
||||
|
||||
_float2 m_vMoveLerpPositions = { };
|
||||
_float2 m_vMoveLerpTimer = { 0.f, TIMER_SHORT_LERP };
|
||||
#pragma endregion
|
||||
_float2 m_vCameraShakeTimer = { 0.f, 0.3f };
|
||||
|
||||
PSX::PxSweepBuffer m_BufferHit = {};
|
||||
|
||||
_bool m_bZoomIn = { false };
|
||||
_bool m_bMovable = { true };
|
||||
|
||||
const _float4* m_pParentPos = { nullptr };
|
||||
CTransform* m_pLookTransform = { nullptr };
|
||||
CTransform* m_pFollowTransform = { nullptr };
|
||||
CCamPosition_Target* m_pTarget_LookPart = { nullptr };
|
||||
CCamPosition_Target* m_pTarget_FollowPart = { nullptr };
|
||||
class CCamera_Gaze* m_pBinded_Camera = { nullptr };
|
||||
|
||||
public:
|
||||
static CCamPosition_AI* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CCamPosition_AI* Clone(void* pArg, class CGameObject* pOWner) override;
|
||||
virtual void Free() override;
|
||||
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -23,6 +23,7 @@ class CCamera_Gaze final : public CCamera
|
||||
void Enable_FollowLerp();
|
||||
void Enable_LookLerp();
|
||||
void Toggle_Priority();
|
||||
void Toggle_AIPriority();
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
|
||||
@@ -7,11 +7,11 @@ namespace Client
|
||||
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
|
||||
|
||||
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ,SPECTOR, END };
|
||||
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, WATER, LAND, NONMRO,SPECTOR_WEAPON, GLASS_CUBE,END };
|
||||
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, WATER, LAND, NONMRO,SPECTOR_WEAPON, GLASS_CUBE, LEVIOSO, DECAL, END };
|
||||
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
|
||||
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
|
||||
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLEND, TRAILWB_FOR_BLEND, TRAIL_BLUR, TRAIL_BLOOM, END };
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, END};
|
||||
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX, DISTORTION, NONPOS, NONPOS_BLUR , BLUR_MESH, BLUR_CULLING, BLUR_CULLING_NO_EMISSIVE, BLOOM_CULLING, DEFAULT_NONPOS, END};
|
||||
enum class SHADER_PASS_UIEDITOR {
|
||||
DEFAULT, COLOR, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR,
|
||||
LODING, HOLD_ROTATION, MISSION, QUESTTYPE, UVMULT, NINECLICE,
|
||||
@@ -67,6 +67,11 @@ namespace Client
|
||||
|
||||
/*고블린 메이지*/
|
||||
GOBLIN_MAGE_ATTACK , GOBLIN_MAGE_DOWN , GOBLIN_MAGE_SIDE,
|
||||
|
||||
/*란록*/
|
||||
|
||||
RANROK_FIREBALL, RANROK_BREATH,
|
||||
|
||||
END
|
||||
};
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Client {
|
||||
|
||||
#define CAMERA_DEBUG TEXT("CAMERA_DEBUG")
|
||||
#define CAMERA_SHOULDER TEXT("CAMERA_SHOULDER")
|
||||
#define CAMERA_HEAD TEXT("CAMERA_HEAD")
|
||||
#define CAMERA_AI TEXT("CAMERA_AI")
|
||||
#pragma endregion
|
||||
#pragma region COMPONENT
|
||||
|
||||
|
||||
@@ -225,10 +225,10 @@ namespace Client
|
||||
_float2 vDissolveUVGainAmount = {};
|
||||
_bool isDissolveMove = {};
|
||||
|
||||
_float3 vDissolveValue = {};
|
||||
_float3 vDissolveValue = {}; /* Soft Mask , Cut Ratio*/
|
||||
|
||||
_float fModelDistortIntensity = {};
|
||||
_float vPadding0 = {};
|
||||
_float fPadding0 = {};
|
||||
|
||||
_float fLightDeley = {};
|
||||
_float fLightIntensity = {};
|
||||
@@ -255,7 +255,11 @@ namespace Client
|
||||
_bool isDiffuse_B = {};
|
||||
_bool isBlurColor = {};
|
||||
|
||||
_float vPadding4 = {};
|
||||
_bool isBlurDissolve = {};
|
||||
_bool isNomalMap = {};
|
||||
_bool isNoDissolveSmoothStep = {};
|
||||
_bool isPadding3 = {};
|
||||
|
||||
_float4 vPadding5 = {};
|
||||
|
||||
_bool isRimLight = {};
|
||||
|
||||
@@ -59,7 +59,9 @@ class CDialogue final : public CElementObject
|
||||
static CDialogue* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -48,6 +48,8 @@ class CEffectObject abstract : public CPartObject
|
||||
CTexture* m_pDissolve_TextureCom = { nullptr };
|
||||
CTexture* m_pEmissive_TextureCom = { nullptr };
|
||||
CTexture* m_pDistortion_TextureCom = { nullptr };
|
||||
CTexture* m_pNormal_TextureCom = { nullptr };
|
||||
CTexture* m_pSurface_TextureCom = { nullptr };
|
||||
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CLight* m_pLightCom = { nullptr };
|
||||
@@ -66,6 +68,7 @@ class CEffectObject abstract : public CPartObject
|
||||
_wstring m_strModelName = {};
|
||||
_wstring m_strEmissiveName = {};
|
||||
_wstring m_strDistortionName = {};
|
||||
_wstring m_strNomalMapName = {};
|
||||
|
||||
public:
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -25,6 +25,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
_wstring wstrDissolveName = {};
|
||||
_wstring wstrEmissiveName = {};
|
||||
_wstring wstrDistortionName = {};
|
||||
_wstring wstrNomalName = {};
|
||||
_wstring wstrModelName = {};
|
||||
|
||||
_wstring wstrEffectName = {};
|
||||
@@ -77,6 +78,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
_int CollisionCheck();
|
||||
ON_COLLISION_INFO SweepTarget(_vector StartPos, _vector EndPos, _float fRadius, _bool isTerrainCollision = false);
|
||||
ON_COLLISION_INFO MonsterSweepTarget(_vector StartPos, _vector EndPos, _float fRadius, _bool isTerrainCollision = false);
|
||||
ON_COLLISION_INFO MonsterRayCast(_vector StartPos, _vector vDir, _float fLength, _uint iMaxHitCapacity);
|
||||
|
||||
protected:
|
||||
_float4 m_vStartPos = {};
|
||||
@@ -93,6 +95,7 @@ class CEffect_Container abstract : public CContainerObject
|
||||
_float m_fDelay = {};
|
||||
_bool m_isDelayed = { false };
|
||||
_bool m_isCollisionEnter = { false };
|
||||
_uint m_iHitCount = {};
|
||||
|
||||
map<_float, function<void()>> m_Events = {};
|
||||
_uint m_iSkillType = ENUM_CLASS(SKILL_TYPE::END);
|
||||
|
||||
@@ -54,6 +54,8 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
HRESULT Load_WaterElemet(const _char* pFileName);
|
||||
HRESULT Load_DoorElemet(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_ChestElemet(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_PointLights(const _char* pFileName, const _wchar* pLayerTag);
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
|
||||
@@ -27,6 +27,8 @@ class CMapInfo final : public CBase
|
||||
HRESULT Load_WaterElemet(const _char* pFileName);
|
||||
HRESULT Load_DoorElemet(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_ChestElemet(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_PointLights(const _char* pFilePath, const _wchar* pLayerTag);
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
@@ -63,7 +63,11 @@ class CNPCInteraction final : public CGameObject
|
||||
static CNPCInteraction* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -30,6 +30,7 @@ class CPlayer final : public CUnit
|
||||
typedef struct tagPlayerInitDesc {
|
||||
_float4 vPos;
|
||||
_float4 vRotQ;
|
||||
class CBroomRaceManager* pBroomRaceManager;
|
||||
}PLAYERDESC;
|
||||
private:
|
||||
CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
@@ -49,6 +50,8 @@ class CPlayer final : public CUnit
|
||||
void Set_Shield(_bool bShield) { m_bShield = bShield; }
|
||||
void Start_CameraShake(_float fTime, _float fIntense);
|
||||
_int Get_UIState() { return m_eUIState; }
|
||||
void Set_RaceRing(class CRaceRing* pRaceRing) { m_pRaceRing = pRaceRing; }
|
||||
class CBroom* Get_Broom() { return m_pBroom; }
|
||||
#ifdef _DEBUG
|
||||
void Render_CameraCoordinateSystem();
|
||||
#endif // _DEBUG
|
||||
@@ -89,6 +92,9 @@ class CPlayer final : public CUnit
|
||||
class CTransform* m_pBroomTransform = { nullptr };
|
||||
class CBroom* m_pBroom = { nullptr };
|
||||
CStat* m_pStat = { nullptr };
|
||||
|
||||
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
|
||||
class CRaceRing* m_pRaceRing = { nullptr };
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
@@ -163,6 +169,10 @@ class CPlayer final : public CUnit
|
||||
_float m_fMoveTime = {};
|
||||
_float m_fCross = 0.f;
|
||||
_float m_fabsDir = 0.f;
|
||||
_float m_fNoInputTime = 0.f;
|
||||
_float m_fNeutralTime = 0.f;
|
||||
|
||||
|
||||
/* 무적 불 변수*/
|
||||
#ifdef _DEBUG
|
||||
_bool m_isDebugMode = { false };
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CLight;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CPointLight final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagPointLightDesc
|
||||
{
|
||||
_float3 vPosition;
|
||||
_float4 vDiffuse;
|
||||
_float4 vAmbient;
|
||||
_float4 vSpecular;
|
||||
_float3 vPosOffset;
|
||||
_float fRange;
|
||||
_float fLightAttRange;
|
||||
_float fLightAttSpeed;
|
||||
_float fPow;
|
||||
|
||||
}POINTLIGHT_DESC;
|
||||
private:
|
||||
CPointLight(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CPointLight(const CPointLight& rhs);
|
||||
virtual ~CPointLight() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
CLight* m_pLightCom = { nullptr };
|
||||
|
||||
_float m_fAttenuationTime = { 0.f };
|
||||
_float m_fLightIntensity = { 1.f };
|
||||
_float m_fLightIntensitySpeed = { 1.f };
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources()override;
|
||||
|
||||
public:
|
||||
static CPointLight* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -7,6 +7,12 @@ NS_BEGIN(Client)
|
||||
|
||||
class CRaceRing final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct RaceRingDesc
|
||||
{
|
||||
class CBroomRaceManager* pBroomRaceManager = { nullptr };
|
||||
_int iIndex = { 0 };
|
||||
}RACERING_DESC;
|
||||
private:
|
||||
CRaceRing(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRaceRing(const CRaceRing& Prototype);
|
||||
@@ -19,13 +25,14 @@ class CRaceRing final : public CGameObject
|
||||
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 };
|
||||
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
|
||||
|
||||
|
||||
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
_bool m_bTarget = { false };
|
||||
_int m_iIndex = {};
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_Breath final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_Breath(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_Breath(const CRanrok_Breath& rhs);
|
||||
virtual ~CRanrok_Breath() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pBreath = { nullptr };
|
||||
class CEffectParts* m_pBreath_Black = { nullptr };
|
||||
class CEffectParts* m_pBreathSlog = { nullptr };
|
||||
class CEffectParts* m_pMouthFire = { nullptr };
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.8f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vPreCollisionPos = {};
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
|
||||
_bool m_isParticleEnd = {};
|
||||
_bool m_isStartRayCast = {};
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_Breath* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,59 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CRanrok_FireBall final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CRanrok_FireBall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CRanrok_FireBall(const CRanrok_FireBall& rhs);
|
||||
virtual ~CRanrok_FireBall() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
class CEffectParts* m_pFireBall = { nullptr };
|
||||
class CEffectParts* m_pFireBall_PT = { nullptr };
|
||||
class CEffectParts* m_pFireBall_Surface = { nullptr };
|
||||
class CEffectParts* m_pFireBall_Tail = { nullptr };
|
||||
|
||||
_float3 m_vLook = {};
|
||||
_float m_fLinearSpeed = 0.3f;
|
||||
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
_float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f };
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
public:
|
||||
static CRanrok_FireBall* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,79 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "GameObject.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CModel;
|
||||
class CShader;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CWorldDecal final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagWorldDecalDesc
|
||||
{
|
||||
_float3 vPosition = {};
|
||||
_float3 vRotation = {};
|
||||
_float3 vScale = { 1.f, 1.f, 1.f };
|
||||
_float fUVTiling = { 1.f };
|
||||
_float2 vUVSpeed = {};
|
||||
_float4 vMaskRed = {};
|
||||
_float4 vMaskGreen = {};
|
||||
_float4 vMaskBlue = {};
|
||||
}WORLD_DECAL_DESC;
|
||||
|
||||
private:
|
||||
CWorldDecal(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CWorldDecal(const CWorldDecal& rhs);
|
||||
virtual ~CWorldDecal() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
|
||||
CTexture* m_pMaskTextureCom = { nullptr };
|
||||
CTexture* m_pNormalTextureCom = { nullptr };
|
||||
CTexture* m_pSurfaceTextureCom = { nullptr };
|
||||
CTexture* m_pFadeTextureCom = { nullptr };
|
||||
CTexture* m_pDiffuseMaskTextureCom = { nullptr };
|
||||
|
||||
_float m_fUVTiling = { 1.f };
|
||||
_float m_fUsingSurfaceParams = {};
|
||||
|
||||
_float m_fWinSizeX = {};
|
||||
_float m_fWinSizeY = {};
|
||||
|
||||
_float2 m_fTimeAcc = {};
|
||||
_float2 m_vUVSpeed = {};
|
||||
|
||||
_float4 m_vMaskRed = {};
|
||||
_float4 m_vMaskGreen = {};
|
||||
_float4 m_vMaskBlue = {};
|
||||
|
||||
_float4x4 m_WorldMatrixInv = {};
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CWorldDecal* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,138 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Decal>
|
||||
<Object Type="0">
|
||||
<Position x="23.064043" y="17.79904" z="36.001831"/>
|
||||
<Scale x="3.2999971" y="5.7000027" z="3.9499965"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="-0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="0.60337555" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="25.208988" y="9.4919615" z="63.437943"/>
|
||||
<Scale x="10" y="10" z="10"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="0.67932487" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-14.628001" y="0.34812045" z="80.740379"/>
|
||||
<Scale x="10" y="5.7499948" z="10"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="0.80000001" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="0.41772151" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="14.87022" y="-0.71029562" z="123.57125"/>
|
||||
<Scale x="10" y="5" z="10"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="-0.050000001" UVSpeedY="-0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-48.32011" y="-2.859134" z="159.40923"/>
|
||||
<Scale x="15" y="15" z="15"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1.5" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-63.254097" y="8.0953531" z="100.58904"/>
|
||||
<Scale x="20" y="20" z="20"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-24.19603" y="-2.1925411" z="134.61833"/>
|
||||
<Scale x="5" y="5" z="5"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="41.522991" y="3.4805374" z="92.902313"/>
|
||||
<Scale x="10" y="10" z="10"/>
|
||||
<Rotation x="-6" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.1" UVSpeedY="0.0099999998"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="0.61603379" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="0.41940498" y="-56.286255" z="326.91235"/>
|
||||
<Scale x="40" y="40" z="40"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1.5" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="140.95218" y="-19.485357" z="207.52498"/>
|
||||
<Scale x="40" y="40" z="40"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="21.363962" y="-52.246094" z="141.66223"/>
|
||||
<Scale x="40" y="40" z="40"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="2" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="138.24527" y="-24.035309" z="330.08545"/>
|
||||
<Scale x="20" y="20" z="20"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="98.079231" y="43.717194" z="184.50642"/>
|
||||
<Scale x="50" y="60" z="50"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1.8" UVSpeedX="0.050000001" UVSpeedY="0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="-91.378159" y="31.625393" z="307.6268"/>
|
||||
<Scale x="90" y="80" z="90"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="1.5" UVSpeedX="-0.050000001" UVSpeedY="-0.050000001"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
<Object Type="0">
|
||||
<Position x="15.310637" y="-60.154591" z="221.93025"/>
|
||||
<Scale x="60" y="0.40000001" z="60"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Shader_Value UVTiling="6" UVSpeedX="-0.02" UVSpeedY="-0.02"/>
|
||||
<MaskRed r="1" g="0" b="0" a="1"/>
|
||||
<MaskGreen r="0" g="0" b="0" a="0"/>
|
||||
<MaskBlue r="1" g="0" b="0" a="1"/>
|
||||
</Object>
|
||||
</Decal>
|
||||
@@ -1,33 +1,123 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<MapLightObjects>
|
||||
<Object>
|
||||
<Position x="22.502481" y="27.118675" z="36.93272"/>
|
||||
<Position x="14.413321" y="-0.74579668" z="123.6903"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="33" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
<Info Range="12" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-17.661867" y="0.62647653" z="110.38875"/>
|
||||
<Position x="23.764732" y="17.500727" z="36.780281"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="17" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
<Info Range="7" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="26.202196" y="-59.652584" z="295.25424"/>
|
||||
<Position x="24.508326" y="7.4453187" z="66.289886"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="25" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
<Info Range="11" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-14.094388" y="1.1009431" z="80.09259"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="10" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-56.559349" y="14.785403" z="101.42036"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="22" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="81.734085" y="57.872528" z="173.21597"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="1" y="0" z="0"/>
|
||||
<PosOffset x="7" y="9" z="7"/>
|
||||
<Info Range="61" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-49.58091" y="-3.5738029" z="160.27904"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="19" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="3.1544192" y="-55.74688" z="328.32199"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="49" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="139.00926" y="-25.585093" z="331.18787"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="40" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="140.63963" y="-19.12134" z="208.22488"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="1" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="64" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="18.077103" y="-49.567036" z="147.19336"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="55" LightAttRange="1.5" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-93.278625" y="26.359657" z="307.81937"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<Diffuse x="1" y="0" z="0"/>
|
||||
<Ambient x="1" y="0" z="0"/>
|
||||
<Specular x="0.2" y="0" z="0"/>
|
||||
<PosOffset x="0" y="0" z="0"/>
|
||||
<Info Range="106" LightAttRange="1" LightAttSpeed="1" Pow="1"/>
|
||||
</Object>
|
||||
</MapLightObjects>
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 69 B |
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,237 @@
|
||||
<Material>
|
||||
<MI_Ghost_P ShaderIndex = "8" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Ghost_Peeves_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Ghost_Peeves_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Ghost_Peeves_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_Ghost_P>
|
||||
<MI_GHO_M_Hair_GHOHair03_Peeves ShaderIndex = "4" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Ghost_Peeves_Hair_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Ghost_Peeves_Hair_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Ghost_Peeves_Hair_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_GHO_M_Hair_GHOHair03_Peeves>
|
||||
<MI_HUM_M_Body_PeevesArms ShaderIndex = "1" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Ghost_Peeves_Arms_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Adult_M_Arms_Ivory_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Ghost_Peeves_Arms_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_M_Body_PeevesArms>
|
||||
|
||||
<MI_HUM_N_Heads_Eyelash ShaderIndex = "0" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Ghost_Peeves_Hair_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Ghost_Peeves_Hair_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Ghost_Peeves_Hair_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_N_Heads_Eyelash>
|
||||
|
||||
<MI_HUM_N_Heads_Teeth_2_Poltergiest ShaderIndex = "1" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_Head_Teeth_Decay5_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_HUM_Head_Teeth_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="T_HUM_Head_Teeth_SRXO" Extension=".dds"/>
|
||||
</MI_HUM_N_Heads_Teeth_2_Poltergiest>
|
||||
<MI_Adult_M_Peeves ShaderIndex = "6" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Old_M_Head_Peeves_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Old_M_Head_Peeves_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Old_M_Head_Peeves_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_Adult_M_Peeves>
|
||||
<MI_HUM_N_Heads_EyeOcclusion ShaderIndex = "3" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_DefaultGrey_D" Extension=".png"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_N_Heads_EyeOcclusion>
|
||||
<MI_HUM_M_Heads_Eye_PoltergiestTEst ShaderIndex = "2" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_D" Extension=".png"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="T_Poltergeist_Eye_E" Extension=".dds"/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Eye_Wetness_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Poltergeist_Eye_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_M_Heads_Eye_PoltergiestTEst>
|
||||
|
||||
</Material>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
|
After Width: | Height: | Size: 415 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 371 KiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user