[Add] Human Duelist 추가
This commit is contained in:
@@ -12,13 +12,12 @@
|
|||||||
#include "Mesh.h"
|
#include "Mesh.h"
|
||||||
|
|
||||||
CHuman_Duelist::CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
CHuman_Duelist::CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||||
: CUnit(pDevice, pContext)
|
: CMonster(pDevice, pContext)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
CHuman_Duelist::CHuman_Duelist(const CHuman_Duelist& Prototype)
|
CHuman_Duelist::CHuman_Duelist(const CHuman_Duelist& Prototype)
|
||||||
: CUnit(Prototype),
|
: CMonster(Prototype)
|
||||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,8 +59,7 @@ HRESULT CHuman_Duelist::Initialize(void* pArg)
|
|||||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||||
SAFE_ADDREF(m_pEffectPool);
|
SAFE_ADDREF(m_pEffectPool);
|
||||||
|
|
||||||
m_pInfoInstance->Regist_PlayerAlly(this);
|
m_pInfoInstance->Regist_ActiveMonster(this);
|
||||||
m_pInfoInstance->Set_Damage(m_pStat->Get_Stat().fDamage);
|
|
||||||
{
|
{
|
||||||
PLAYERDESC* pDesc = static_cast<PLAYERDESC*>(pArg);
|
PLAYERDESC* pDesc = static_cast<PLAYERDESC*>(pArg);
|
||||||
_vector vPos = XMLoadFloat4(&pDesc->vPos);
|
_vector vPos = XMLoadFloat4(&pDesc->vPos);
|
||||||
@@ -71,7 +69,7 @@ HRESULT CHuman_Duelist::Initialize(void* pArg)
|
|||||||
m_pTransformCom->Rotation(vRotQ);
|
m_pTransformCom->Rotation(vRotQ);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_bAI = false;
|
m_bAI = true;
|
||||||
|
|
||||||
m_pModelCom->Set_DisableRootMotionScale(true);
|
m_pModelCom->Set_DisableRootMotionScale(true);
|
||||||
|
|
||||||
@@ -106,6 +104,9 @@ void CHuman_Duelist::Update(_float fTimeDelta)
|
|||||||
m_pCallBack_HitReport->Set_CurrentSlop();
|
m_pCallBack_HitReport->Set_CurrentSlop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++)
|
||||||
|
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
|
||||||
|
|
||||||
m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION));
|
m_pInfoInstance->Set_PlayerPos(m_pTransformCom->Get_State(STATE::POSITION));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -121,6 +122,10 @@ void CHuman_Duelist::Late_Update(_float fTimeDelta)
|
|||||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||||
|
|
||||||
__super::Late_Update(fTimeDelta);
|
__super::Late_Update(fTimeDelta);
|
||||||
|
|
||||||
|
if (true == m_bLookAt) {
|
||||||
|
m_pTransformCom->LookAt_Horizontal_Lerp(XMLoadFloat4(&m_vTargetPos), fTimeDelta, 3.f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -224,8 +229,6 @@ HRESULT CHuman_Duelist::Render_Shadow(SHADOW eType)
|
|||||||
}
|
}
|
||||||
void CHuman_Duelist::OnCollision(CGameObject* pOther, void* pDesc)
|
void CHuman_Duelist::OnCollision(CGameObject* pOther, void* pDesc)
|
||||||
{
|
{
|
||||||
_int iCurrAnim = m_pModelCom->Get_AnimIndex();
|
|
||||||
|
|
||||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||||
if (CollisionDesc) {
|
if (CollisionDesc) {
|
||||||
Check_HitAngle(XMLoadFloat4(&CollisionDesc->vHitDir));
|
Check_HitAngle(XMLoadFloat4(&CollisionDesc->vHitDir));
|
||||||
@@ -252,7 +255,11 @@ HRESULT CHuman_Duelist::Ready_Components()
|
|||||||
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
|
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
|
||||||
Desc.fRadius = 10.f;
|
Desc.fRadius = 10.f;
|
||||||
|
|
||||||
if (FAILED(__super::Ready_Components(&Desc))) {
|
if (FAILED(Add_Component<CTransform>(g_iStaticLevel, &m_pTransformCom, &Desc))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FAILED(Add_Component<CFSM>(g_iStaticLevel, &m_pFSM))) {
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,9 +287,10 @@ HRESULT CHuman_Duelist::Ready_Components()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pStat = m_pInfoInstance->Get_PlayerStatPtr();
|
|
||||||
m_Components.push_back(m_pStat);
|
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_M_STUDENT"), (CComponent**)&m_pStat))) {
|
||||||
SAFE_ADDREF(m_pStat);
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
{ // CCT
|
{ // CCT
|
||||||
CCharacter_Controller::Character_Controller_DESC Desc{};
|
CCharacter_Controller::Character_Controller_DESC Desc{};
|
||||||
|
|||||||
@@ -24,10 +24,21 @@
|
|||||||
void CHuman_Duelist::Behavior_IdleEnter()
|
void CHuman_Duelist::Behavior_IdleEnter()
|
||||||
{
|
{
|
||||||
m_pFSM->Enable_State(FSMSTATE::IDLE);
|
m_pFSM->Enable_State(FSMSTATE::IDLE);
|
||||||
|
pair<_uint, _bool> pairAnimInfo;
|
||||||
|
pairAnimInfo = m_Animation[STATEANIM::IDLE];
|
||||||
|
|
||||||
|
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CHuman_Duelist::Behavior_IdleExitCheck(_float fTimeDelta)
|
HRESULT CHuman_Duelist::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
|
for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++)
|
||||||
|
{
|
||||||
|
if (m_fSkillCoolTime[i] == 0.f) {
|
||||||
|
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,6 +54,26 @@ void CHuman_Duelist::Behavior_CombatEnter()
|
|||||||
|
|
||||||
HRESULT CHuman_Duelist::Behavior_CombatExitCheck()
|
HRESULT CHuman_Duelist::Behavior_CombatExitCheck()
|
||||||
{
|
{
|
||||||
|
if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)] <= 0.f)
|
||||||
|
{
|
||||||
|
m_pFSM->Change_State(FSMSTATE::SPELL);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)] <= 0.f)
|
||||||
|
{
|
||||||
|
m_pFSM->Change_State(FSMSTATE::SHIELD);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
else if (m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] <= 0.f)
|
||||||
|
{
|
||||||
|
m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,11 +84,44 @@ void CHuman_Duelist::Behavior_CombatExit()
|
|||||||
|
|
||||||
void CHuman_Duelist::Behavior_LightAttackEnter()
|
void CHuman_Duelist::Behavior_LightAttackEnter()
|
||||||
{
|
{
|
||||||
|
pair<_uint, _bool> pairAnimInfo;
|
||||||
m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
|
m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK);
|
||||||
|
_int iRand = m_pGameInstance->Real_Random_Int(0, 3);
|
||||||
|
switch (iRand)
|
||||||
|
{
|
||||||
|
case 0:
|
||||||
|
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK2];
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK3];
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK4];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||||
|
|
||||||
|
Add_Event(pairAnimInfo.first,
|
||||||
|
[this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &iIndex); },
|
||||||
|
0.2f);
|
||||||
|
|
||||||
|
Add_Event(pairAnimInfo.first,
|
||||||
|
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>()); },
|
||||||
|
0.0f);
|
||||||
|
|
||||||
|
m_fSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::LIGHT_ATTACK)];
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CHuman_Duelist::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
HRESULT CHuman_Duelist::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
|
if (m_pModelCom->IsFinishedAnim())
|
||||||
|
{
|
||||||
|
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,10 +133,28 @@ void CHuman_Duelist::Behavior_LightAttackExit()
|
|||||||
void CHuman_Duelist::Behavior_SpellEnter()
|
void CHuman_Duelist::Behavior_SpellEnter()
|
||||||
{
|
{
|
||||||
m_pFSM->Enable_State(FSMSTATE::SPELL);
|
m_pFSM->Enable_State(FSMSTATE::SPELL);
|
||||||
|
pair<_uint, _bool> pairAnimInfo;
|
||||||
|
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||||
|
|
||||||
|
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||||
|
|
||||||
|
Add_Event(pairAnimInfo.first,
|
||||||
|
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); },
|
||||||
|
0.2f);
|
||||||
|
Add_Event(pairAnimInfo.first,
|
||||||
|
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject<CWand>()); },
|
||||||
|
0.f);
|
||||||
|
|
||||||
|
m_fSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::LEVIOSO)];
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CHuman_Duelist::Behavior_SpellExitCheck()
|
HRESULT CHuman_Duelist::Behavior_SpellExitCheck()
|
||||||
{
|
{
|
||||||
|
if (m_pModelCom->IsFinishedAnim())
|
||||||
|
{
|
||||||
|
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,10 +166,26 @@ void CHuman_Duelist::Behavior_SpellExit()
|
|||||||
void CHuman_Duelist::Behavior_ShieldEnter()
|
void CHuman_Duelist::Behavior_ShieldEnter()
|
||||||
{
|
{
|
||||||
m_pFSM->Enable_State(FSMSTATE::SHIELD);
|
m_pFSM->Enable_State(FSMSTATE::SHIELD);
|
||||||
|
|
||||||
|
pair<_uint, _bool> pairAnimInfo;
|
||||||
|
pairAnimInfo = m_Animation[STATEANIM::SKILL];
|
||||||
|
|
||||||
|
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||||
|
|
||||||
|
Add_Event(pairAnimInfo.first,
|
||||||
|
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::PROTEGO, this); },
|
||||||
|
0.1f);
|
||||||
|
|
||||||
|
m_fSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)] = m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::PROTEGO)];
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CHuman_Duelist::Behavior_ShieldExitCheck()
|
HRESULT CHuman_Duelist::Behavior_ShieldExitCheck()
|
||||||
{
|
{
|
||||||
|
if (m_pModelCom->IsFinishedAnim())
|
||||||
|
{
|
||||||
|
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +209,6 @@ void CHuman_Duelist::Behavior_HitExit()
|
|||||||
m_pFSM->Disable_State(FSMSTATE::HIT);
|
m_pFSM->Disable_State(FSMSTATE::HIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CHuman_Duelist::Add_FSM()
|
void CHuman_Duelist::Add_FSM()
|
||||||
{
|
{
|
||||||
#pragma region Behavior_Movement_NotFocus
|
#pragma region Behavior_Movement_NotFocus
|
||||||
|
|||||||
@@ -856,12 +856,12 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//CPlayer::PLAYERDESC playerDesc = {};
|
CPlayer::PLAYERDESC playerDesc = {};
|
||||||
//playerDesc.vPos = _float4(-21.f, 0.f, -14.f, 1.f);
|
playerDesc.vPos = _float4(-21.f, 0.f, -14.f, 1.f);
|
||||||
//playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
|
playerDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
|
||||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CHuman_Duelist>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
|
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CHuman_Duelist>(g_iStaticLevel, NEXT_LEVEL, strLayerTag,&playerDesc))) {
|
||||||
// return E_FAIL;
|
return E_FAIL;
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -303,7 +303,12 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
|
|||||||
|
|
||||||
Get_PartObject<CTrailObject>()->Set_Visible(false);
|
Get_PartObject<CTrailObject>()->Set_Visible(false);
|
||||||
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||||
dynamic_cast<CPlayer*>(m_pOwner->Get_Owner())->Start_CameraShake(0.2f, 1.f);
|
CPlayer* pPlayer = dynamic_cast<CPlayer*>(m_pOwner->Get_Owner());
|
||||||
|
if (pPlayer != nullptr)
|
||||||
|
{
|
||||||
|
pPlayer->Start_CameraShake(0.2f, 1.f);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CNomalJap::Free()
|
void CNomalJap::Free()
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
|||||||
}
|
}
|
||||||
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
||||||
Get_PartObject<CItem_Potion>()->Set_Visible(true);
|
Get_PartObject<CItem_Potion>()->Set_Visible(true);
|
||||||
|
m_pModelCom->IsSkip(true);
|
||||||
//m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second);
|
//m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second);
|
||||||
}
|
}
|
||||||
else if (m_pGameInstance->Key_Down(DIK_B)) {
|
else if (m_pGameInstance->Key_Down(DIK_B)) {
|
||||||
@@ -346,6 +347,7 @@ void CPlayer::Behavior_IdleExit()
|
|||||||
{
|
{
|
||||||
m_pFSM->Disable_State(FSMSTATE::IDLE | FSMSTATE::IDLE_TURN);
|
m_pFSM->Disable_State(FSMSTATE::IDLE | FSMSTATE::IDLE_TURN);
|
||||||
Reset_Event();
|
Reset_Event();
|
||||||
|
m_pModelCom->IsSkip(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPlayer::Behavior_MoveEnter()
|
void CPlayer::Behavior_MoveEnter()
|
||||||
@@ -469,6 +471,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
|||||||
}
|
}
|
||||||
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
||||||
Get_PartObject<CItem_Potion>()->Set_Visible(true);
|
Get_PartObject<CItem_Potion>()->Set_Visible(true);
|
||||||
|
m_pModelCom->IsSkip(true);
|
||||||
//m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second);
|
//m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -698,6 +701,7 @@ void CPlayer::Behavior_MoveExit()
|
|||||||
{
|
{
|
||||||
m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::STOP);
|
m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::STOP);
|
||||||
Reset_Event();
|
Reset_Event();
|
||||||
|
m_pModelCom->IsSkip(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPlayer::Behavior_JumpEnter()
|
void CPlayer::Behavior_JumpEnter()
|
||||||
|
|||||||
@@ -1,18 +1,26 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Client_Define.h"
|
#include "Client_Define.h"
|
||||||
#include "Unit.h"
|
#include "Monster.h"
|
||||||
#include "Player_ENUM.h"
|
#include "Player_ENUM.h"
|
||||||
|
|
||||||
NS_BEGIN(Client)
|
NS_BEGIN(Client)
|
||||||
|
|
||||||
class CHuman_Duelist final : public CUnit
|
class CHuman_Duelist final : public CMonster
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef struct tagPlayerInitDesc {
|
typedef struct tagPlayerInitDesc {
|
||||||
_float4 vPos;
|
_float4 vPos;
|
||||||
_float4 vRotQ;
|
_float4 vRotQ;
|
||||||
}PLAYERDESC;
|
}PLAYERDESC;
|
||||||
|
|
||||||
|
enum class SKILL
|
||||||
|
{
|
||||||
|
LEVIOSO,
|
||||||
|
PROTEGO,
|
||||||
|
LIGHT_ATTACK,
|
||||||
|
END
|
||||||
|
};
|
||||||
private:
|
private:
|
||||||
CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
CHuman_Duelist(const CHuman_Duelist& Prototype);
|
CHuman_Duelist(const CHuman_Duelist& Prototype);
|
||||||
@@ -30,17 +38,12 @@ class CHuman_Duelist final : public CUnit
|
|||||||
void Set_Shield(_bool bShield) { m_bShield = bShield; }
|
void Set_Shield(_bool bShield) { m_bShield = bShield; }
|
||||||
_matrix Get_WandPos();
|
_matrix Get_WandPos();
|
||||||
private:
|
private:
|
||||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
|
||||||
|
|
||||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||||
class CCallBack_Playable_Behavior* m_pCallBack_Behavior = { nullptr };
|
class CCallBack_Playable_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||||
class CCallBack_Playable_HitReport* m_pCallBack_HitReport = { nullptr };
|
class CCallBack_Playable_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||||
CLight* m_pLightCom = { nullptr };
|
CLight* m_pLightCom = { nullptr };
|
||||||
LIGHT_DESC LightDesc = {};
|
LIGHT_DESC LightDesc = {};
|
||||||
|
|
||||||
CStat* m_pStat = { nullptr };
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual HRESULT Initialize_Prototype() override;
|
virtual HRESULT Initialize_Prototype() override;
|
||||||
virtual HRESULT Initialize(void* pArg) override;
|
virtual HRESULT Initialize(void* pArg) override;
|
||||||
@@ -49,8 +52,6 @@ class CHuman_Duelist final : public CUnit
|
|||||||
HRESULT Bind_ShaderResources();
|
HRESULT Bind_ShaderResources();
|
||||||
HRESULT Bind_ShaderParameters(_uint iMeshOrder);
|
HRESULT Bind_ShaderParameters(_uint iMeshOrder);
|
||||||
void SetGravity();
|
void SetGravity();
|
||||||
void Add_SpellEvent(_uint AnimIndex, _float fRatio);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CHuman_Duelist* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
static CHuman_Duelist* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
@@ -67,11 +68,12 @@ class CHuman_Duelist final : public CUnit
|
|||||||
|
|
||||||
virtual void Add_FSM();
|
virtual void Add_FSM();
|
||||||
|
|
||||||
_bool m_bLookAt = { false };
|
|
||||||
_bool m_bSpellHit = {};
|
_bool m_bSpellHit = {};
|
||||||
_bool m_bShield = { false };
|
_bool m_bShield = { false };
|
||||||
_float m_fCross = 0.f;
|
|
||||||
_float m_fabsDir = 0.f;
|
|
||||||
|
_float m_fSkillCoolTime[ENUM_CLASS(SKILL::END)] = {};
|
||||||
|
_float m_fMaxSkillCoolTime[ENUM_CLASS(SKILL::END)] = { 10.f,10.f,5.f };
|
||||||
|
|
||||||
void Behavior_IdleEnter();
|
void Behavior_IdleEnter();
|
||||||
HRESULT Behavior_IdleExitCheck(_float fTimeDelta);
|
HRESULT Behavior_IdleExitCheck(_float fTimeDelta);
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ class CPlayer final : public CUnit
|
|||||||
_float m_fMoveTime = {};
|
_float m_fMoveTime = {};
|
||||||
_float m_fCross = 0.f;
|
_float m_fCross = 0.f;
|
||||||
_float m_fabsDir = 0.f;
|
_float m_fabsDir = 0.f;
|
||||||
array<_float4x4, 256> SkinMatrices;
|
array<_float4x4, 256> SkinMatrices = {};
|
||||||
_bool m_bOpenDoor = { false };
|
_bool m_bOpenDoor = { false };
|
||||||
|
|
||||||
/* 무적 불 변수*/
|
/* 무적 불 변수*/
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class CRanrok final : public CMonster
|
|||||||
_float2 m_vStunTimer = { 0.f, 4.f };
|
_float2 m_vStunTimer = { 0.f, 4.f };
|
||||||
_float2 m_vAuraTimer = { 0.f, 0.16f };
|
_float2 m_vAuraTimer = { 0.f, 0.16f };
|
||||||
_float2 m_vEtherealTimer = { 0.f, 0.16f };
|
_float2 m_vEtherealTimer = { 0.f, 0.16f };
|
||||||
_uint iIndex;
|
_uint iIndex = {};
|
||||||
DAMAGE_INFO m_DamageInfo;
|
DAMAGE_INFO m_DamageInfo;
|
||||||
_bool m_bCollisionPlayer = { false };
|
_bool m_bCollisionPlayer = { false };
|
||||||
|
|
||||||
|
|||||||
@@ -2,105 +2,17 @@
|
|||||||
<Animations owner="Human_Duelist">
|
<Animations owner="Human_Duelist">
|
||||||
|
|
||||||
<!-- IDLE -->
|
<!-- IDLE -->
|
||||||
<Anim state="IDLE" index="894" loop="true"/>
|
<Anim state="IDLE" index="243" loop="true"/>
|
||||||
<Anim state="IDLE_AIM" index="6" loop="true"/>
|
|
||||||
<Anim state="IDLE_TURN_L" index="271" loop="false"/>
|
|
||||||
<Anim state="IDLE_TURN_R" index="431" loop="false"/>
|
|
||||||
<Anim state="IDLE_TURN_BWD" index="269" loop="false"/>
|
|
||||||
|
|
||||||
<!-- WALK -->
|
|
||||||
<Anim state="WALK_FWD" index="626" loop="true"/>
|
|
||||||
<Anim state="WALK_LEFT" index="338" loop="false"/>
|
|
||||||
<Anim state="WALK_RIGHT" index="505" loop="false"/>
|
|
||||||
<Anim state="WALK_BWD" index="353" loop="false"/>
|
|
||||||
<Anim state="WALK_STOP_L" index="345" loop="false"/>
|
|
||||||
<Anim state="WALK_STOP_R" index="508" loop="false"/>
|
|
||||||
|
|
||||||
<!-- JOG -->
|
|
||||||
<Anim state="JOG_FWD" index="168" loop="true"/>
|
|
||||||
<Anim state="JOG_LEFT" index="304" loop="false"/>
|
|
||||||
<Anim state="JOG_RIGHT" index="308" loop="false"/>
|
|
||||||
<Anim state="JOG_BWD" index="155" loop="false"/>
|
|
||||||
<Anim state="JOG_STOP" index="447" loop="false"/>
|
|
||||||
|
|
||||||
<Anim state="JOG_AIM_LEFT" index="172" loop="true"/>
|
|
||||||
<Anim state="JOG_AIM_RIGHT" index="176" loop="true"/>
|
|
||||||
<Anim state="JOG_AIM_BWD" index="167" loop="true"/>
|
|
||||||
|
|
||||||
<!-- JUMP / FALL -->
|
|
||||||
<Anim state="JUMP" index="206" loop="false"/>
|
|
||||||
<Anim state="JUMP_JOG" index="204" loop="false"/>
|
|
||||||
<Anim state="JUMP_SPRINT" index="208" loop="false"/>
|
|
||||||
<Anim state="FALL_LOOP" index="30" loop="true"/>
|
|
||||||
|
|
||||||
<!-- SPRINT -->
|
|
||||||
<Anim state="SPRINT" index="600" loop="true"/>
|
|
||||||
|
|
||||||
<!-- LAND -->
|
|
||||||
<Anim state="LAND" index="260" loop="false"/>
|
|
||||||
<Anim state="LAND_TO_JOG" index="248" loop="false"/>
|
|
||||||
<Anim state="LAND_TO_SPRINT" index="250" loop="false"/>
|
|
||||||
<Anim state="LAND_HARD" index="256" loop="false"/>
|
|
||||||
<Anim state="LAND_MID" index="258" loop="false"/>
|
|
||||||
<Anim state="LAND_SOFT" index="260" loop="false"/>
|
|
||||||
|
|
||||||
<!-- SLIDE -->
|
|
||||||
<Anim state="SLIDE_START_R" index="567" loop="false"/>
|
|
||||||
<Anim state="SLIDE_LOOP_R" index="565" loop="true"/>
|
|
||||||
<Anim state="SLIDE_STOP_R" index="569" loop="false"/>
|
|
||||||
|
|
||||||
<!-- DODGE -->
|
|
||||||
<Anim state="DODGE" index="879" loop="false"/>
|
|
||||||
<Anim state="DODGE_BLINK" index="875" loop="false"/>
|
|
||||||
|
|
||||||
<!-- SKILL / ATTACK -->
|
<!-- SKILL / ATTACK -->
|
||||||
<Anim state="SKILL" index="594" loop="false"/>
|
<Anim state="SKILL" index="240" loop="false"/>
|
||||||
<Anim state="SKILL2" index="992" loop="false"/>
|
<Anim state="LIGHT_ATTACK" index="32" loop="false"/>
|
||||||
|
<Anim state="LIGHT_ATTACK2" index="35" loop="false"/>
|
||||||
<Anim state="LIGHT_ATTACK" index="414" loop="false"/>
|
<Anim state="LIGHT_ATTACK3" index="37" loop="false"/>
|
||||||
<Anim state="LIGHT_ATTACK_180_R" index="810" loop="false"/>
|
<Anim state="LIGHT_ATTACK4" index="39" loop="false"/>
|
||||||
|
|
||||||
<Anim state="LIGHT_ATTACK_90_L" index="802" loop="false"/>
|
|
||||||
<Anim state="LIGHT_ATTACK_90_R1" index="850" loop="false"/>
|
|
||||||
<Anim state="LIGHT_ATTACK_90_R2" index="854" loop="false"/>
|
|
||||||
<Anim state="LIGHT_ATTACK_90_R3" index="855" loop="false"/>
|
|
||||||
|
|
||||||
<!-- SPELL -->
|
<!-- SPELL -->
|
||||||
<Anim state="SPELL" index="773" loop="false"/>
|
<Anim state="SPELL" index="34" loop="false"/>
|
||||||
<Anim state="SPELL_180_R" index="838" loop="false"/>
|
|
||||||
<Anim state="SPELL_90_R" index="849" loop="false"/>
|
|
||||||
<Anim state="SPELL_90_L" index="823" loop="false"/>
|
|
||||||
<Anim state="SPELL_90_L2" index="827" loop="false"/>
|
|
||||||
|
|
||||||
<Anim state="MAPHELP" index="123" loop="false"/>
|
|
||||||
<Anim state="POTION" index="116" loop="false"/>
|
|
||||||
<Anim state="ACCIO" index="760" loop="false"/>
|
|
||||||
<Anim state="DESCENDO" index="858" loop="false"/>
|
|
||||||
<Anim state="DEPULSO" index="859" loop="false"/>
|
|
||||||
<Anim state="DIFFINDO" index="863" loop="false"/>
|
|
||||||
|
|
||||||
<Anim state="LUMOS" index="911" loop="true"/>
|
|
||||||
<Anim state="LUMOS_STOP" index="913" loop="false"/>
|
|
||||||
|
|
||||||
<Anim state="DISILLUSION_ENTER" index="586" loop="false"/>
|
|
||||||
<Anim state="DISILLUSION_EXIT" index="587" loop="false"/>
|
|
||||||
|
|
||||||
<Anim state="ANCIENT_THROW" index="920" loop="false"/>
|
|
||||||
<Anim state="AVADA_KEDAVRA" index="0" loop="false"/>
|
|
||||||
|
|
||||||
<!-- REPARO -->
|
|
||||||
<Anim state="REPARO_START" index="759" loop="false"/>
|
|
||||||
<Anim state="REPARO_LOOP" index="758" loop="true"/>
|
|
||||||
<Anim state="REPARO_END" index="757" loop="false"/>
|
|
||||||
|
|
||||||
<Anim state="ANCIENT_LIGHTNING" index="1002" loop="false"/>
|
|
||||||
<Anim state="SPELL_FAIL" index="907" loop="false"/>
|
|
||||||
|
|
||||||
<!-- PARRY -->
|
|
||||||
<Anim state="PARRY_180" index="954" loop="false"/>
|
|
||||||
<Anim state="PARRY2" index="914" loop="false"/>
|
|
||||||
<Anim state="PARRY3" index="916" loop="false"/>
|
|
||||||
<Anim state="PARRY4" index="922" loop="false"/>
|
|
||||||
|
|
||||||
<!-- HIT / FLINCH -->
|
<!-- HIT / FLINCH -->
|
||||||
<Anim state="HIT_L" index="1213" loop="false"/>
|
<Anim state="HIT_L" index="1213" loop="false"/>
|
||||||
@@ -122,47 +34,4 @@
|
|||||||
<Anim state="GETUP_BWD" index="1092" loop="false"/>
|
<Anim state="GETUP_BWD" index="1092" loop="false"/>
|
||||||
<Anim state="GETUP_FWD" index="1097" loop="false"/>
|
<Anim state="GETUP_FWD" index="1097" loop="false"/>
|
||||||
|
|
||||||
<!-- BROOM -->
|
|
||||||
<Anim state="BROOM_IDLE" index="711" loop="true"/>
|
|
||||||
<Anim state="BROOM_FWD" index="712" loop="true"/>
|
|
||||||
<Anim state="BROOM_LEFT" index="714" loop="true"/>
|
|
||||||
<Anim state="BROOM_RIGHT" index="715" loop="true"/>
|
|
||||||
<Anim state="BROOM_DOWN" index="713" loop="true"/>
|
|
||||||
<Anim state="BROOM_UP" index="716" loop="true"/>
|
|
||||||
<Anim state="BROOM_REVELIO" index="679" loop="false"/>
|
|
||||||
|
|
||||||
<Anim state="BROOM_TURBO_DOWN" index="717" loop="true"/>
|
|
||||||
<Anim state="BROOM_TURBO_FWD" index="718" loop="true"/>
|
|
||||||
<Anim state="BROOM_TURBO_LEFT" index="719" loop="true"/>
|
|
||||||
<Anim state="BROOM_TURBO_RIGHT" index="720" loop="true"/>
|
|
||||||
<Anim state="BROOM_TURBO_UP" index="721" loop="true"/>
|
|
||||||
|
|
||||||
<Anim state="BROOM_MOUNT" index="735" loop="false"/>
|
|
||||||
<Anim state="BROOM_MOUNT_END" index="738" loop="false"/>
|
|
||||||
<Anim state="BROOM_HOVER_START" index="700" loop="false"/>
|
|
||||||
<Anim state="BROOM_DISMOUNT" index="676" loop="false"/>
|
|
||||||
|
|
||||||
<Anim state="BROOM_HOVER_IDLE" index="704" loop="true"/>
|
|
||||||
<Anim state="BROOM_HOVER_FWD" index="701" loop="true"/>
|
|
||||||
<Anim state="BROOM_HOVER_LEFT" index="702" loop="true"/>
|
|
||||||
<Anim state="BROOM_HOVER_RIGHT" index="703" loop="true"/>
|
|
||||||
<Anim state="BROOM_HOVER_REVELIO" index="722" loop="false"/>
|
|
||||||
|
|
||||||
<!-- JOG AIM STOP -->
|
|
||||||
<Anim state="JOG_AIM_STOP_L" index="296" loop="false"/>
|
|
||||||
<Anim state="JOG_AIM_STOP_R" index="457" loop="false"/>
|
|
||||||
<Anim state="JOG_AIM_STOP_BWD" index="445" loop="false"/>
|
|
||||||
|
|
||||||
<!-- OPEN DOOR -->
|
|
||||||
<Anim state="OPEN_DOOR" index="1003" loop="false"/>
|
|
||||||
<Anim state="OPEN_DOOR_L" index="1004" loop="false"/>
|
|
||||||
<Anim state="OPEN_DOOR_R" index="1005" loop="false"/>
|
|
||||||
|
|
||||||
<!-- SPELL LEARNING -->
|
|
||||||
<Anim state="SPELL_LEARNING_FAIL" index="1289" loop="false"/>
|
|
||||||
<Anim state="SPELL_LEARNING_LOOP" index="1290" loop="true"/>
|
|
||||||
<Anim state="SPELL_LEARNING_START" index="1291" loop="false"/>
|
|
||||||
<Anim state="SPELL_LEARNING_SUCCESS" index="1292" loop="false"/>
|
|
||||||
<Anim state="SPELL_LEARNING_WANDWAVE" index="1293" loop="false"/>
|
|
||||||
|
|
||||||
</Animations>
|
</Animations>
|
||||||
|
|||||||
@@ -5,4 +5,5 @@
|
|||||||
<STAT_GOBLIN_WIZARD Name="고블린 마법사" OBJECTID="2" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="2" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
<STAT_GOBLIN_WIZARD Name="고블린 마법사" OBJECTID="2" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="2" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="0"/>
|
||||||
<STAT_TROLL Name="트롤" OBJECTID="3" HP="500" MAXHP="500" TARGETHP="500" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
|
<STAT_TROLL Name="트롤" OBJECTID="3" HP="500" MAXHP="500" TARGETHP="500" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
|
||||||
<STAT_RANROK Name="란록" OBJECTID="4" HP="1000" MAXHP="1000" TARGETHP="1000" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
|
<STAT_RANROK Name="란록" OBJECTID="4" HP="1000" MAXHP="1000" TARGETHP="1000" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
|
||||||
|
<STAT_M_STUDENT Name="테오도어 그레이브스" OBJECTID="4" HP="100" MAXHP="100" TARGETHP="100" DAMAGE="10" DEFENSE="10" SPEED="10" LEVEL="5" EXPERIENCE="10" MAX_EXPERIENCE="100" GOLD="4000" BOSS="1"/>
|
||||||
</StatInfo>
|
</StatInfo>
|
||||||
|
|||||||
Binary file not shown.
BIN
Binary file not shown.
+1
-1
@@ -64,7 +64,7 @@
|
|||||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||||
<aiTextureType_NORMALS Index="6" Filename="T_Professor_EleazarFig_Head_N" Extension=".dds"/>
|
<aiTextureType_NORMALS Index="6" Filename="T_Old_F_Head_SatyavatiShah_N" Extension=".dds"/>
|
||||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ StructuredBuffer<uint> g_BoneRemap : register(t6);
|
|||||||
StructuredBuffer<int> g_SkipBone : register(t7);
|
StructuredBuffer<int> g_SkipBone : register(t7);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RWStructuredBuffer<float4x4> g_LocalMatrixOut : register(u0);
|
RWStructuredBuffer<float4x4> g_LocalMatrixOut : register(u0);
|
||||||
|
|
||||||
cbuffer AnimCB : register(b0)
|
cbuffer AnimCB : register(b0)
|
||||||
@@ -48,7 +49,7 @@ cbuffer AnimCB : register(b0)
|
|||||||
float HeadAimWeight;
|
float HeadAimWeight;
|
||||||
|
|
||||||
int SkipCount;
|
int SkipCount;
|
||||||
int _pad0;
|
int IsSkip;
|
||||||
int _pad1;
|
int _pad1;
|
||||||
int _pad2;
|
int _pad2;
|
||||||
|
|
||||||
@@ -366,7 +367,7 @@ void CS_LOCAL(uint3 DTid : SV_DispatchThreadID)
|
|||||||
if (bone >= BoneCount)
|
if (bone >= BoneCount)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (SkipCount != 0)
|
if (SkipCount != 0 && IsSkip)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < SkipCount; i++)
|
for (int i = 0; i < SkipCount; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ cbuffer AnimCB : register(b0)
|
|||||||
float HeadAimWeight;
|
float HeadAimWeight;
|
||||||
|
|
||||||
int SkipCount;
|
int SkipCount;
|
||||||
int _pad0;
|
int IsSkip;
|
||||||
int _pad1;
|
int _pad1;
|
||||||
int _pad2;
|
int _pad2;
|
||||||
|
|
||||||
|
|||||||
@@ -79,62 +79,46 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
|||||||
TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
|
TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
|
||||||
));*/
|
));*/
|
||||||
|
|
||||||
|
#pragma region MONSTER
|
||||||
|
|
||||||
futures.emplace_back(Deferred_ModelLoad(
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
TEXT("Prototype_Component_Playable_Model")
|
TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_GoblinMage_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_SK_GOB_M_Assassin_Master_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
|
||||||
|
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
|
||||||
|
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||||
|
return E_FAIL;
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_troll_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin", XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_trsoll_Model")
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
#pragma region MONSTER
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
TEXT("Prototype_Component_ConjuredDragon_Model")
|
||||||
// MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
));
|
||||||
// TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_GoblinMage_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_SK_GOB_M_Assassin_Master_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
|
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
|
||||||
// return E_FAIL;
|
|
||||||
|
|
||||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
|
|
||||||
// CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
|
||||||
// return E_FAIL;
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_troll_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_TrollIntro.bin", XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_trsoll_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll_Anim.bin", XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_trsoll_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_ConjuredDragon_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_Professor_EleazarFig_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
@@ -205,10 +189,6 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
|||||||
MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity(),
|
MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity(),
|
||||||
TEXT("Desc_Box")
|
TEXT("Desc_Box")
|
||||||
));
|
));
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_GerboldOlivander_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -241,122 +221,102 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
|||||||
// return E_FAIL;
|
// return E_FAIL;
|
||||||
|
|
||||||
|
|
||||||
#pragma region NPC
|
|
||||||
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
// MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
// TEXT("Prototype_Component_Npc_Model")
|
TEXT("Prototype_Component_Playable_Model")
|
||||||
//));
|
));
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_Professor_EleazarFig_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_GerboldOlivander_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_VictorRookWood_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_Playable_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
#pragma region NPC
|
#pragma region NPC
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
|
||||||
// TEXT("Prototype_Component_Professor_EleazarFig_Model")
|
TEXT("Prototype_Component_Npc_Model")
|
||||||
//));
|
));
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_MatildaWeasely_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_SatyavatiShah_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_PhineasBlack_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_ChiyoKogawa_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_Ghost_Peeves_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_M_Student_Model")
|
|
||||||
//));
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_F_Student_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_Elf_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx", XMMatrixIdentity(),
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(),
|
||||||
// TEXT("Prototype_Component_Student_Cmbt_Model")
|
TEXT("Prototype_Component_GerboldOlivander_Model")
|
||||||
//));
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_Professor_EleazarFig_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_MatildaWeasely_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_SatyavatiShah_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_PhineasBlack_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_VictorRookWood_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_ChiyoKogawa_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_Ghost_Peeves_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_M_Student_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_F_Student_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
|
TEXT("Prototype_Component_Elf_Model")
|
||||||
|
));
|
||||||
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
// MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx", XMMatrixIdentity(),
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
// TEXT("Prototype_Component_Student_Cmbt_Model")
|
TEXT("Prototype_Component_Kitchen_Female_Model")
|
||||||
//));
|
));
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
// TEXT("Prototype_Component_Elf_Model")
|
TEXT("Prototype_Component_BaiHowin_Model")
|
||||||
//));
|
));
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
// TEXT("Prototype_Component_Kitchen_Female_Model")
|
TEXT("Prototype_Component_GeorgeOsric_Model")
|
||||||
//));
|
));
|
||||||
//
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_BaiHowin_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
|
||||||
// TEXT("Prototype_Component_GeorgeOsric_Model")
|
|
||||||
//));
|
|
||||||
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
// TEXT("Prototype_Component_DinahHecat_Model")
|
TEXT("Prototype_Component_DinahHecat_Model")
|
||||||
//));
|
));
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
futures.emplace_back(Deferred_ModelLoad(
|
||||||
// MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||||
// TEXT("Prototype_Component_MudiwaOnai_Model")
|
TEXT("Prototype_Component_MudiwaOnai_Model")
|
||||||
//));
|
));
|
||||||
|
|
||||||
|
|
||||||
//futures.emplace_back(Deferred_ModelLoad(
|
//futures.emplace_back(Deferred_ModelLoad(
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ StructuredBuffer<uint> g_BoneRemap : register(t6);
|
|||||||
StructuredBuffer<int> g_SkipBone : register(t7);
|
StructuredBuffer<int> g_SkipBone : register(t7);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RWStructuredBuffer<float4x4> g_LocalMatrixOut : register(u0);
|
RWStructuredBuffer<float4x4> g_LocalMatrixOut : register(u0);
|
||||||
|
|
||||||
cbuffer AnimCB : register(b0)
|
cbuffer AnimCB : register(b0)
|
||||||
@@ -48,7 +49,7 @@ cbuffer AnimCB : register(b0)
|
|||||||
float HeadAimWeight;
|
float HeadAimWeight;
|
||||||
|
|
||||||
int SkipCount;
|
int SkipCount;
|
||||||
int _pad0;
|
int IsSkip;
|
||||||
int _pad1;
|
int _pad1;
|
||||||
int _pad2;
|
int _pad2;
|
||||||
|
|
||||||
@@ -366,7 +367,7 @@ void CS_LOCAL(uint3 DTid : SV_DispatchThreadID)
|
|||||||
if (bone >= BoneCount)
|
if (bone >= BoneCount)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (SkipCount != 0)
|
if (SkipCount != 0 && IsSkip)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < SkipCount; i++)
|
for (int i = 0; i < SkipCount; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ cbuffer AnimCB : register(b0)
|
|||||||
float HeadAimWeight;
|
float HeadAimWeight;
|
||||||
|
|
||||||
int SkipCount;
|
int SkipCount;
|
||||||
int _pad0;
|
int IsSkip;
|
||||||
int _pad1;
|
int _pad1;
|
||||||
int _pad2;
|
int _pad2;
|
||||||
|
|
||||||
|
|||||||
@@ -1578,19 +1578,19 @@ void CModel::Initialize_BoneMasks()
|
|||||||
BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::NECK)], m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)]);
|
BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::NECK)], m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)]);
|
||||||
BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)], m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)]);
|
BuildMask(m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)], m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)]);
|
||||||
|
|
||||||
if (m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)] != -1)
|
//if (m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)] != -1)
|
||||||
{
|
//{
|
||||||
for (_uint i = 0; i < (_uint)m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)].size(); i++)
|
// for (_uint i = 0; i < (_uint)m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)].size(); i++)
|
||||||
{
|
// {
|
||||||
if (m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)][i] == 1)
|
// if (m_BoneMask[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)][i] == 1)
|
||||||
{
|
// {
|
||||||
if (i == m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)])
|
// if (i == m_iBoneIndex[ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)])
|
||||||
continue;
|
// continue;
|
||||||
m_iSkipBoneCount++;
|
// m_iSkipBoneCount++;
|
||||||
m_SkipBoneindex.push_back(i);
|
// m_SkipBoneindex.push_back(i);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
for (_uint i = 0; i < m_Bones.size(); i++)
|
for (_uint i = 0; i < m_Bones.size(); i++)
|
||||||
{
|
{
|
||||||
@@ -1600,6 +1600,19 @@ void CModel::Initialize_BoneMasks()
|
|||||||
m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_R)][i] =
|
m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_R)][i] =
|
||||||
m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_R)][i] | m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)][i];
|
m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_R)][i] | m_BoneMask[ENUM_CLASS(BLEND_BONE::NECK)][i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
for (_uint i = 0; i < (_uint)m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L)].size(); i++)
|
||||||
|
{
|
||||||
|
if (m_BoneMask[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L)][i] == 1)
|
||||||
|
{
|
||||||
|
//if (i == m_iBoneIndex[ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L)])
|
||||||
|
// continue;
|
||||||
|
m_iSkipBoneCount++;
|
||||||
|
m_SkipBoneindex.push_back(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT CModel::Create_ComputeShader()
|
HRESULT CModel::Create_ComputeShader()
|
||||||
@@ -1997,7 +2010,7 @@ void CModel::ComputeLocal(_uint AnimIndex, _uint MeshIndex)
|
|||||||
pDesc->HeadAimWeight = m_fHeadAimWeight;
|
pDesc->HeadAimWeight = m_fHeadAimWeight;
|
||||||
|
|
||||||
pDesc->SkipCount = m_iSkipBoneCount;
|
pDesc->SkipCount = m_iSkipBoneCount;
|
||||||
pDesc->padding0 = 0;
|
pDesc->IsSkip = m_IsSkip;
|
||||||
pDesc->padding1 = 0;
|
pDesc->padding1 = 0;
|
||||||
pDesc->padding2 = 0;
|
pDesc->padding2 = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -307,6 +307,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
|
|||||||
|
|
||||||
// LIGHT ATTACK
|
// LIGHT ATTACK
|
||||||
{ "LIGHT_ATTACK", LIGHT_ATTACK },
|
{ "LIGHT_ATTACK", LIGHT_ATTACK },
|
||||||
|
{ "LIGHT_ATTACK2", LIGHT_ATTACK2 },
|
||||||
|
{ "LIGHT_ATTACK3", LIGHT_ATTACK3 },
|
||||||
|
{ "LIGHT_ATTACK4", LIGHT_ATTACK4 },
|
||||||
{ "LIGHT_ATTACK_180_R", LIGHT_ATTACK_180_R },
|
{ "LIGHT_ATTACK_180_R", LIGHT_ATTACK_180_R },
|
||||||
{ "LIGHT_ATTACK_90_L", LIGHT_ATTACK_90_L },
|
{ "LIGHT_ATTACK_90_L", LIGHT_ATTACK_90_L },
|
||||||
{ "LIGHT_ATTACK_90_R1", LIGHT_ATTACK_90_R1 },
|
{ "LIGHT_ATTACK_90_R1", LIGHT_ATTACK_90_R1 },
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class ENGINE_DLL CModel final : public CComponent
|
|||||||
_float HeadAimWeight;
|
_float HeadAimWeight;
|
||||||
|
|
||||||
_int SkipCount;
|
_int SkipCount;
|
||||||
_int padding0;
|
_int IsSkip;
|
||||||
_int padding1;
|
_int padding1;
|
||||||
_int padding2;
|
_int padding2;
|
||||||
|
|
||||||
@@ -84,19 +84,20 @@ class ENGINE_DLL CModel final : public CComponent
|
|||||||
_float Get_CurrentTrackProgressRatio();
|
_float Get_CurrentTrackProgressRatio();
|
||||||
_float Get_TrackProgressRatio(_uint iIndex);
|
_float Get_TrackProgressRatio(_uint iIndex);
|
||||||
|
|
||||||
size_t Get_AnimSize() { return m_Animations.size(); }
|
size_t Get_AnimSize() { return m_Animations.size(); }
|
||||||
void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; }
|
void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; }
|
||||||
_bool Get_PlayAnim() const { return m_bPlayAnim; }
|
_bool Get_PlayAnim() const { return m_bPlayAnim; }
|
||||||
_int Get_AnimIndex() const { return m_iCurrentAnimIndex; }
|
_int Get_AnimIndex() const { return m_iCurrentAnimIndex; }
|
||||||
_int Get_SecondAnimIndex() const { return m_iCurrSecondAnimIndex; }
|
_int Get_SecondAnimIndex() const { return m_iCurrSecondAnimIndex; }
|
||||||
_float Get_AnimSpeed();
|
_float Get_AnimSpeed();
|
||||||
void Set_AnimSpeed(_float fSpeed);
|
void Set_AnimSpeed(_float fSpeed);
|
||||||
|
|
||||||
HRESULT Anim_Event(_float fRatio, _uint AnimIndex, function<void()> Event);
|
HRESULT Anim_Event(_float fRatio, _uint AnimIndex, function<void()> Event);
|
||||||
|
|
||||||
void Set_BlendDuration(_float Duration) { m_fBlendDuration = Duration; }
|
void Set_BlendDuration(_float Duration) { m_fBlendDuration = Duration; }
|
||||||
|
|
||||||
|
_float4 Get_RootBoneMomentum() { return m_RootBoneMomentum; }
|
||||||
|
|
||||||
_float4 Get_RootBoneMomentum() { return m_RootBoneMomentum; }
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
#pragma region Mesh
|
#pragma region Mesh
|
||||||
const _char* Get_MeshName(_uint iIndex);
|
const _char* Get_MeshName(_uint iIndex);
|
||||||
@@ -127,6 +128,7 @@ class ENGINE_DLL CModel final : public CComponent
|
|||||||
_uint Get_BoneAbsoluteCount();
|
_uint Get_BoneAbsoluteCount();
|
||||||
HRESULT Set_BoneCombinedTransformation(const _char* pBoneName, _fmatrix newTransformation);
|
HRESULT Set_BoneCombinedTransformation(const _char* pBoneName, _fmatrix newTransformation);
|
||||||
HRESULT Capture_BoneBuffer(class CMotion_Trail* pTrail, const _float4x4& CurrentWorldMatrix);
|
HRESULT Capture_BoneBuffer(class CMotion_Trail* pTrail, const _float4x4& CurrentWorldMatrix);
|
||||||
|
void IsSkip(_bool bSkip) { m_IsSkip = bSkip; }
|
||||||
// HRESULT Set_BoneLocalTransformationMatrix(const _char* pBoneName, _fmatrix newTransformation);
|
// HRESULT Set_BoneLocalTransformationMatrix(const _char* pBoneName, _fmatrix newTransformation);
|
||||||
|
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
@@ -224,9 +226,9 @@ class ENGINE_DLL CModel final : public CComponent
|
|||||||
_float m_fRadius = { 0.f }; // 컬링용 Radius
|
_float m_fRadius = { 0.f }; // 컬링용 Radius
|
||||||
_int m_iRootBoneIndex = { -1 }; // 루트본의 인덱스
|
_int m_iRootBoneIndex = { -1 }; // 루트본의 인덱스
|
||||||
_uint m_iIndexAnimPlayableMesh = { 0 };
|
_uint m_iIndexAnimPlayableMesh = { 0 };
|
||||||
_float4 m_OutScale;
|
_float4 m_OutScale = {};
|
||||||
_float4 m_OutRotation;
|
_float4 m_OutRotation = {};
|
||||||
_float4 m_OutTranslation;
|
_float4 m_OutTranslation = {};
|
||||||
|
|
||||||
|
|
||||||
vector<_uint> m_iBoneMask;
|
vector<_uint> m_iBoneMask;
|
||||||
@@ -249,6 +251,7 @@ class ENGINE_DLL CModel final : public CComponent
|
|||||||
_bool m_bQueuedLoop = false;
|
_bool m_bQueuedLoop = false;
|
||||||
_bool m_bQueuedAnim = { false };
|
_bool m_bQueuedAnim = { false };
|
||||||
_float4 m_RootBoneMomentum = {};
|
_float4 m_RootBoneMomentum = {};
|
||||||
|
_bool m_IsSkip = {false};
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ enum ESTATE
|
|||||||
DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,DODGE_ATTACK,
|
DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,DODGE_ATTACK,
|
||||||
COMBAT, SKILL, SKILL2,
|
COMBAT, SKILL, SKILL2,
|
||||||
SPELL, SPELL_180_R, SPELL_90_R, SPELL_90_L, SPELL_90_L2,
|
SPELL, SPELL_180_R, SPELL_90_R, SPELL_90_L, SPELL_90_L2,
|
||||||
LIGHT_ATTACK,LIGHT_ATTACK_180_R, LIGHT_ATTACK_90_L, LIGHT_ATTACK_90_R1, LIGHT_ATTACK_90_R2, LIGHT_ATTACK_90_R3,
|
LIGHT_ATTACK, LIGHT_ATTACK2, LIGHT_ATTACK3, LIGHT_ATTACK4,LIGHT_ATTACK_180_R, LIGHT_ATTACK_90_L, LIGHT_ATTACK_90_R1, LIGHT_ATTACK_90_R2, LIGHT_ATTACK_90_R3,
|
||||||
ATTACK_END,
|
ATTACK_END,
|
||||||
SHUFFLE1, SHUFFLE2, SHUFFLE3, SHUFFLE4,
|
SHUFFLE1, SHUFFLE2, SHUFFLE3, SHUFFLE4,
|
||||||
MAPHELP,POTION,
|
MAPHELP,POTION,
|
||||||
|
|||||||
Reference in New Issue
Block a user