[Fix] 플레이어 구르기 수정
This commit is contained in:
@@ -412,9 +412,6 @@
|
|||||||
<ClInclude Include="..\Public\Goblin.h">
|
<ClInclude Include="..\Public\Goblin.h">
|
||||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Public\Goblin_BattleAxe.h">
|
|
||||||
<Filter>02.GameObjects\Item\Goblin_BattleAxe</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Public\CallBack_Playable_Behavior.h">
|
<ClInclude Include="..\Public\CallBack_Playable_Behavior.h">
|
||||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Player</Filter>
|
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Player</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
@@ -445,6 +442,9 @@
|
|||||||
<ClInclude Include="..\public\MapElement_Lake.h">
|
<ClInclude Include="..\public\MapElement_Lake.h">
|
||||||
<Filter>02.GameObjects\Environment\03.MapElement\Lake</Filter>
|
<Filter>02.GameObjects\Environment\03.MapElement\Lake</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\Public\Goblin_BattleAxe.h">
|
||||||
|
<Filter>02.GameObjects\Item\Goblin_Axe</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Image Include="Client.ico">
|
<Image Include="Client.ico">
|
||||||
@@ -953,8 +953,11 @@
|
|||||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Lake">
|
<Filter Include="02.GameObjects\Environment\03.MapElement\Lake">
|
||||||
<UniqueIdentifier>{a357d495-f74d-4aec-919e-0f6bac3e0e7b}</UniqueIdentifier>
|
<UniqueIdentifier>{a357d495-f74d-4aec-919e-0f6bac3e0e7b}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<Filter Include="02.GameObjects\Item\Goblin_Axe">
|
||||||
|
<UniqueIdentifier>{e666a8b4-c92e-48ee-b63b-40d852b27b06}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="Client.cpp">
|
<ClCompile Include="Client.cpp">
|
||||||
<Filter>99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@@ -1366,9 +1369,6 @@
|
|||||||
<ClCompile Include="..\Private\Goblin.cpp">
|
<ClCompile Include="..\Private\Goblin.cpp">
|
||||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\Private\Goblin_BattleAxe.cpp">
|
|
||||||
<Filter>02.GameObjects\Item\Goblin_BattleAxe</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\Private\CallBack_Playable_Behavior.cpp">
|
<ClCompile Include="..\Private\CallBack_Playable_Behavior.cpp">
|
||||||
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Player</Filter>
|
<Filter>02.GameObjects\PhysX\CallBack\Behavior\Player</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@@ -1399,11 +1399,13 @@
|
|||||||
<ClCompile Include="..\private\MapElement_Lake.cpp">
|
<ClCompile Include="..\private\MapElement_Lake.cpp">
|
||||||
<Filter>02.GameObjects\Environment\03.MapElement\Lake</Filter>
|
<Filter>02.GameObjects\Environment\03.MapElement\Lake</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\Private\Goblin_BattleAxe.cpp">
|
||||||
|
<Filter>02.GameObjects\Item\Goblin_Axe</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ResourceCompile Include="Client.rc">
|
<ResourceCompile Include="Client.rc">
|
||||||
<Filter>99.Define\00.DEFAULT</Filter>
|
<Filter>99.Define\00.DEFAULT</Filter>
|
||||||
</ResourceCompile>
|
</ResourceCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ HRESULT CGoblin_Mage::Initialize(void* pArg)
|
|||||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||||
SAFE_ADDREF(m_pEffectPool);
|
SAFE_ADDREF(m_pEffectPool);
|
||||||
|
|
||||||
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Random_Float(-20.f, 20.f), 0.f, m_pGameInstance->Random_Float(-20.f, 20.f), 1.f));
|
m_pCharacter_Controller->Set_Position(XMVectorSet(-50.f, 5.f, -10.f, 1.f));
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ void CGoblin_Mage::Behavior_BlinkEnter()
|
|||||||
_float randDist = m_pGameInstance->Real_Random_Float(-5.f, -3.f);
|
_float randDist = m_pGameInstance->Real_Random_Float(-5.f, -3.f);
|
||||||
|
|
||||||
_vector vFinalPos = vPos + offsetDir * randDist;
|
_vector vFinalPos = vPos + offsetDir * randDist;
|
||||||
|
vFinalPos = XMVectorSetY(vFinalPos, XMVectorGetY(vPos) + 1.f);
|
||||||
|
|
||||||
m_pCharacter_Controller->Set_Position(vFinalPos); }
|
m_pCharacter_Controller->Set_Position(vFinalPos); }
|
||||||
, 0.99f);
|
, 0.99f);
|
||||||
|
|||||||
@@ -176,45 +176,6 @@ HRESULT CGoblin_Spector::Ready_Parts()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#pragma region EFFECT
|
|
||||||
/* EFFECT */
|
|
||||||
|
|
||||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
|
||||||
|
|
||||||
PartsDesc.pParentTransform = m_pTransformCom;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(Add_PartObject<CEffectParts>("Goblin_Particle", g_iStaticLevel, &m_pGoblin_Particle, &PartsDesc)))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_pGoblin_Particle->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle", static_cast<LEVEL>(NEXT_LEVEL));
|
|
||||||
m_pGoblin_Particle->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder"));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(Add_PartObject<CEffectParts>("Goblin_Particle2", g_iStaticLevel, &m_pGoblin_Particle2, &PartsDesc)))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_pGoblin_Particle2->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Particle2", static_cast<LEVEL>(NEXT_LEVEL));
|
|
||||||
m_pGoblin_Particle2->FollowParants(m_pModelCom->Get_BoneMatrixPtr("RightShoulder"));
|
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(Add_PartObject<CEffectParts>("Goblin_Smoke", g_iStaticLevel, &m_pSmoke, &PartsDesc)))
|
|
||||||
{
|
|
||||||
return E_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_pSmoke->Load("../Bin/Resources/Data/Effect/Goblin/GoblinSide/Goblin_Smoke", static_cast<LEVEL>(NEXT_LEVEL));
|
|
||||||
m_pSmoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("Spine2"));
|
|
||||||
|
|
||||||
|
|
||||||
#pragma endregion
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#include "GameInstance.h"
|
#include "GameInstance.h"
|
||||||
#include "Player.h"
|
#include "Player.h"
|
||||||
#include "Goblin_Dagger.h"
|
#include "Goblin_Dagger.h"
|
||||||
|
#include "EffectParts.h"
|
||||||
|
|
||||||
#pragma region STATE
|
#pragma region STATE
|
||||||
#include "State_Idle.h"
|
#include "State_Idle.h"
|
||||||
@@ -102,14 +103,14 @@ HRESULT CGoblin::Behavior_MoveExitCheck(_float fTimeDelta)
|
|||||||
}
|
}
|
||||||
m_fMoveTime += fTimeDelta;
|
m_fMoveTime += fTimeDelta;
|
||||||
|
|
||||||
if (m_fMoveTime >= 2.5f)
|
if (m_fMoveTime >= 2.f)
|
||||||
{
|
{
|
||||||
m_bFirstMove = false;
|
m_bFirstMove = false;
|
||||||
m_fMoveTime = 0.f;
|
m_fMoveTime = 0.f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_fTargetDistance <= 15.f && m_fTargetDistance >= 6.f && m_fTargetDistance !=0.f)
|
if (m_fTargetDistance <= 15.f && m_fTargetDistance >= 3.f && m_fTargetDistance !=0.f)
|
||||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||||
|
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
@@ -283,6 +284,7 @@ void CGoblin::Behavior_BlinkEnter()
|
|||||||
_float randDist = m_pGameInstance->Real_Random_Float(5.f, 5.5f);
|
_float randDist = m_pGameInstance->Real_Random_Float(5.f, 5.5f);
|
||||||
|
|
||||||
_vector vFinalPos = vPlayerPos + offsetDir * randDist;
|
_vector vFinalPos = vPlayerPos + offsetDir * randDist;
|
||||||
|
vFinalPos = XMVectorSetY(vFinalPos, XMVectorGetY(vPlayerPos) + 1.f);
|
||||||
|
|
||||||
m_pCharacter_Controller->Set_Position(vFinalPos); }
|
m_pCharacter_Controller->Set_Position(vFinalPos); }
|
||||||
, 0.99f);
|
, 0.99f);
|
||||||
@@ -479,6 +481,9 @@ void CGoblin::Behavior_DeadEnter()
|
|||||||
}
|
}
|
||||||
pairAnimInfo = m_Animation[iState + bStrongerKnockDown];
|
pairAnimInfo = m_Animation[iState + bStrongerKnockDown];
|
||||||
|
|
||||||
|
Get_PartObject<CEffectParts>("Goblin_Particle")->Set_Visible(false);
|
||||||
|
Get_PartObject<CEffectParts>("Goblin_Particle2")->Set_Visible(false);
|
||||||
|
Get_PartObject<CEffectParts>("Goblin_Smoke")->Set_Visible(false);
|
||||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -246,8 +246,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
|||||||
#ifdef gimch
|
#ifdef gimch
|
||||||
isReady_Background = false;
|
isReady_Background = false;
|
||||||
#endif // gimch
|
#endif // gimch
|
||||||
#ifdef bin
|
#ifdef Bin
|
||||||
isReady_Background = false;
|
isReady_Background = true;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 진우
|
#ifdef 진우
|
||||||
isReady_Background = false;
|
isReady_Background = false;
|
||||||
@@ -453,7 +453,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag)
|
|||||||
|
|
||||||
HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||||
{
|
{
|
||||||
for (_uint i = 0; i < 5; ++i)
|
for (_uint i = 0; i <1; ++i)
|
||||||
{
|
{
|
||||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGoblin>(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|||||||
@@ -290,8 +290,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
#ifdef gimch
|
#ifdef gimch
|
||||||
isLoad_Background = false;
|
isLoad_Background = false;
|
||||||
#endif // gimch
|
#endif // gimch
|
||||||
#ifdef bin
|
#ifdef Bin
|
||||||
isLoad_Background = false;
|
isLoad_Background = true;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 진우
|
#ifdef 진우
|
||||||
isLoad_Background = false;
|
isLoad_Background = false;
|
||||||
@@ -1428,7 +1428,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/Troll_Rock_Big.bin", XMMatrixScaling(0.00004f, 0.00004f, 0.00004f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Dagger_Model"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Dagger_Model"),
|
||||||
|
|||||||
@@ -323,7 +323,7 @@ void CPlayer::Behavior_MoveEnter()
|
|||||||
m_bSprintToggle = false;
|
m_bSprintToggle = false;
|
||||||
m_bWalkToggle = false;
|
m_bWalkToggle = false;
|
||||||
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
|
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
|
||||||
m_bRatio = true;
|
//m_bRatio = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { // While Moving
|
else { // While Moving
|
||||||
@@ -732,12 +732,13 @@ void CPlayer::Behavior_DodgeEnter()
|
|||||||
|
|
||||||
HRESULT CPlayer::Behavior_DodgeExitCheck()
|
HRESULT CPlayer::Behavior_DodgeExitCheck()
|
||||||
{
|
{
|
||||||
|
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||||
if (m_pModelCom->IsFinishedAnim()) {
|
if (m_pModelCom->IsFinishedAnim()) {
|
||||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Throw")) {
|
if (SUCCEEDED(InputMove()) && fRatio>=0.32f) {
|
||||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -907,7 +908,7 @@ void CPlayer::Behavior_LightAttackEnter()
|
|||||||
|
|
||||||
Add_Event(pairAnimInfo.first,
|
Add_Event(pairAnimInfo.first,
|
||||||
[this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &iIndex); },
|
[this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &iIndex); },
|
||||||
0.1f);
|
0.08f);
|
||||||
|
|
||||||
Add_Event(pairAnimInfo.first,
|
Add_Event(pairAnimInfo.first,
|
||||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>()); },
|
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>()); },
|
||||||
@@ -929,7 +930,7 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck()
|
|||||||
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
|
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
|
||||||
pairAnimInfo.first = iNext;
|
pairAnimInfo.first = iNext;
|
||||||
|
|
||||||
if (fRatio >= 0.2f)
|
if (fRatio >= 0.1f)
|
||||||
{
|
{
|
||||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||||
|
|
||||||
@@ -1452,8 +1453,41 @@ void CPlayer::Add_FSM()
|
|||||||
Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_DodgeExitCheck(); };
|
Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_DodgeExitCheck(); };
|
||||||
Desc.funcExitEvent = [this]() { Behavior_DodgeExit(); };
|
Desc.funcExitEvent = [this]() { Behavior_DodgeExit(); };
|
||||||
Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
|
Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
|
||||||
if (m_pGameInstance->Key_Pressing(DIK_A)) { m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); }
|
|
||||||
if (m_pGameInstance->Key_Pressing(DIK_D)) { m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); };
|
_vector xmvInputDir = XMVectorZero();
|
||||||
|
|
||||||
|
_vector xmvCamLook = XMVector4Normalize(XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f));
|
||||||
|
_vector xmvCamRight = XMVector4Normalize(XMVectorSet(m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z, 0.f));
|
||||||
|
|
||||||
|
if (m_pGameInstance->Key_Pressing(DIK_W))
|
||||||
|
xmvInputDir += xmvCamLook;
|
||||||
|
if (m_pGameInstance->Key_Pressing(DIK_S))
|
||||||
|
xmvInputDir -= xmvCamLook;
|
||||||
|
if (m_pGameInstance->Key_Pressing(DIK_A))
|
||||||
|
xmvInputDir -= xmvCamRight;
|
||||||
|
if (m_pGameInstance->Key_Pressing(DIK_D))
|
||||||
|
xmvInputDir += xmvCamRight;
|
||||||
|
|
||||||
|
xmvInputDir = XMVector3Normalize(xmvInputDir);
|
||||||
|
|
||||||
|
_float2 vInputDir = { XMVectorGetX(xmvInputDir),XMVectorGetZ(xmvInputDir) };
|
||||||
|
|
||||||
|
_vector xmvCurLook = XMVector4Normalize(
|
||||||
|
XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
|
||||||
|
_float2 vCurLook = { XMVectorGetX(xmvCurLook),XMVectorGetZ(xmvCurLook) };
|
||||||
|
|
||||||
|
_float vDir = CMyTools::Get_Direction2D(vCurLook, vInputDir);
|
||||||
|
_float absDir = fabsf(vDir);
|
||||||
|
|
||||||
|
_float cross = vCurLook.x * vInputDir.y - vCurLook.y * vInputDir.x;
|
||||||
|
|
||||||
|
if (SUCCEEDED(InputMove()))
|
||||||
|
{
|
||||||
|
if(cross>0)
|
||||||
|
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta);
|
||||||
|
else
|
||||||
|
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
Desc.funcLateUpdate = nullptr;
|
Desc.funcLateUpdate = nullptr;
|
||||||
m_States.emplace(FSMSTATE::DODGE, CState_Dodge::Create(&Desc));
|
m_States.emplace(FSMSTATE::DODGE, CState_Dodge::Create(&Desc));
|
||||||
@@ -1582,23 +1616,6 @@ void CPlayer::Add_FSM()
|
|||||||
m_pTransformCom->Set_WorldMatrix(finalMat);
|
m_pTransformCom->Set_WorldMatrix(finalMat);
|
||||||
m_pCharacter_Controller->Set_Position(finalMat.r[3]);
|
m_pCharacter_Controller->Set_Position(finalMat.r[3]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
Desc.funcLateUpdate = nullptr;
|
Desc.funcLateUpdate = nullptr;
|
||||||
m_States.emplace(FSMSTATE::BROOM_RIDE, CState_Broom_Ride::Create(&Desc));
|
m_States.emplace(FSMSTATE::BROOM_RIDE, CState_Broom_Ride::Create(&Desc));
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ void CTroll_Rock::Priority_Update(_float fTimeDelta)
|
|||||||
_matrix world = XMLoadFloat4x4(m_pTransformCom->Get_WorldMatrixPtr());
|
_matrix world = XMLoadFloat4x4(m_pTransformCom->Get_WorldMatrixPtr());
|
||||||
m_pTransformCom->Set_WorldMatrix(world);
|
m_pTransformCom->Set_WorldMatrix(world);
|
||||||
|
|
||||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::LOOK), fTimeDelta * 20.f);
|
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::LOOK), fTimeDelta * 50.f);
|
||||||
m_pTransformCom->Go_Straight(fTimeDelta);
|
m_pTransformCom->Go_Straight(fTimeDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
</Object>
|
</Object>
|
||||||
<Object Type="2" ID="2" Lod_Level="0">
|
<Object Type="2" ID="2" Lod_Level="0">
|
||||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
|
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
|
||||||
<Position x="120.09058" y="15.934338" z="119.38182"/>
|
<Position x="120.09058" y="15.479147" z="119.38182"/>
|
||||||
<Scale x="0.99992603" y="1" z="0.99992603"/>
|
<Scale x="0.99992603" y="1" z="0.99992603"/>
|
||||||
<Rotation x="-0" y="-89.999985" z="-0"/>
|
<Rotation x="-0" y="-89.999985" z="-0"/>
|
||||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||||
|
|||||||
Binary file not shown.
@@ -1342,7 +1342,7 @@ HRESULT CLoader::Loading_For_Effect()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.fbx", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"),
|
||||||
@@ -2030,8 +2030,8 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
|||||||
m_strMessage = TEXT("Model Loading..");
|
m_strMessage = TEXT("Model Loading..");
|
||||||
|
|
||||||
|
|
||||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SK_WPN_GOB_SmallSword_Model"),
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SM_Rock_01_Model"),
|
||||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_SmallSword.fbx", XMMatrixIdentity())))) {
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\VFX\\Meshes\\Static\\VFX_SM_Rock_01.fbx", XMMatrixIdentity())))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user