Merge branch 'Develope' into Effect
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -163,6 +163,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Avadakedavra.h" />
|
||||
<ClInclude Include="..\Public\AvadakedavraSide.h" />
|
||||
<ClInclude Include="..\Public\Elf.h" />
|
||||
<ClInclude Include="..\Public\StupefySide.h" />
|
||||
<ClInclude Include="..\Public\Broom_Circle.h" />
|
||||
<ClInclude Include="..\Public\Broom_Exit.h" />
|
||||
@@ -215,8 +216,6 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Ranrok_Impact.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Land.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h" />
|
||||
<ClInclude Include="..\Public\PlayerRobe.h" />
|
||||
<ClInclude Include="..\Public\Player_ENUM.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Prop.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Pulse.h" />
|
||||
<ClInclude Include="..\Public\Ranrok_Rush_Bottom.h" />
|
||||
@@ -472,6 +471,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Avadakedavra.cpp" />
|
||||
<ClCompile Include="..\Private\AvadakedavraSide.cpp" />
|
||||
<ClCompile Include="..\Private\Elf.cpp" />
|
||||
<ClCompile Include="..\Private\StupefySide.cpp" />
|
||||
<ClCompile Include="..\Private\Broom_Circle.cpp" />
|
||||
<ClCompile Include="..\Private\Broom_Exit.cpp" />
|
||||
@@ -505,7 +505,6 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\private\InstancedProp_Light.cpp" />
|
||||
<ClCompile Include="..\Private\Duelist_JapSide.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Balloon.cpp" />
|
||||
<ClCompile Include="..\Private\PlayerRobe_Initialize.cpp" />
|
||||
<ClCompile Include="..\Private\Duelist_ProtegoHit.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_ProtegoHit.cpp" />
|
||||
<ClCompile Include="..\Private\Protego_Hit.cpp" />
|
||||
@@ -526,7 +525,6 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Ranrok_Impact.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Land.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Point.cpp" />
|
||||
<ClCompile Include="..\Private\PlayerRobe.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Prop.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Pulse.cpp" />
|
||||
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp" />
|
||||
|
||||
@@ -400,7 +400,6 @@
|
||||
<ClInclude Include="..\Public\Goblin_Mage.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Mage</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Spector.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector</Filter>
|
||||
</ClInclude>
|
||||
@@ -440,9 +439,6 @@
|
||||
<ClInclude Include="..\public\MapElement_Lake.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Lake</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_Protego.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Goblin_Protego</Filter>
|
||||
</ClInclude>
|
||||
@@ -743,12 +739,6 @@
|
||||
<ClInclude Include="..\Public\Ranrok_Point.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Point</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Player_ENUM.h">
|
||||
<Filter>02.GameObjects\Player</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\PlayerRobe.h">
|
||||
<Filter>02.GameObjects\Player\Robe</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_Assassin.h">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Assassin</Filter>
|
||||
</ClInclude>
|
||||
@@ -911,9 +901,6 @@
|
||||
<ClInclude Include="..\Public\Goblin_ProtegoHit.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Goblin_Protego\Goblin_ProtegoHit</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Duelist_ProtegoHit.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ranrok_Prop.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop</Filter>
|
||||
</ClInclude>
|
||||
@@ -950,6 +937,15 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Troll_Self_Hit.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Duelist_ProtegoHit.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Broom_TargetGate2D.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Elf.h">
|
||||
<Filter>02.GameObjects\NPC\Ally\Elf</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -1387,9 +1383,6 @@
|
||||
<Filter Include="02.GameObjects\Item\Goblin_Axe">
|
||||
<UniqueIdentifier>{e666a8b4-c92e-48ee-b63b-40d852b27b06}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\Effects\WandEnd">
|
||||
<UniqueIdentifier>{14ad0431-680b-4c8b-93d7-601aee5ce435}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="03.InfoInstance\03.InteractiveInfo">
|
||||
<UniqueIdentifier>{1d1dc743-5cf2-4b8f-a80e-16b16437c7aa}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1597,9 +1590,6 @@
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Point">
|
||||
<UniqueIdentifier>{a94e24d2-0f61-4263-b834-bfdf9f6c06ae}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Player\Robe">
|
||||
<UniqueIdentifier>{f3c7cf8d-2b83-49d3-85da-fe135e376a11}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Assassin">
|
||||
<UniqueIdentifier>{af9f5cf6-151a-49bc-9af4-28ba0bde1d37}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1959,6 +1949,9 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit">
|
||||
<UniqueIdentifier>{c276c050-7000-441e-bb53-30ec3c20c6f5}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\NPC\Ally\Elf">
|
||||
<UniqueIdentifier>{9263815e-9651-4ba2-813f-c2a7f207522d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
@@ -2665,9 +2658,6 @@
|
||||
<ClCompile Include="..\Private\State_Dash.cpp">
|
||||
<Filter>04.Mechanic\State\Movement\Dash</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\PlayerRobe.cpp">
|
||||
<Filter>02.GameObjects\Player\Robe</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_Spector.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Warrior_Spector</Filter>
|
||||
</ClCompile>
|
||||
@@ -2758,9 +2748,6 @@
|
||||
<ClCompile Include="..\Private\Human_Duelist_States.cpp">
|
||||
<Filter>02.GameObjects\NPC\Hostile\Human_Duelist</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\PlayerRobe_Initialize.cpp">
|
||||
<Filter>02.GameObjects\Player\Robe</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ranrok_Rush_Bottom.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush</Filter>
|
||||
</ClCompile>
|
||||
@@ -2833,7 +2820,8 @@
|
||||
<ClCompile Include="..\Private\StupefySide.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Stupefy\StupefySide</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\State_Parry.cpp">
|
||||
<Filter>04.Mechanic\State\State_Combat\State_Parry</Filter>
|
||||
</ClCompile>
|
||||
@@ -2861,6 +2849,12 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Troll_Self_Hit.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Broom_TargetGate2D.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Elf.cpp">
|
||||
<Filter>02.GameObjects\NPC\Ally\Elf</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -162,9 +162,16 @@ void CAccio::Late_Update(_float fTimeDelta)
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this , &CollisionInfo);
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -79,13 +79,15 @@ void CAvadakedavra::Late_Update(_float fTimeDelta)
|
||||
|
||||
_vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos);
|
||||
|
||||
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -99,9 +99,16 @@ void CBombard::Late_Update(_float fTimeDelta)
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f , true);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f, true);
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -455,7 +455,7 @@ CCamPosition_Shoulder* CCamPosition_Shoulder::Create(ID3D11Device* pDevice, ID3D
|
||||
}
|
||||
CCamPosition_Shoulder* CCamPosition_Shoulder::Clone(void* pArg, class CGameObject* pOWner)
|
||||
{
|
||||
CCamPosition_Shoulder* pInstance = new CCamPosition_Shoulder(*this);
|
||||
CCamPosition_Shoulder* pInstance = new CCamPosition_Shoulder(*this);
|
||||
pInstance->m_pOwner = pOWner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ void CCamPosition_Target::Set_WorldPostion(_vector vPos)
|
||||
|
||||
_bool CCamPosition_Target::IsStalking()
|
||||
{
|
||||
return nullptr == m_pStalkingTarget;
|
||||
return nullptr != m_pStalkingTarget;
|
||||
}
|
||||
|
||||
void CCamPosition_Target::Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix)
|
||||
@@ -58,6 +58,12 @@ void CCamPosition_Target::Stalking_Target(CUnit* pStalkingTarget, const _float4x
|
||||
void CCamPosition_Target::Stop_Stalking()
|
||||
{
|
||||
SAFE_RELEASE(m_pStalkingTarget);
|
||||
m_pTargetSocketMatrix = nullptr;
|
||||
}
|
||||
|
||||
_matrix CCamPosition_Target::Get_XMWorldMatrix()
|
||||
{
|
||||
return m_pTransformCom->Get_XMWorldMatrix();
|
||||
}
|
||||
|
||||
HRESULT CCamPosition_Target::Initialize_Prototype()
|
||||
|
||||
@@ -12,17 +12,6 @@ CCamera_Cinematic::CCamera_Cinematic(const CCamera_Cinematic& rhs) : CCamera(rhs
|
||||
|
||||
void CCamera_Cinematic::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (m_pGameInstance->Key_Pressing(DIK_HOME)) {
|
||||
if (m_pGameInstance->Key_Up(DIK_END)) {
|
||||
_string strCutSceneName = "RanrokIntro";
|
||||
m_pInfoInstance->Active_Event(strCutSceneName);
|
||||
}
|
||||
}
|
||||
#endif // _DEBUG
|
||||
if (false == m_bActive) {
|
||||
return;
|
||||
}
|
||||
if (false == m_bIsCurrentTransition) {
|
||||
m_pLookTargetPart->Priority_Update(fTimeDelta);
|
||||
m_pFollowTargetPart->Priority_Update(fTimeDelta);
|
||||
@@ -32,8 +21,11 @@ void CCamera_Cinematic::Priority_Update(_float fTimeDelta)
|
||||
else {
|
||||
Transition(fTimeDelta);
|
||||
}
|
||||
m_bActive = true;
|
||||
Update_LerpTimer(fTimeDelta);
|
||||
if (false == m_bActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
__super::Bind_Matrices();
|
||||
}
|
||||
|
||||
@@ -49,10 +41,62 @@ void CCamera_Cinematic::Update(_float fTimeDelta)
|
||||
void CCamera_Cinematic::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (false == m_bActive) {
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
|
||||
#endif // _DEBUG
|
||||
return;
|
||||
}
|
||||
else {
|
||||
}
|
||||
}
|
||||
HRESULT CCamera_Cinematic::Render() { return S_OK; }
|
||||
HRESULT CCamera_Cinematic::Render() {
|
||||
#ifdef _DEBUG
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
RENDER eType = m_pGameInstance->Get_CurrentRenderPass();
|
||||
if (RENDER::NONBLEND == eType) {
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::WIREFRAME)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (RENDER::NONLIGHT == eType) {
|
||||
|
||||
m_Batch->Begin();
|
||||
|
||||
_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
|
||||
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
|
||||
|
||||
_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x0000ff, 1.f);
|
||||
m_pSubShape->Draw(m_pLookTargetPart->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true);
|
||||
vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x00ff00, 1.f);
|
||||
m_pSubShape->Draw(m_pFollowTargetPart->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true);
|
||||
|
||||
m_Batch->End();
|
||||
|
||||
|
||||
|
||||
}
|
||||
#endif // _DEBUG
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo)
|
||||
{
|
||||
if (true == m_bEnable_TransitionLerp) {
|
||||
@@ -70,12 +114,12 @@ void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo
|
||||
|
||||
void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta)
|
||||
{
|
||||
if (false == m_bActive) {
|
||||
return;
|
||||
}
|
||||
Lerp_Translation(fTimeDelta);
|
||||
Lerp_Rotation(fTimeDelta);
|
||||
Lerp_FovY(fTimeDelta);
|
||||
if (false == m_bActive) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void CCamera_Cinematic::Set_Priority(_uint iPriority)
|
||||
@@ -101,6 +145,13 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
|
||||
case TIMESOCKET_FUNC::BIND_CAMERA:
|
||||
m_pGameInstance->Bind_Camera(NEXT_LEVEL, pContents->wstrKeyName, true);
|
||||
break;
|
||||
case TIMESOCKET_FUNC::TELEPORTATION:
|
||||
{
|
||||
m_pTransformCom->Set_WorldMatrix(pContents->pxTransform);
|
||||
m_pFollowTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION));
|
||||
m_pLookTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION) + m_pTransformCom->Get_State(STATE::LOOK));
|
||||
Clear_Lerp_Translation();
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::TRANSLATION:
|
||||
{
|
||||
m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
|
||||
@@ -123,13 +174,22 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
|
||||
case TIMESOCKET_FUNC::LOOK_AT:
|
||||
{
|
||||
CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
|
||||
Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
|
||||
//Set_LookTarget(pUnit, nullptr);
|
||||
Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
|
||||
}break;
|
||||
case TIMESOCKET_FUNC::DONT_LOOK_AT:
|
||||
{
|
||||
m_pLookTargetPart->Stop_Stalking();
|
||||
}break;
|
||||
case TIMESOCKET_FUNC::FOLLOW:
|
||||
{
|
||||
CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
|
||||
Set_FollowTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
|
||||
const _char* pName = pContents->vParam_12.c_str();
|
||||
const _float4x4* pSocketMatrix = pUnit->Get_SocketMatrixPtr(pName);
|
||||
Set_FollowTarget(pUnit, pSocketMatrix);
|
||||
}break;
|
||||
case TIMESOCKET_FUNC::DONT_FOLLOW:
|
||||
{
|
||||
m_pFollowTargetPart->Stop_Stalking();
|
||||
}break;
|
||||
case TIMESOCKET_FUNC::ZOOM_IN:
|
||||
{
|
||||
@@ -172,6 +232,12 @@ HRESULT CCamera_Cinematic::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.25f, 12, false, false));
|
||||
|
||||
m_Batch = make_unique<PrimitiveBatch<VertexPositionColor>>(m_pContext);
|
||||
#endif // _DEBUG
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CCamera_Cinematic::Ready_Components(void* pArg)
|
||||
@@ -179,7 +245,18 @@ HRESULT CCamera_Cinematic::Ready_Components(void* pArg)
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Camera_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -198,7 +275,22 @@ HRESULT CCamera_Cinematic::Ready_SubPart()
|
||||
|
||||
HRESULT CCamera_Cinematic::Bind_ShaderResources()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
void CCamera_Cinematic::Lerp_Translation(_float fTimeDelta)
|
||||
{
|
||||
@@ -351,7 +443,10 @@ CGameObject* CCamera_Cinematic::Clone(void* pArg, CGameObject* pOwner)
|
||||
void CCamera_Cinematic::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
#ifdef _DEBUG
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
#endif // _DEBUG
|
||||
SAFE_RELEASE(m_pLookTargetPart);
|
||||
SAFE_RELEASE(m_pFollowTargetPart);
|
||||
}
|
||||
@@ -361,11 +456,21 @@ void CCamera_Cinematic::Free()
|
||||
void CCamera_Cinematic::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
_int iPriority = m_iPriority;
|
||||
size_t iAddress = (size_t)this;
|
||||
_string strHeader = "CINEMATIC_CAMERA_Priority##" + to_string(iAddress);
|
||||
if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
|
||||
m_iPriority = iPriority;
|
||||
}
|
||||
if (GUI::CollapsingHeader("Camera_Cinematic_Describe")) {
|
||||
if (GUI::SmallButton("Trigger_RanrokIntro")) {
|
||||
_string strCutSceneName = "RanrokIntro";
|
||||
m_pInfoInstance->Active_Event(strCutSceneName);
|
||||
}
|
||||
if (GUI::SmallButton("Trigger_CarriageIntro")) {
|
||||
_string strCutSceneName = "CarriageIntro";
|
||||
m_pInfoInstance->Active_Event(strCutSceneName);
|
||||
}
|
||||
m_pTransformCom->Describe_Entity();
|
||||
GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z);
|
||||
GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z);
|
||||
|
||||
@@ -197,6 +197,12 @@ void CCamera_Debug::Describe_Entity()
|
||||
}
|
||||
GUI::End();
|
||||
GUI::Begin("CAMERA");
|
||||
_int iPriority = m_iPriority;
|
||||
size_t iAddress = (size_t)this;
|
||||
_string strHeader = "DEBUG_CAMERA_Priority##" + to_string(iAddress);
|
||||
if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
|
||||
m_iPriority = iPriority;
|
||||
}
|
||||
if (GUI::CollapsingHeader("DebugCamera")){
|
||||
m_pTransformCom->Describe_Entity();
|
||||
}
|
||||
|
||||
@@ -247,6 +247,12 @@ void CCamera_Gaze::Free()
|
||||
void CCamera_Gaze::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
_int iPriority = m_iPriority;
|
||||
size_t iAddress = (size_t)this;
|
||||
_string strHeader = "GAZE_CAMERA_Priority##" + to_string(iAddress);
|
||||
if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
|
||||
m_iPriority = iPriority;
|
||||
}
|
||||
if (GUI::CollapsingHeader("Camera_Gaze_Describe")) {
|
||||
m_pTransformCom->Describe_Entity();
|
||||
GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z);
|
||||
|
||||
@@ -94,26 +94,9 @@ HRESULT CCamera_Model::Render()
|
||||
#ifdef _DEBUG
|
||||
m_Batch->Begin();
|
||||
|
||||
_vector vRight = m_pTransformCom->Get_State(STATE::RIGHT);
|
||||
_vector vUp = m_pTransformCom->Get_State(STATE::UP);
|
||||
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
_vector vPosition = m_pTransformCom->Get_State(STATE::POSITION);
|
||||
_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
|
||||
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
|
||||
static _float fLength = 1.f;
|
||||
GUI::DragFloat("Length", &fLength, 0.1f, 0.1f, 10.f, "%.1f");
|
||||
m_Batch->DrawLine(
|
||||
VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(vPosition + vRight * fLength, DirectX::Colors::Green)
|
||||
);
|
||||
m_Batch->DrawLine(
|
||||
VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(vPosition + vUp * fLength, DirectX::Colors::Red)
|
||||
);
|
||||
m_Batch->DrawLine(
|
||||
VertexPositionColor(vPosition, DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(vPosition + vLook * fLength, DirectX::Colors::Blue)
|
||||
);
|
||||
|
||||
_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0000, 1.f);
|
||||
_matrix WorldMatrix;
|
||||
WorldMatrix = XMLoadFloat4x4(m_CtrlCam);
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "TimeSocket.h"
|
||||
#include "Camera_Cinematic.h"
|
||||
#include "Ranrok.h"
|
||||
#include "ThestralCarriage.h"
|
||||
|
||||
CCutSceneInfo::CCutSceneInfo()
|
||||
{
|
||||
@@ -22,7 +23,7 @@ void CCutSceneInfo::Update(_float fTimeDelta)
|
||||
Update_ActiveEvents(fTimeDelta);
|
||||
}
|
||||
|
||||
void CCutSceneInfo::Change_Level()
|
||||
void CCutSceneInfo::Load_CutScenes()
|
||||
{
|
||||
LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID();
|
||||
switch (eLevel)
|
||||
@@ -33,7 +34,7 @@ void CCutSceneInfo::Change_Level()
|
||||
break;
|
||||
case LEVEL::FIELD:
|
||||
Clear_AllEvents();
|
||||
Ready_GameplayCutScenes();
|
||||
Ready_FieldCutScenes();
|
||||
break;
|
||||
default:
|
||||
Clear_ActiveEvents();
|
||||
@@ -169,6 +170,9 @@ HRESULT CCutSceneInfo::Clear_AllEvents()
|
||||
}
|
||||
HRESULT CCutSceneInfo::Ready_GameplayCutScenes()
|
||||
{
|
||||
{
|
||||
Load_CutSceneXML("../Bin/Resources/Data/CutScene/CarriageIntro.xml");
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CCutSceneInfo::Ready_FieldCutScenes()
|
||||
@@ -353,7 +357,7 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
|
||||
}
|
||||
|
||||
TimeLine* pTimeLine = new TimeLine();
|
||||
tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement("RanrokIntro");
|
||||
tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement();
|
||||
if (!pContentsNode) {
|
||||
return;
|
||||
}
|
||||
@@ -368,11 +372,13 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
|
||||
{
|
||||
SOCKETCONTENTS SocketContents = {};
|
||||
|
||||
_float fStartPosition = 0.f;
|
||||
SocketContents.fRatio = 0.f;
|
||||
_float fStartPosition = 0;
|
||||
pSocketNode->QueryFloatAttribute("fStartPosition", &fStartPosition);
|
||||
SocketContents.fRatio = CMyTools::Saturate(fStartPosition / pTimeLine->m_vTimer.y);
|
||||
|
||||
// Info
|
||||
_bool bUseSystem = false;
|
||||
tinyxml2::XMLElement* pInfoNode = pSocketNode->FirstChildElement("Info");
|
||||
if (pInfoNode != nullptr)
|
||||
{
|
||||
@@ -422,9 +428,28 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
|
||||
SocketContents.pEventTarget = pEventTarget;
|
||||
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
||||
}
|
||||
else if (strcmp(pTargetText, "ACTOR_CARRIAGE") == 0)
|
||||
{
|
||||
CThestralCarriage* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_ITEM)->Get_Object<CThestralCarriage>();
|
||||
SocketContents.pEventTarget = pEventTarget;
|
||||
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
||||
}
|
||||
else if (strcmp(pTargetText, "SYSTEM") == 0)
|
||||
{
|
||||
bUseSystem = true;
|
||||
}
|
||||
assert((nullptr != SocketContents.pEventTarget) || bUseSystem);
|
||||
assert((nullptr != SocketContents.funcEvent) || bUseSystem);
|
||||
}
|
||||
}
|
||||
|
||||
// -------- vFlags / Param_10 / Param_11 / Param_12 ----------
|
||||
ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags);
|
||||
ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10);
|
||||
ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11);
|
||||
const _char* pStringParma = pSocketNode->FirstChildElement("Param_12")->FirstChildElement("string")->Attribute("tag");
|
||||
SocketContents.vParam_12 = pStringParma;
|
||||
|
||||
// -------- Param_0 ----------
|
||||
tinyxml2::XMLElement* pParam0Node = pSocketNode->FirstChildElement("Param_0");
|
||||
if (nullptr != pParam0Node)
|
||||
@@ -445,10 +470,17 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
|
||||
SocketContents.wstrLayerName = CMyTools::ToWstring(pLayerNameText);
|
||||
SocketContents.wstrKeyName = CMyTools::ToWstring(pTypeIdText);
|
||||
|
||||
if (string_view(pTypeIdText) == "Ranrok")
|
||||
if (string_view(pTypeIdText) == "ACTOR_RANROK")
|
||||
{
|
||||
SocketContents.pOtherTarget =
|
||||
m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object<CRanrok>();
|
||||
SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object<CRanrok>();
|
||||
}
|
||||
else if (string_view(pTypeIdText) == "ACTOR_PLAYER")
|
||||
{
|
||||
SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object<CPlayer>();
|
||||
}
|
||||
else if (string_view(pTypeIdText) == "ACTOR_CARRIAGE")
|
||||
{
|
||||
SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object<CThestralCarriage>();
|
||||
}
|
||||
else if (string_view(pTypeIdText) == "CAMERA_CINEMATIC")
|
||||
{
|
||||
@@ -458,28 +490,49 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
|
||||
{
|
||||
SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
assert(nullptr != SocketContents.pOtherTarget);
|
||||
}break;
|
||||
case TIMESOCKET_PARAM::TRANSFORM:
|
||||
{
|
||||
tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform");
|
||||
ReadPxTransform(pTransformNode, SocketContents.pxTransform);
|
||||
break;
|
||||
}
|
||||
|
||||
}break;
|
||||
case TIMESOCKET_PARAM::NOT_USE:
|
||||
{
|
||||
if (true == bUseSystem) {
|
||||
switch (SocketContents.eTypeFunc)
|
||||
{
|
||||
case TIMESOCKET_FUNC::STOP_CINEMATIC:
|
||||
SocketContents.funcEvent = [&](CTimeSocket& Socket) { m_pInfoInstance->DeActive_ActiveEvent(Socket.m_Contents.vParam_12); };
|
||||
break;
|
||||
case TIMESOCKET_FUNC::RESET_ENVIRONMENT:
|
||||
SocketContents.funcEvent = [&](CTimeSocket& Socket) { m_pGameInstance->ResetLevel_Environment(); };
|
||||
break;
|
||||
case TIMESOCKET_FUNC::SET_VOLUMETRIC:
|
||||
{
|
||||
tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform");
|
||||
ReadPxTransform(pTransformNode, SocketContents.pxTransform);
|
||||
SocketContents.funcEvent = [&](CTimeSocket& Socket) {
|
||||
if (Socket.m_Contents.vFlags.b[0]) {
|
||||
m_pGameInstance->Setting_Volumetirc(
|
||||
Socket.m_Contents.pxTransform.q.x, Socket.m_Contents.pxTransform.q.y, Socket.m_Contents.pxTransform.q.z, Socket.m_Contents.pxTransform.q.w,
|
||||
Socket.m_Contents.pxTransform.p.x);
|
||||
}
|
||||
};
|
||||
}break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
assert(nullptr != SocketContents.funcEvent);
|
||||
}
|
||||
}break;
|
||||
case TIMESOCKET_PARAM::END:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// -------- vFlags / Param_10 / Param_11 / Param_12 ----------
|
||||
ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags);
|
||||
ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10);
|
||||
ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11);
|
||||
const _char* pStringParma = pSocketNode->FirstChildElement("Param_12")->FirstChildElement("string")->Attribute("tag");
|
||||
SocketContents.vParam_12 = pStringParma;
|
||||
CTimeSocket* pSocket = CTimeSocket::Create(&SocketContents);
|
||||
if (!pSocket) {
|
||||
continue;
|
||||
@@ -494,7 +547,7 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
|
||||
pTriggerNode->QueryFloatAttribute("X", &Desc.vPosition_Radius.x);
|
||||
pTriggerNode->QueryFloatAttribute("Y", &Desc.vPosition_Radius.y);
|
||||
pTriggerNode->QueryFloatAttribute("Z", &Desc.vPosition_Radius.z);
|
||||
pTimeLine->m_pTriggerBox = CTriggerBox::Create(&Desc);
|
||||
pTimeLine->m_pTriggerBox = CTriggerBox::Create(m_pDevice, m_pContext, &Desc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -105,9 +105,16 @@ void CDecendo::Late_Update(_float fTimeDelta)
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
@@ -250,11 +257,11 @@ CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner)
|
||||
|
||||
void CDecendo::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
|
||||
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
dynamic_cast<CPlayer*>(m_pOwner->Get_Owner())->Set_SpellHit(true);
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
@@ -146,7 +146,7 @@ void CDialogue_Panel::Change_Map()
|
||||
CLayer* pDuelistLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_DUELIST);
|
||||
if (nullptr != pDuelistLayer) {
|
||||
CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object<CHuman_Duelist>();
|
||||
pDuelist->Get_Component<CCharacter_Controller>()->Set_Position(XMVectorSet(1007.23f, 2.f, 1016.f, 1.f));
|
||||
pDuelist->Get_Component<CCharacter_Controller>()->Set_Position(XMVectorSet(1007.23f, 2.f, 1015.f, 1.f));
|
||||
pDuelist->Set_Battle(true);
|
||||
}
|
||||
|
||||
@@ -154,9 +154,10 @@ void CDialogue_Panel::Change_Map()
|
||||
if (nullptr != pLayer) {
|
||||
CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object<CHuman_Duelist>();
|
||||
CPlayer* pPlayer = pLayer->Get_Object<CPlayer>();
|
||||
pPlayer->Get_Component<CCharacter_Controller>()->Set_Position(XMVectorSet(1007.23f, 2.f, 1008.f, 1.f));
|
||||
_vector vOriginPos = pPlayer->Get_Component<CCharacter_Controller>()->Get_Position();
|
||||
pPlayer->Get_Component<CCharacter_Controller>()->Set_Position(XMVectorSet(1007.23f, 2.f, 1010.f, 1.f));
|
||||
pPlayer->Set_Battle(true);
|
||||
|
||||
pPlayer->Set_OriginPos(vOriginPos);
|
||||
_vector vPos = pPlayer->Get_WorldPostion();
|
||||
_vector vForward = XMVectorSet(0.f, 0.f, 1.f, 0.f);
|
||||
|
||||
@@ -180,7 +181,6 @@ void CDialogue_Panel::Change_Map()
|
||||
}
|
||||
}
|
||||
#endif // Bin
|
||||
|
||||
}
|
||||
|
||||
void CDialogue_Panel::Priority_Update(_float fTimeDelta)
|
||||
|
||||
@@ -92,9 +92,16 @@ void CDuelist_Levioso::Late_Update(_float fTimeDelta)
|
||||
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
@@ -129,9 +129,19 @@ void CDuelist_NormalJap::Late_Update(_float fTimeDelta)
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = m_pProjectile->Get_WorldPostion();
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
else {
|
||||
int a = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
@@ -62,8 +62,9 @@ void CDuelist_Protego::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CDuelist_Protego::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
if (m_bVisible == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_pSphere->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
m_pSphereLay->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
@@ -101,6 +102,12 @@ void CDuelist_Protego::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
void CDuelist_Protego::Set_Visible(_bool bVisible)
|
||||
{
|
||||
m_bVisible = true;
|
||||
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), CURRENT_LEVEL);
|
||||
}
|
||||
|
||||
HRESULT CDuelist_Protego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
@@ -196,11 +203,13 @@ void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
|
||||
m_pOwner->OnCollision(pOther, CollisionDesc);
|
||||
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
|
||||
m_bVisible = false;
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
|
||||
m_pOwner->OnCollision(pOther, CollisionDesc);
|
||||
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
|
||||
m_bVisible = false;
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
break;
|
||||
|
||||
@@ -180,7 +180,7 @@ void CEffectObject::FollowParents(const _float4x4* pParentsMat,const _float4x4*
|
||||
m_pParentMatrix = pParentsMat;
|
||||
}
|
||||
|
||||
m_bVisible = true;
|
||||
Set_Visible(true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -97,6 +97,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
// 디버그 모드일 때
|
||||
#ifdef _DEBUG
|
||||
#ifdef gimch
|
||||
@@ -120,31 +122,6 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
#endif
|
||||
//// 디버그 모드가 아닐 때, 릴리즈모드에
|
||||
#ifndef _DEBUG
|
||||
#ifdef gimch
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = true;
|
||||
#endif //
|
||||
#endif // !_DEBUG
|
||||
|
||||
|
||||
if (m_isActiveEffectCreate)
|
||||
{
|
||||
if (FAILED(Ready_Effect()))
|
||||
|
||||
@@ -565,7 +565,7 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
m_fAccTime = 0.f;
|
||||
m_fPreAccTime = 0.f;
|
||||
|
||||
m_bVisible = true;
|
||||
Set_Visible(true);
|
||||
m_isCollisionEnter = false;
|
||||
|
||||
m_bHit = false;
|
||||
|
||||
@@ -0,0 +1,628 @@
|
||||
#include "pch.h"
|
||||
#include "Elf.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Player.h"
|
||||
#include "NPCInteraction.h"
|
||||
#include "CallBack_NonPlayable_Behavior.h"
|
||||
#include "CallBack_NonPlayable_HitReport.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CElf::CElf(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CUnit(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CElf::CElf(const CElf& Prototype)
|
||||
: CUnit(Prototype),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CElf::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CElf::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
ELFDESC* pDesc = static_cast<ELFDESC*>(pArg);
|
||||
|
||||
if (FAILED(Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Load_AnimXML("../Bin/Resources/Data/AnimList/Elf.xml");
|
||||
|
||||
Load_ElfPos("../Bin/Resources/Data/ElfPos/ElfPos.xml");
|
||||
|
||||
_vector vPos = XMLoadFloat4(&pDesc->vPos);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vPos);
|
||||
m_pCharacter_Controller->Set_Position(vPos);
|
||||
m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ));
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(m_Anims[m_iCurrentFlow].AnimIndex, false);
|
||||
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CElf::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_iEntered -= 1;
|
||||
if (m_iEntered < 0) {
|
||||
m_iEntered = 0;
|
||||
}
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CElf::Update(_float fTimeDelta)
|
||||
{
|
||||
MoveTo(fTimeDelta);
|
||||
|
||||
Set_Anim();
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
{ // 세트
|
||||
m_pCallBack_HitReport->BeginFrame();
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
m_pCallBack_HitReport->Set_CurrentSlop();
|
||||
}
|
||||
|
||||
m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
|
||||
|
||||
_vector vCurrentPos = Get_WorldPostion();
|
||||
pair<CUnit*, CTransform*> pairTarget = m_pInfoInstance->Get_NearestPlayerAlly(vCurrentPos);
|
||||
if (nullptr != pairTarget.first) {
|
||||
Set_Target(*pairTarget.first, *pairTarget.second);
|
||||
}
|
||||
if (nullptr != m_pTarget && m_pTarget->isDead()) {
|
||||
SAFE_RELEASE(m_pTarget);
|
||||
m_fTargetDistance = { FLT_MAX };
|
||||
}
|
||||
}
|
||||
|
||||
void CElf::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
|
||||
|
||||
m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
HRESULT CElf::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Bind_ShaderParameters(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CElf::Render_Shadow(SHADOW eType)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CElf::OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)
|
||||
{
|
||||
CPlayer* pPlayer = dynamic_cast<CPlayer*>(pCaster);
|
||||
if (nullptr == pPlayer) {
|
||||
return;
|
||||
}
|
||||
if (fDistance < m_fEncounterDistance) {
|
||||
m_iEntered = 4;
|
||||
}
|
||||
}
|
||||
|
||||
_wstring CElf::Get_Name()
|
||||
{
|
||||
return m_pNpcStat->Get_Stat().pNpc_Name;
|
||||
}
|
||||
|
||||
_wstring CElf::Get_NpcName()
|
||||
{
|
||||
return m_pNpcStat->Get_Stat().pName;
|
||||
}
|
||||
|
||||
void CElf::Set_Target(CUnit& pTarget, CTransform& pTransform)
|
||||
{
|
||||
SAFE_RELEASE(m_pTarget);
|
||||
m_pTarget = &pTarget;
|
||||
SAFE_ADDREF(m_pTarget);
|
||||
|
||||
_vector vTargetPos = pTransform.Get_State(STATE::POSITION);
|
||||
_vector vToTargetDir = vTargetPos - Get_WorldPostion();
|
||||
XMStoreFloat4(&m_vTargetPos, vTargetPos);
|
||||
XMStoreFloat3(&m_vToTargetDir, XMVector3Normalize(vToTargetDir));
|
||||
m_fTargetDistance = XMVectorGetX(XMVector3Length(vToTargetDir));
|
||||
}
|
||||
|
||||
|
||||
HRESULT CElf::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CElf::Bind_ShaderParameters(_uint iMeshOrder)
|
||||
{
|
||||
_bool bUseColorMixer = false;
|
||||
|
||||
_uint iColorParam = { UINT_MAX };
|
||||
_float fMixerFactor = { FLT_MAX };
|
||||
_uint iColorMixerMethod = { 0 };
|
||||
|
||||
switch (m_pModelCom->Get_UsingPass(iMeshOrder, m_pShaderCom))
|
||||
{
|
||||
case 23:
|
||||
{
|
||||
bUseColorMixer = true;
|
||||
iColorParam = 0x2E2E2E;
|
||||
fMixerFactor = 0.9f;
|
||||
iColorMixerMethod = 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (true == bUseColorMixer) {
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iPackedBlendColor", &iColorParam, sizeof(_uint)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMixerFactor", &fMixerFactor, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_iColorMixerMethod", &iColorMixerMethod, sizeof(_uint)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CElf::MoveTo(_float fTimeDelta)
|
||||
{
|
||||
if (m_Points.empty())
|
||||
return;
|
||||
|
||||
if (m_iCurrentFlow > m_Points.size())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_vector Target = XMLoadFloat4(&m_Points[m_iCurrentFlow]);
|
||||
|
||||
_vector CurPos = m_pCharacter_Controller->Get_Position();
|
||||
_vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
|
||||
_vector toTarget = Target - CurPos;
|
||||
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
|
||||
|
||||
if (fDist < 3.f)
|
||||
{
|
||||
if (m_iCurrentFlow + 1 < m_Points.size())
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim() && m_Anims[m_iCurrentFlow].Trigger == ENUM_CLASS(FLOW_TRIGGER::ARRIVE_POS)) {
|
||||
m_iCurrentFlow++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_pTransformCom->LookAt_Horizontal_Lerp(Target, fTimeDelta, 5.f);
|
||||
}
|
||||
|
||||
void CElf::Set_Anim()
|
||||
{
|
||||
if (m_Anims[m_iCurrentFlow].Trigger == ENUM_CLASS(FLOW_TRIGGER::ANIM_END))
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
m_iCurrentFlow++;
|
||||
}
|
||||
}
|
||||
|
||||
_bool bRootBone = true;
|
||||
|
||||
m_pairAnimInfo = m_Anims[m_iCurrentFlow];
|
||||
if (m_pairAnimInfo.AnimIndex == 1)
|
||||
{
|
||||
bRootBone = false;
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(m_pairAnimInfo.AnimIndex, m_pairAnimInfo.Loop, 1.f, false, 1.f, bRootBone);
|
||||
}
|
||||
|
||||
|
||||
void CElf::Load_AnimXML(const string& path)
|
||||
{
|
||||
tinyxml2::XMLDocument doc;
|
||||
if (doc.LoadFile(path.c_str()) != tinyxml2::XML_SUCCESS)
|
||||
return;
|
||||
|
||||
tinyxml2::XMLElement* pDialogue = doc.FirstChildElement("Dialogue");
|
||||
if (!pDialogue)
|
||||
return;
|
||||
|
||||
for (tinyxml2::XMLElement* pName = pDialogue->FirstChildElement("Name");
|
||||
pName;
|
||||
pName = pName->NextSiblingElement("Name"))
|
||||
{
|
||||
_int flow = pName->IntAttribute("Flow");
|
||||
|
||||
pName->QueryIntAttribute("Flow", &flow);
|
||||
|
||||
auto* pAnim = pName->FirstChildElement("Anim");
|
||||
if (!pAnim) continue;
|
||||
|
||||
const char* stateStr = pAnim->Attribute("state");
|
||||
if (!stateStr)
|
||||
continue;
|
||||
|
||||
DialogueAnim Anim = {};
|
||||
|
||||
STATEANIM::ESTATE State = StringToStateAnim(stateStr);
|
||||
|
||||
Anim.AnimIndex = pAnim->IntAttribute("index");
|
||||
Anim.Loop = pAnim->BoolAttribute("loop");
|
||||
|
||||
const char* trig = pName->Attribute("Trigger");
|
||||
|
||||
if (!strcmp(trig, "DIALOGUE_END"))
|
||||
Anim.Trigger = ENUM_CLASS(FLOW_TRIGGER::DIALOGUE_END);
|
||||
else if (!strcmp(trig, "ARRIVE_POS"))
|
||||
Anim.Trigger = ENUM_CLASS(FLOW_TRIGGER::ARRIVE_POS);
|
||||
else if (!strcmp(trig, "ANIM_END"))
|
||||
Anim.Trigger = ENUM_CLASS(FLOW_TRIGGER::ANIM_END);
|
||||
|
||||
|
||||
m_Anims[flow] = Anim;
|
||||
|
||||
m_Animation[State] = { Anim.AnimIndex, Anim.Loop };
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CElf::Load_ElfPos(const _char* pFilePath)
|
||||
{
|
||||
tinyxml2::XMLDocument doc;
|
||||
if (doc.LoadFile(pFilePath) != tinyxml2::XML_SUCCESS)
|
||||
return E_FAIL;
|
||||
|
||||
auto* pElfPosInfo = doc.FirstChildElement("ElfPosInfo");
|
||||
if (!pElfPosInfo) return E_FAIL;
|
||||
|
||||
auto* pElfPosData = pElfPosInfo->FirstChildElement("ElfPosData");
|
||||
if (!pElfPosData) return E_FAIL;
|
||||
|
||||
for (auto* pName = pElfPosData->FirstChildElement("Name");
|
||||
pName;
|
||||
pName = pName->NextSiblingElement("Name"))
|
||||
{
|
||||
int flow = -1;
|
||||
pName->QueryIntAttribute("Flow", &flow);
|
||||
|
||||
auto* pPosition = pName->FirstChildElement("Position");
|
||||
if (!pPosition) continue;
|
||||
|
||||
auto* pPos = pPosition->FirstChildElement("Pos");
|
||||
if (!pPos) continue;
|
||||
|
||||
_float x{}, y{}, z{};
|
||||
pPos->QueryFloatAttribute("x", &x);
|
||||
pPos->QueryFloatAttribute("y", &y);
|
||||
pPos->QueryFloatAttribute("z", &z);
|
||||
|
||||
m_Points[flow] = { x, y, z, 1.f };
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CElf::Ready_Components(void* pArg)
|
||||
{
|
||||
CTransform::TRANSFORM_DESC Desc = {};
|
||||
|
||||
Desc.fSpeedPerSec = 10.f;
|
||||
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
|
||||
Desc.fRadius = 10.f;
|
||||
|
||||
if (FAILED(Add_Component<CTransform>(g_iStaticLevel, &m_pTransformCom, pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Elf_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("ELF"), (CComponent**)&m_pNpcStat))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
{ // CCT
|
||||
CCharacter_Controller::Character_Controller_DESC Desc{};
|
||||
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
|
||||
Desc.pTransform = m_pTransformCom;
|
||||
Desc.eBodyType = ACTOR::CAPSULE;
|
||||
Desc.fContactOffset = 0.0001f;
|
||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.02f };
|
||||
Desc.fRadius = 0.2f;
|
||||
Desc.fHeight = 0.3f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_NonPlayable_HitReport::Create();
|
||||
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_NonPlayable_Behavior::Create();
|
||||
Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
|
||||
Desc.fWalkableSlope = 45.f;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
}
|
||||
{ // DO
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
|
||||
Desc.bAutoOwnerTranslation = false;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_NPC_HITBOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CElf* CElf::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CElf* pInstance = new CElf(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CElf");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CElf::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CElf* pInstance = new CElf(*this);
|
||||
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CElf");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CElf::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
SAFE_RELEASE(m_pNpcStat);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pTarget);
|
||||
if (nullptr != m_pInfoInstance) {
|
||||
CInfoInstance* pInfo = m_pInfoInstance;
|
||||
m_pInfoInstance = nullptr;
|
||||
}
|
||||
if (nullptr != m_pCallBack_Behavior) {
|
||||
m_pCallBack_Behavior->Finalize();
|
||||
}
|
||||
if (nullptr != m_pCallBack_HitReport) {
|
||||
m_pCallBack_HitReport->Finalize();
|
||||
}
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CElf::Describe_Entity()
|
||||
{
|
||||
if (m_Anims[m_iCurrentFlow].Trigger == ENUM_CLASS(FLOW_TRIGGER::DIALOGUE_END))
|
||||
{
|
||||
GUI::InputInt("Flow", &m_iCurrentFlow);
|
||||
}
|
||||
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
if (GUI::DragFloat3("Pos", (_float*)&Pos, 0.01f))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f));
|
||||
}
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
if (GUI::Button("Move To Player"))
|
||||
{
|
||||
CPlayer* pPlayer =
|
||||
m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object<CPlayer>();
|
||||
m_pCharacter_Controller->Set_Position(pPlayer->Get_WorldPostion());
|
||||
|
||||
_vector vCurPos = m_pCharacter_Controller->Get_Position();
|
||||
_float4 vPos;
|
||||
XMStoreFloat4(&vPos, vCurPos);
|
||||
|
||||
char buf[128];
|
||||
sprintf_s(buf,
|
||||
"<Pos x=\"%.3f\" y=\"%.3f\" z=\"%.3f\"/>",
|
||||
vPos.x, vPos.y, vPos.z);
|
||||
|
||||
GUI::SetClipboardText(buf);
|
||||
}
|
||||
|
||||
GUI::Separator();
|
||||
|
||||
if (GUI::TreeNode("Points"))
|
||||
{
|
||||
GUI::Text("Total Count : %d", (_int)m_Points.size());
|
||||
|
||||
for (auto it = m_Points.begin(); it != m_Points.end(); )
|
||||
{
|
||||
_int index = it->first;
|
||||
_float4& p = it->second;
|
||||
|
||||
GUI::PushID(index);
|
||||
|
||||
GUI::Text("[%d] (%.2f, %.2f, %.2f)", index, p.x, p.y, p.z);
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("Move"))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(
|
||||
XMVectorSet(p.x, p.y, p.z, 1.f));
|
||||
}
|
||||
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("Copy"))
|
||||
{
|
||||
_vector vCurPos = m_pCharacter_Controller->Get_Position();
|
||||
XMStoreFloat4(&p, vCurPos);
|
||||
|
||||
char buf[128];
|
||||
sprintf_s(buf,
|
||||
"<Pos x=\"%.3f\" y=\"%.3f\" z=\"%.3f\"/>",
|
||||
p.x, p.y, p.z);
|
||||
|
||||
GUI::SetClipboardText(buf);
|
||||
}
|
||||
|
||||
GUI::SameLine();
|
||||
|
||||
if (GUI::SmallButton("X"))
|
||||
{
|
||||
it = m_Points.erase(it);
|
||||
GUI::PopID();
|
||||
continue;
|
||||
}
|
||||
|
||||
GUI::PopID();
|
||||
++it;
|
||||
}
|
||||
|
||||
if (GUI::SmallButton("Clear All"))
|
||||
{
|
||||
m_Points.clear();
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -62,6 +62,10 @@ void CEnemy_Panel::Update_Target()
|
||||
static_cast<CUIObject*>(m_pEnemy_Info)->Set_FadeOut();
|
||||
return;
|
||||
}
|
||||
|
||||
CStat* pStat = m_pInfoInstance->Get_TargetMonster()->Get_Stat();
|
||||
if (pStat == nullptr)
|
||||
return;
|
||||
if (m_pInfoInstance->Get_TargetMonster()->Get_Stat()->Get_Stat().bBoss == true)
|
||||
{
|
||||
static_cast<CBoss_HpBar*>(m_pBoss_HpBar)->Update_Target();
|
||||
|
||||
@@ -393,8 +393,11 @@ 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));
|
||||
|
||||
|
||||
switch (iSkillType)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
@@ -440,7 +443,6 @@ 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) {
|
||||
|
||||
@@ -406,7 +406,12 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
if (pEffect_Container != nullptr)
|
||||
{
|
||||
_uint iSkillType = pEffect_Container->Get_SkillType();
|
||||
//damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
|
||||
#ifndef Bin
|
||||
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
#endif // !Bin
|
||||
|
||||
|
||||
|
||||
switch (iSkillType)
|
||||
{
|
||||
@@ -453,16 +458,16 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*m_DamageInfo.fDamage = damagePair.first;
|
||||
#ifndef Bin
|
||||
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;
|
||||
}*/
|
||||
|
||||
}
|
||||
#endif // !Bin
|
||||
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
|
||||
|
||||
@@ -102,6 +102,12 @@ void CGoblin_Protego::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_Protego::Set_Visible(_bool bVisible)
|
||||
{
|
||||
m_bVisible = true;
|
||||
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), CURRENT_LEVEL);
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Protego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
@@ -197,16 +203,19 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
m_pOwner->OnCollision(pOther, CollisionDesc);
|
||||
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
|
||||
m_bVisible = false;
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
|
||||
m_pOwner->OnCollision(pOther, CollisionDesc);
|
||||
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
|
||||
m_bVisible = false;
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC):
|
||||
m_pOwner->OnCollision(pOther, CollisionDesc);
|
||||
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
|
||||
m_bVisible = false;
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
break;
|
||||
@@ -218,7 +227,7 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
if (pProps != nullptr)
|
||||
{
|
||||
m_pOwner->OnCollision(pOther, CollisionDesc);
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
|
||||
m_bVisible = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "Layer.h"
|
||||
#include "Wand.h"
|
||||
#include "Mesh.h"
|
||||
#include "Player.h"
|
||||
|
||||
CHuman_Duelist::CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMonster(pDevice, pContext)
|
||||
@@ -67,6 +68,7 @@ HRESULT CHuman_Duelist::Initialize(void* pArg)
|
||||
_vector vRotQ = XMLoadFloat4(&pDesc->vRotQ);
|
||||
m_pCharacter_Controller->Set_Position(vPos);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vPos);
|
||||
m_OriginPos = pDesc->vPos;
|
||||
m_pTransformCom->Rotation(vRotQ);
|
||||
}
|
||||
|
||||
@@ -93,8 +95,7 @@ void CHuman_Duelist::Update(_float fTimeDelta)
|
||||
|
||||
Play_Event();
|
||||
|
||||
|
||||
|
||||
Check_BattleLose();
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
#ifdef _DEBUG
|
||||
@@ -109,8 +110,6 @@ void CHuman_Duelist::Update(_float fTimeDelta)
|
||||
|
||||
for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++)
|
||||
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CHuman_Duelist::Late_Update(_float fTimeDelta)
|
||||
@@ -481,80 +480,21 @@ HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder)
|
||||
_float fMixerFactor = { FLT_MAX };
|
||||
_uint iColorMixerMethod = { 0 };
|
||||
|
||||
switch (PLAYER_MESH_ORDER(iMeshOrder))
|
||||
switch (CPlayer::PLAYER_MESH_ORDER(iMeshOrder))
|
||||
{
|
||||
case PLAYER_MESH_ORDER::HAIR_MAIN:
|
||||
case PLAYER_MESH_ORDER::HEAD_EYELASH:
|
||||
case PLAYER_MESH_ORDER::HAIR_SUB:
|
||||
case CPlayer::PLAYER_MESH_ORDER::HAIR_MAIN:
|
||||
case CPlayer::PLAYER_MESH_ORDER::EYELASH:
|
||||
bUseColorMixer = true;
|
||||
iColorParam = 0x2E2E2E;
|
||||
fMixerFactor = 0.9f;
|
||||
iColorMixerMethod = 1;
|
||||
break;
|
||||
case PLAYER_MESH_ORDER::LOWER:
|
||||
case CPlayer::PLAYER_MESH_ORDER::CLOTH:
|
||||
bUseColorMixer = true;
|
||||
iColorParam = 0x292557;
|
||||
fMixerFactor = 0.5f;
|
||||
iColorMixerMethod = 1;
|
||||
break;
|
||||
case PLAYER_MESH_ORDER::SHOES:
|
||||
bUseColorMixer = true;
|
||||
iColorParam = 0x614242;
|
||||
fMixerFactor = 0.5f;
|
||||
iColorMixerMethod = 1;
|
||||
break;
|
||||
case PLAYER_MESH_ORDER::UPPER:
|
||||
bUseColorMixer = true;
|
||||
iColorParam = 0xBFAC29;
|
||||
fMixerFactor = 0.658333f;
|
||||
iColorMixerMethod = 1;
|
||||
break;
|
||||
#ifdef 기무리
|
||||
|
||||
//case PLAYER_MESH_ORDER::ROBE_CLOTH:
|
||||
//{
|
||||
// CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
|
||||
// _uint MeshBoneCount = pMesh->Get_NumBone();
|
||||
|
||||
// for (_uint i = 0; i < MeshBoneCount; ++i)
|
||||
// {
|
||||
// XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity());
|
||||
// }
|
||||
|
||||
// _uint temp = 0;
|
||||
// vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
|
||||
// vector<_int> boneIndices = pMesh->Get_BoneIndices();
|
||||
|
||||
// for (_uint i = 0; i < MeshBoneCount; ++i)
|
||||
// {
|
||||
// _uint global = boneIndices[i];
|
||||
// if (global == 38)
|
||||
// continue;
|
||||
// if (globalMask[global] == 1)
|
||||
// {
|
||||
// SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++);
|
||||
// }
|
||||
// }
|
||||
|
||||
// GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
|
||||
|
||||
// if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
|
||||
|
||||
// if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
// "g_BoneMatrices",
|
||||
// SkinMatrices.data(),
|
||||
// (_int)SkinMatrices.size()
|
||||
// )))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//}
|
||||
//break;
|
||||
#endif // _DEBUG
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -574,6 +514,29 @@ HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CHuman_Duelist::Check_BattleLose()
|
||||
{
|
||||
if (!m_bBattle)
|
||||
return;
|
||||
|
||||
_float vPosY = XMVectorGetY(m_pCharacter_Controller->Get_Position());
|
||||
|
||||
if (m_OriginPos.y > vPosY)
|
||||
{
|
||||
if (true == m_pCharacter_Controller->IsOnGround())
|
||||
{
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::BOX_SPLESH, this);
|
||||
m_bBattle = false;
|
||||
CPlayer* pPlayer = dynamic_cast<CPlayer*>(m_pInfoInstance->Get_NearestPlayerAlly(Get_WorldPostion()).first);
|
||||
|
||||
if (pPlayer == nullptr)
|
||||
return;
|
||||
|
||||
pPlayer->ExitBattle();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
_matrix CHuman_Duelist::Get_WandPos()
|
||||
{
|
||||
|
||||
@@ -35,11 +35,15 @@ void CHuman_Duelist::Behavior_IdleEnter()
|
||||
|
||||
HRESULT CHuman_Duelist::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (m_bBattle) {
|
||||
m_pFSM->Change_State(FSMSTATE::CUTSCENE);
|
||||
return E_FAIL;
|
||||
if (false == m_pFSM->IsEnable_Previous(FSMSTATE::COMBAT))
|
||||
{
|
||||
if (m_bBattle) {
|
||||
m_pFSM->Change_State(FSMSTATE::CUTSCENE);
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (m_fTargetDistance <= 20.f) {
|
||||
for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++)
|
||||
{
|
||||
@@ -263,6 +267,7 @@ void CHuman_Duelist::Behavior_HitEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
m_bLookAt = false;
|
||||
m_bCameraShake = true;
|
||||
|
||||
switch (m_eHitSpell)
|
||||
{
|
||||
@@ -278,11 +283,8 @@ void CHuman_Duelist::Behavior_HitEnter()
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
|
||||
if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) {
|
||||
return;
|
||||
}
|
||||
pairAnimInfo = m_Animation[STATEANIM::DAZED_START];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.3f);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::DAZED_LOOP];
|
||||
@@ -343,6 +345,15 @@ void CHuman_Duelist::Behavior_HitEnter()
|
||||
HRESULT CHuman_Duelist::Behavior_HitExitCheck(_float fTimeDelta)
|
||||
{
|
||||
_int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first ||
|
||||
iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT].first)
|
||||
{
|
||||
if (true == m_pCharacter_Controller->IsOnGround() && m_bCameraShake) {
|
||||
CameraShake(10.f, 1.f, 2.f, 0.3f);
|
||||
m_bCameraShake = false;
|
||||
}
|
||||
}
|
||||
|
||||
Hit_Levioso(fTimeDelta);
|
||||
|
||||
@@ -387,7 +398,7 @@ HRESULT CHuman_Duelist::Behavior_CutSceneExitCheck(_float fTimeDelta)
|
||||
void CHuman_Duelist::Behavior_CutSceneExit()
|
||||
{
|
||||
m_pFSM->Disable_State(FSMSTATE::CUTSCENE);
|
||||
m_bBattle = false;
|
||||
//m_bBattle = false;
|
||||
}
|
||||
|
||||
void CHuman_Duelist::Hit_Levioso(_float fTimeDelta)
|
||||
|
||||
@@ -42,7 +42,7 @@ void CInfoInstance::Change_Level()
|
||||
m_pInteractiveInfo->Change_Level();
|
||||
m_pEffectInfo->Change_Level();
|
||||
// UI_Event.clear();
|
||||
m_pCutSceneInfo->Change_Level();
|
||||
m_pCutSceneInfo->Load_CutScenes();
|
||||
}
|
||||
|
||||
CStat* CInfoInstance::Get_PlayerStatPtr()
|
||||
@@ -176,6 +176,10 @@ HRESULT CInfoInstance::Load_DADA_INT()
|
||||
{
|
||||
return m_pMapInfo->Load_DADA_INT();
|
||||
}
|
||||
HRESULT CInfoInstance::Load_Npc()
|
||||
{
|
||||
return m_pMapInfo->Load_Npc();
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region EFFECT_INFO
|
||||
@@ -541,6 +545,11 @@ HRESULT CInfoInstance::NPC_FileLoad(const _char* pDirectoryPath)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CInfoInstance::Load_CutScenes()
|
||||
{
|
||||
m_pCutSceneInfo->Load_CutScenes();
|
||||
}
|
||||
|
||||
void CInfoInstance::Release_Information()
|
||||
{
|
||||
UI_Event.clear();
|
||||
|
||||
@@ -63,6 +63,9 @@ HRESULT CLevel_Field::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Layer_Monster())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pInfoInstance->Load_CutScenes();
|
||||
|
||||
m_bLevel = true;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
|
||||
|
||||
@@ -152,8 +155,6 @@ HRESULT CLevel_Field::Render()
|
||||
|
||||
HRESULT CLevel_Field::Ready_Lights()
|
||||
{
|
||||
CLight_Main* pLight = { nullptr };
|
||||
|
||||
LIGHT_DESC Desc = {};
|
||||
if (m_isDay)
|
||||
{
|
||||
@@ -169,7 +170,7 @@ HRESULT CLevel_Field::Ready_Lights()
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLight_Main>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &pLight))) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLight_Main>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &m_pLight))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -184,9 +185,7 @@ HRESULT CLevel_Field::Ready_Lights()
|
||||
#endif // gimch
|
||||
|
||||
|
||||
|
||||
|
||||
pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
m_pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
|
||||
|
||||
return S_OK;
|
||||
@@ -237,7 +236,7 @@ HRESULT CLevel_Field::Ready_Camera()
|
||||
Camera_Desc.fNear = 0.1f;
|
||||
Camera_Desc.fFar = 500.f;
|
||||
Camera_Desc.pCameraKey = CAMERA_CINEMATIC;
|
||||
Camera_Desc.iPriority = 65;
|
||||
Camera_Desc.iPriority = 52;
|
||||
Camera_Desc.bEnableTransitionLerp = false;
|
||||
Camera_Desc.bEnableLookLerp = false;
|
||||
Camera_Desc.bEnableFollowLerp = false;
|
||||
@@ -369,6 +368,10 @@ HRESULT CLevel_Field::Reday_Layer_EffectPool()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLevel_Field::ResetLevel_Environment()
|
||||
{
|
||||
}
|
||||
|
||||
pair<CLevel*, function<void()>> CLevel_Field::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
|
||||
{
|
||||
CLevel_Field* pInstance = new CLevel_Field(pDevice, pContext, eLevelID);
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "Light_Main.h"
|
||||
#include "Camera_Debug.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Camera_Model.h"
|
||||
#include "UI_Manager.h"
|
||||
#include "Layer.h"
|
||||
#include "SkyBox.h"
|
||||
@@ -21,6 +20,7 @@
|
||||
#include "BroomRaceManager.h"
|
||||
#include "ReparoObject.h"
|
||||
#include "ThestralCarriage.h"
|
||||
#include "Camera_Cinematic.h"
|
||||
|
||||
#pragma region ACTOR
|
||||
#include "Player.h"
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "BroomRacerAI.h"
|
||||
#include "Ranrok.h"
|
||||
#include "RandomNpc.h"
|
||||
#include "Elf.h"
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -109,9 +110,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_SkyBox(TEXT("Layer_SkyBox")))) {
|
||||
return E_FAIL;
|
||||
@@ -121,8 +122,23 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_RacerAI(LAYER_RACERAI))) {
|
||||
return E_FAIL;
|
||||
_bool bLoadNPC = { true };
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
bLoadNPC = false;
|
||||
#endif
|
||||
#endif // _DEBUG
|
||||
if (true == bLoadNPC) {
|
||||
if (FAILED(Ready_Layer_RacerAI(LAYER_RACERAI))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(Ready_Layer_Duelist())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_Npc())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -130,21 +146,13 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_Duelist())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Layer_Npc())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pInfoInstance->Late_Initialize()))
|
||||
return E_FAIL;
|
||||
|
||||
m_bLevel = true;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn"));
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -240,7 +248,7 @@ HRESULT CLevel_GamePlay::Ready_Lights()
|
||||
Desc.vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLight_Main>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc))) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CLight_Main>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &m_pLight))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -333,8 +341,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
isReady_Hogwart = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Background = false;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogwart = false;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
@@ -898,29 +906,31 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
|
||||
|
||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG);
|
||||
}
|
||||
{
|
||||
CCamera_Model::CAMERA_MODEL_DESC Camera_Desc{};
|
||||
Camera_Desc.fSpeedPerSec = 5.f;
|
||||
Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f);
|
||||
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
|
||||
Camera_Desc.fNear = 0.1f;
|
||||
Camera_Desc.fFar = 500.f;
|
||||
Camera_Desc.pCameraKey = CAMERA_MODEL;
|
||||
Camera_Desc.iPriority = 49;
|
||||
Camera_Desc.pFollowTarget = { nullptr };
|
||||
Camera_Desc.pLookTarget = { nullptr };
|
||||
|
||||
CCamera_Model* pCamera = { nullptr };
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCamera_Model>(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_MODEL);
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
{
|
||||
CCamera_Cinematic::Camera_Cinematic_DESC Camera_Desc{};
|
||||
Camera_Desc.fSpeedPerSec = 5.f;
|
||||
Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f);
|
||||
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
|
||||
Camera_Desc.fNear = 0.3f;
|
||||
Camera_Desc.fFar = 500.f;
|
||||
Camera_Desc.pCameraKey = CAMERA_CINEMATIC;
|
||||
Camera_Desc.iPriority = 52;
|
||||
Camera_Desc.bEnableTransitionLerp = false;
|
||||
Camera_Desc.bEnableLookLerp = false;
|
||||
Camera_Desc.bEnableFollowLerp = false;
|
||||
Camera_Desc.vTransitionTime.y = 1.f;
|
||||
Camera_Desc.pFollowTarget = { nullptr };
|
||||
Camera_Desc.pLookTarget = { nullptr };
|
||||
|
||||
CCamera_Cinematic* pCamera = { nullptr };
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCamera_Cinematic>(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_CINEMATIC);
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_SHOULDER, true))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -1093,11 +1103,12 @@ HRESULT CLevel_GamePlay::Ready_Layer_Duelist()
|
||||
{
|
||||
|
||||
CHuman_Duelist::DUELISTDESC DuelistDesc = {};
|
||||
DuelistDesc.vPos = _float4(1007.f, 6.f, 1016.f, 1.f);
|
||||
DuelistDesc.vPos = _float4(1007.23f, 1.775f, 1015.f, 1.f);
|
||||
DuelistDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CHuman_Duelist>(g_iStaticLevel, NEXT_LEVEL, LAYER_DUELIST, &DuelistDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -1105,18 +1116,20 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
|
||||
{
|
||||
_bool isLoad_NPC = { true };
|
||||
_bool isLoad_RandomNPC = { true };
|
||||
_bool isRandomPosition = { false };
|
||||
#ifdef _DEBUG
|
||||
#ifdef gimch
|
||||
isLoad_NPC = false;
|
||||
isLoad_RandomNPC = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_RandomNPC = true;
|
||||
isRandomPosition = false;
|
||||
#endif // gimch
|
||||
#ifdef 진우
|
||||
isLoad_RandomNPC = false;
|
||||
isLoad_NPC = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_NPC = true;
|
||||
isLoad_RandomNPC = true;
|
||||
isLoad_NPC = false;
|
||||
isLoad_RandomNPC = false;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isLoad_RandomNPC = true;
|
||||
@@ -1145,12 +1158,22 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
{
|
||||
CElf::ELFDESC ElfDesc{};
|
||||
ElfDesc.vPos = _float4(-84.20f, -30.98f, -60.13f, 1.f);
|
||||
ElfDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CElf>(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &ElfDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (true == isLoad_RandomNPC)
|
||||
{
|
||||
for (_uint i = 0; i < 11; i++)
|
||||
if(isRandomPosition)
|
||||
{
|
||||
for (_uint i = 0; i < 10; i++)
|
||||
{
|
||||
CRandomNpc::NPCDESC NPCDesc{};
|
||||
_float X = m_pGameInstance->Real_Random_Float(22.f, 29.f);
|
||||
@@ -1163,10 +1186,33 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
m_pInfoInstance->Load_Npc();
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CLevel_GamePlay::ResetLevel_Environment()
|
||||
{
|
||||
Ready_Volumetric();
|
||||
_float4 vDiffuse;
|
||||
_float4 vAmbient;
|
||||
_float4 vSpecular;
|
||||
if (m_isDay)
|
||||
{
|
||||
vDiffuse = _float4(0.6529f, 0.6157f, 0.7843f, 1.0f);
|
||||
vAmbient = _float4(0.6275f, 0.6275f, 0.6275f, 0.0314f);
|
||||
vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.05f);
|
||||
}
|
||||
else
|
||||
{
|
||||
vDiffuse = _float4(0.0471f, 0.0745f, 0.1294f, 0.2549f);
|
||||
vAmbient = _float4(0.1686f, 0.1765f, 0.1373f, 0.0f);
|
||||
vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
m_pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
|
||||
}
|
||||
|
||||
pair<CLevel*, function<void()>> CLevel_GamePlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg)
|
||||
{
|
||||
CLevel_GamePlay* pInstance = new CLevel_GamePlay(pDevice, pContext, eLevelID);
|
||||
@@ -1177,7 +1223,8 @@ pair<CLevel*, function<void()>> CLevel_GamePlay::Create(ID3D11Device* pDevice, I
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return { pInstance, [pInstance]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound(); } };
|
||||
return { pInstance, [=]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound();
|
||||
pInstance->m_pInfoInstance->Load_CutScenes(); } };
|
||||
}
|
||||
|
||||
void CLevel_GamePlay::Free()
|
||||
|
||||
@@ -25,7 +25,7 @@ HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID)
|
||||
if (nullptr == m_pLoader) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(Ready_Layer_BackGround(LAYER_UI))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -92,9 +92,16 @@ void CLevioso::Late_Update(_float fTimeDelta)
|
||||
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include "Player.h"
|
||||
#include "Human_Duelist.h"
|
||||
#include "PlayerRobe.h"
|
||||
//#include "PlayerRobe.h"
|
||||
#include "Goblin.h"
|
||||
#include "Goblin_Mage.h"
|
||||
#include "Goblin_Assassin.h"
|
||||
@@ -45,11 +45,7 @@
|
||||
#include "BroomRacerAI.h"
|
||||
#include "Ranrok.h"
|
||||
#include "RandomNpc.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#include "Camera_Model.h"
|
||||
#endif // _DEBUG
|
||||
|
||||
#include "Elf.h"
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -308,7 +304,7 @@ unsigned int APIENTRY LoadingMain(void* pArg)
|
||||
HRESULT CLoader::Initialize(LEVEL eNextLevelID)
|
||||
{
|
||||
m_eNextLevelID = eNextLevelID;
|
||||
|
||||
////
|
||||
m_pGameInstance->EnqueueJob(&LoadingMain, this);
|
||||
|
||||
return S_OK;
|
||||
@@ -488,7 +484,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_NPC = false;
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
@@ -506,6 +502,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
#pragma region MAP_MODELS
|
||||
vector<future<vector<FOLDER_LOAD*>*>> jobMapModels;
|
||||
vector<future<pair<_wstring, CModel*>*>> jobCharacterModels = {};
|
||||
vector<future<pair<_wstring, CShader*>*>> jobMapShaders;
|
||||
{
|
||||
{ /* Terrain */
|
||||
@@ -1140,6 +1137,204 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
}
|
||||
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Box")
|
||||
));
|
||||
|
||||
#pragma region ACTOR
|
||||
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Playable_Model")
|
||||
));
|
||||
if (true == isLoad_NPC) {
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Npc_Model")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Professor_EleazarFig_Model")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Kitchen_Female_Model")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_DinahHecat_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_MudiwaOnai_Model")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
jobCharacterModels.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")
|
||||
));
|
||||
}
|
||||
if (true == isLoad_Monster) {
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Goblin_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Goblin_Mage_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Goblin_Spector_Model")
|
||||
));
|
||||
jobCharacterModels.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_Goblin_Assassin_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Troll_Model")
|
||||
));
|
||||
jobCharacterModels.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_Ranrok_Model")
|
||||
));
|
||||
}
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Camera_Model")
|
||||
));
|
||||
#pragma endregion
|
||||
|
||||
#pragma region ITEM
|
||||
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/SK_Wands_Amit.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Wand_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::NONANIM, "../Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Potion_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::NONANIM, "../Bin/Resources/Models/Object/RaceRing/SM_BRR_RaceRing_01.bin", XMMatrixRotationX(XMConvertToRadians(90.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_RaceRing_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Broom_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/MoonTrimmerBroom/SK_MoonTrimmerBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_DarkWizardBroom_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/WildFireBroom/WildFireBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_WildFireBroom_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Troll_Weapon_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Troll_Rock_Big_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/SK_WPN_GOB_SmallSword.bin", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Goblin_Dagger_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_L.bin", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Goblin_Sword_L_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_R.bin", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Goblin_Sword_R_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin", XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Goblin_BattleAxe_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_ThestralCarriage_Model")
|
||||
));
|
||||
jobCharacterModels.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_SkyboxModel")
|
||||
));
|
||||
|
||||
#pragma endregion
|
||||
|
||||
#ifndef 진우
|
||||
#pragma region SHADER
|
||||
|
||||
@@ -1176,8 +1371,21 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements));
|
||||
}
|
||||
|
||||
{
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
_uint iIndex = 0;
|
||||
for (auto& JobMapShader : jobMapShaders)
|
||||
{
|
||||
pair<_wstring, CShader*>* pOut = JobMapShader.get();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
Safe_Delete(pOut);
|
||||
}
|
||||
}
|
||||
#pragma endregion
|
||||
#endif
|
||||
|
||||
/* LAND_MODEL */
|
||||
{
|
||||
/* For.Prototype_Component_South_Hogwart_Land_LOD1 */
|
||||
@@ -2230,7 +2438,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
Desc1.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
|
||||
Desc1.vMatInfo = { 0.5f, 0.5f, 0.6f };
|
||||
Desc1.fContactOffset = { 0.05f };
|
||||
Desc1.vhalfGeometryInfo = { 2.f, 2.f, 2.f };
|
||||
Desc1.vhalfGeometryInfo = { 2.34f, 2.34f, 2.34f };
|
||||
Desc1.fDensity = 1.f;
|
||||
Desc1.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
|
||||
Desc1.eLockFlag = {};
|
||||
@@ -2309,252 +2517,19 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
Desc.vMatInfo = { 0.5f, 0.5f, 0.1f };
|
||||
Desc.fContactOffset = { 0.05f };
|
||||
Desc.vhalfGeometryInfo = { 0.5f, 1.f, 0.01f };
|
||||
Desc.fDensity = 100.f;
|
||||
Desc.fDensity = 10.f;
|
||||
PSX::PxTransform pxPivotTransform = PSX::PxTransform(PSX::PxVec3(0.f, 1.f, 0.f));
|
||||
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
|
||||
Desc.vLocalTranslation = { 0.5f, 1.375f, 0.f };
|
||||
|
||||
Desc.pxMassCenter = pxPivotTransform;
|
||||
Desc.vAutoDamping = { 10.f, 10.f };
|
||||
Desc.vAutoDamping = { 5.f, 5.f };
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_DOOR"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Box"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#pragma region ACTOR
|
||||
|
||||
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", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
||||
return E_FAIL;
|
||||
}
|
||||
if (true == isLoad_NPC) {
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Npc_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GerboldOlivander_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, 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())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Professor_EleazarFig_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VictorRookWood_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_ChiyoKogawa_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_MatildaWeasely_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SatyavatiShah_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_PhineasBlack_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Student_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_Student_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Elf_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Kitchen_Female_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_BaiHowin_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GeorgeOsric_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DinahHecat_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_MudiwaOnai_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
if (true == isLoad_Monster) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Mage_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Spector_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_Goblin_Assassin_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GerboldOlivander_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, 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())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Professor_EleazarFig_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Spector_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_Goblin_Assassin_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Camera_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region ITEM
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Wand_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/SK_Wands_Amit.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Potion_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_RaceRing_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/RaceRing/SM_BRR_RaceRing_01.bin", XMMatrixRotationX(XMConvertToRadians(90.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/MoonTrimmerBroom/SK_MoonTrimmerBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DarkWizardBroom_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_WildFireBroom_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/WildFireBroom/WildFireBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Dagger_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/SK_WPN_GOB_SmallSword.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Sword_L_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_L.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Sword_R_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_R.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_BattleAxe_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin", XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_ThestralCarriage_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
#pragma endregion
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPlayerRobe::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_CCL_CameraRig.001_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/CCL_CameraRig.001.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_SkyboxModel */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다.");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTrail>(g_iStaticLevel, CTrail::Create(m_pDevice, m_pContext)))) {
|
||||
@@ -3647,7 +3622,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
/* For.Prototype_Component_FloatingBalloon */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_FloatingBalloon"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin"))))
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_Hogwart_Lake */
|
||||
@@ -3809,13 +3784,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CCamera_Model>(g_iStaticLevel, CCamera_Model::Create(m_pDevice, m_pContext)))) {
|
||||
/* For.Prototype_GameObject_Elf */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CElf>(g_iStaticLevel, CElf::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -3908,11 +3880,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 쉐이더 로딩 종료 이후 로딩*/
|
||||
|
||||
#pragma region RECEIVE_THREAD
|
||||
|
||||
{ // MapModels
|
||||
m_strMessage = TEXT("모델를(을) 로딩 중 입니다.");
|
||||
_uint iIndex = 0;
|
||||
@@ -3937,20 +3905,18 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
|
||||
_uint iIndex = 0;
|
||||
for (auto& JobMapShader : jobMapShaders)
|
||||
{
|
||||
pair<_wstring, CShader*>* pOut = JobMapShader.get();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) {
|
||||
for (auto& job : jobCharacterModels) {
|
||||
pair<_wstring, CModel*>* pResult = job.get();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pResult->first, pResult->second))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
Safe_Delete(pOut);
|
||||
Safe_Delete(pResult);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#pragma endregion
|
||||
|
||||
m_strMessage = TEXT("정보를 불러오는 중입니다.");
|
||||
|
||||
@@ -36,7 +36,7 @@ HRESULT CMapElement_Chest_Lid::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_fOpenDuration = 0.1f;
|
||||
m_fOpenDuration = 0.3f;
|
||||
m_fRotationAngle = pDesc->fRotaitionAngle;
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vLid_Offset), 1.f));
|
||||
|
||||
|
||||
@@ -271,7 +271,7 @@ void CMapElement_Door::Free()
|
||||
#ifdef _DEBUG
|
||||
void CMapElement_Door::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("PhysX");
|
||||
GUI::Begin("PhysX", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Door")) {
|
||||
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
|
||||
GUI::Text("m_vKinematicTimer %.3f", m_vKinematicTimer.x);
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "InstancedProp_Light.h"
|
||||
#include "Layer.h"
|
||||
#include "EffectParts.h"
|
||||
#include "RandomNpc.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
{
|
||||
@@ -853,6 +854,47 @@ HRESULT CMapInfo::Load_DADA_INT()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Load_Npc()
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("NPC");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CRandomNpc::NPCDESC NPCDesc{};
|
||||
Object->QueryIntAttribute("Index", &NPCDesc.iIndex);
|
||||
/* Transform */
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &NPCDesc.vPos.x);
|
||||
Position->QueryFloatAttribute("y", &NPCDesc.vPos.y);
|
||||
Position->QueryFloatAttribute("z", &NPCDesc.vPos.z);
|
||||
NPCDesc.vPos.w = 1.f;
|
||||
|
||||
auto* Rotation = Object->FirstChildElement("Rotation");
|
||||
Rotation->QueryFloatAttribute("x", &NPCDesc.vRotQ.x);
|
||||
Rotation->QueryFloatAttribute("y", &NPCDesc.vRotQ.y);
|
||||
Rotation->QueryFloatAttribute("z", &NPCDesc.vRotQ.z);
|
||||
NPCDesc.vRotQ.w = 1.f;
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRandomNpc>(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex)
|
||||
{
|
||||
m_pGameInstance = CGameInstance::GetInstance();
|
||||
|
||||
@@ -147,9 +147,15 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters()
|
||||
{
|
||||
// (카메라의 룩)과 (카메라 -> 몬스터 방향 벡터)를 내적해서 가장 큰 크기가 나온 몬스타가 락온 대상
|
||||
CMonster* pMonster = (*iter);
|
||||
if (pMonster->Get_Hp().x <= 0) {
|
||||
continue;
|
||||
|
||||
CStat*pStat = pMonster->Get_Component<CStat>();
|
||||
|
||||
if (pStat != nullptr) {
|
||||
if (pMonster->Get_Hp().x <= 0) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
vMonsterPos = pMonster->Get_LockOnPos();
|
||||
vToMonsterDir = vMonsterPos - vCameraPos;
|
||||
if (40.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) {
|
||||
|
||||
@@ -130,9 +130,16 @@ void CNomalJap::Late_Update(_float fTimeDelta)
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = m_pProjectile->Get_WorldPostion();
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "Monster.h"
|
||||
#include "TimeSocket.h"
|
||||
#include "PlayerRobe.h"
|
||||
#include "RaceRing.h"
|
||||
#include "Wand.h"
|
||||
#include "Mesh.h"
|
||||
@@ -255,7 +254,9 @@ HRESULT CPlayer::Render()
|
||||
}
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
Render_CameraCoordinateSystem();
|
||||
#ifdef 기무리
|
||||
//Render_CameraCoordinateSystem();
|
||||
#endif // 기무리
|
||||
//m_pCharacter_Controller->Render();
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -394,6 +395,12 @@ void CPlayer::Set_Interaction(_bool bInteraction)
|
||||
m_bCurrentInteraction = bInteraction;
|
||||
}
|
||||
|
||||
void CPlayer::ExitBattle()
|
||||
{
|
||||
m_bDuel_ZOnlyMove = false;
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat4(&m_OriginPos));
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Render_Shadow(SHADOW eType)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
@@ -419,16 +426,8 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
|
||||
if (FAILED(Bind_ShaderParameters(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (i == ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)) {
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW_LEGACY)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
@@ -513,14 +512,29 @@ void CPlayer::Trigger(CTimeSocket& Socket)
|
||||
m_pCharacter_Controller->Set_Position(vNewPos);
|
||||
m_pTransformCom->RotationQ(pContents->pxTransform.q);
|
||||
m_pTransformCom->RewindMomentum();
|
||||
}
|
||||
break;
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::TRANSLATION_LERP:
|
||||
{
|
||||
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::SET_ANIMSTATE:
|
||||
{
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::SET_FSMSTATE:
|
||||
{
|
||||
if (pContents->vFlags.b[0]) {
|
||||
m_pFSM->Change_State(FSMSTATE::CUTSCENE);
|
||||
}
|
||||
else if (pContents->vFlags.b[1]) {
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
|
||||
{
|
||||
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX:
|
||||
{
|
||||
|
||||
} break;
|
||||
default:
|
||||
@@ -631,6 +645,10 @@ HRESULT CPlayer::Ready_Components()
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pCharacter_Controller->SetGravity(false);
|
||||
m_pCharacter_Controller->Set_GravityAmount(1.2f);
|
||||
#ifdef _DEBUG
|
||||
m_pCharacter_Controller->Set_Name("CCT_PLAYER");
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
{ // DO
|
||||
@@ -734,80 +752,21 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
|
||||
_float fMixerFactor = { FLT_MAX };
|
||||
_uint iColorMixerMethod = { 0 };
|
||||
|
||||
switch (PLAYER_MESH_ORDER(iMeshOrder))
|
||||
switch (CPlayer::PLAYER_MESH_ORDER(iMeshOrder))
|
||||
{
|
||||
case PLAYER_MESH_ORDER::HAIR_MAIN:
|
||||
case PLAYER_MESH_ORDER::HEAD_EYELASH:
|
||||
case PLAYER_MESH_ORDER::HAIR_SUB:
|
||||
case CPlayer::PLAYER_MESH_ORDER::HAIR_MAIN:
|
||||
case CPlayer::PLAYER_MESH_ORDER::EYELASH:
|
||||
bUseColorMixer = true;
|
||||
iColorParam = 0x2E2E2E;
|
||||
fMixerFactor = 0.9f;
|
||||
iColorMixerMethod = 1;
|
||||
break;
|
||||
case PLAYER_MESH_ORDER::LOWER:
|
||||
case CPlayer::PLAYER_MESH_ORDER::CLOTH:
|
||||
bUseColorMixer = true;
|
||||
iColorParam = 0x292557;
|
||||
fMixerFactor = 0.5f;
|
||||
iColorMixerMethod = 1;
|
||||
break;
|
||||
case PLAYER_MESH_ORDER::SHOES:
|
||||
bUseColorMixer = true;
|
||||
iColorParam = 0x614242;
|
||||
fMixerFactor = 0.5f;
|
||||
iColorMixerMethod = 1;
|
||||
break;
|
||||
case PLAYER_MESH_ORDER::UPPER:
|
||||
bUseColorMixer = true;
|
||||
iColorParam = 0xBFAC29;
|
||||
fMixerFactor = 0.658333f;
|
||||
iColorMixerMethod = 1;
|
||||
break;
|
||||
//#ifdef 기무리
|
||||
//
|
||||
// case PLAYER_MESH_ORDER::ROBE_CLOTH:
|
||||
// {
|
||||
// CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
|
||||
// _uint MeshBoneCount = pMesh->Get_NumBone();
|
||||
//
|
||||
// for (_uint i = 0; i < MeshBoneCount; ++i)
|
||||
// {
|
||||
// XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity());
|
||||
// }
|
||||
//
|
||||
// _uint temp = 0;
|
||||
// vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
|
||||
// vector<_int> boneIndices = pMesh->Get_BoneIndices();
|
||||
//
|
||||
// for (_uint i = 0; i < MeshBoneCount; ++i)
|
||||
// {
|
||||
// _uint global = boneIndices[i];
|
||||
// if (global == 38)
|
||||
// continue;
|
||||
// if (globalMask[global] == 1)
|
||||
// {
|
||||
// SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
|
||||
//
|
||||
// if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
//
|
||||
// if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
// "g_BoneMatrices",
|
||||
// SkinMatrices.data(),
|
||||
// (_int)SkinMatrices.size()
|
||||
// )))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
// }
|
||||
// break;
|
||||
//#endif // _DEBUG
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -976,7 +935,7 @@ void CPlayer::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pRobePart);
|
||||
//SAFE_RELEASE(m_pRobePart);
|
||||
SAFE_RELEASE(m_pGrapInteractive);
|
||||
|
||||
if (nullptr != m_pInfoInstance) {
|
||||
@@ -1155,12 +1114,9 @@ void CPlayer::Describe_Entity()
|
||||
|
||||
|
||||
m_pLightCom->Describe_Entity();
|
||||
for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++)
|
||||
{
|
||||
if (GUI::Button(m_pModelCom->Get_AnimList(i)))
|
||||
{
|
||||
m_pModelCom->Set_AnimationIndex(i);
|
||||
}
|
||||
if (GUI::TreeNode("PLAYER_ANIMLIST")) {
|
||||
m_pModelCom->Describe_Entity();
|
||||
GUI::TreePop();
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
|
||||
@@ -345,7 +345,7 @@ HRESULT CPlayerRobe::Update_RobeJoints()
|
||||
|
||||
void CPlayerRobe::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("PhysX");
|
||||
GUI::Begin("PhysX", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Robe")) {
|
||||
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) {
|
||||
_uint iActor0 = i;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "CamPosition_Arm.h"
|
||||
#include "State_CutScene.h"
|
||||
#include "Wand.h"
|
||||
#include "ThestralCarriage.h"
|
||||
#include "Item_Potion.h"
|
||||
#include "Character_Controller.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
@@ -382,7 +383,7 @@ void CPlayer::Behavior_CutSceneEnter()
|
||||
m_bSprintToggle = false;
|
||||
m_bWalkToggle = false;
|
||||
|
||||
pairAnimInfo = m_Animation[STATEANIM::CUTSCENE_OPENINGINTRO2];
|
||||
pairAnimInfo = m_Animation[STATEANIM::CUTSCENE_OPENINGINTRO1];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
m_bOpeningCutScene = true;
|
||||
}
|
||||
@@ -391,16 +392,11 @@ HRESULT CPlayer::Behavior_CutSceneExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (m_bOpeningCutScene)
|
||||
{
|
||||
//_vector Offset = XMVectorSet(1.820f, 0.44f, 0.f, 0.f);
|
||||
//m_pTransformCom->Set_WorldMatrix(m_pCarriage->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
m_pCharacter_Controller->Set_Position(m_pCarriage->Get_WorldPostion() /*+ Offset*/);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCarriage->Get_SocketWorldMatrix(CThestralCarriage::CARRIAGE_SOCKET::FRONT_RIGHT).r[3]);
|
||||
m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
|
||||
m_pTransformCom->RotationQ(XMQuaternionRotationAxis(XMVectorSet(0.f, -1.f, 0.f, 0.f), XMConvertToRadians(90.f)));
|
||||
}
|
||||
|
||||
/*if (m_pCarriage->Get_Component<CModel>()->IsFinishedAnim())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}*/
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -1120,7 +1116,6 @@ void CPlayer::Behavior_CombatEnter()
|
||||
0.1f);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_CombatExitCheck()
|
||||
@@ -1473,8 +1468,7 @@ void CPlayer::Behavior_SpellEnter()
|
||||
0.01f);
|
||||
}
|
||||
Add_SpellEvent(pairAnimInfo.first, fRatio);
|
||||
if (m_eSpell != ENUM_CLASS(SKILL_TYPE::LUMOS) &&
|
||||
m_eSpell != ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA))
|
||||
if (!m_bStartSpellAnim)
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, fAnimSpeed);
|
||||
|
||||
}
|
||||
@@ -1482,8 +1476,7 @@ void CPlayer::Behavior_SpellEnter()
|
||||
fRatio = 0.2f;
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL];
|
||||
Add_SpellEvent(pairAnimInfo.first, fRatio);
|
||||
if (m_eSpell != ENUM_CLASS(SKILL_TYPE::LUMOS) &&
|
||||
m_eSpell !=ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA))
|
||||
if (!m_bStartSpellAnim)
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
}
|
||||
|
||||
@@ -1505,7 +1498,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
|
||||
_uint iIndex = m_pModelCom->Get_AnimIndex();
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
|
||||
if (SUCCEEDED(InputSpell()) && !m_bSpellHit)
|
||||
if (SUCCEEDED(InputSpell()) && !m_bSpellHit && iIndex != m_Animation[STATEANIM::AVADA_KEDAVRA].first)
|
||||
{
|
||||
_uint iCurr = m_pModelCom->Get_AnimIndex();
|
||||
_uint iStart = m_Animation[STATEANIM::SPELL].first;
|
||||
@@ -1625,7 +1618,7 @@ void CPlayer::Behavior_SpellExit()
|
||||
Reset_Event();
|
||||
m_bLookAt = false;
|
||||
m_bSpellHit = false;
|
||||
|
||||
m_bStartSpellAnim = false;
|
||||
}
|
||||
|
||||
void CPlayer::Behavior_AncientSpellEnter()
|
||||
@@ -2885,6 +2878,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
switch (m_eSpell)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
m_bStartSpellAnim = false;
|
||||
Add_Event(AnimIndex,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); }, /* 임시로 바꿔놓음 */
|
||||
fRatio);
|
||||
@@ -2896,6 +2890,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
m_bStartSpellAnim = false;
|
||||
Add_Event(AnimIndex,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, Get_PartObject<CWand>()); },
|
||||
fRatio);
|
||||
@@ -2907,6 +2902,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
|
||||
m_bStartSpellAnim = false;
|
||||
Add_Event(AnimIndex,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); },
|
||||
fRatio);
|
||||
@@ -2918,7 +2914,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(SKILL_TYPE::ACCIO):
|
||||
|
||||
m_bStartSpellAnim = false;
|
||||
Add_Event(AnimIndex,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO, this); },
|
||||
fRatio);
|
||||
@@ -2931,6 +2927,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(SKILL_TYPE::TRANSFORMATION):
|
||||
m_bStartSpellAnim = false;
|
||||
Add_Event(AnimIndex,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION, this); },
|
||||
fRatio);
|
||||
@@ -2941,19 +2938,8 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
Info.pText = TEXT("베라베르토!");
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(SKILL_TYPE::DIFFINDO):
|
||||
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
Info.pText = TEXT("디핀도!");
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info);
|
||||
break;
|
||||
|
||||
case ENUM_CLASS(SKILL_TYPE::DISILLUSIONMENT):
|
||||
pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_ENTER];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA):
|
||||
m_bStartSpellAnim = true;
|
||||
m_pInfoInstance->Set_SearchLockOnFlag(false);
|
||||
pairAnimInfo = m_Animation[STATEANIM::AVADA_KEDAVRA];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false,1.f,true);
|
||||
@@ -2975,6 +2961,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::REPARO):
|
||||
{
|
||||
m_bStartSpellAnim = true;
|
||||
pairAnimInfo = m_Animation[STATEANIM::REPARO_START];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
|
||||
|
||||
@@ -2992,6 +2979,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
}
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::LUMOS):
|
||||
m_bStartSpellAnim = true;
|
||||
if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first)
|
||||
{
|
||||
if (SUCCEEDED(InputMove()))
|
||||
@@ -3038,6 +3026,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
|
||||
}
|
||||
break;
|
||||
default:
|
||||
m_bStartSpellAnim = true;
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL];
|
||||
Add_Event(AnimIndex,
|
||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject<CWand>()); },
|
||||
|
||||
@@ -131,6 +131,12 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CProtego::Set_Visible(_bool bVisible)
|
||||
{
|
||||
m_bVisible = true;
|
||||
m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), CURRENT_LEVEL);
|
||||
}
|
||||
|
||||
HRESULT CProtego::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
@@ -199,8 +205,7 @@ void CProtego::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
static_cast<CPlayer*>(m_pOwner)->Start_CameraShake(0.3f, 2.f);
|
||||
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
|
||||
|
||||
m_pRigidBody->Detach_Actor(CURRENT_LEVEL);
|
||||
m_bVisible = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,10 @@ HRESULT CRandomNpc::Initialize(void* pArg)
|
||||
_vector vPos = XMLoadFloat4(&pDesc->vPos);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vPos);
|
||||
m_pCharacter_Controller->Set_Position(vPos);
|
||||
m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ));
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotQ.x), XMConvertToRadians(pDesc->vRotQ.y), XMConvertToRadians(pDesc->vRotQ.z));
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0, true);
|
||||
_int iRandom = m_pGameInstance->Real_Random_Int(0, 12);
|
||||
m_pModelCom->Set_AnimationIndex(iRandom, false);
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller);
|
||||
m_bNpc = true;
|
||||
@@ -67,8 +68,18 @@ void CRandomNpc::Update(_float fTimeDelta)
|
||||
if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) {
|
||||
return;
|
||||
}
|
||||
|
||||
BattleObserve_Anim();
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
if (false == m_bBattle)
|
||||
{
|
||||
_int iRandom = m_pGameInstance->Real_Random_Int(0, 12);
|
||||
m_pModelCom->Set_AnimationIndex(iRandom, false, 1.f, false, 1.f, false);
|
||||
}
|
||||
}
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
__super::Update(fTimeDelta);
|
||||
#ifdef _DEBUG
|
||||
@@ -91,28 +102,6 @@ void CRandomNpc::Update(_float fTimeDelta)
|
||||
SAFE_RELEASE(m_pTarget);
|
||||
m_fTargetDistance = { FLT_MAX };
|
||||
}
|
||||
|
||||
/*if (m_fTargetDistance <= 5.f && m_bInteract == false)
|
||||
{
|
||||
m_pInfoInstance->Event_CallBack(TEXT("NPCDialogue"), m_pNpcStat);
|
||||
m_bInteract = true;
|
||||
}
|
||||
|
||||
if (m_bInteract != m_bPreviousInteract)
|
||||
{
|
||||
m_bPreviousInteract = m_bInteract;
|
||||
m_fInteractTime = 0.f;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_fInteractTime += fTimeDelta;
|
||||
}
|
||||
|
||||
if (m_fInteractTime >= 5.f)
|
||||
{
|
||||
m_bInteract = false;
|
||||
m_fInteractTime = 0.f;
|
||||
}*/
|
||||
}
|
||||
|
||||
void CRandomNpc::Late_Update(_float fTimeDelta)
|
||||
@@ -320,7 +309,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
|
||||
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
|
||||
Desc.fRadius = 10.f;
|
||||
|
||||
if (FAILED(Add_Component<CTransform>(g_iStaticLevel, &m_pTransformCom, pArg))) {
|
||||
if (FAILED(Add_Component<CTransform>(g_iStaticLevel, &m_pTransformCom, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -363,33 +352,27 @@ HRESULT CRandomNpc::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
m_bBattleObserve_Npc = true;
|
||||
break;
|
||||
break;
|
||||
case 6:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Elf_Model");
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("ELF"), (CComponent**)&m_pNpcStat))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_BaiHowin_Model");
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("BAIHOWIN"), (CComponent**)&m_pNpcStat))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
case 7:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_GeorgeOsric_Model");
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("GEORGEOSRIC"), (CComponent**)&m_pNpcStat))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_bBattleObserve_Npc = true;
|
||||
break;
|
||||
case 9:
|
||||
case 8:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_DinahHecat_Model");
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("DINAHHECAT"), (CComponent**)&m_pNpcStat))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
case 9:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_MudiwaOnai_Model");
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("MUDIWAONAI"), (CComponent**)&m_pNpcStat))) {
|
||||
return E_FAIL;
|
||||
@@ -450,15 +433,15 @@ void CRandomNpc::BattleObserve_Anim()
|
||||
_float fRandX = 0.f;
|
||||
if (iRand == 0)
|
||||
{
|
||||
fRandX = m_pGameInstance->Real_Random_Float(1002.f, 1004.f);
|
||||
fRandX = m_pGameInstance->Real_Random_Float(1003.f, 1005.f);
|
||||
}
|
||||
else {
|
||||
fRandX = m_pGameInstance->Real_Random_Float(1010.f, 1012.f);
|
||||
fRandX = m_pGameInstance->Real_Random_Float(1009.f, 1011.f);
|
||||
}
|
||||
|
||||
_float fRandY = m_pGameInstance->Real_Random_Float(1008.f, 1016.f);
|
||||
_float fRandZ = m_pGameInstance->Real_Random_Float(1008.f, 1016.f);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(fRandX, 2.f, fRandY, 1.f));
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(fRandX, 2.f, fRandZ, 1.f));
|
||||
|
||||
_vector vPos = Get_WorldPostion();
|
||||
_vector vForward = XMVectorZero();
|
||||
@@ -469,6 +452,8 @@ void CRandomNpc::BattleObserve_Anim()
|
||||
vForward = XMVectorSet(-1.f, 0.f, 0.f, 0.f);
|
||||
}
|
||||
|
||||
_int iRandIndex = m_pGameInstance->Real_Random_Int(14, 21);
|
||||
m_pModelCom->Set_AnimationIndex(iRandIndex, false, 1.f, false, 1.f, false);
|
||||
|
||||
m_pTransformCom->LookAt(vPos + vForward);
|
||||
|
||||
@@ -480,7 +465,7 @@ void CRandomNpc::BattleObserve_Anim()
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
_int iRand = m_pGameInstance->Real_Random_Int(14, 21);
|
||||
m_pModelCom->Set_AnimationIndex(iRand, false,1.f,false,1.f,false);
|
||||
m_pModelCom->Set_AnimationIndex(iRand, false, 1.f, false, 1.f, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,13 +8,12 @@
|
||||
#include "EffectParts.h"
|
||||
|
||||
CReparoObject::CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CUnit(pDevice, pContext)
|
||||
: CMonster(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CReparoObject::CReparoObject(const CReparoObject& Prototype)
|
||||
: CUnit(Prototype),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
: CMonster(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -39,6 +38,7 @@ HRESULT CReparoObject::Initialize(void* pArg)
|
||||
m_pModelCom->Set_AnimationIndex(0);
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -79,6 +79,10 @@ HRESULT CReparoObject::Render()
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
_uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT);
|
||||
if (true == m_bDrawOutLine) {
|
||||
iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE);
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
@@ -107,6 +111,78 @@ HRESULT CReparoObject::Render()
|
||||
}
|
||||
}
|
||||
|
||||
if (m_bDrawOutLine) {
|
||||
Render_OutLine();
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CReparoObject::Render_OutLine()
|
||||
{
|
||||
m_bDrawOutLine = false;
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Compute_Depth();
|
||||
_float fCamFar = *m_pGameInstance->Get_CurrentCameraFar();
|
||||
_float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar)));
|
||||
m_fOutLineThickness = CMyTools::Lerp_f1D(0.024f, 0.5f, fRatio);
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_READ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -118,7 +194,9 @@ HRESULT CReparoObject::Ready_Components()
|
||||
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
|
||||
Desc.fRadius = 10.f;
|
||||
|
||||
__super::Ready_Components(&Desc);
|
||||
if (FAILED(Add_Component<CTransform>(g_iStaticLevel, &m_pTransformCom, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"),
|
||||
@@ -132,7 +210,6 @@ HRESULT CReparoObject::Ready_Components()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -94,9 +94,16 @@ void CStupefy::Late_Update(_float fTimeDelta)
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,12 +5,12 @@
|
||||
#include "InfoInstance.h"
|
||||
|
||||
CThestralCarriage::CThestralCarriage(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
: CUnit(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CThestralCarriage::CThestralCarriage(const CThestralCarriage& Prototype)
|
||||
: CGameObject(Prototype),
|
||||
: CUnit(Prototype),
|
||||
m_pInfoInstance(CInfoInstance::GetInstance())
|
||||
{
|
||||
}
|
||||
@@ -31,8 +31,23 @@ HRESULT CThestralCarriage::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-21.f, -5.759f, -14.f, 1.f));
|
||||
#ifdef _DEBUG
|
||||
|
||||
D3D11_RASTERIZER_DESC RSS_Desc = {};
|
||||
RSS_Desc.FillMode = D3D11_FILL_WIREFRAME;
|
||||
RSS_Desc.CullMode = D3D11_CULL_BACK;
|
||||
RSS_Desc.FrontCounterClockwise = FALSE;
|
||||
RSS_Desc.DepthClipEnable = TRUE;
|
||||
RSS_Desc.AntialiasedLineEnable = TRUE;
|
||||
|
||||
m_pDevice->CreateRasterizerState(&RSS_Desc, &m_pRSS);
|
||||
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
m_iAnimationIndex = 2;
|
||||
m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
//vector<pair<_uint, _bool>> chain =
|
||||
//{
|
||||
// { 0, false },
|
||||
@@ -42,7 +57,8 @@ HRESULT CThestralCarriage::Initialize(void* pArg)
|
||||
|
||||
//for (auto& anim : chain)
|
||||
// m_pModelCom->Set_ChainAnimation(anim);
|
||||
m_pModelCom->Set_AnimationIndex(0);
|
||||
m_iAnimationIndex = 0;
|
||||
m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
m_pModelCom->IsRootBone(false);
|
||||
//
|
||||
//m_pModelCom->Start_ChainAnimation();
|
||||
@@ -58,38 +74,8 @@ void CThestralCarriage::Priority_Update(_float fTimeDelta)
|
||||
void CThestralCarriage::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
if (m_pGameInstance->Key_Up(DIK_U))
|
||||
{
|
||||
m_pModelCom->Set_AnimationIndex(1);
|
||||
m_pModelCom->IsRootBone(false);
|
||||
}
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
|
||||
//m_pModelCom->Update_ChainAnimation();
|
||||
|
||||
_float4 RootMomentum = m_pModelCom->Get_RootBoneMomentum();
|
||||
_vector RootDelta = XMLoadFloat4(&RootMomentum);
|
||||
|
||||
_vector vRight = m_pTransformCom->Get_State(STATE::RIGHT);
|
||||
_vector vUp = m_pTransformCom->Get_State(STATE::UP);
|
||||
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
|
||||
|
||||
|
||||
_float dx = XMVectorGetX(RootDelta);
|
||||
_float dy = XMVectorGetY(RootDelta);
|
||||
_float dz = XMVectorGetZ(RootDelta);
|
||||
|
||||
_vector vWorldDelta =
|
||||
vRight * dx +
|
||||
vUp * dy +
|
||||
vLook * dz;
|
||||
|
||||
_vector vPos = m_pTransformCom->Get_State(STATE::POSITION);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vPos + vWorldDelta);
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
@@ -101,7 +87,7 @@ void CThestralCarriage::Late_Update(_float fTimeDelta)
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CThestralCarriage::Render()
|
||||
@@ -113,37 +99,176 @@ HRESULT CThestralCarriage::Render()
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
ID3D11RasterizerState* pOriginalRSS = { nullptr };
|
||||
if (m_bRender_WireFrame) {
|
||||
m_pContext->RSGetState(&pOriginalRSS);
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
RENDER ePass = m_pGameInstance->Get_CurrentRenderPass();
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
if (RENDER::NONBLEND == ePass) {
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (i == ENUM_CLASS(CARRIAGE_MESH_ORDER::WINDOWS)) {
|
||||
continue;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
if (m_bRender_WireFrame) {
|
||||
m_pContext->RSSetState(m_pRSS);
|
||||
}
|
||||
#endif // _DEBUG
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (RENDER::BLEND == ePass) {
|
||||
if (FAILED(m_pModelCom->Bind_Material(1, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
m_pModelCom->Get_OffsetMatrix(1).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(1).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
||||
if (FAILED(m_pModelCom->Begin(1, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (m_bRender_WireFrame) {
|
||||
m_pContext->RSSetState(m_pRSS);
|
||||
}
|
||||
#endif // _DEBUG
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
if (FAILED(m_pModelCom->Render(1))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
if (m_bRender_WireFrame) {
|
||||
m_pContext->RSSetState(pOriginalRSS);
|
||||
SAFE_RELEASE(pOriginalRSS);
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CThestralCarriage::Trigger(CTimeSocket& Socket)
|
||||
{
|
||||
SOCKETCONTENTS* pContents = &Socket.m_Contents;
|
||||
switch (pContents->eTypeFunc)
|
||||
{
|
||||
case TIMESOCKET_FUNC::TELEPORTATION:
|
||||
{
|
||||
m_pTransformCom->Set_WorldMatrix(pContents->pxTransform);
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::TRANSLATION:
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::TRANSLATION_LERP:
|
||||
{
|
||||
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::SET_ANIMSTATE:
|
||||
{
|
||||
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::SET_FSMSTATE:
|
||||
{
|
||||
// if (pContents->vFlags.b[0]) {
|
||||
// m_iAnimationIndex = 0;
|
||||
// m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
// m_pModelCom->IsRootBone(false);
|
||||
// }
|
||||
// else if (pContents->vFlags.b[1]) {
|
||||
// m_iAnimationIndex = 1;
|
||||
// m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
// m_pModelCom->IsRootBone(false);
|
||||
// }
|
||||
// else if (pContents->vFlags.b[2]) {
|
||||
// m_iAnimationIndex = 2;
|
||||
// m_pModelCom->Set_AnimationIndex(m_iAnimationIndex);
|
||||
// m_pModelCom->IsRootBone(false);
|
||||
// }
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
|
||||
{
|
||||
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX:
|
||||
{
|
||||
|
||||
} break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
_vector CThestralCarriage::Get_WorldPostion()
|
||||
{
|
||||
return (XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_left")) * m_pTransformCom->Get_XMWorldMatrix()).r[3];
|
||||
}
|
||||
|
||||
_matrix CThestralCarriage::Get_SeatMatrix()
|
||||
{
|
||||
return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_left")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
}
|
||||
|
||||
_matrix CThestralCarriage::Get_SocketWorldMatrix(CARRIAGE_SOCKET eSocket)
|
||||
{
|
||||
switch (eSocket)
|
||||
{
|
||||
case CThestralCarriage::CARRIAGE_SOCKET::BACK:
|
||||
return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("backSeat")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
break;
|
||||
case CThestralCarriage::CARRIAGE_SOCKET::BACK_LEFT:
|
||||
return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_back_left")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
break;
|
||||
case CThestralCarriage::CARRIAGE_SOCKET::BACK_RIGHT:
|
||||
return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_back_right")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
break;
|
||||
case CThestralCarriage::CARRIAGE_SOCKET::FRONT:
|
||||
return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("frontSeat")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
break;
|
||||
case CThestralCarriage::CARRIAGE_SOCKET::FRONT_LEFT:
|
||||
return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_left")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
break;
|
||||
case CThestralCarriage::CARRIAGE_SOCKET::FRONT_RIGHT:
|
||||
return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_right")) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
break;
|
||||
default:
|
||||
return XMMatrixIdentity();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CThestralCarriage::Ready_Components()
|
||||
{
|
||||
CTransform::TRANSFORM_DESC Desc = {};
|
||||
@@ -192,7 +317,6 @@ HRESULT CThestralCarriage::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -230,6 +354,9 @@ void CThestralCarriage::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
#ifdef _DEBUG
|
||||
SAFE_RELEASE(m_pRSS);
|
||||
#endif // _DEBUG
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
}
|
||||
@@ -239,6 +366,8 @@ void CThestralCarriage::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
if (GUI::CollapsingHeader("Carriage")) {
|
||||
m_pTransformCom->Describe_Entity();
|
||||
m_pShaderCom->Describe_Entity();
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
GUI::Text("AnimIndex %d", m_pModelCom->Get_AnimIndex());
|
||||
@@ -251,6 +380,7 @@ void CThestralCarriage::Describe_Entity()
|
||||
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
|
||||
GUI::DragFloat3("Pos", Pos3);
|
||||
|
||||
GUI::Checkbox("WireFrame", &m_bRender_WireFrame);
|
||||
|
||||
_float RotR, RotU, RotL;
|
||||
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
|
||||
@@ -264,6 +394,7 @@ void CThestralCarriage::Describe_Entity()
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z, 1.f));
|
||||
}
|
||||
m_pModelCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -92,9 +92,16 @@ void CTransformation::Late_Update(_float fTimeDelta)
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = XMLoadFloat4(&m_vEndPos);
|
||||
if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5)))
|
||||
{
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f);
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,86 +1,160 @@
|
||||
#include "pch.h"
|
||||
#include "TriggerBox.h"
|
||||
#include "Layer.h"
|
||||
#include "Player.h"
|
||||
|
||||
CTriggerBox::CTriggerBox():
|
||||
m_pGameInstance(CGameInstance::GetInstance())
|
||||
CTriggerBox::CTriggerBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CTriggerBox::CTriggerBox(const CTriggerBox& rhs)
|
||||
: CGameObject(rhs)
|
||||
{
|
||||
SAFE_ADDREF(m_pGameInstance);
|
||||
}
|
||||
|
||||
HRESULT CTriggerBox::TryScanArea(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (false == m_bRender) {
|
||||
m_bRender = true;
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
|
||||
}
|
||||
#endif // _DEBUG
|
||||
m_vScanTimer.x += fTimeDelta;
|
||||
if (m_vScanTimer.x > m_vScanTimer.y) {
|
||||
m_vScanTimer.x = m_vScanTimer.y;
|
||||
m_vScanTimer.x = 0.f;
|
||||
return Scan();
|
||||
}
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
HRESULT CTriggerBox::Render()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_Batch->Begin();
|
||||
|
||||
_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
|
||||
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
|
||||
_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0f0f, CMyTools::Saturate(m_vScanTimer.x / m_vScanTimer.y + 0.1f));
|
||||
m_pSubShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true);
|
||||
|
||||
m_Batch->End();
|
||||
m_bRender = false;
|
||||
#endif // _DEBUG
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTriggerBox::Initialize(TRIGGERBOX_DESC* pDesc)
|
||||
{
|
||||
m_fRadius = pDesc->vPosition_Radius.w;
|
||||
m_vPosition = { pDesc->vPosition_Radius.x, pDesc->vPosition_Radius.y, pDesc->vPosition_Radius.z, 1.f };
|
||||
CTransform::TRANSFORM_DESC Desc{};
|
||||
Desc.fRadius = pDesc->vPosition_Radius.w;
|
||||
Desc.fRotationPerSec = 0;
|
||||
Desc.fSpeedPerSec = 0;
|
||||
if (FAILED(__super::Ready_Components(&Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat4(&pDesc->vPosition_Radius), 1.f));
|
||||
|
||||
m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, m_pTransformCom->Get_Radius() * 2.f, 12, false, false));
|
||||
m_Batch = make_unique<PrimitiveBatch<VertexPositionColor>>(m_pContext);
|
||||
|
||||
m_vScanTimer.y += m_pGameInstance->Real_Random_Float(0.f, 0.2f);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTriggerBox::Scan()
|
||||
{
|
||||
PSX::PxSweepBuffer pxBuffer = {};
|
||||
_bool bHit = m_pGameInstance->SphereCast(m_fRadius, XMLoadFloat4(&m_vPosition), XMVectorSet(0.f, 1.f, 0.f, 0.f), 0.1f,
|
||||
PSX::PxHitFlag::ePOSITION, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
|
||||
_float fRadius = m_pTransformCom->Get_Radius();
|
||||
|
||||
PSX::PxSweepHit hitBuffer[32];
|
||||
PSX::PxSweepBuffer pxBuffer(hitBuffer, 32);
|
||||
_bool bHit = m_pGameInstance->SphereCast(fRadius, m_pTransformCom->Get_State(STATE::POSITION), XMVectorSet(0.f, 1.f, 0.f, 0.f), 0.1f,
|
||||
PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
|
||||
|
||||
const PSX::PxSweepHit & hit = pxBuffer.block;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
_uint iHitCount = pxBuffer.getNbAnyHits();
|
||||
HRESULT hr = E_FAIL;
|
||||
if (bHit) {
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PHYSX_USERDATA* pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_DYNAMIC:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::PLAYER:
|
||||
{
|
||||
return S_OK;
|
||||
}break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}break;
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::PLAYER: {
|
||||
return S_OK;
|
||||
} break;
|
||||
default:
|
||||
hr = CheckPlayerHit(pActor);
|
||||
if (FAILED(hr)) {
|
||||
for (_uint i = 0; i < iHitCount; ++i) {
|
||||
PSX::PxSweepHit* pHit = &pxBuffer.touches[i];
|
||||
hr = CheckPlayerHit(pHit->actor);
|
||||
if (SUCCEEDED(hr)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return hr;
|
||||
}
|
||||
|
||||
HRESULT CTriggerBox::CheckPlayerHit(PSX::PxActor* pActor)
|
||||
{
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PHYSX_USERDATA* pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_DYNAMIC:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::PLAYER:
|
||||
{
|
||||
return S_OK;
|
||||
}break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}break;
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::PLAYER: {
|
||||
return S_OK;
|
||||
} break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
} break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return E_FAIL;
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CTriggerBox* CTriggerBox::Create(TRIGGERBOX_DESC* Desc)
|
||||
CTriggerBox* CTriggerBox::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, TRIGGERBOX_DESC* Desc)
|
||||
{
|
||||
CTriggerBox* pInstance = new CTriggerBox();
|
||||
|
||||
if (FAILED(pInstance->Initialize(Desc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
CTriggerBox* pInstance = new CTriggerBox(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize(Desc))) {
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CTriggerBox::Free()
|
||||
{
|
||||
__super::Free();
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
}
|
||||
|
||||
HRESULT CTriggerBox::Bind_ShaderResources()
|
||||
{
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
CGameObject* CTriggerBox::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void CTriggerBox::Describe_Entity()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -86,7 +86,10 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
|
||||
static_cast<CCanvasObject*>(m_pDialogue_Canvas)->Visible(false);
|
||||
static_cast<CGameObject*>(m_pInteraction_Key)->Set_Visible(true);
|
||||
static_cast<CGameObject*>(m_pNPCInteraction)->Set_Visible(true);
|
||||
#ifndef 기무리
|
||||
static_cast<CGameObject*>(m_pBroom_TargetGate)->Set_Visible(false);
|
||||
#endif // 기무리
|
||||
|
||||
break;
|
||||
|
||||
case UI_STATE::SPELL:
|
||||
|
||||
@@ -44,7 +44,7 @@ HRESULT CWand::Initialize(void* pArg)
|
||||
|
||||
void CWand::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
|
||||
@@ -59,7 +59,7 @@ void CWand::Update(_float fTimeDelta)
|
||||
|
||||
void CWand::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
|
||||
_matrix socketMatrix = {};
|
||||
|
||||
socketMatrix = XMLoadFloat4x4(m_pSocketMatrices);
|
||||
|
||||
@@ -29,6 +29,8 @@ class CCamPosition_Target final : public CCamPosition
|
||||
virtual void Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix);
|
||||
virtual void Stop_Stalking();
|
||||
|
||||
_matrix Get_XMWorldMatrix();
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -66,6 +66,8 @@ class CCamera_Cinematic final : public CCamera
|
||||
CCamPosition_Target* m_pLookTargetPart = { nullptr };
|
||||
CCamPosition_Target* m_pFollowTargetPart = { nullptr };
|
||||
|
||||
|
||||
|
||||
_bool m_bLerpTranslation = { false };
|
||||
_float2 m_vLerpTranslationTimer = {};
|
||||
|
||||
@@ -80,6 +82,12 @@ class CCamera_Cinematic final : public CCamera
|
||||
_bool m_bLerpFovY = { false };
|
||||
_float2 m_vFovYLerp = { 60.f, 60.f };
|
||||
_float2 m_vLerpFovYTimer = { };
|
||||
#ifdef _DEBUG
|
||||
unique_ptr<GeometricPrimitive> m_pSubShape = { nullptr };
|
||||
unique_ptr<PrimitiveBatch<VertexPositionColor>> m_Batch;
|
||||
class CModel* m_pModelCom = { nullptr };
|
||||
class CShader* m_pShaderCom = { nullptr };
|
||||
#endif // _DEBUG
|
||||
|
||||
public:
|
||||
static CCamera_Cinematic* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -19,7 +19,7 @@ class CCutSceneInfo final : public CBase
|
||||
|
||||
public:
|
||||
void Update(_float fTimeDelta);
|
||||
void Change_Level();
|
||||
void Load_CutScenes();
|
||||
|
||||
public:
|
||||
void Active_Event(_string& strKey);
|
||||
|
||||
@@ -16,6 +16,7 @@ class CDuelist_Protego final : public CEffect_Container
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual void Set_Visible(_bool bVisible)override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Unit.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CElf final : public CUnit
|
||||
{
|
||||
public:
|
||||
typedef struct tagNpcInitDesc {
|
||||
_float4 vPos;
|
||||
_float4 vRotQ;
|
||||
}ELFDESC;
|
||||
|
||||
|
||||
enum class FLOW_TRIGGER
|
||||
{
|
||||
NONE, // Idle 대기
|
||||
ANIM_END, // 애니메이션 끝나면 Flow++
|
||||
DIALOGUE_END, // 대화 끝나면 Flow++
|
||||
ARRIVE_POS, // 위치 도착하면 Flow++
|
||||
END
|
||||
};
|
||||
|
||||
struct DialogueAnim
|
||||
{
|
||||
_uint AnimIndex = {};
|
||||
_bool Loop = {};
|
||||
|
||||
_int Trigger = {};
|
||||
};
|
||||
|
||||
enum class ELF_STATE
|
||||
{
|
||||
IDLE,
|
||||
MOVE,
|
||||
OBSERVE,
|
||||
END
|
||||
};
|
||||
|
||||
private:
|
||||
CElf(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CElf(const CElf& Prototype);
|
||||
virtual ~CElf() = 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 HRESULT Render_Shadow(SHADOW eType) override;
|
||||
virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override;
|
||||
|
||||
virtual _wstring Get_Name() override;
|
||||
virtual _wstring Get_NpcName() override;
|
||||
void Set_NpcState(_int iState) { m_eNpcState = iState; }
|
||||
void Set_Target(CUnit& pTarget, CTransform& pTransform);
|
||||
protected:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
class CCallBack_NonPlayable_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
class CCallBack_NonPlayable_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||
CUnit* m_pPlayerAllyUnit = { nullptr };
|
||||
|
||||
CUnit* m_pTarget = { nullptr };
|
||||
_float4 m_vTargetPos = { };
|
||||
_float3 m_vToTargetDir = { };
|
||||
_float m_fTargetDistance = { FLT_MAX };
|
||||
|
||||
CNPCStat* m_pNpcStat = { nullptr };
|
||||
_int m_iEntered = { 0 };
|
||||
_float2 m_vEnteringTimer = { 0.f, 1.f };
|
||||
_float m_fEncounterDistance = { 8.f };
|
||||
|
||||
|
||||
_bool m_bInteract = { false };
|
||||
_bool m_bPreviousInteract = { false };
|
||||
_float m_fInteractTime{};
|
||||
_int m_eNpcState = ENUM_CLASS(ELF_STATE::END);
|
||||
|
||||
unordered_map<_int, _float4> m_Points;
|
||||
|
||||
|
||||
unordered_map<_int, DialogueAnim> m_Anims;
|
||||
|
||||
_int m_iCurrentFlow = 0;
|
||||
|
||||
DialogueAnim m_pairAnimInfo;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components(void* pArg);
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
HRESULT Bind_ShaderParameters(_uint iMeshOrder);
|
||||
void MoveTo(_float fTimeDelta);
|
||||
void Set_Anim();
|
||||
virtual void Load_AnimXML(const string& path) override;
|
||||
HRESULT Load_ElfPos(const _char* pFilePath);
|
||||
|
||||
|
||||
public:
|
||||
static CElf* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr);
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
virtual void Describe_Entity() override;
|
||||
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -19,6 +19,7 @@ class CGoblin_Protego final : public CEffect_Container
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual void Set_Visible(_bool bVisible)override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Monster.h"
|
||||
#include "Player_ENUM.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
@@ -55,6 +54,7 @@ class CHuman_Duelist final : public CMonster
|
||||
HRESULT Ready_Parts();
|
||||
HRESULT Bind_ShaderResources();
|
||||
HRESULT Bind_ShaderParameters(_uint iMeshOrder);
|
||||
void Check_BattleLose();
|
||||
|
||||
public:
|
||||
static CHuman_Duelist* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
@@ -78,6 +78,8 @@ class CHuman_Duelist final : public CMonster
|
||||
_float m_fHitTimer = {};
|
||||
_bool m_bHitJap = {};
|
||||
_bool m_bBattle = {};
|
||||
_bool m_bCameraShake = { };
|
||||
_float4 m_OriginPos = { };
|
||||
|
||||
|
||||
_float m_fSkillCoolTime[ENUM_CLASS(SKILL::END)] = {};
|
||||
|
||||
@@ -24,6 +24,8 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
public:
|
||||
HRESULT Initialize_Information(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
||||
HRESULT Late_Initialize(); // GamePlay Initialize 할 때
|
||||
|
||||
void Load_CutScenes();
|
||||
void Release_Information();
|
||||
LEVEL Get_RestartLevel();
|
||||
_bool Get_SearchLockonFloag() { return m_bSearchLockOnTarget; }
|
||||
@@ -62,6 +64,7 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
HRESULT Load_PointLights(const _char* pFileName, const _wchar* pLayerTag);
|
||||
HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
|
||||
HRESULT Load_DADA_INT();
|
||||
HRESULT Load_Npc();
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
|
||||
@@ -22,7 +22,7 @@ class CLevel_Field final : public CLevel
|
||||
_bool m_isDay = { true };
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
class CLight_Main* m_pLight = { nullptr };
|
||||
_bool m_bLevel = { false };
|
||||
_bool m_bCurrentLevel = { false };
|
||||
|
||||
@@ -42,6 +42,7 @@ class CLevel_Field final : public CLevel
|
||||
HRESULT Ready_Layer_Effect(const _wstring& strLayerTag);
|
||||
HRESULT Ready_Layer_Monster();
|
||||
HRESULT Reday_Layer_EffectPool();
|
||||
void ResetLevel_Environment();
|
||||
|
||||
public:
|
||||
static pair<CLevel*, function<void()>> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
|
||||
|
||||
@@ -15,10 +15,10 @@ class CLevel_GamePlay final : public CLevel
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
|
||||
private:
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
|
||||
class CLight_Main* m_pLight = { nullptr };
|
||||
|
||||
_bool m_isDay = { true };
|
||||
|
||||
@@ -49,6 +49,7 @@ class CLevel_GamePlay final : public CLevel
|
||||
HRESULT Reday_Layer_EffectPool();
|
||||
HRESULT Ready_Layer_Duelist();
|
||||
HRESULT Ready_Layer_Npc();
|
||||
void ResetLevel_Environment();
|
||||
|
||||
HRESULT Bind_InstanceProp(map<_string, class CLand*>* Lands, class CInstancedProp* pInstnace, const _char* LandTag);
|
||||
public:
|
||||
|
||||
@@ -29,6 +29,7 @@ class CLevel_Loading final : public CLevel
|
||||
virtual HRESULT Initialize(LEVEL eNextLevelID);
|
||||
HRESULT Initialize() override;
|
||||
HRESULT Ready_Layer_BackGround(const _wstring& strLayerTag);
|
||||
void ResetLevel_Environment() {};
|
||||
|
||||
public:
|
||||
static CLevel_Loading* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, LEVEL eNextLevelID);
|
||||
|
||||
@@ -21,6 +21,8 @@ class CLevel_Logo final : public CLevel
|
||||
private:
|
||||
virtual HRESULT Initialize() override;
|
||||
HRESULT Ready_Layer_UI(const _wstring& strLayerTag);
|
||||
void ResetLevel_Environment() {};
|
||||
|
||||
|
||||
|
||||
public:
|
||||
|
||||
@@ -21,6 +21,7 @@ class CLevel_Restart final : public CLevel
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize() override;
|
||||
void ResetLevel_Environment() {};
|
||||
|
||||
private:
|
||||
LEVEL m_eNextLevel = {};
|
||||
|
||||
@@ -32,6 +32,7 @@ class CMapInfo final : public CBase
|
||||
HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath);
|
||||
|
||||
HRESULT Load_DADA_INT();
|
||||
HRESULT Load_Npc();
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
@@ -2,13 +2,25 @@
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Unit.h"
|
||||
#include "Player_ENUM.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CPlayer final : public CUnit
|
||||
{
|
||||
public:
|
||||
enum PLAYER_MESH_ORDER {
|
||||
CLOTH_SIM
|
||||
, HAIR_MAIN
|
||||
, CLOTH
|
||||
, EYELASH
|
||||
, TEETH
|
||||
, BODY
|
||||
, HEAD_EYE_OCC
|
||||
, HEAD_EYES
|
||||
, FLOWERS
|
||||
, END
|
||||
};
|
||||
|
||||
typedef struct tagPlayerInitDesc {
|
||||
_float4 vPos;
|
||||
_float4 vRotQ;
|
||||
@@ -45,6 +57,8 @@ class CPlayer final : public CUnit
|
||||
HRESULT Update_RaycastElements();
|
||||
void Set_Battle(_bool bBattle) { m_bDuel_ZOnlyMove = bBattle; }
|
||||
void Set_Interaction(_bool bInteraction);
|
||||
void ExitBattle();
|
||||
void Set_OriginPos(_vector vPos) { XMStoreFloat4(&m_OriginPos, vPos); }
|
||||
#ifdef _DEBUG
|
||||
void Render_CameraCoordinateSystem();
|
||||
#endif // _DEBUG
|
||||
@@ -90,7 +104,7 @@ class CPlayer final : public CUnit
|
||||
class CTransform* m_pBroomTransform = { nullptr };
|
||||
class CBroom* m_pBroom = { nullptr };
|
||||
CStat* m_pStat = { nullptr };
|
||||
class CPlayerRobe* m_pRobePart = { nullptr };
|
||||
//class CPlayerRobe* m_pRobePart = { nullptr };
|
||||
|
||||
|
||||
class CBroomRaceManager* m_pBroomRaceManager = { nullptr };
|
||||
@@ -143,6 +157,7 @@ class CPlayer final : public CUnit
|
||||
function<void()> m_InputAction = nullptr;
|
||||
_int m_eUIState = { };
|
||||
|
||||
const _float4x4* m_pCinematicSocketMatrix = { nullptr };
|
||||
_float3 m_OffsetPos = {};
|
||||
_float m_fAmount = { 1.f };
|
||||
_float m_fInputTime = {};
|
||||
@@ -177,6 +192,8 @@ class CPlayer final : public CUnit
|
||||
_float m_fDegree = {};
|
||||
_bool m_bGuarding = {};
|
||||
_float m_fParryTimer = {};
|
||||
_bool m_bStartSpellAnim = {};
|
||||
_float4 m_OriginPos = {};
|
||||
|
||||
|
||||
/* 무적 불 변수*/
|
||||
|
||||
@@ -1,194 +0,0 @@
|
||||
#pragma once
|
||||
#include "Client_Define.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
enum class PLAYER_MESH_ORDER {
|
||||
HEAD_EYE_OCC,
|
||||
HEAD_FACE,
|
||||
HEAD_TEETH,
|
||||
HEAD_EYELASH,
|
||||
HEAD_EYES,
|
||||
BODY_ARMS,
|
||||
HAIR_MAIN,
|
||||
HAIR_MAIN_CLOTH,
|
||||
LOWER,
|
||||
SHOES,
|
||||
UPPER,
|
||||
HAIR_SUB,
|
||||
HAIR_SUB_CLOTH,
|
||||
ROBE_SKIRT,
|
||||
ROBE_FUR,
|
||||
ROBE_CLOTH,
|
||||
END
|
||||
};
|
||||
|
||||
static const _char* PLAYER_JOINT_BONE_NAMES[16] = {
|
||||
"RightUpLeg_Cloth"
|
||||
, "RightLeg_Cloth"
|
||||
, "RightDownLeg_Cloth"
|
||||
|
||||
, "LeftUpLeg_Cloth"
|
||||
, "LeftLeg_Cloth"
|
||||
, "LeftDownLeg_Cloth"
|
||||
|
||||
, "TailUp_Cloth"
|
||||
, "Tail_Cloth"
|
||||
, "TailLeftDown_Cloth"
|
||||
, "TailRightDown_Cloth"
|
||||
|
||||
, "RightSideUpLeg_Cloth"
|
||||
, "RightSideLeg_Cloth"
|
||||
, "RightDownSideLeg_Cloth"
|
||||
|
||||
, "LeftSideUpLeg_Cloth"
|
||||
, "LeftSideLeg_Cloth"
|
||||
, "LeftDownSideLeg_Cloth"
|
||||
};
|
||||
|
||||
enum class PLAYER_JOINT_BONE_ORDER {
|
||||
RIGHTUP
|
||||
, RIGHT
|
||||
, RIGHTDOWN
|
||||
|
||||
, LEFTUP
|
||||
, LEFT
|
||||
, LEFTDOWN
|
||||
|
||||
, TAILUP
|
||||
, TAIL
|
||||
, TAILLEFTDOWN
|
||||
, TAILRIGHTDOWN
|
||||
|
||||
, RIGHTSIDEUP
|
||||
, RIGHTSIDE
|
||||
, RIGHTDOWNSIDE
|
||||
|
||||
, LEFTSIDEUP
|
||||
, LEFTSIDE
|
||||
, LEFTDOWNSIDE
|
||||
|
||||
, END
|
||||
};
|
||||
|
||||
enum class PLAYER_JOINT_HORIZONTAL_ORDER {
|
||||
|
||||
#pragma region UP_HORIZONTAL
|
||||
UP_R_RS_START
|
||||
, UP_R_RS_END
|
||||
, UP_RS_T_START
|
||||
, UP_RS_T_END
|
||||
, UP_T_LS_START
|
||||
, UP_T_LS_END
|
||||
, UP_LS_L_START
|
||||
, UP_LS_L_END
|
||||
#pragma endregion
|
||||
#pragma region MIDDLE_HORIZONTAL
|
||||
, MIDDLE_R_RS_START
|
||||
, MIDDLE_R_RS_END
|
||||
, MIDDLE_RS_T_START
|
||||
, MIDDLE_RS_T_END
|
||||
, MIDDLE_T_LS_START
|
||||
, MIDDLE_T_LS_END
|
||||
, MIDDLE_LS_L_START
|
||||
, MIDDLE_LS_L_END
|
||||
#pragma endregion
|
||||
#pragma region DOWN_HORIZONTAL
|
||||
, DOWN_R_RS_START
|
||||
, DOWN_R_RS_END
|
||||
, DOWN_RS_T_START
|
||||
, DOWN_RS_T_END
|
||||
, DOWN_T_LS_START
|
||||
, DOWN_T_LS_END
|
||||
, DOWN_LS_L_START
|
||||
, DOWN_LS_L_END
|
||||
#pragma endregion
|
||||
, END
|
||||
};
|
||||
enum class PLAYER_JOINT_ORDER {
|
||||
#pragma region ORIGIN_TO_UP
|
||||
ORIGIN_TO_RUP_START
|
||||
, ORIGIN_TO_RUP_END
|
||||
|
||||
, ORIGIN_TO_TUP_START
|
||||
, ORIGIN_TO_TUP_END
|
||||
|
||||
, ORIGIN_TO_LUP_START
|
||||
, ORIGIN_TO_LUP_END
|
||||
|
||||
, ORIGIN_TO_RSIDEUP_START
|
||||
, ORIGIN_TO_RSIDEUP_END
|
||||
|
||||
, ORIGIN_TO_LSIDEUP_START
|
||||
, ORIGIN_TO_LSIDEUP_END
|
||||
#pragma endregion
|
||||
#pragma region UP_TO_MIDDLE
|
||||
, RUP_TO_RMIDDLE_START
|
||||
, RUP_TO_RMIDDLE_END
|
||||
|
||||
, TUP_TO_TMIDDLE_START
|
||||
, TUP_TO_TMIDDLE_END
|
||||
|
||||
, LUP_TO_LMIDDLE_START
|
||||
, LUP_TO_LMIDDLE_END
|
||||
|
||||
, RSIDEUP_TO_RSIDE_START
|
||||
, RSIDEUP_TO_RSIDE_END
|
||||
|
||||
, LSIDEUP_TO_LSIDE_START
|
||||
, LSIDEUP_TO_LSIDE_END
|
||||
#pragma endregion
|
||||
#pragma region MIDDLE_TO_BOTTOM
|
||||
, RMIDDLE_TO_RR_START
|
||||
, RMIDDLE_TO_RR_END
|
||||
|
||||
, TMIDDLE_TO_TR_START
|
||||
, TMIDDLE_TO_TR_END
|
||||
|
||||
, TMIDDLE_TO_TL_START
|
||||
, TMIDDLE_TO_TL_END
|
||||
|
||||
, LMIDDLE_TO_LL_START
|
||||
, LMIDDLE_TO_LL_END
|
||||
|
||||
, RSIDE_TO_R_START
|
||||
, RSIDE_TO_R_END
|
||||
|
||||
, LSIDE_TO_L_START
|
||||
, LSIDE_TO_L_END
|
||||
#pragma endregion
|
||||
, END
|
||||
};
|
||||
|
||||
enum class PLAYER_ROUTE_HORIZONTAL_ORDER {
|
||||
da,
|
||||
END
|
||||
};
|
||||
|
||||
enum class PLAYER_ROUTE_VERTICAL_ORDER {
|
||||
ORIGIN_TO_RUP
|
||||
, ORIGIN_TO_TUP
|
||||
, ORIGIN_TO_LUP
|
||||
, ORIGIN_TO_RSIDEUP
|
||||
, ORIGIN_TO_LSIDEUP
|
||||
|
||||
, RUP_TO_RMIDDLE
|
||||
, TUP_TO_TMIDDLE
|
||||
, LUP_TO_LMIDDLE
|
||||
|
||||
, RSIDEUP_TO_RSIDE
|
||||
, LSIDEUP_TO_LSIDE
|
||||
|
||||
, RMIDDLE_TO_RR
|
||||
, TMIDDLE_TO_TR
|
||||
, TMIDDLE_TO_TL
|
||||
, LMIDDLE_TO_LL
|
||||
|
||||
, RSIDE_TO_R
|
||||
, LSIDE_TO_L
|
||||
|
||||
, END
|
||||
};
|
||||
|
||||
|
||||
NS_END
|
||||
@@ -19,6 +19,7 @@ class CProtego final : public CEffect_Container
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
virtual void Set_Visible(_bool bVisible)override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
@@ -71,6 +71,7 @@ class CRandomNpc final : public CUnit
|
||||
_bool m_bBattleObserve_Npc = {};
|
||||
_bool m_bBattle = {};
|
||||
_int m_eNpcState = ENUM_CLASS(NPC_STATE::END);
|
||||
_bool m_bBroomRacer = {};
|
||||
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Unit.h"
|
||||
#include "Monster.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CReparoObject final : public CUnit
|
||||
class CReparoObject final : public CMonster
|
||||
{
|
||||
private:
|
||||
CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
@@ -20,12 +20,10 @@ class CReparoObject final : public CUnit
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
HRESULT Render_OutLine();
|
||||
|
||||
public:
|
||||
static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Unit.h"
|
||||
#include "TimeSocket.h"
|
||||
NS_BEGIN(Engine)
|
||||
class CModel;
|
||||
class CShader;
|
||||
@@ -9,8 +10,23 @@ NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CThestralCarriage final : public CGameObject
|
||||
{
|
||||
class CThestralCarriage final : public CUnit
|
||||
{
|
||||
public:
|
||||
enum class CARRIAGE_MESH_ORDER {
|
||||
CARRIAGE
|
||||
, WINDOWS
|
||||
};
|
||||
|
||||
enum class CARRIAGE_SOCKET {
|
||||
BACK,
|
||||
BACK_LEFT,
|
||||
BACK_RIGHT,
|
||||
FRONT,
|
||||
FRONT_LEFT,
|
||||
FRONT_RIGHT,
|
||||
END
|
||||
};
|
||||
private:
|
||||
CThestralCarriage(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CThestralCarriage(const CThestralCarriage& Prototype);
|
||||
@@ -23,11 +39,19 @@ class CThestralCarriage final : public CGameObject
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual void Trigger(CTimeSocket& Socket)override;
|
||||
virtual _vector Get_WorldPostion()override;
|
||||
_matrix Get_SeatMatrix();
|
||||
_matrix Get_SocketWorldMatrix(CARRIAGE_SOCKET eSocket);
|
||||
|
||||
private:
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
_uint m_iAnimationIndex = 0;
|
||||
#ifdef _DEBUG
|
||||
_bool m_bRender_WireFrame = { false };
|
||||
ID3D11RasterizerState* m_pRSS = { nullptr };
|
||||
#endif // _DEBUG
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
@@ -9,32 +9,42 @@ NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CTriggerBox final : public CBase
|
||||
class CTriggerBox final : public CGameObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagTriggerDesc {
|
||||
_float4 vPosition_Radius = { 0.f, 0.f, 0.f, 1.f };
|
||||
}TRIGGERBOX_DESC;
|
||||
private:
|
||||
CTriggerBox();
|
||||
CTriggerBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CTriggerBox(const CTriggerBox& rhs);
|
||||
virtual ~CTriggerBox() = default;
|
||||
|
||||
public:
|
||||
HRESULT TryScanArea(_float fTimeDelta);
|
||||
|
||||
|
||||
virtual HRESULT Render()override;
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
void Describe_Entity() override;
|
||||
private:
|
||||
HRESULT Initialize(TRIGGERBOX_DESC*);
|
||||
HRESULT Scan();
|
||||
HRESULT CheckPlayerHit(PSX::PxActor* pActor);
|
||||
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
_float4 m_vPosition = { };
|
||||
_float m_fRadius = {};
|
||||
_float2 m_vScanTimer = { 0.f, 0.5f };
|
||||
_float2 m_vScanTimer = { 0.f, 0.8f };
|
||||
#ifdef _DEBUG
|
||||
_bool m_bRender = false;
|
||||
unique_ptr<GeometricPrimitive> m_pSubShape = { nullptr };
|
||||
unique_ptr<PrimitiveBatch<VertexPositionColor>> m_Batch;
|
||||
#endif // _DEBUG
|
||||
|
||||
public:
|
||||
static CTriggerBox* Create(TRIGGERBOX_DESC* Desc);
|
||||
static CTriggerBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, TRIGGERBOX_DESC* Desc);
|
||||
virtual void Free() override;
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
<Dialogue id="ELF_ANIM">
|
||||
|
||||
<Name Flow="0" Trigger="DIALOGUE_END">
|
||||
<Anim state="BROWSE_START" index="51" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="1" Trigger="DIALOGUE_END">
|
||||
<Anim state="BROWSE_END" index="50" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="2" Trigger="ARRIVE_POS">
|
||||
<Anim state="SPRINT" index="0" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="3" Trigger="DIALOGUE_END">
|
||||
<Anim state="CROUCH" index="18" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="4" Trigger="ARRIVE_POS">
|
||||
<Anim state="SPRINT" index="0" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="5" Trigger="ARRIVE_POS">
|
||||
<Anim state="SPRINT" index="0" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="6" Trigger="ARRIVE_POS">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="7" Trigger="DIALOGUE_END">
|
||||
<Anim state="HELLO" index="19" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="8" Trigger="DIALOGUE_END">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="9" Trigger="ANIM_END">
|
||||
<Anim state="FINGERSNAP" index="16" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="10" Trigger="DIALOGUE_END">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="11" Trigger="ANIM_END">
|
||||
<Anim state="CROUCHALERT" index="17" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="12" Trigger="DIALOGUE_END">
|
||||
<Anim state="IDLE" index="1" loop="true"/>
|
||||
</Name>
|
||||
|
||||
</Dialogue>
|
||||
@@ -58,11 +58,11 @@
|
||||
<Anim state="SKILL2" index="992" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK1" index="985" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK2" index="986" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK3" index="1011" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK4" index="1012" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK5" index="1013" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK6" index="1015" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK7" index="1016" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK3" index="1009" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK4" index="1010" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK5" index="1011" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK6" index="1013" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK7" index="1014" loop="false"/>
|
||||
|
||||
<Anim state="SHIELD_BLOCK_90_L1" index="964" loop="false"/>
|
||||
<Anim state="SHIELD_BLOCK_90_L2" index="965" loop="false"/>
|
||||
@@ -121,27 +121,27 @@
|
||||
<Anim state="PARRY6" index="938" loop="false"/>
|
||||
|
||||
<!-- HIT / FLINCH -->
|
||||
<Anim state="HIT_BWD" index="1213" loop="false"/>
|
||||
<Anim state="HIT_L" index="1216" loop="false"/>
|
||||
<Anim state="HIT_R" index="1217" loop="false"/>
|
||||
<Anim state="HIT_FWD" index="1218" loop="false"/>
|
||||
<Anim state="HIT_LEVIOSO" index="1114" loop="true"/>
|
||||
<Anim state="LEVIOSO_LAND" index="1115" loop="false"/>
|
||||
<Anim state="HIT_BWD" index="1211" loop="false"/>
|
||||
<Anim state="HIT_L" index="1214" loop="false"/>
|
||||
<Anim state="HIT_R" index="1215" loop="false"/>
|
||||
<Anim state="HIT_FWD" index="1216" loop="false"/>
|
||||
<Anim state="HIT_LEVIOSO" index="1112" loop="true"/>
|
||||
<Anim state="LEVIOSO_LAND" index="1113" loop="false"/>
|
||||
|
||||
<Anim state="FLINCH_BWD" index="1076" loop="false"/>
|
||||
<Anim state="FLINCH_FWD" index="1077" loop="false"/>
|
||||
<Anim state="FLINCH_LEFT" index="1078" loop="false"/>
|
||||
<Anim state="FLINCH_RIGHT" index="1079" loop="false"/>
|
||||
<Anim state="FLINCH_BWD" index="1074" loop="false"/>
|
||||
<Anim state="FLINCH_FWD" index="1075" loop="false"/>
|
||||
<Anim state="FLINCH_LEFT" index="1076" loop="false"/>
|
||||
<Anim state="FLINCH_RIGHT" index="1077" loop="false"/>
|
||||
|
||||
<!-- KNOCKDOWN -->
|
||||
<Anim state="KNOCKDOWN_BWD" index="1087" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_FWD" index="1089" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_BWD_SPLT" index="1091" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_FWD_SPLT" index="1090" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_BWD" index="1086" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_FWD" index="1087" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_BWD_SPLT" index="1089" loop="false"/>
|
||||
<Anim state="KNOCKDOWN_FWD_SPLT" index="1088" loop="false"/>
|
||||
|
||||
<!-- GETUP -->
|
||||
<Anim state="GETUP_BWD" index="1095" loop="false"/>
|
||||
<Anim state="GETUP_FWD" index="1100" loop="false"/>
|
||||
<Anim state="GETUP_BWD" index="1093" loop="false"/>
|
||||
<Anim state="GETUP_FWD" index="1098" loop="false"/>
|
||||
|
||||
<!-- BROOM -->
|
||||
<Anim state="BROOM_IDLE" index="711" loop="true"/>
|
||||
@@ -180,15 +180,13 @@
|
||||
<Anim state="OPEN_DOOR_R" index="1005" loop="false"/>
|
||||
|
||||
<!-- SPELL LEARNING -->
|
||||
<Anim state="SPELL_LEARNING_FAIL" index="1292" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_LOOP" index="1293" loop="true"/>
|
||||
<Anim state="SPELL_LEARNING_START" index="1294" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_SUCCESS" index="1295" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_WANDWAVE" index="1296" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_FAIL" index="1290" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_LOOP" index="1291" loop="true"/>
|
||||
<Anim state="SPELL_LEARNING_START" index="1292" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_SUCCESS" index="1293" loop="false"/>
|
||||
<Anim state="SPELL_LEARNING_WANDWAVE" index="1294" loop="false"/>
|
||||
|
||||
<!-- CUT SCENE -->
|
||||
<Anim state="CUTSCENE_TROLLINTRO" index="1297" loop="false"/>
|
||||
<Anim state="CUTSCENE_TROLLINTRO" index="1295" loop="false"/>
|
||||
<Anim state="CUTSCENE_OPENINGINTRO1" index="1006" loop="false"/>
|
||||
<Anim state="CUTSCENE_OPENINGINTRO2" index="1007" loop="true"/>
|
||||
<Anim state="CUTSCENE_OPENINGINTRO3" index="1008" loop="false"/>
|
||||
</Animations>
|
||||
|
||||
@@ -0,0 +1,743 @@
|
||||
<CarriageIntro fDuration = "10">
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "DONT_LOOK_AT" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="DONT_LOOK_AT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "DONT_FOLLOW" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="DONT_FOLLOW"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "Set_Volumetric" eTypeParam = "NOT_USE" pTarget = "SYSTEM" eTypeFunc="SET_VOLUMETRIC"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.939" Y="0.0347" Z="-0.6125" W="0.773"/>
|
||||
<Trans X="0.00694" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">true</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "TELEPORTATION" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TELEPORTATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.049" Y="0.905" Z="-0.107" W="-0.410"/>
|
||||
<Trans X="-469.002" Y="203.421" Z="-428.643"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "On_Camera" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="BIND_CAMERA"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "Layer_Camera" TypeID = "CAMERA_CINEMATIC"/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "TELEPORTATION" eTypeParam = "TRANSFORM" pTarget = "ACTOR_PLAYER" eTypeFunc="TELEPORTATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.150" Y="0.799" Z="-0.223" W="0.537"/>
|
||||
<Trans X="-480.036" Y="200.166" Z="-436.154"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "TRANSLATION_CARR" eTypeParam = "TRANSFORM" pTarget = "ACTOR_CARRIAGE" eTypeFunc="TRANSLATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.150" Y="0.799" Z="-0.223" W="0.537"/>
|
||||
<Trans X="-480.036" Y="200.166" Z="-436.154"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "SET_FSMSTATE" eTypeParam = "NOT_USE" pTarget = "ACTOR_PLAYER" eTypeFunc="SET_FSMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">true</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "LOOK_PLAYER" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="LOOK_AT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "Layer__Player" TypeID = "ACTOR_PLAYER"/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">true</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag ="head"/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "ROT_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.019" Y="0.925" Z="-0.047" W="-0.376"/>
|
||||
<Trans X="-477.290" Y="201.312" Z="-434.658"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="2" Y="0" Z="0" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "TRANSLATION_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.019" Y="0.925" Z="-0.047" W="-0.376"/>
|
||||
<Trans X="-477.290" Y="201.312" Z="-434.658"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="2" Y="0" Z="0" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "ZOOM_IN_LERP" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ZOOM_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="60" Y="30" Z="2" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "2">
|
||||
<Info strEventName = "ROT_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.026" Y="-0.578" Z="0.018" W="0.815"/>
|
||||
<Trans X="-476.878" Y="201.271" Z="-436.400"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="2" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "2">
|
||||
<Info strEventName = "ROT_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.026" Y="-0.578" Z="0.018" W="0.815"/>
|
||||
<Trans X="-476.878" Y="201.271" Z="-436.400"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="2" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "4">
|
||||
<Info strEventName = "ROT_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.122" Y="-0.667" Z="0.112" W="0.727"/>
|
||||
<Trans X="-476.594" Y="201.560" Z="-436.169"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "4">
|
||||
<Info strEventName = "ROT_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.122" Y="-0.667" Z="0.112" W="0.727"/>
|
||||
<Trans X="-476.594" Y="201.560" Z="-436.169"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "10">
|
||||
<Info strEventName = "RESET_ENVIRONMENT" eTypeParam = "NOT_USE" pTarget = "SYSTEM" eTypeFunc="RESET_ENVIRONMENT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "10" >
|
||||
<Info strEventName = "SET_FSMSTATE" eTypeParam = "NOT_USE" pTarget = "ACTOR_CARRIAGE" eTypeFunc="SET_FSMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">true</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "10" >
|
||||
<Info strEventName = "SET_FSMSTATE" eTypeParam = "NOT_USE" pTarget = "ACTOR_PLAYER" eTypeFunc="SET_FSMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">true</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "10" >
|
||||
<Info strEventName = "Off_Camera" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="END_CINEMATIC"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "Layer_Camera" TypeID = "CAMERA_SHOULDER"/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Trigger X="11.601" Y="5.321" Z="28.620" W="0"/>
|
||||
</CarriageIntro>
|
||||
@@ -1,4 +1,152 @@
|
||||
<RanrokIntro fDuration = "19">
|
||||
<RanrokIntro fDuration = "25">
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "DONT_LOOK_AT" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="DONT_LOOK_AT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "TELEPORTATION" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TELEPORTATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.466" Y="0.036" Z="-0.019" W="0.884"/>
|
||||
<Trans X="20.319" Y="42.957" Z="13.420"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "Translation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.466" Y="0.036" Z="-0.019" W="0.884"/>
|
||||
<Trans X="20.319" Y="42.957" Z="13.420"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "Rotation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.466" Y="0.036" Z="-0.019" W="0.884"/>
|
||||
<Trans X="20.319" Y="42.957" Z="13.420"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "On_Camera" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="BIND_CAMERA"/>
|
||||
<Param_0>
|
||||
@@ -37,12 +185,12 @@
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "Translation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION"/>
|
||||
<Info strEventName = "Translation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.096" Y="0.216" Z="0.021" W="0.972"/>
|
||||
<Trans X="11.494" Y="7.807" Z="27.081"/>
|
||||
<RotQ X="0.292" Y="0.202" Z="-0.063" W="0.933"/>
|
||||
<Trans X="17.741" Y="15.246" Z="29.310"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
@@ -67,19 +215,19 @@
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "Rotation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION"/>
|
||||
<Info strEventName = "Rotation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.096" Y="0.216" Z="0.021" W="0.972"/>
|
||||
<Trans X="11.494" Y="7.807" Z="27.081"/>
|
||||
<RotQ X="0.292" Y="0.202" Z="-0.063" W="0.933"/>
|
||||
<Trans X="17.741" Y="15.246" Z="29.310"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
@@ -104,16 +252,164 @@
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Socket fStartPosition = "1">
|
||||
<Info strEventName = "Translation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.135" Y="0.663" Z="-0.124" W="0.725"/>
|
||||
<Trans X="12.504" Y="12.776" Z="36.804"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="2" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "1">
|
||||
<Info strEventName = "Rotation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.135" Y="0.663" Z="-0.124" W="0.725"/>
|
||||
<Trans X="12.504" Y="12.776" Z="36.804"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="2" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "3.5">
|
||||
<Info strEventName = "Translation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.092" Y="0.217" Z="0.021" W="0.972"/>
|
||||
<Trans X="10.106" Y="7.390" Z="24.742"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="3" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "3.5">
|
||||
<Info strEventName = "Rotation" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.092" Y="0.217" Z="0.021" W="0.972"/>
|
||||
<Trans X="10.106" Y="7.390" Z="24.742"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="3" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "10">
|
||||
<Info strEventName = "LOOK_RANROK" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="LOOK_AT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "Layer_Monster" TypeID = "Ranrok"/>
|
||||
<OtherTarget Layer = "Layer_Monster" TypeID = "ACTOR_RANROK"/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
@@ -147,7 +443,7 @@
|
||||
<string tag ="chest_Main"/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "1" >
|
||||
<Socket fStartPosition = "11" >
|
||||
<Info strEventName = "ZOOM_IN_LERP" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ZOOM_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -184,7 +480,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "2" >
|
||||
<Socket fStartPosition = "12" >
|
||||
<Info strEventName = "ZOOM_OUT_LERP" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ZOOM_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -221,7 +517,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "2" >
|
||||
<Socket fStartPosition = "12" >
|
||||
<Info strEventName = "ZOOM_OUT_TRANS_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -258,7 +554,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "2" >
|
||||
<Socket fStartPosition = "12" >
|
||||
<Info strEventName = "ZOOM_OUT_ROT_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -295,7 +591,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "3" >
|
||||
<Socket fStartPosition = "13" >
|
||||
<Info strEventName = "Ranrok_FEAR_0" eTypeParam = "NOT_USE" pTarget = "ACTOR_RANROK" eTypeFunc="SET_FSMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -332,7 +628,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "5" >
|
||||
<Socket fStartPosition = "15" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_START" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -369,7 +665,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "5" >
|
||||
<Socket fStartPosition = "15" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_START" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -406,7 +702,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "5" >
|
||||
<Socket fStartPosition = "15" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -443,7 +739,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "5" >
|
||||
<Socket fStartPosition = "15" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -480,7 +776,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "6" >
|
||||
<Socket fStartPosition = "16" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ROTATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -517,7 +813,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "6" >
|
||||
<Socket fStartPosition = "16" >
|
||||
<Info strEventName = "Ranrok_ROTATION_ARM_LERP" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TRANSLATION_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -554,7 +850,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "11" >
|
||||
<Socket fStartPosition = "21" >
|
||||
<Info strEventName = "Ranrok_TUCK_0" eTypeParam = "NOT_USE" pTarget = "ACTOR_RANROK" eTypeFunc="SET_FSMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -591,7 +887,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "14" >
|
||||
<Socket fStartPosition = "24" >
|
||||
<Info strEventName = "Ready_PLAYERPos" eTypeParam = "TRANSFORM" pTarget = "ACTOR_PLAYER" eTypeFunc="TRANSLATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -628,7 +924,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "14" >
|
||||
<Socket fStartPosition = "24" >
|
||||
<Info strEventName = "SET_PITCHLIMIT" eTypeParam = "NOT_USE" pTarget = "CAMERA_SHOULDER" eTypeFunc="SET_PITCHLIMIT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -665,7 +961,7 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "14" >
|
||||
<Socket fStartPosition = "24" >
|
||||
<Info strEventName = "Off_Camera" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="END_CINEMATIC"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "Layer_Camera" TypeID = "CAMERA_SHOULDER"/>
|
||||
@@ -702,5 +998,5 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Trigger X="11.601" Y="5.321" Z="28.620" W="3.f"/>
|
||||
<Trigger X="11.601" Y="5.321" Z="28.620" W="3.0"/>
|
||||
</RanrokIntro>
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
<ElfPosInfo>
|
||||
<ElfPosData>
|
||||
|
||||
<Name Flow="0">
|
||||
<Position>
|
||||
<Pos x="-84.20" y="-30.98" z="-60.13"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="1">
|
||||
<Position>
|
||||
<Pos x="-84.20" y="-30.98" z="-60.13"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="2">
|
||||
<Position>
|
||||
<Pos x="-52.44" y="-28.42" z="-55.25"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="3">
|
||||
<Position>
|
||||
<Pos x="-52.44" y="-28.42" z="-55.25"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="4">
|
||||
<Position>
|
||||
<Pos x="-4.123" y="-18.538" z="-49.517"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="5">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="6">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="7">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="8">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="9">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="10">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="11">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
<Name Flow="12">
|
||||
<Position>
|
||||
<Pos x="3.535" y="-14.009" z="-32.619"/>
|
||||
</Position>
|
||||
</Name>
|
||||
|
||||
</ElfPosData>
|
||||
</ElfPosInfo>
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0.5" z="0"/>
|
||||
<RotationAngle RotationAngle="10"/>
|
||||
<RotationAngle RotationAngle="70"/>
|
||||
</Lid>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="3">
|
||||
@@ -35,7 +35,7 @@
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0.5" z="0"/>
|
||||
<RotationAngle RotationAngle="10"/>
|
||||
<RotationAngle RotationAngle="70"/>
|
||||
</Lid>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="3">
|
||||
@@ -54,7 +54,7 @@
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0.5" z="0"/>
|
||||
<RotationAngle RotationAngle="10"/>
|
||||
<RotationAngle RotationAngle="70"/>
|
||||
</Lid>
|
||||
</Object>
|
||||
</Chests>
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<NPC>
|
||||
<Object ID="13" Index="4">
|
||||
<Position x="7.1631966" y="-10.129012" z="-29.87093"/>
|
||||
<Scale x="0.99811238" y="1" z="0.99811238"/>
|
||||
<Rotation x="0" y="214" z="0"/>
|
||||
</Object>
|
||||
<Object ID="1" Index="1">
|
||||
<Position x="47.214542" y="4.2283616" z="82.240288"/>
|
||||
<Scale x="0.99857348" y="1" z="0.99857348"/>
|
||||
<Rotation x="0" y="120" z="0"/>
|
||||
</Object>
|
||||
<Object ID="2" Index="0">
|
||||
<Position x="48.645473" y="4.2111044" z="80.637032"/>
|
||||
<Scale x="0.99998683" y="1" z="0.99998683"/>
|
||||
<Rotation x="0" y="287" z="0"/>
|
||||
</Object>
|
||||
<Object ID="5" Index="2">
|
||||
<Position x="40.331745" y="6.6973305" z="99.171661"/>
|
||||
<Scale x="0.99978107" y="1" z="0.99978107"/>
|
||||
<Rotation x="0" y="160" z="0"/>
|
||||
</Object>
|
||||
<Object ID="6" Index="3">
|
||||
<Position x="90.164291" y="15.802738" z="142.52655"/>
|
||||
<Scale x="1.0003461" y="1" z="1.0003461"/>
|
||||
<Rotation x="0" y="135" z="0"/>
|
||||
</Object>
|
||||
<Object ID="7" Index="5">
|
||||
<Position x="114.85642" y="15.469075" z="116.20981"/>
|
||||
<Scale x="0.99999529" y="1" z="0.99999529"/>
|
||||
<Rotation x="0" y="315" z="0"/>
|
||||
</Object>
|
||||
<Object ID="9" Index="6">
|
||||
<Position x="35.15633" y="1.5198594" z="50.624886"/>
|
||||
<Scale x="0.99999732" y="1" z="0.99999732"/>
|
||||
<Rotation x="0" y="120" z="0"/>
|
||||
</Object>
|
||||
<Object ID="10" Index="7">
|
||||
<Position x="129.77383" y="15.728663" z="121.83965"/>
|
||||
<Scale x="0.99999732" y="1" z="0.99999732"/>
|
||||
<Rotation x="0" y="-105" z="0"/>
|
||||
</Object>
|
||||
<Object ID="11" Index="8">
|
||||
<Position x="-393.24478" y="-33.342117" z="-362.13519"/>
|
||||
<Scale x="0.9999885" y="1" z="0.9999885"/>
|
||||
<Rotation x="0" y="285" z="0"/>
|
||||
</Object>
|
||||
<Object ID="12" Index="9">
|
||||
<Position x="79.841499" y="3.8484674" z="83.004013"/>
|
||||
<Scale x="0.99980307" y="1" z="0.99980307"/>
|
||||
<Rotation x="0" y="210" z="0"/>
|
||||
</Object>
|
||||
</NPC>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -120,7 +120,7 @@
|
||||
|
||||
<MI_HUM_N_Heads_Eye ShaderIndex = "2" OutLineWrite="2">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Iris_D" Extension=".png"/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_E" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
|
||||
BIN
Binary file not shown.
Binary file not shown.
@@ -158,7 +158,7 @@
|
||||
|
||||
<MI_HUM_N_Heads_Eye ShaderIndex = "2" OutLineWrite="2">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Iris_D" Extension=".png"/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_E" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -32,7 +32,7 @@
|
||||
|
||||
<MI_HUM_N_Heads_Eyelash ShaderIndex = "25" OutLineWrite="5">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_F_Hair_PROHair01_Asuka_DAO_MSK" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_E" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
+1
-1
@@ -30,7 +30,7 @@
|
||||
</MI_Professor_EleazarFig_Hair>
|
||||
<MI_HUM_N_Heads_Eye ShaderIndex = "2" OutLineWrite="2">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Iris_D" Extension=".png"/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_E" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
|
||||
BIN
Binary file not shown.
Binary file not shown.
@@ -124,7 +124,7 @@
|
||||
|
||||
<MI_HouseElf_Eye ShaderIndex = "2" OutLineWrite="2">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Iris_D" Extension=".png"/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_E" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user