[merge commit]

This commit is contained in:
kimnuri
2025-12-22 16:14:47 +09:00
135 changed files with 1632 additions and 440 deletions
@@ -161,6 +161,7 @@ call Update_Resources.bat
<ItemGroup>
<ClInclude Include="..\Public\Action_Panel.h" />
<ClInclude Include="..\Public\Barral_Splesh.h" />
<ClInclude Include="..\Public\TransformationSide.h" />
<ClInclude Include="..\Public\Transformation.h" />
<ClInclude Include="..\Public\LightningSide.h" />
<ClInclude Include="..\Public\Lightning.h" />
@@ -383,6 +384,7 @@ call Update_Resources.bat
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\Private\Action_Panel.cpp" />
<ClCompile Include="..\Private\TransformationSide.cpp" />
<ClCompile Include="..\Private\Transformation.cpp" />
<ClCompile Include="..\Private\LightningSide.cpp" />
<ClCompile Include="..\Private\Lightning.cpp" />
@@ -686,6 +686,9 @@
<ClInclude Include="..\Public\Transformation.h">
<Filter>02.GameObjects\Effect\Effects\Transformation</Filter>
</ClInclude>
<ClInclude Include="..\Public\TransformationSide.h">
<Filter>02.GameObjects\Effect\Effects\Transformation\TransformationSide</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Client.ico">
@@ -1431,6 +1434,9 @@
<Filter Include="02.GameObjects\NPC\Ally\GateKeeper">
<UniqueIdentifier>{cef7b9f7-3bb3-4782-a1a8-09751fa538d8}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Effect\Effects\Transformation\TransformationSide">
<UniqueIdentifier>{064b5e2f-dcde-47fd-a43d-43e25800393d}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Client.cpp">
@@ -2061,6 +2067,9 @@
<ClCompile Include="..\Private\Transformation.cpp">
<Filter>02.GameObjects\Effect\Effects\Transformation</Filter>
</ClCompile>
<ClCompile Include="..\Private\TransformationSide.cpp">
<Filter>02.GameObjects\Effect\Effects\Transformation\TransformationSide</Filter>
</ClCompile>
<ClCompile Include="..\Private\NPC_EleazarFig.cpp">
<Filter>02.GameObjects\NPC\Ally\GateKeeper</Filter>
</ClCompile>
+2 -1
View File
@@ -197,7 +197,8 @@ HRESULT CBlink::Pre_Setting(CGameObject* pObject, void* pArg)
m_pBlink_Swirl->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
m_pBlink_Circle->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
m_pBlink_Circle2->Get_Component<CTransform>()->Set_WorldMatrix(m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
m_pBlink_Distortion->Set_Visible(true);
@@ -305,8 +305,6 @@ _float CBroomRacerAI::ComputeTurnToRing()
return clamp(turn, -1.f, 1.f);
}
_float CBroomRacerAI::ComputeHeightAdjust()
{
_float dy = (XMVectorGetY(m_pRaceRing->Get_WorldPostion()) + 15.f)
@@ -26,6 +26,7 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
}
Transition(fTimeDelta);
_float3 vCamPos = {};
_float3 vSetPos = {};
XMStoreFloat3(&vCamPos, m_pTransformCom->Get_State(STATE::POSITION));
#ifdef _DEBUG
GUI::Text("Cam Coord %.2f, %.2f, %.2f", vCamPos.x, vCamPos.y, vCamPos.z);
@@ -197,6 +198,7 @@ void CCamera_Debug::Describe_Entity()
GUI::InputFloat3("Pos", (float*)&vPosition);
}
}
GUI::End();
}
+11 -1
View File
@@ -39,6 +39,7 @@
#include "LightningSide.h"
#include "Blink.h"
#include "Transformation.h"
#include "TransformationSide.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -68,7 +69,7 @@ HRESULT CEffectPool::Initialize(void* pArg)
// 디버그 모드일 때
#ifdef _DEBUG
#ifdef gimch
m_isActiveEffectCreate = false;
m_isActiveEffectCreate = true;
m_isActiveMonsterEffectCreate = false;
#endif // gimch
#ifdef Bin
@@ -421,6 +422,15 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION_SIDE, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
CTransformationSide* pEffect = nullptr;
pEffect = m_pGameInstance->Clone_Prototype<CTransformationSide>(iPrototypeLevel, nullptr);
return pEffect; }
))) return E_FAIL;
return S_OK;
+17 -9
View File
@@ -83,6 +83,9 @@ void CGoblin::Priority_Update(_float fTimeDelta)
void CGoblin::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
m_pFSM->Update_State(fTimeDelta);
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
@@ -135,6 +138,9 @@ void CGoblin::Update(_float fTimeDelta)
void CGoblin::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
if (true == m_pCharacter_Controller->IsActive()) {
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
@@ -306,7 +312,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
if (pEffect_Container != nullptr)
{
_uint iSkillType = pEffect_Container->Get_SkillType();
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
//damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
switch (iSkillType)
{
@@ -321,9 +327,11 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
break;
case ENUM_CLASS(SKILL_TYPE::ACCIO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ACCIO);
m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
break;
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::STUPEFY);
@@ -341,14 +349,14 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
}
m_DamageInfo.fDamage = damagePair.first;
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
if (0 == damagePair.second) {
m_pFSM->Change_State(FSMSTATE::DEAD);
_int ID = m_pStat->Get_Stat().iObjectID;
m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
return;
}
//m_DamageInfo.fDamage = damagePair.first;
//m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
//if (0 == damagePair.second) {
// m_pFSM->Change_State(FSMSTATE::DEAD);
// _int ID = m_pStat->Get_Stat().iObjectID;
// m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
// return;
//}
m_pFSM->Change_State(FSMSTATE::HIT);
@@ -82,6 +82,9 @@ void CGoblin_Mage::Priority_Update(_float fTimeDelta)
void CGoblin_Mage::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
m_pFSM->Update_State(fTimeDelta);
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
@@ -124,6 +127,9 @@ void CGoblin_Mage::Update(_float fTimeDelta)
void CGoblin_Mage::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
if (true == m_pCharacter_Controller->IsActive()) {
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
@@ -314,9 +320,11 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
break;
case ENUM_CLASS(SKILL_TYPE::ACCIO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ACCIO);
m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
break;
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::STUPEFY);
@@ -371,17 +371,56 @@ void CGoblin_Mage::Behavior_BlinkExit()
void CGoblin_Mage::Behavior_HitEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
m_pFSM->Enable_State(FSMSTATE::HIT);
m_bLookAt = false;
_float fAnimSpeed = 1.f;
switch (m_eHitSpell)
{
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
fAnimSpeed = 2.f;
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
m_pCharacter_Controller->SetGravity(false);
m_bAir = true;
},
0.3f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {
CameraShake(10.f, 1.f, 2.f, 0.3f);
},
0.27f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
0.75f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_bAir = false;
m_pCharacter_Controller->SetGravity(true);
},
0.96f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
0.95f);
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
[&]() {m_bLookAt = true; },
0.7f);
break;
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_R];
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L];
break;
case ENUM_CLASS(SKILL_TYPE::JAP):
{
@@ -415,7 +454,7 @@ void CGoblin_Mage::Behavior_HitEnter()
pairAnimInfo = m_Animation[STATEANIM::HIT_R];
}
}
else{
else {
pairAnimInfo = m_Animation[STATEANIM::HIT_FWD];
}
}
@@ -427,46 +466,11 @@ void CGoblin_Mage::Behavior_HitEnter()
pairAnimInfo = m_Animation[STATEANIM::INCARCEROUS];
break;
default:
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L];
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_R];
break;
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
m_pCharacter_Controller->SetGravity(false);
m_bAir = true;
},
0.3f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {
CameraShake(10.f, 1.f, 2.f, 0.3f);
},
0.27f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
0.75f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_bAir = false;
m_pCharacter_Controller->SetGravity(true);
},
0.95f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
0.95f);
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
[&]() {m_bLookAt = true; },
0.7f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed);
}
HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
@@ -493,20 +497,47 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
m_pCharacter_Controller->Set_Position(vPos + Force);
}
if (!m_bAir && m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
if (!m_bAir && iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
{
m_fGravityAmount += fTimeDelta * fRatio * 15.f;
m_fGravityAmount += fTimeDelta * fRatio * 20.f;
m_pCharacter_Controller->Set_GravityAmount(m_fGravityAmount);
}
if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first)
{
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
0.17f);
}
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
{
if (!m_bPos)
{
m_pCharacter_Controller->SetGravity(false);
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
vPlayerPos = XMVectorSetY(vPlayerPos, XMVectorGetY(vPlayerPos) + 2.5f);
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
if (fLength >= 4.f)
{
m_pCharacter_Controller->Set_Position(
vMonsterPos + vDir * m_fSpeed * fTimeDelta
);
}
else {
m_bPos = true;
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
}
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::LEVIOSO))
{
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
@@ -523,51 +554,39 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
m_pCharacter_Controller->Set_Position(vPos);
}
m_pCharacter_Controller->SetGravity(false);
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
{
m_fAirTime = 0.f;
m_pCharacter_Controller->SetGravity(true);
pairAnimInfo = m_Animation[STATEANIM::LAND];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
}
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
HitState_Behavior(fTimeDelta);
if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first)
{
if (!m_bPos)
m_fTumbleTimer += fTimeDelta;
if (m_fTumbleTimer >= 1.5f)
{
m_pCharacter_Controller->SetGravity(false);
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
vPlayerPos = XMVectorSetY(vPlayerPos, XMVectorGetY(vPlayerPos) + 2.5f);
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
if (fLength >= 2.5f)
{
m_pCharacter_Controller->Set_Position(
vMonsterPos + vDir * m_fSpeed * fTimeDelta
);
}
else {
m_bPos = true;
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
{
m_fAirTime = 0.f;
m_fTumbleTimer = 0.f;
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pCharacter_Controller->SetGravity(true);
pairAnimInfo = m_Animation[STATEANIM::LAND];
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
0.21f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
m_fAirTime = 0.f; },
0.95f);
}
return S_OK;
}
if (m_vStunTimer.y < m_vStunTimer.x) {
pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
if (m_pModelCom->IsFinishedAnim())
@@ -578,12 +597,12 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
return S_OK;
}
void CGoblin_Mage::Behavior_HitExit()
{
m_pFSM->Disable_State(FSMSTATE::HIT);
m_bPos = false;
m_bLookAt = true;
m_eHitState = ENUM_CLASS(HIT_STATE::END);
m_pCharacter_Controller->Reset_GravityAmount();
m_fGravityAmount = 0.f;
}
@@ -648,6 +667,108 @@ void CGoblin_Mage::Behavior_DeadExit()
m_bDead = true;
}
void CGoblin_Mage::HitState_Behavior(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
CTransform* pTransform = m_pTarget->Get_Component<CTransform>();
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
if (m_eHitState == ENUM_CLASS(HIT_STATE::AIR_LEVIOSO))
{
switch (m_eHitSpell)
{
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
{
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
m_pCharacter_Controller->SetGravity(true);
m_pCharacter_Controller->Set_GravityAmount(1.5f);
m_fAirTime = 0.f;
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
m_pCharacter_Controller->SetGravity(false);
m_bAir = true;
},
0.3f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {
CameraShake(10.f, 1.f, 2.f, 0.3f);
},
0.27f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
0.75f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_bAir = false;
m_pCharacter_Controller->SetGravity(true);
},
0.96f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
0.95f);
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
[&]() {m_bLookAt = true; },
0.7f);
}
break;
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
{
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
m_pCharacter_Controller->ConvertToDO(*m_pRigidBody);
_vector vCameraLook = m_pGameInstance->Get_CameraLook();
vCameraLook = XMVector3Normalize(vCameraLook);
m_pRigidBody->Add_Force(vCameraLook * 30.f, physx::PxForceMode::eIMPULSE);
m_fAirTime = 0.f;
}
break;
case ENUM_CLASS(SKILL_TYPE::JAP):
{
m_fHitTimer += fTimeDelta;
if (m_fHitTimer <= 0.25f)
{
_vector vPlayerLook = pTransform->Get_State(STATE::LOOK);
vPlayerLook = XMVector4Normalize(vPlayerLook);
_vector vPos = m_pCharacter_Controller->Get_Position();
_float t = clamp(m_fHitTimer, 0.f, 1.f);
_float ease = 1.f - (t * t);
_vector Force = vPlayerLook * fTimeDelta * 6.f * ease;
m_pCharacter_Controller->Set_Position(vPos + Force);
pairAnimInfo = m_Animation[STATEANIM::TUMBLE];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f);
}
else {
m_fHitTimer = 0.f;
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
}
}
break;
}
if (fRatio >= 0.31f && iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
{
m_fAirTime = 0.f;
m_pCharacter_Controller->SetGravity(true);
pairAnimInfo = m_Animation[STATEANIM::LAND];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
}
void CGoblin_Mage::Add_FSM()
{
#pragma region Behavior_Movement_NotFocus
+192 -74
View File
@@ -453,6 +453,7 @@ void CGoblin::Behavior_ShuffleExit()
void CGoblin::Behavior_HitEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
m_pFSM->Enable_State(FSMSTATE::HIT);
m_bLookAt = false;
@@ -463,6 +464,40 @@ void CGoblin::Behavior_HitEnter()
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
fAnimSpeed = 2.f;
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
m_pCharacter_Controller->SetGravity(false);
m_bAir = true;
},
0.3f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {
CameraShake(10.f, 1.f, 2.f, 0.3f);
},
0.27f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
0.75f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_bAir = false;
m_pCharacter_Controller->SetGravity(true);
},
0.96f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
0.95f);
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
[&]() {m_bLookAt = true; },
0.7f);
break;
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L];
@@ -517,40 +552,6 @@ void CGoblin::Behavior_HitEnter()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
m_pCharacter_Controller->SetGravity(false);
m_bAir = true;
},
0.3f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {
CameraShake(10.f, 1.f, 2.f, 0.3f);
},
0.27f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
0.75f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_bAir = false;
m_pCharacter_Controller->SetGravity(true);
},
0.95f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
0.95f);
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
[&]() {m_bLookAt = true; },
0.7f);
}
HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
@@ -577,20 +578,47 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
m_pCharacter_Controller->Set_Position(vPos + Force);
}
if (!m_bAir && m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
if (!m_bAir && iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
{
m_fGravityAmount += fTimeDelta * fRatio* 15.f;
m_fGravityAmount += fTimeDelta * fRatio* 20.f;
m_pCharacter_Controller->Set_GravityAmount(m_fGravityAmount);
}
if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first)
{
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
0.17f);
}
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
{
if (!m_bPos)
{
m_pCharacter_Controller->SetGravity(false);
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
vPlayerPos = XMVectorSetY(vPlayerPos, XMVectorGetY(vPlayerPos) + 2.5f);
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
if (fLength >= 4.f)
{
m_pCharacter_Controller->Set_Position(
vMonsterPos + vDir * m_fSpeed * fTimeDelta
);
}
else {
m_bPos = true;
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
}
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::LEVIOSO))
{
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
@@ -607,51 +635,39 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
m_pCharacter_Controller->Set_Position(vPos);
}
m_pCharacter_Controller->SetGravity(false);
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
{
m_fAirTime = 0.f;
m_pCharacter_Controller->SetGravity(true);
pairAnimInfo = m_Animation[STATEANIM::LAND];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
}
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
HitState_Behavior(fTimeDelta);
if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first)
{
if (!m_bPos)
m_fTumbleTimer += fTimeDelta;
if (m_fTumbleTimer >= 1.5f)
{
m_pCharacter_Controller->SetGravity(false);
_vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
vPlayerPos = XMVectorSetY(vPlayerPos,XMVectorGetY(vPlayerPos) + 2.5f);
_vector vMonsterPos = m_pCharacter_Controller->Get_Position();
_vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
_float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
if (fLength >= 2.5f)
{
m_pCharacter_Controller->Set_Position(
vMonsterPos + vDir * m_fSpeed * fTimeDelta
);
}
else {
m_bPos = true;
pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
{
m_fAirTime = 0.f;
m_fTumbleTimer = 0.f;
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pCharacter_Controller->SetGravity(true);
pairAnimInfo = m_Animation[STATEANIM::LAND];
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
0.21f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
m_fAirTime = 0.f; },
0.95f);
}
return S_OK;
}
if (m_vStunTimer.y < m_vStunTimer.x) {
pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
if (m_pModelCom->IsFinishedAnim())
@@ -667,6 +683,7 @@ void CGoblin::Behavior_HitExit()
m_pFSM->Disable_State(FSMSTATE::HIT);
m_bPos = false;
m_bLookAt = true;
m_eHitState = ENUM_CLASS(HIT_STATE::END);
m_pCharacter_Controller->Reset_GravityAmount();
m_fGravityAmount = 0.f;
}
@@ -728,6 +745,107 @@ void CGoblin::Behavior_DeadExit()
m_bDead = true;
}
void CGoblin::HitState_Behavior(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo = {};
CTransform* pTransform = m_pTarget->Get_Component<CTransform>();
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
if (m_eHitState == ENUM_CLASS(HIT_STATE::AIR_LEVIOSO))
{
switch (m_eHitSpell)
{
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
{
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
m_pCharacter_Controller->SetGravity(true);
m_pCharacter_Controller->Set_GravityAmount(1.5f);
m_fAirTime = 0.f;
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
m_pCharacter_Controller->SetGravity(false);
m_bAir = true;
},
0.3f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {
CameraShake(10.f, 1.f, 2.f, 0.3f);
},
0.27f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
0.75f);
Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_bAir = false;
m_pCharacter_Controller->SetGravity(true);
},
0.96f);
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
0.95f);
Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
[&]() {m_bLookAt = true; },
0.7f);
}
break;
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
{
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
m_pCharacter_Controller->ConvertToDO(*m_pRigidBody);
_vector vCameraLook = m_pGameInstance->Get_CameraLook();
vCameraLook = XMVector3Normalize(vCameraLook);
m_pRigidBody->Add_Force(vCameraLook*30.f, physx::PxForceMode::eIMPULSE);
m_fAirTime = 0.f;
}
break;
case ENUM_CLASS(SKILL_TYPE::JAP):
{
m_fHitTimer += fTimeDelta;
if (m_fHitTimer <= 0.4f)
{
_vector vPlayerLook = pTransform->Get_State(STATE::LOOK);
vPlayerLook = XMVector4Normalize(vPlayerLook);
_vector vPos = m_pCharacter_Controller->Get_Position();
_float t = clamp(m_fHitTimer, 0.f, 1.f);
_float ease = 1.f - (t * t);
_vector Force = vPlayerLook * fTimeDelta * 6.f * ease;
m_pCharacter_Controller->Set_Position(vPos + Force);
pairAnimInfo = m_Animation[STATEANIM::TUMBLE];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f);
}
else {
m_fHitTimer = 0.f;
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
}
}
break;
}
if (fRatio >= 0.31f && iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
{
m_fAirTime = 0.f;
m_pCharacter_Controller->SetGravity(true);
pairAnimInfo = m_Animation[STATEANIM::LAND];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
}
}
void CGoblin::Add_FSM()
{
@@ -331,6 +331,11 @@ HRESULT CInfoInstance::Deregist_ActiveInteractive(CMapElement_Interactable* pInt
return m_pInteractiveInfo->Deregist_ActiveInteractive(pInteractive);
}
HRESULT CInfoInstance::ActiveAt_Interactive(_fvector vPosition)
{
return m_pInteractiveInfo->ActiveAt_Interactive(vPosition);
}
#pragma endregion
LEVEL CInfoInstance::Get_RestartLevel()
{
@@ -386,6 +391,14 @@ HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11Devic
return S_OK;
}
HRESULT CInfoInstance::Late_Initialize()
{
if (FAILED(m_pInteractiveInfo->Ready_PoolingInteractive()))
return E_FAIL;
return S_OK;
}
HRESULT CInfoInstance::Stat_FileLoad(const _char* pDirectoryPath)
{
filesystem::path pathStatFile = pDirectoryPath;
@@ -14,6 +14,19 @@ CInteractiveInfo::CInteractiveInfo()
void CInteractiveInfo::Update(_float fTimeDelta)
{
Refresh_LockOnTarget();
auto iter = m_PoolingActiveInteractive.begin();
for (; iter != m_PoolingActiveInteractive.end();)
{
if (false == (*iter)->Get_Visible())
{
m_PoolingInteractive.push_back(*iter);
iter = m_PoolingActiveInteractive.erase(iter);
}
else
++iter;
}
}
void CInteractiveInfo::Change_Level()
{
@@ -110,6 +123,112 @@ HRESULT CInteractiveInfo::Refresh_LockOnTarget()
}
return S_OK;
}
HRESULT CInteractiveInfo::Ready_PoolingInteractive()
{
tinyxml2::XMLDocument xmlDoc;
string strPath = "../Bin/Resources/Data/Map/Interactable/E_INTER_EffectObejct.xml";
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
return E_FAIL;
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Element_Interactable");
if (nullptr == root)
{
MSG_BOX("Failed to Find root");
return S_OK;
}
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
{
CMapElement_Interactable::ELEMENT_INTERACTABLE_DESC Desc = {};
/* Model Prototypes */
Desc.isPooled = true;
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
Object->QueryUnsignedAttribute("ID", &Desc.iInteractableID);
string strTag = {};
for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
{
strTag = PrototypeTag->GetText();
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
}
/* Transform */
auto* Position = Object->FirstChildElement("Position");
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
auto* Scale = Object->FirstChildElement("Scale");
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
auto* Rotation = Object->FirstChildElement("Rotation");
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
auto* HalfGeometryInfo = Object->FirstChildElement("HalfGeometryInfo");
HalfGeometryInfo->QueryFloatAttribute("x", &Desc.vBoxSize.x);
HalfGeometryInfo->QueryFloatAttribute("y", &Desc.vBoxSize.y);
HalfGeometryInfo->QueryFloatAttribute("z", &Desc.vBoxSize.z);
auto* LocalTranslation = Object->FirstChildElement("LocalTranslation");
LocalTranslation->QueryFloatAttribute("x", &Desc.vBoxLocalPosition.x);
LocalTranslation->QueryFloatAttribute("y", &Desc.vBoxLocalPosition.y);
LocalTranslation->QueryFloatAttribute("z", &Desc.vBoxLocalPosition.z);
CMapElement_Interactable* pInteractable = { nullptr };
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, LAYER_INTERACTABLE, &Desc,nullptr, &pInteractable)))
return E_FAIL;
if (nullptr != pInteractable)
{
m_PoolingInteractive.push_back(pInteractable);
}
else
return E_FAIL;
}
return S_OK;
}
HRESULT CInteractiveInfo::ActiveAt_Interactive(_fvector vPosition)
{
_uint iSize = (_uint)m_PoolingInteractive.size();
_uint iRandomIndex = m_pGameInstance->Real_Random_Int(0, max(0, iSize - 1));
_uint iIndex = {};
auto iter = m_PoolingInteractive.begin();
for (; iter != m_PoolingInteractive.end();)
{
if (iIndex == iRandomIndex)
{
(*iter)->ActivateAt(vPosition);
m_PoolingActiveInteractive.push_back(*iter);
iter = m_PoolingInteractive.erase(iter);
break;
}
else
{
++iter;
++iIndex;
}
}
return S_OK;
}
HRESULT CInteractiveInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
{
m_pGameInstance = CGameInstance::GetInstance();
@@ -145,6 +264,15 @@ void CInteractiveInfo::Free()
SAFE_RELEASE(pInteractive);
} m_ActiveInteractive.clear();
for (CMapElement_Interactable* pInteractive : m_PoolingInteractive) {
SAFE_RELEASE(pInteractive);
} m_ActiveInteractive.clear();
for (CMapElement_Interactable* pInteractive : m_PoolingActiveInteractive) {
SAFE_RELEASE(pInteractive);
} m_ActiveInteractive.clear();
SAFE_RELEASE(m_pGameInstance);
SAFE_RELEASE(m_pInfoInstance);
SAFE_RELEASE(m_pDevice);
@@ -85,6 +85,8 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
return E_FAIL;
}
if(FAILED(m_pInfoInstance->Late_Initialize()))
return E_FAIL;
return S_OK;
}
@@ -249,8 +251,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
#ifdef gimch
isReady_Background = true;
isReady_Hogsmeade = false;
isReady_Hogwart = true;
isReady_Hogsmeade = true;
isReady_Hogwart = false;
#endif // gimch
#ifdef Bin
isReady_Background = false;
+44 -28
View File
@@ -143,6 +143,7 @@
#include "DecendoSide.h"
#include "BombardSide.h"
#include "LeviosoSide.h"
#include "TransformationSide.h"
#include "TrailObject.h"
#include "Instance_Model.h"
@@ -338,8 +339,8 @@ HRESULT CLoader::Loading_For_GamePlay()
_bool isLoad_Hogwart = { false };
#ifdef gimch
isLoad_Background = false;
isLoad_Hogwart = true;
isLoad_Background = true;
isLoad_Hogwart = false;
#endif // gimch
#ifdef Bin
isLoad_Background = false;
@@ -401,6 +402,33 @@ HRESULT CLoader::Loading_For_GamePlay()
".bin", false
));
}
/* Interactable */
{/* Barrel */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Meshes",
".bin", false
));
/* Box */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/MiscProps",
".bin", false
));
/* TeaShop Table */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Tables",
".bin", false
));
/* TeaShop Chair*/
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Chairs",
".bin", false
));
/* Object Interactables (Chest)*/
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Interactables",
".bin", false
));
}
if (true == isLoad_Background)
{
@@ -632,32 +660,6 @@ HRESULT CLoader::Loading_For_GamePlay()
".bin", false
));
}
{/* Barrel */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Meshes",
".bin", false
));
/* Box */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/MiscProps",
".bin", false
));
/* TeaShop Table */
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Tables",
".bin", false
));
/* TeaShop Chair*/
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Chairs",
".bin", false
));
/* Object Interactables (Chest)*/
jobMapModels.emplace_back(Deferred_FolderLoad(
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Interactables",
".bin", false
));
}
}
/* ------------------------------------ HOGWART ------------------------------- */
@@ -1981,6 +1983,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CTransformationSide>(NEXT_LEVEL, CTransformationSide::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Prototype<CTrollSwing>(NEXT_LEVEL, CTrollSwing::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -2117,6 +2123,16 @@ HRESULT CLoader::Loading_For_GamePlay()
return S_OK;
});
Asset_FileLoad("../Bin/Resources/Models/Effect/Spline", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
return E_FAIL;
return S_OK;
});
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
#pragma region UI
@@ -33,25 +33,8 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
//m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]);
}
if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo")
{
m_eInteractableID = ELEMENT_INTERACTABLE_ID::BARREL;
}
else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_OwlPost_Package_B")
{
m_eInteractableID = ELEMENT_INTERACTABLE_ID::BOX;
}
else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_TeaShop_Table_B")
{
m_eInteractableID = ELEMENT_INTERACTABLE_ID::TABLE;
}
else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_TeaShop_Chair_B")
{
m_eInteractableID = ELEMENT_INTERACTABLE_ID::TABLE;
}
m_isPooled = pDesc->isPooled;
m_eInteractableID = static_cast<ELEMENT_INTERACTABLE_ID>(pDesc->iInteractableID);
if (FAILED(__super::Initialize(pArg)))
return E_FAIL;
@@ -78,7 +61,16 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition);
//static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_Kinematic(false);
m_pInfoInstance->Regist_ActiveInteractive(this);
if (false == m_isPooled)
{
m_bVisible = true;
m_pInfoInstance->Regist_ActiveInteractive(this);
}
else
{
m_bVisible = false;
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_Kinematic(true);
}
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
@@ -89,9 +81,12 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
void CMapElement_Interactable::Priority_Update(_float fTimeDelta)
{
_float fRadius = m_pModelComs[0]->Get_Radius();
if(m_bVisible)
{
_float fRadius = m_pModelComs[0]->Get_Radius();
XMStoreFloat4(&m_vStartPos, Get_WorldPostion() + XMVectorSet(0.f , fRadius , 0.f , 0.f ));
XMStoreFloat4(&m_vStartPos, Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f));
}
}
@@ -102,23 +97,25 @@ void CMapElement_Interactable::Update(_float fTimeDelta)
void CMapElement_Interactable::Late_Update(_float fTimeDelta)
{
if (m_isGraped == true)
if (m_bVisible)
{
_float fRadius = m_pModelComs[0]->Get_Radius();
if (m_isGraped == true)
{
_float fRadius = m_pModelComs[0]->Get_Radius();
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f);
ON_COLLISION_INFO CollisionInfo = CollisionCheck(vStartPos, vEndPos, 1.f);
if (false == m_bHit) {
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
_vector vEndPos = Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f);
ON_COLLISION_INFO CollisionInfo = CollisionCheck(vStartPos, vEndPos, 1.f);
if (m_bHit == true)
OnCollision(this, &CollisionInfo);
if (m_bHit == true)
OnCollision(this, &CollisionInfo);
}
}
}
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
}
}
}
@@ -191,19 +188,26 @@ void CMapElement_Interactable::OnCollision(CGameObject* pOther, void* pDesc)
case Client::ELEMENT_INTERACTABLE_ID::TABLE:
m_pEffectPool->Use_Skill(SKILL_TYPE::CHAIL_SPLESH, this);
break;
case Client::ELEMENT_INTERACTABLE_ID::CHAIR:
m_pEffectPool->Use_Skill(SKILL_TYPE::CHAIL_SPLESH, this);
break;
case Client::ELEMENT_INTERACTABLE_ID::END:
break;
default:
break;
}
Set_Dead();
if (m_isPooled)
{
m_bVisible = false;
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_Kinematic(true);
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -999.f, 0.f, 1.f));
m_pInfoInstance->Deregist_ActiveInteractive(this);
}
else
Set_Dead();
}
HRESULT CMapElement_Interactable::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
@@ -328,6 +332,15 @@ void CMapElement_Interactable::Set_KinematicFlag(_bool bFlag)
m_pRigidBody->Set_Kinematic(bFlag);
}
void CMapElement_Interactable::ActivateAt(_fvector vPos)
{
m_bVisible = true;
m_pTransformCom->Set_State(STATE::POSITION, vPos);
m_pInfoInstance->Regist_ActiveInteractive(this);
m_pRigidBody->Set_Kinematic(false);
m_pRigidBody->Set_Position(vPos);
}
ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius)
{
@@ -392,8 +405,6 @@ ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _f
}
}
}
}
if (bHit == false)
+2 -1
View File
@@ -422,8 +422,9 @@ HRESULT CMapInfo::Load_InteractableElements(const _char* pFileName, const _wchar
CMapElement_Interactable::ELEMENT_INTERACTABLE_DESC Desc = {};
/* Model Prototypes */
Desc.isPooled = false;
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iInteractableID);
Object->QueryUnsignedAttribute("ID", &Desc.iInteractableID);
string strTag = {};
for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
+101 -67
View File
@@ -64,7 +64,7 @@ HRESULT CPlayer::InputAction()
|| m_pGameInstance->Key_Down(DIK_E)
|| m_pGameInstance->Key_Down(DIK_R)
|| m_pGameInstance->Key_Down(DIK_Q)
|| m_pGameInstance->Mouse_Up(DIM_LBUTTON)
|| m_pGameInstance->Mouse_Down(DIM_LBUTTON)
|| m_pGameInstance->Key_Down(DIK_LSHIFT)
|| m_pGameInstance->Key_Down(DIK_C)
|| m_pGameInstance->Key_Down(DIK_V)
@@ -187,18 +187,21 @@ void CPlayer::Behavior_IdleEnter() {
{
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) {
pairAnimInfo = m_Animation[STATEANIM::IDLE_AIM];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
else
pairAnimInfo = m_Animation[STATEANIM::IDLE];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true,1.f,false);
}
else
{
pairAnimInfo = m_Animation[STATEANIM::IDLE];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
}
m_bSprintToggle = false;
m_bWalkToggle = false;
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
}
HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
@@ -223,7 +226,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
else if (SUCCEEDED(InputSpell())) {
m_pFSM->Change_State(FSMSTATE::COMBAT);
}
else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
m_pFSM->Change_State(FSMSTATE::COMBAT);
}
else if (m_pGameInstance->Key_Down(DIK_V)) {
@@ -331,7 +334,6 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
}
}
return S_OK;
}
@@ -443,7 +445,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
else if (m_pGameInstance->Key_Down(DIK_Q)) {
m_pFSM->Change_State(FSMSTATE::SHIELD);
}
else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
m_pFSM->Change_State(FSMSTATE::COMBAT);
}
else if (SUCCEEDED(InputSpell())) {
@@ -1020,7 +1022,7 @@ void CPlayer::Behavior_CombatEnter()
m_pFSM->Change_State(FSMSTATE::SHIELD);
return;
}
else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK);
return;
}
@@ -1049,6 +1051,9 @@ void CPlayer::Behavior_CombatEnter()
m_pGrapInteractive->Set_KinematicFlag(true);
m_vGrapInteratableLerp.x = 0.f;
}
else {
return;
}
Add_Event(pairAnimInfo.first,
[this]() { m_bLookAt = true; },
@@ -1232,7 +1237,7 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo;
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
if (m_pGameInstance->Mouse_Up(DIM_LBUTTON))
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
{
_uint iCurr = m_pModelCom->Get_AnimIndex();
_uint iStart = m_Animation[STATEANIM::LIGHT_ATTACK].first;
@@ -1261,7 +1266,7 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
},
0.01f);
if (fRatio >= 0.1f)
if (fRatio >= 0.08f)
{
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -1292,9 +1297,17 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
return E_FAIL;
}
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
{
if (fRatio >= 0.3f)
{
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
}
}
if (SUCCEEDED(InputMove()) && fRatio >= 0.3f) {
m_pFSM->Change_State(FSMSTATE::MOVE);
m_bLookAt = false;
return E_FAIL;
}
@@ -1303,11 +1316,10 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
if (SUCCEEDED(InputMove()))
{
m_pFSM->Change_State(FSMSTATE::MOVE);
m_bLookAt = false;
return E_FAIL;
}
m_pFSM->Change_State(FSMSTATE::IDLE);
return E_FAIL;
}
return S_OK;
@@ -1318,6 +1330,7 @@ void CPlayer::Behavior_LightAttackExit()
{
m_pFSM->Disable_State(FSMSTATE::LIGHT_ATTACK);
m_pModelCom->Set_BlendDuration(0.3f);
m_bLookAt = false;
}
void CPlayer::Behavior_SpellEnter()
@@ -1343,25 +1356,17 @@ void CPlayer::Behavior_SpellEnter()
_vector vCross = XMVector3Cross(vLook, vCameraLook);
_float Cross = XMVectorGetY(vCross);
if (Degree <= 30.f)
if (Degree <= 45.f)
{
pairAnimInfo = m_Animation[STATEANIM::SPELL];
fRatio = 0.2f;
}
else if (Degree <= 80.f)
{
pairAnimInfo = m_Animation[STATEANIM::SPELL];
Add_Event(pairAnimInfo.first,
[this]() {m_bLookAt = true;
},
0.01f);
fRatio = 0.2f;
}
else if (Degree <= 135.f)
{
if (Cross < 0.f)
{
pairAnimInfo = m_Animation[STATEANIM::SPELL_90_L];
fRatio = 0.17f;
}
else {
pairAnimInfo = m_Animation[STATEANIM::SPELL];
@@ -1369,12 +1374,13 @@ void CPlayer::Behavior_SpellEnter()
[this]() {m_bLookAt = true;
},
0.01f);
fRatio = 0.2f;
}
fRatio = 0.15f;
}
else {
pairAnimInfo = m_Animation[STATEANIM::SPELL_180_R];
fRatio = 0.18f;
fRatio = 0.23f;
}
}
else {
@@ -1415,7 +1421,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
if (iCurr >= iStart && iCurr < iStart + 3)
{
if (fRatio >= 0.2f)
if (fRatio >= 0.15f)
{
_uint iNext = iCurr + 1;
pairAnimInfo = m_Animation[STATEANIM::SPELL];
@@ -1435,7 +1441,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
fAttackRatio = 0.17f;
}
else if (iNext - iStart == 3) {
fAttackRatio = 0.14f;
fAttackRatio = 0.145f;
}
else {
fAttackRatio = 0.2f;
@@ -1481,14 +1487,24 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
break;
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_eSpell = ENUM_CLASS(SKILL_TYPE::END);
}
}
if (SUCCEEDED(InputMove()) && fRatio >= 0.3f) {
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
{
if (fRatio >= 0.3f)
{
m_pFSM->Change_State(FSMSTATE::COMBAT);
return E_FAIL;
}
}
if (SUCCEEDED(InputMove())) {
if (fRatio >= 0.3f) {
m_pFSM->Change_State(FSMSTATE::MOVE);
return E_FAIL;
}
}
if (m_pModelCom->IsFinishedAnim()) {
@@ -1598,61 +1614,67 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
if (m_LockOnInfo.pUnit)
{
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
_vector vTargetLook = m_LockOnInfo.pUnit->Get_Component<CTransform>()->Get_State(STATE::LOOK);
_vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f);
vLook = XMVector3Normalize(vLook);
vTargetLook = XMVector3Normalize(vTargetLook);
vCameraLook = XMVector3Normalize(vCameraLook);
_float fDot = XMVectorGetX(XMVector3Dot(vLook, vTargetLook));
_float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook));
fDot = clamp(fDot, -1.0f, 1.0f);
_float fAngleRad = acosf(fDot);
_float Degree = XMConvertToDegrees(fAngleRad);
_vector vCross = XMVector3Cross(vLook, vTargetLook);
_vector vCross = XMVector3Cross(vLook, vCameraLook);
_float Cross = XMVectorGetY(vCross);
if (Degree <= 45.f)
if (Degree <= 60.f)
{
pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
pairAnimInfo = m_Animation[STATEANIM::PARRY4];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
Add_Event(pairAnimInfo.first,
[this]() {m_bLookAt = true;
},
0.01f);
}
else if (Degree <= 120.f)
else if (Degree <= 135.f)
{
if (Cross > 0.f)
if (Cross < 0.f)
{
pairAnimInfo = m_Animation[STATEANIM::PARRY2];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
else
{
else {
pairAnimInfo = m_Animation[STATEANIM::PARRY3];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
Add_Event(pairAnimInfo.first,
[this]() {m_bLookAt = true;
},
0.01f);
}
else {
pairAnimInfo = m_Animation[STATEANIM::PARRY4];
pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
Add_Event(pairAnimInfo.first,
[this]() {m_bLookAt = true;
},
0.01f);
}
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject<CWand>()); },
0.01f);
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
0.2f);
Start_CameraShake(0.3f, 2.f);
m_pGameInstance->SlowMotion(0.8f, 0.3f);
m_bShield = false;
return S_OK;
}
Start_CameraShake(0.3f, 2.f);
m_pGameInstance->SlowMotion(0.8f, 0.3f);
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
0.2f);
m_bShield = false;
return S_OK;
}
}
if (m_pModelCom->IsFinishedAnim()) {
if (SUCCEEDED(InputMove()))
@@ -2429,6 +2451,11 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION, this); },
fRatio);
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION_SIDE, Get_PartObject<CWand>()); },
0.f);
break;
case ENUM_CLASS(SKILL_TYPE::DIFFINDO):
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
@@ -2939,19 +2966,19 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::SPELL_FAIL] = { 906,false };
m_Animation[STATEANIM::PARRY_180] = { 947,false };
m_Animation[STATEANIM::PARRY_180] = { 953,false };// 946 953
m_Animation[STATEANIM::PARRY2] = { 913,false };
m_Animation[STATEANIM::PARRY3] = { 915,false };
m_Animation[STATEANIM::PARRY4] = { 921,false };
m_Animation[STATEANIM::PARRY4] = { 921,false }; // 922
m_Animation[STATEANIM::HIT_L] = { 1201,false };
m_Animation[STATEANIM::HIT_R] = { 1202,false };
m_Animation[STATEANIM::FLINCH_BWD] = { 1061,false };
m_Animation[STATEANIM::FLINCH_FWD] = { 1062,false };
m_Animation[STATEANIM::FLINCH_LEFT] = { 1063,false };
m_Animation[STATEANIM::FLINCH_RIGHT] = { 1064,false };
m_Animation[STATEANIM::KNOCKBACK] = { 1079,false };
m_Animation[STATEANIM::HIT_L] = { 1209,false };
m_Animation[STATEANIM::HIT_R] = { 1210,false };
m_Animation[STATEANIM::FLINCH_BWD] = { 1069,false };
m_Animation[STATEANIM::FLINCH_FWD] = { 1070,false };
m_Animation[STATEANIM::FLINCH_LEFT] = { 1071,false };
m_Animation[STATEANIM::FLINCH_RIGHT] = { 1072,false };
m_Animation[STATEANIM::KNOCKBACK] = { 1087,false };
m_Animation[STATEANIM::BROOM_IDLE] = { 710,true };
m_Animation[STATEANIM::BROOM_FWD] = { 711,true };
@@ -2983,6 +3010,12 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::JOG_AIM_STOP_R] = { 456,false };
m_Animation[STATEANIM::JOG_AIM_STOP_BWD] = { 444,false };
m_Animation[STATEANIM::SPELL_LEARNING_FAIL] = { 1285,false };
m_Animation[STATEANIM::SPELL_LEARNING_LOOP] = { 1286,true };
m_Animation[STATEANIM::SPELL_LEARNING_START] = { 1287,false };
m_Animation[STATEANIM::SPELL_LEARNING_SUCCESS] = { 1288,false };
m_Animation[STATEANIM::SPELL_LEARNING_WANDWAVE] = { 1289,false };
//루모스 스탑 912
//713 왼쪽 슬로우
@@ -3016,6 +3049,7 @@ void CPlayer::Set_Anim()
//568 566 564 슬라이드 스탑/스타트/루프
//874
//1277 1281
}
+85 -30
View File
@@ -495,6 +495,7 @@ HRESULT CRanrok::Render_Blend()
return S_OK;
}
void CRanrok::MoveTo(_float fTimeDelta)
{
if (!m_pFSM->IsEnable(FSMSTATE::TUCKED))
@@ -504,58 +505,75 @@ void CRanrok::MoveTo(_float fTimeDelta)
return;
if (m_iCurrentFlow >= m_Points.size())
{
m_iCurrentFlow = 0;
}
_vector Target;
if (m_iCurrentFlow == 1)
{
_float fRandom = m_pGameInstance->Real_Random_Float(-20.f, 20.f);
Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
Target += XMVectorSet(0.f, fRandom, 0.f, 0.f);
}
else
{
Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
}
_vector Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
_vector CurPos = m_pCharacter_Controller->Get_Position();
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
_vector toTarget = Target - CurPos;
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
GUI::Text("Dist %.2f", fDist);
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
{
if (fDist < 10.f)
{
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
{
m_bTucked = true;
m_pFSM->Disable_State(FSMSTATE::TUCKED);
}
if (fDist < 10.f)
m_iCurrentPoint = (m_iCurrentPoint + 1) % m_Points[m_iCurrentFlow].size();
return;
}
}
else if (fDist < 10.f)
{
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
{
m_bTucked = true;
m_pFSM->Disable_State(FSMSTATE::TUCKED);
}
m_iCurrentPoint = (m_iCurrentPoint + 1) % m_Points[m_iCurrentFlow].size();
return;
}
/*if (m_iCurrentFlow == 1)
{
AroundPoint(fTimeDelta);
return;
}*/
//_float4x4 CurMat, TargetMat, LerpMat;
_vector vDir = XMVector3Normalize(toTarget);
//XMStoreFloat4x4(&CurMat,XMMatrixTranslationFromVector(CurPos));
m_vMoveDir = XMVectorLerp(m_vMoveDir, vDir,fTimeDelta * 4.f);
//XMStoreFloat4x4(&TargetMat,XMMatrixTranslationFromVector(Target));
m_vMoveDir = XMVector3Normalize(m_vMoveDir);
//_float fLerpRatio = fTimeDelta * 2.f;
//fLerpRatio = min(fLerpRatio, 1.f);
m_pTransformCom->LookAt_Horizontal_Lerp(CurPos + m_vMoveDir,fTimeDelta,4.f);
//CMyTools::MatrixLerp(&CurMat, &TargetMat, LerpMat, fLerpRatio);
//_vector vNextPos = XMVectorSet(LerpMat._41, LerpMat._42, LerpMat._43, 1.f);
//m_pTransformCom->Set_WorldMatrix(LerpMat);
//m_pCharacter_Controller->Set_Position(vNextPos);
static _vector vMoveDir = m_pTransformCom->Get_State(STATE::LOOK);
_vector vDir = XMVector3Normalize(Target - CurPos);
vMoveDir = XMVectorLerp(vMoveDir, vDir, fTimeDelta * 2.f);
vMoveDir = XMVector3Normalize(vMoveDir);
m_pTransformCom->LookAt_Horizontal_Lerp(CurPos + vMoveDir, fTimeDelta, 1.f);
_float Speed = 35.f;
m_pCharacter_Controller->Set_Position(
CurPos + vMoveDir * Speed * fTimeDelta
);
_float speed = 50.f;
m_pCharacter_Controller->Set_Position(CurPos + m_vMoveDir * speed * fTimeDelta);
}
void CRanrok::AroundPoint(_float fTimeDelta)
{
m_fAroundTime += fTimeDelta;
@@ -693,6 +711,8 @@ void CRanrok::Describe_Entity()
GUI::Text("Degree %.2f", m_fDegree);
GUI::Text("CurrFlow %d", m_iCurrentFlow);
_float3 Pos;
XMStoreFloat3(&Pos, Get_WorldPostion());
@@ -701,15 +721,50 @@ void CRanrok::Describe_Entity()
m_pCharacter_Controller->Set_Position(XMVectorSetW(XMLoadFloat3(&Pos), 1.f));
}
ImGui::SameLine();
GUI::SameLine();
if (GUI::SmallButton("Copy"))
{
char buf[64];
sprintf_s(buf, "%.3ff, %.3ff, %.3ff", Pos.x, Pos.y, Pos.z);
ImGui::SetClipboardText(buf);
GUI::SetClipboardText(buf);
m_Points[0].push_back(XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f));
}
GUI::SameLine();
if (GUI::SmallButton("Clear"))
{
m_Points[0].clear();
}
GUI::Separator();
GUI::Text("Points[0] Count : %d", (_int)m_Points[0].size());
for (_uint i = 0; i < m_Points[0].size();)
{
_vector v = m_Points[0][i];
XMFLOAT3 p;
XMStoreFloat3(&p, v);
GUI::PushID(i);
GUI::Text("[%d] (%.2f, %.2f, %.2f)", i, p.x, p.y, p.z);
GUI::SameLine();
if (GUI::SmallButton("X"))
{
m_Points[0].erase(m_Points[0].begin() + i);
GUI::PopID();
continue;
}
GUI::PopID();
i++;
}
if (GUI::Button("MovePos"))
{
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z,1.f));
@@ -616,7 +616,13 @@ void CRanrok::Behavior_TuckedEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::TUCKED);
pairAnimInfo = m_Animation[STATEANIM::TUCKED];
if (m_iCurrentFlow == 0)
{
pairAnimInfo = m_Animation[STATEANIM::FLY];
}
else {
pairAnimInfo = m_Animation[STATEANIM::TUCKED];
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
@@ -627,12 +633,11 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
MoveTo(fTimeDelta);
if (m_bTucked&& iCurrAnimIndex == m_Animation[STATEANIM::TUCKED].first)
if (m_bTucked && iCurrAnimIndex !=m_Animation[STATEANIM::FLY_TO_HOVER].first)
{
m_iCurrentFlow++;
pairAnimInfo = m_Animation[STATEANIM::FLY_TO_HOVER];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
return S_OK;
}
if (m_pModelCom->IsFinishedAnim() && iCurrAnimIndex == m_Animation[STATEANIM::FLY_TO_HOVER].first)
@@ -1011,7 +1016,7 @@ void CRanrok::Set_Anim()
m_Animation[STATEANIM::PULSE] = { 33,false };
m_Animation[STATEANIM::TUCKED] = { 21,true };
m_Animation[STATEANIM::TUCKED] = { 21,true }; // 21
m_Animation[STATEANIM::FLY_TO_HOVER] = { 22,false };
m_Animation[STATEANIM::LAND] = { 32,false };
@@ -1030,6 +1035,8 @@ void CRanrok::Set_Anim()
m_Animation[STATEANIM::DEAD] = { 34,false };
m_Animation[STATEANIM::FLY] = { 18,true };
@@ -145,7 +145,7 @@ HRESULT CTransformation::Pre_Setting(CGameObject* pObject, void* pArg)
/* PJ 월드 구성하기 */
_vector vRight = XMVector3Normalize(vDirection);
_vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook));
_vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight));
_vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook));
_vector vPos = pWand->Get_WorldPostion();
@@ -216,13 +216,13 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc)
XMStoreFloat4(&vCCTPos , pCCT->Get_Position());
PSX::PxTransform pxTransform((_float)vCCTPos.x, (_float)vCCTPos.y + 100.f, (_float)vCCTPos.z);
pCCT->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
//m_pCharacter_Controller->Move(fTimeDelta);
m_pTransformCom->Set_WorldMatrix(CollisionDesc.pObject->Get_Component<CRigidBody_Dynamic>()->Get_Actor()->getGlobalPose());
m_pInfoInstance->ActiveAt_Interactive(XMLoadFloat4(&vCCTPos));
CollisionDesc.pObject->Set_Visible(false);
//m_pTransformCom->Set_WorldMatrix(CollisionDesc.pObject->Get_Component<CRigidBody_Dynamic>()->Get_Actor()->getGlobalPose());
pCCT->ConvertToDO(*CollisionDesc.pObject->Get_Component<CRigidBody_Dynamic>());
CEffectParts* pHit_Light = Get_PartObject<CEffectParts>("Hit_Light");
@@ -0,0 +1,214 @@
#include "pch.h"
#include "TransformationSide.h"
#include "GameInstance.h"
#include "EffectParts.h"
#include "Player.h"
#include "Wand.h"
#include "TrailObject.h"
CTransformationSide::CTransformationSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CEffect_Container{ pDevice, pContext }
{
}
CTransformationSide::CTransformationSide(const CTransformationSide& rhs)
: CEffect_Container(rhs)
{
}
HRESULT CTransformationSide::Initialize_Prototype()
{
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/TransformationSide")))
return E_FAIL;
return S_OK;
}
HRESULT CTransformationSide::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"TransformationSide";
//m_pWandParticle = Get_PartObject<CEffectParts>("Wand_PT");
m_pWandLight = Get_PartObject<CEffectParts>("Wand_Light_B");
m_pWandTrail = Get_PartObject<CTrailObject>();
SAFE_ADDREF(m_pWandLight);
SAFE_ADDREF(m_pWandTrail);
//SAFE_ADDREF(m_pWandParticle);
m_fDuration = 2.f;
m_Events.emplace(0.6f, [&]() {
m_isParticleEnd = true;
//m_pWandParticle->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
CWand* pWand = static_cast<CWand*>(m_pOwner);
if (pWand == nullptr)
return;
m_isTrailEnd = true;
XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix());
});
return S_OK;
}
void CTransformationSide::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
}
void CTransformationSide::Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
CWand* pWand = static_cast<CWand*>(m_pOwner);
if (pWand == nullptr)
return;
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
// 파티클생성이 막히면 실행되지 않음
//if (m_isParticleEnd == false)
// m_pWandParticle->Get_Component<CTransform>()->Set_WorldMatrix(pWand->Get_WorldMatrix());
// 트레일이 종료되면 위치를 고정함
_matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix();
m_pWandTrail->Trail_Update(TrailMat, fTimeDelta);
}
void CTransformationSide::Late_Update(_float fTimeDelta)
{
if (m_bVisible == false)
return;
__super::Late_Update(fTimeDelta);
}
HRESULT CTransformationSide::Pre_Setting(CGameObject* pObject, void* pArg)
{
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
return E_FAIL;
CWand* pWand = static_cast<CWand*>(m_pOwner);
if (pWand == nullptr)
return E_FAIL;
//m_pWandParticle->Set_Visible(true);
m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고
m_pWandLight->Set_Visible(true);
/*트레일 초기화 */
m_pWandTrail->Set_Visible(true);
m_isTrailEnd = false;
m_pWandTrail->Get_Component<CTrail>()->Reset_Trail();
/*_vector pPos = pPlayer->Get_WandPos().r[3];*/
m_pWandLight->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
return S_OK;
}
HRESULT CTransformationSide::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CTransformationSide::Ready_Child()
{
return S_OK;
}
CTransformationSide* CTransformationSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CTransformationSide* pInstance = new CTransformationSide(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CTransformationSide");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CTransformationSide::Clone(void* pArg, CGameObject* pOwner)
{
CTransformationSide* pInstance = new CTransformationSide(*this);
pInstance->m_pOwner = pOwner;
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CTransformationSide");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CTransformationSide::OnCollision(CGameObject* pOther, void* pDesc)
{
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
}
void CTransformationSide::Free()
{
__super::Free();
Safe_Release(m_pWandLight);
Safe_Release(m_pWandTrail);
//Safe_Release(m_pWandParticle);
}
#ifdef _DEBUG
void CTransformationSide::Describe_Entity()
{
}
#endif // _DEBUG
HRESULT CTransformationSide::Bind_ShaderResources()
{
return S_OK;
}
@@ -29,7 +29,6 @@ class CCamera_Debug final : public CCamera
_float m_fMouseSensor = {};
_float4x4 m_matInitial = {};
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
+2 -2
View File
@@ -57,7 +57,7 @@ namespace Client
SCREEN_WIND,
/*사이드*/
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE,
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE,
/*트롤*/
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO,
@@ -83,7 +83,7 @@ namespace Client
END
};
enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, TABLE, END };
enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, TABLE, CHAIR, END };
}
+3
View File
@@ -59,6 +59,7 @@ class CGoblin final : public CMonster
HRESULT Ready_Components();
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
void HitState_Behavior(_float fTimeDelta);
public:
static CGoblin* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -89,6 +90,8 @@ class CGoblin final : public CMonster
_float m_fSpeed = {};
_bool m_bAir = {};
_float m_fGravityAmount = {};
_float m_fHitTimer = {};
_float m_fTumbleTimer = {};
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
@@ -60,6 +60,7 @@ class CGoblin_Mage final : public CMonster
HRESULT Ready_Components();
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
void HitState_Behavior(_float fTimeDelta);
public:
static CGoblin_Mage* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -93,6 +94,8 @@ class CGoblin_Mage final : public CMonster
_float m_fSpeed = {};
_bool m_bAir = {};
_float m_fGravityAmount = {};
_float m_fHitTimer = {};
_float m_fTumbleTimer = {};
#ifdef _DEBUG
_bool m_isDebugMode = {};
@@ -22,6 +22,7 @@ DECLARE_SINGLETON(CInfoInstance)
virtual ~CInfoInstance() = default;
public:
HRESULT Initialize_Information(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
HRESULT Late_Initialize(); // GamePlay Initialize 할 때
void Release_Information();
LEVEL Get_RestartLevel();
public:
@@ -82,6 +83,8 @@ DECLARE_SINGLETON(CInfoInstance)
#pragma endregion
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pInteractive);
HRESULT ActiveAt_Interactive(_fvector vPosition);
#pragma endregion
private:
CGameInstance* m_pGameInstance = { nullptr };
@@ -23,6 +23,9 @@ class CInteractiveInfo final : public CBase
HRESULT Regist_ActiveInteractive(class CMapElement_Interactable* pUnit);
HRESULT Deregist_ActiveInteractive(class CMapElement_Interactable* pUnit);
HRESULT Ready_PoolingInteractive(); // Ready Pooling
HRESULT ActiveAt_Interactive(_fvector vPosition); // Spawn Pooling Object
class CMapElement_Interactable* Get_LockOnUnit();
private:
CGameInstance* m_pGameInstance = { nullptr };
@@ -33,9 +36,13 @@ class CInteractiveInfo final : public CBase
class CMapElement_Interactable* m_pLockOnInteractive = { nullptr };
list<class CMapElement_Interactable*> m_ActiveInteractive = {};
list<class CMapElement_Interactable*> m_PoolingInteractive = {};
list<class CMapElement_Interactable*> m_PoolingActiveInteractive = {};
private:
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
HRESULT Refresh_LockOnTarget();
public:
static CInteractiveInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
virtual void Free() override;
@@ -10,6 +10,7 @@ class CMapElement_Interactable final : public CMapElement
public:
typedef struct tagElement_Interactable_Desc : MAPELEMENT_DESC
{
_bool isPooled = {};
_uint iInteractableID = {};
_uint iSubKind = {};
_float3 vBoxLocalPosition;
@@ -22,10 +23,10 @@ class CMapElement_Interactable final : public CMapElement
virtual ~CMapElement_Interactable() = 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 void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
virtual void GrapToPlayer(_fvector vPos, _float fRatio);
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
ON_COLLISION_INFO CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius);
@@ -33,7 +34,7 @@ class CMapElement_Interactable final : public CMapElement
virtual void Set_DrawOutLine();
virtual HRESULT Render_OutLine() override;
void Set_KinematicFlag(_bool bFlag);
void ActivateAt(_fvector vPos); // 풀링 꺼내기, 위치 지정
private:
ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END };
@@ -41,6 +42,8 @@ class CMapElement_Interactable final : public CMapElement
class CRigidBody_Dynamic* m_pRigidBody = { nullptr };
PSX::PxRigidDynamic* m_pActor = { nullptr };
_bool m_isPooled = { false };
_bool m_bDrawOutLine = { false };
_float4 m_vOutLineColor = CMyTools::ColorRGBA_HEXtoFLOAT4(0xfefefe00);
_float m_fOutLineThickness = { 5.f };
+10
View File
@@ -7,6 +7,15 @@ NS_BEGIN(Client)
class CMonster abstract : public CUnit
{
protected:
enum class HIT_STATE
{
GROUND,
AIR_LEVIOSO,
AIR_KNOCKBACK,
END
};
protected:
CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CMonster(const CMonster& Prototype);
@@ -43,6 +52,7 @@ class CMonster abstract : public CUnit
_bool m_bDisolve = { false };
_float m_fDegree = {};
_float m_fCross = {};
_int m_eHitState = { ENUM_CLASS(HIT_STATE::END) };
protected:
virtual HRESULT Initialize_Prototype() override;
@@ -0,0 +1,53 @@
#pragma once
#include "Client_Define.h"
#include "Effect_Container.h"
NS_BEGIN(Engine)
NS_END
NS_BEGIN(Client)
class CTransformationSide final : public CEffect_Container
{
private:
CTransformationSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CTransformationSide(const CTransformationSide& rhs);
virtual ~CTransformationSide() = 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 = {};
_bool m_isParticleEnd = {};
_bool m_isTrailEnd = {};
_float4x4 m_TrailStopMat = {};
class CEffectParts* m_pWandLight = { nullptr };
class CTrailObject* m_pWandTrail = { nullptr };
//class CEffectParts* m_pWandParticle = { nullptr };
public:
static CTransformationSide* 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
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Element_Interactable>
<Object Type="2" ID="1" Lod_Level="0">
<Object Type="2" ID="0" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
<Position x="129.81247" y="16.543718" z="134.28247"/>
<Scale x="1" y="1" z="1"/>
@@ -8,7 +8,7 @@
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
<LocalTranslation x="0" y="0.5" z="0"/>
</Object>
<Object Type="2" ID="1" Lod_Level="0">
<Object Type="2" ID="0" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
<Position x="130.88289" y="15.983612" z="128.08716"/>
<Scale x="1" y="1" z="1"/>
@@ -16,7 +16,7 @@
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
<LocalTranslation x="0" y="0.5" z="0"/>
</Object>
<Object Type="2" ID="1" Lod_Level="0">
<Object Type="2" ID="0" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
<Position x="130.11172" y="16.369488" z="133.53946"/>
<Scale x="1" y="1" z="1"/>
@@ -24,7 +24,7 @@
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
<LocalTranslation x="0" y="0.5" z="0"/>
</Object>
<Object Type="2" ID="1" Lod_Level="0">
<Object Type="2" ID="0" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
<Position x="55.396034" y="4.3083305" z="79.496262"/>
<Scale x="1" y="1" z="1"/>
@@ -32,7 +32,7 @@
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
<LocalTranslation x="0" y="0.5" z="0"/>
</Object>
<Object Type="2" ID="1" Lod_Level="0">
<Object Type="2" ID="0" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
<Position x="56.6394" y="4.2921305" z="79.00148"/>
<Scale x="1" y="1" z="1"/>
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="UTF-8"?>
<Element_Interactable>
<Object Type="2" ID="0" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
<LocalTranslation x="0" y="0.5" z="0"/>
</Object>
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1.0000204" y="1" z="1.0000204"/>
<Rotation x="0" y="135" z="0"/>
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
</Object>
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="0.99999207" y="1" z="0.99999207"/>
<Rotation x="0" y="0" z="0"/>
<HalfGeometryInfo x="0.1" y="0.079999998" z="0.23999999"/>
<LocalTranslation x="-0.0099999998" y="0.079999998" z="0"/>
</Object>
<Object Type="2" ID="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="0.9999994" y="1" z="0.9999994"/>
<Rotation x="-0" y="-22.999996" z="-0"/>
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Table_B</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="0" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
<LocalTranslation x="0" y="0.5" z="0"/>
</Object>
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1.0000204" y="1" z="1.0000204"/>
<Rotation x="0" y="135" z="0"/>
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
</Object>
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="0.99999207" y="1" z="0.99999207"/>
<Rotation x="0" y="0" z="0"/>
<HalfGeometryInfo x="0.1" y="0.079999998" z="0.23999999"/>
<LocalTranslation x="-0.0099999998" y="0.079999998" z="0"/>
</Object>
<Object Type="2" ID="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="0.9999994" y="1" z="0.9999994"/>
<Rotation x="-0" y="-22.999996" z="-0"/>
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Table_B</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="0" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
<LocalTranslation x="0" y="0.5" z="0"/>
</Object>
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1.0000204" y="1" z="1.0000204"/>
<Rotation x="0" y="135" z="0"/>
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
</Object>
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="0.99999207" y="1" z="0.99999207"/>
<Rotation x="0" y="0" z="0"/>
<HalfGeometryInfo x="0.1" y="0.079999998" z="0.23999999"/>
<LocalTranslation x="-0.0099999998" y="0.079999998" z="0"/>
</Object>
<Object Type="2" ID="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="0.9999994" y="1" z="0.9999994"/>
<Rotation x="-0" y="-22.999996" z="-0"/>
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Table_B</PrototypeTag>
<Position x="0" y="0" z="0"/>
<Scale x="1" y="1" z="1"/>
<Rotation x="0" y="0" z="0"/>
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
</Element_Interactable>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Element_Interactable>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
<Position x="108.8686" y="14.881624" z="114.76772"/>
<Scale x="1.0000204" y="1" z="1.0000204"/>
@@ -8,7 +8,7 @@
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
<Position x="109.45074" y="14.913768" z="114.48667"/>
<Scale x="1" y="1" z="1"/>
@@ -16,7 +16,7 @@
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
<Position x="104.27048" y="15.26092" z="116.47382"/>
<Scale x="1" y="1" z="1"/>
@@ -24,7 +24,7 @@
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
<Position x="103.42465" y="15.364328" z="115.0511"/>
<Scale x="1" y="1" z="1"/>
@@ -32,7 +32,7 @@
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
<Position x="104.1671" y="15.683837" z="116.41785"/>
<Scale x="0.9999882" y="1" z="0.9999882"/>
@@ -40,7 +40,7 @@
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
<Position x="109.21941" y="15.356162" z="114.69065"/>
<Scale x="1" y="1" z="1"/>
@@ -48,7 +48,7 @@
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
<Position x="109.56142" y="15.268259" z="115.72368"/>
<Scale x="1" y="1" z="1"/>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Element_Interactable>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
<Position x="104.85222" y="15.235958" z="116.2313"/>
<Scale x="0.99999207" y="1" z="0.99999207"/>
@@ -8,7 +8,7 @@
<HalfGeometryInfo x="0.1" y="0.079999998" z="0.23999999"/>
<LocalTranslation x="-0.0099999998" y="0.079999998" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
<Position x="108.67394" y="15.255487" z="116.1109"/>
<Scale x="0.99999863" y="1" z="0.99999863"/>
@@ -16,7 +16,7 @@
<HalfGeometryInfo x="0.1" y="0.079999998" z="0.23999999"/>
<LocalTranslation x="-0.0099999998" y="0.079999998" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
<Position x="103.32803" y="15.787835" z="115.04603"/>
<Scale x="0.99985278" y="1" z="0.99985278"/>
@@ -24,7 +24,7 @@
<HalfGeometryInfo x="0.1" y="0.079999998" z="0.23999999"/>
<LocalTranslation x="-0.0099999998" y="0.079999998" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="1" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
<Position x="108.15715" y="15.239557" z="116.30173"/>
<Scale x="0.99999994" y="1" z="0.99999994"/>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Element_Interactable>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
<Position x="121.33389" y="15.479295" z="118.72608"/>
<Scale x="0.9999994" y="1" z="0.9999994"/>
@@ -8,7 +8,7 @@
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
<Position x="123.10323" y="15.479356" z="118.91245"/>
<Scale x="0.99993569" y="1" z="0.99993569"/>
@@ -16,7 +16,7 @@
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
<Position x="120.87086" y="15.479406" z="120.53646"/>
<Scale x="0.99985766" y="1" z="0.99985766"/>
@@ -24,7 +24,7 @@
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
<Position x="120.09058" y="15.479147" z="119.38182"/>
<Scale x="0.99992603" y="1" z="0.99992603"/>
@@ -32,7 +32,7 @@
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
<Position x="119.52007" y="15.479147" z="120.22794"/>
<Scale x="1" y="1" z="1"/>
@@ -40,7 +40,7 @@
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
<Position x="119.36572" y="15.480341" z="117.24383"/>
<Scale x="1.0002052" y="1" z="1.0002052"/>
@@ -48,7 +48,7 @@
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
</Object>
<Object Type="2" ID="2" Lod_Level="0">
<Object Type="2" ID="3" Lod_Level="0">
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
<Position x="118.21121" y="15.479303" z="118.53706"/>
<Scale x="0.99999976" y="1" z="0.99999976"/>
@@ -65,65 +65,36 @@
</Name>
<Name Flow="0">
<Position>
<Pos x="-13.714" y="57.433" z="241.743"/>
<Pos x="58.990" y="68.320" z="241.628"/>
</Position>
<Position>
<Pos x="-42.683" y="51.829" z="228.838"/>
<Pos x="-108.540" y="-20.997" z="129.920"/>
</Position>
<Position>
<Pos x="-74.956" y="41.403" z="215.839"/>
<Pos x="-78.388" y="-7.777" z="23.252"/>
</Position>
<Position>
<Pos x="-88.250" y="36.472" z="187.000"/>
<Pos x="-17.085" y="18.315" z="34.801"/>
</Position>
<Position>
<Pos x="-103.679" y="35.008" z="160.582"/>
<Pos x="38.669" y="17.004" z="4.037"/>
</Position>
<Position>
<Pos x="-94.757" y="25.640" z="131.275"/>
<Pos x="86.242" y="23.649" z="4.595"/>
</Position>
<Position>
<Pos x="-100.794" y="19.290" z="90.624"/>
<Pos x="128.830" y="7.499" z="79.664"/>
</Position>
<Position>
<Pos x="-72.688" y="23.021" z="56.054"/>
<Pos x="147.229" y="7.463" z="171.466"/>
</Position>
<Position>
<Pos x="-36.936" y="22.230" z="40.324"/>
<Pos x="123.945" y="4.664" z="189.885"/>
</Position>
<Position>
<Pos x="-6.871" y="24.247" z="27.440"/>
</Position>
<Position>
<Pos x="25.863" y="17.908" z="6.537"/>
</Position>
<Position>
<Pos x="54.920" y="17.365" z="12.338"/>
</Position>
<Position>
<Pos x="78.844" y="19.070" z="23.801"/>
</Position>
<Position>
<Pos x="100.895" y="17.813" z="41.385"/>
</Position>
<Position>
<Pos x="116.327" y="19.300" z="65.012"/>
</Position>
<Position>
<Pos x="124.877" y="21.285" z="88.990"/>
</Position>
<Position>
<Pos x="127.525" y="19.664" z="115.099"/>
</Position>
<Position>
<Pos x="117.939" y="16.548" z="133.479"/>
</Position>
<Position>
<Pos x="100.079" y="12.406" z="139.899"/>
</Position>
<Position>
<Pos x="20.226" y="6.460" z="142.800"/>
<Pos x="32.682" y=" 7.561" z="131.725"/>
</Position>
</Name>
</RanrokPosData>
</RanrokPosInfo>

Some files were not shown because too many files have changed in this diff Show More