@@ -36,6 +36,10 @@ HRESULT CGoblin_Mage::Behavior_IdleExitCheck()
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBLIN_PROTEGO, this);
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
}
|
||||
else if (m_fTargetDistance >= 25.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -81,7 +85,7 @@ void CGoblin_Mage::Behavior_IdleBreakEnter()
|
||||
HRESULT CGoblin_Mage::Behavior_IdleBreakExitCheck()
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
|
||||
@@ -39,6 +39,10 @@ HRESULT CGoblin::Behavior_IdleExitCheck()
|
||||
m_vOriginPos = m_pTransformCom->Get_State(STATE::POSITION);
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
}
|
||||
else if (m_fTargetDistance >= 25.f)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLEBREAK);
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -84,7 +88,7 @@ void CGoblin::Behavior_IdleBreakEnter()
|
||||
HRESULT CGoblin::Behavior_IdleBreakExitCheck()
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
|
||||
@@ -247,7 +247,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
isReady_Background = true;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
isReady_Background = false;
|
||||
isReady_Background = true;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
isReady_Background = false;
|
||||
|
||||
@@ -298,7 +298,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_Background = true;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
isLoad_Background = false;
|
||||
isLoad_Background = true;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
isLoad_Background = false;
|
||||
|
||||
@@ -814,7 +814,7 @@ void CPlayer::Behavior_CombatEnter()
|
||||
if (nullptr != m_pGrapInteractive) {
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
}
|
||||
}
|
||||
else if (nullptr != m_LockOnInfo.pInteractive) {
|
||||
m_pGrapInteractive = m_LockOnInfo.pInteractive;
|
||||
SAFE_ADDREF(m_pGrapInteractive);
|
||||
@@ -822,6 +822,21 @@ void CPlayer::Behavior_CombatEnter()
|
||||
m_vGrapInteratableLerp.x = 0.f;
|
||||
return;
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { _vector vDir = {};
|
||||
_float vDistance = 45.f;
|
||||
CRigidBody_Dynamic* pBody = m_pGrapInteractive->Get_Component<CRigidBody_Dynamic>();
|
||||
if (nullptr != m_LockOnInfo.pUnit) {
|
||||
vDir = XMVector3Normalize(m_LockOnInfo.pUnit->Get_LockOnPos() - m_pGrapInteractive->Get_LockOnPos());
|
||||
}
|
||||
else {
|
||||
vDir = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
}
|
||||
m_pGrapInteractive->Set_KinematicFlag(false);
|
||||
pBody->Add_Force(vDir * vDistance, PSX::PxForceMode::eIMPULSE);
|
||||
SAFE_RELEASE(m_pGrapInteractive); },
|
||||
0.2f);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::POTION);
|
||||
@@ -874,6 +889,21 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW);
|
||||
pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { _vector vDir = {};
|
||||
_float vDistance = 45.f;
|
||||
CRigidBody_Dynamic* pBody = m_pGrapInteractive->Get_Component<CRigidBody_Dynamic>();
|
||||
if (nullptr != m_LockOnInfo.pUnit) {
|
||||
vDir = XMVector3Normalize(m_LockOnInfo.pUnit->Get_LockOnPos() - m_pGrapInteractive->Get_LockOnPos());
|
||||
}
|
||||
else {
|
||||
vDir = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
}
|
||||
m_pGrapInteractive->Set_KinematicFlag(false);
|
||||
pBody->Add_Force(vDir * vDistance, PSX::PxForceMode::eIMPULSE);
|
||||
SAFE_RELEASE(m_pGrapInteractive); },
|
||||
0.2f);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::POTION);
|
||||
@@ -904,18 +934,6 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
{
|
||||
if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Throw")) {
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
_vector vDir = {};
|
||||
_float vDistance = 45.f;
|
||||
CRigidBody_Dynamic* pBody = m_pGrapInteractive->Get_Component<CRigidBody_Dynamic>();
|
||||
if (nullptr != m_LockOnInfo.pUnit) {
|
||||
vDir = XMVector3Normalize(m_LockOnInfo.pUnit->Get_LockOnPos() - m_pGrapInteractive->Get_LockOnPos());
|
||||
}
|
||||
else {
|
||||
vDir = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
}
|
||||
m_pGrapInteractive->Set_KinematicFlag(false);
|
||||
pBody->Add_Force(vDir * vDistance, PSX::PxForceMode::eIMPULSE);
|
||||
SAFE_RELEASE(m_pGrapInteractive);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,28 +121,28 @@ void CTroll::Update(_float fTimeDelta)
|
||||
|
||||
#pragma region TRAIL_UPDATE
|
||||
|
||||
//_matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix();
|
||||
_matrix WorldMat = m_pTransformCom->Get_XMWorldMatrix();
|
||||
|
||||
//_matrix LeftHandMatrix = {};
|
||||
//_matrix RightHandMatrix = {};
|
||||
//_matrix WeaponMatrix = {};
|
||||
_matrix LeftHandMatrix = {};
|
||||
_matrix RightHandMatrix = {};
|
||||
_matrix WeaponMatrix = {};
|
||||
|
||||
//LeftHandMatrix = XMLoadFloat4x4(m_pLeftHand_BoneMat);
|
||||
//RightHandMatrix = XMLoadFloat4x4(m_pRightHand_BoneMat);
|
||||
//WeaponMatrix = XMLoadFloat4x4(m_pWeapon_BoneMat);
|
||||
LeftHandMatrix = XMLoadFloat4x4(m_pLeftHand_BoneMat);
|
||||
RightHandMatrix = XMLoadFloat4x4(m_pRightHand_BoneMat);
|
||||
WeaponMatrix = XMLoadFloat4x4(m_pWeapon_BoneMat);
|
||||
|
||||
|
||||
//for (int i = 0; i < 3; ++i) {
|
||||
// LeftHandMatrix.r[i] = XMVector3Normalize(LeftHandMatrix.r[i]);
|
||||
// RightHandMatrix.r[i] = XMVector3Normalize(RightHandMatrix.r[i]);
|
||||
// WeaponMatrix.r[i] = XMVector3Normalize(WeaponMatrix.r[i]);
|
||||
//}
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
LeftHandMatrix.r[i] = XMVector3Normalize(LeftHandMatrix.r[i]);
|
||||
RightHandMatrix.r[i] = XMVector3Normalize(RightHandMatrix.r[i]);
|
||||
WeaponMatrix.r[i] = XMVector3Normalize(WeaponMatrix.r[i]);
|
||||
}
|
||||
|
||||
//_matrix WeaponSoket = WeaponMatrix * Get_PartObject<CTroll_Weapon>()->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
_matrix WeaponSoket = WeaponMatrix * Get_PartObject<CTroll_Weapon>()->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
//m_pLeftTrail->Trail_Update(LeftHandMatrix * WorldMat, fTimeDelta);
|
||||
//m_pRightTrail->Trail_Update(RightHandMatrix * WorldMat, fTimeDelta);
|
||||
//m_pWeaponTrail->Trail_Update(WeaponSoket, fTimeDelta);
|
||||
m_pLeftTrail->Trail_Update(LeftHandMatrix * WorldMat, fTimeDelta);
|
||||
m_pRightTrail->Trail_Update(RightHandMatrix * WorldMat, fTimeDelta);
|
||||
m_pWeaponTrail->Trail_Update(WeaponSoket, fTimeDelta);
|
||||
|
||||
#pragma endregion
|
||||
}
|
||||
|
||||
BIN
Binary file not shown.
@@ -2063,10 +2063,9 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
|
||||
|
||||
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\\VFX\\Meshes\\Static\\VFX_SM_Rock_01.fbx", XMMatrixIdentity())))) {
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_BattleAxe01.fbx", XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
// Heavy Wall
|
||||
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user