@@ -1526,8 +1526,11 @@ VS_OUT3D VS_MAIN3D(VS_IN3D In)
|
||||
|
||||
float3 vertexPos = worldCenter + dirRight + dirUp;
|
||||
|
||||
float2 TexCoord = In.vTexcoord;
|
||||
TexCoord.y = 1.f - TexCoord.y;
|
||||
|
||||
Out.vPosition = mul(float4(vertexPos, 1.f), matViewProj);
|
||||
Out.vTexcoord = 1.f - In.vTexcoord;
|
||||
Out.vTexcoord = TexCoord;
|
||||
return Out;
|
||||
}
|
||||
|
||||
|
||||
@@ -185,6 +185,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\InteractiveInfo.h" />
|
||||
<ClInclude Include="..\Public\Intro_BG.h" />
|
||||
<ClInclude Include="..\Public\Intro_Image.h" />
|
||||
<ClInclude Include="..\Public\Item_Potion.h" />
|
||||
<ClInclude Include="..\public\Land.h" />
|
||||
<ClInclude Include="..\Public\Levioso.h" />
|
||||
<ClInclude Include="..\Public\Loding_Panel.h" />
|
||||
@@ -205,6 +206,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\State_Broom_Hover.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_Ride_Move.h" />
|
||||
<ClInclude Include="..\public\MiniMap_Camera.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Teleport.h" />
|
||||
<ClInclude Include="..\Public\Troll_State_Stun.h" />
|
||||
<ClInclude Include="..\Public\State_Sustain.h" />
|
||||
<ClInclude Include="..\Public\WandEnd.h" />
|
||||
@@ -366,6 +368,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\InteractiveInfo.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_BG.cpp" />
|
||||
<ClCompile Include="..\Private\Intro_Image.cpp" />
|
||||
<ClCompile Include="..\Private\Item_Potion.cpp" />
|
||||
<ClCompile Include="..\private\Land.cpp" />
|
||||
<ClCompile Include="..\Private\Levioso.cpp" />
|
||||
<ClCompile Include="..\Private\Loding_Panel.cpp" />
|
||||
@@ -387,6 +390,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Mage_Down_Attack.cpp" />
|
||||
<ClCompile Include="..\Private\Box_Splesh.cpp" />
|
||||
<ClCompile Include="..\Private\StunEffect.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Teleport.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_State_Stun.cpp" />
|
||||
<ClCompile Include="..\Private\WandEnd.cpp" />
|
||||
<ClCompile Include="..\Private\Magic_Icon.cpp" />
|
||||
|
||||
@@ -532,7 +532,7 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Barral</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Broom_Hover.h">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Broom_Hover</Filter>
|
||||
</ClInclude>
|
||||
@@ -554,6 +554,12 @@
|
||||
<ClInclude Include="..\public\MapElement_Door.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Door</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Item_Potion.h">
|
||||
<Filter>02.GameObjects\Item\Potion</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Goblin_Teleport.h">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Goblin_Teleport</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1148,7 +1154,7 @@
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\PropsEffect\Chair">
|
||||
<UniqueIdentifier>{3103c6e1-60cb-438b-a3eb-844b919ccd43}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Broom_Player\State_Broom_Hover">
|
||||
<UniqueIdentifier>{24f6903f-8f6b-46ff-a387-ecb44d673887}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1170,6 +1176,12 @@
|
||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Door">
|
||||
<UniqueIdentifier>{b09f9ada-6cf4-41a4-ad28-f00855509825}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Item\Potion">
|
||||
<UniqueIdentifier>{ace6c64f-901a-424e-99da-53f281413d77}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Goblin_Teleport">
|
||||
<UniqueIdentifier>{8f5dbf8c-be74-4512-a84f-586397744b24}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1646,7 +1658,7 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Chair_Splesh.cpp">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Chair</Filter>
|
||||
</ClCompile>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Broom_Hover.cpp">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Broom_Hover</Filter>
|
||||
</ClCompile>
|
||||
@@ -1668,6 +1680,12 @@
|
||||
<ClCompile Include="..\private\MapElement_Door.cpp">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Door</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Item_Potion.cpp">
|
||||
<Filter>02.GameObjects\Item\Potion</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Goblin_Teleport.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Goblin_Teleport</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -18,6 +18,8 @@ CBarral_Splesh::CBarral_Splesh(const CBarral_Splesh& rhs)
|
||||
|
||||
HRESULT CBarral_Splesh::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Barral")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -31,11 +33,9 @@ HRESULT CBarral_Splesh::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Barral")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"Barral_Splesh";
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@ CBombard::CBombard(const CBombard& rhs)
|
||||
HRESULT CBombard::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Bombard")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -32,13 +35,11 @@ HRESULT CBombard::Initialize(void* pArg)
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::BOMBARDA);
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Bombard")))
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::BOMBARDA);
|
||||
|
||||
m_wstrEffectName = L"Bombard";
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@ CBombardSide::CBombardSide(const CBombardSide& rhs)
|
||||
HRESULT CBombardSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/BombardaSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -33,8 +36,7 @@ HRESULT CBombardSide::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/BombardaSide")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"BombardSide";
|
||||
|
||||
@@ -19,6 +19,9 @@ CBox_Splesh::CBox_Splesh(const CBox_Splesh& rhs)
|
||||
HRESULT CBox_Splesh::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Box")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -31,8 +34,7 @@ HRESULT CBox_Splesh::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Box")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -204,33 +204,35 @@ void CBroom::Free()
|
||||
|
||||
void CBroom::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Broom")) {
|
||||
GUI::DragFloat("MaxSpeed", &m_fFlyMaxSpeed, 0.01f);
|
||||
GUI::DragFloat("Speed", &m_fSpeed, 0.01f);
|
||||
GUI::DragFloat("Accle", &m_fAccel, 0.01f);
|
||||
GUI::DragFloat("Decel", &m_fDecel, 0.01f);
|
||||
|
||||
GUI::DragFloat("MaxSpeed", &m_fFlyMaxSpeed, 0.01f);
|
||||
GUI::DragFloat("Speed", &m_fSpeed, 0.01f);
|
||||
GUI::DragFloat("Accle", &m_fAccel, 0.01f);
|
||||
GUI::DragFloat("Decel", &m_fDecel, 0.01f);
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
GUI::Text("AnimIndex %d", m_pModelCom->Get_AnimIndex());
|
||||
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
GUI::Text("AnimIndex %d", m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
|
||||
GUI::DragFloat3("Pos", Pos3);
|
||||
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
|
||||
GUI::DragFloat3("Pos", Pos3);
|
||||
|
||||
|
||||
_float RotR, RotU, RotL;
|
||||
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
|
||||
RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
|
||||
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
float Rot3[3] = { RotR, RotU,RotL };
|
||||
GUI::DragFloat3("Rot", Rot3);
|
||||
_float RotR, RotU, RotL;
|
||||
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
|
||||
RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
|
||||
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
float Rot3[3] = { RotR, RotU,RotL };
|
||||
GUI::DragFloat3("Rot", Rot3);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -72,6 +72,17 @@ void CCallBack_Playable_HitReport::onShapeHit(const PSX::PxControllerShapeHit& h
|
||||
vCompressedDir.normalize();
|
||||
pDynamic->addForce(vCompressedDir * fLength* 1000.f, PSX::PxForceMode::eFORCE);
|
||||
} break;
|
||||
case PXOBJECT::DOOR:
|
||||
{
|
||||
PSX::PxRigidDynamic* pDynamic = static_cast<PSX::PxRigidDynamic*>(pActor);
|
||||
_float fDot = vDir.dot(PSX::PxVec3(0.f, 1.f, 0.f));
|
||||
if (fDot > 0) {
|
||||
pDynamic->addTorque(PSX::PxVec3(0.f, 1.f, 0.f) * fLength * 100.f, PSX::PxForceMode::eFORCE);
|
||||
}
|
||||
else {
|
||||
pDynamic->addTorque(PSX::PxVec3(0.f, -1.f, 0.f) * fLength * 100.f, PSX::PxForceMode::eFORCE);
|
||||
}
|
||||
} break;
|
||||
default:
|
||||
{
|
||||
} break;
|
||||
|
||||
@@ -51,7 +51,7 @@ void CCallBack_Troll_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit)
|
||||
class CUnit* pOwner = (CUnit*)m_pController->Get_Owner();
|
||||
_vector vLook = pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
_float fDot = XMVectorGetX(XMVector3Dot(XMLoadFloat3((_float3*)&vDir), vLook));
|
||||
if (fDot > cosf(XM_PIDIV4)) {
|
||||
if (fDot > cosf(XM_PIDIV4) && vWorldPos.y >= XMVectorGetY(pOwnerActorData->pCharacter->Get_Position()) - FLT_EPSILON3) {
|
||||
CModel* pModel = pOwner->Get_Component<CModel>();
|
||||
_uint iAnimIndex = pModel->Get_AnimIndex();
|
||||
if (pOwner->Get_AnimInfo(STATEANIM::RUSH_LOOP).first == iAnimIndex) {
|
||||
|
||||
@@ -41,8 +41,9 @@ HRESULT CCamPosition_Shoulder::Initialize(void* pArg)
|
||||
|
||||
_vector vLookTargetPos = Calc_LookTargetPos();
|
||||
m_pLookTransform->Set_State(STATE::POSITION, vLookTargetPos);
|
||||
m_pFollowTransform->Set_State(STATE::POSITION, Calc_FollowTargetPos(vLookTargetPos));
|
||||
m_pFollowTransform->Set_State(STATE::POSITION, Calc_FollowTargetPos(vLookTargetPos) + XMVectorSet(0.f, 0.f, 1.f, 0.f));
|
||||
}
|
||||
m_bDampingParentPos = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -153,6 +154,15 @@ void CCamPosition_Shoulder::Late_Update(_float fTimeDelta)
|
||||
m_fFollowTargetIncludedAngleDegree = CMyTools::Lerp_f1D(m_vShoulderLerpDegree.x, m_vShoulderLerpDegree.y, fLerpRatio);
|
||||
}
|
||||
}
|
||||
if (true == m_bStartGame) {
|
||||
m_vStartLerpTimer.x += fTimeDelta;
|
||||
if (m_vStartLerpTimer.x >= m_vStartLerpTimer.y) {
|
||||
m_vStartLerpTimer.x = 0.f;
|
||||
m_bDampingParentPos = true;
|
||||
m_bStartGame = false;
|
||||
}
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI_OVERLAY, this);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CCamPosition_Shoulder::Render()
|
||||
@@ -185,8 +195,19 @@ _vector CCamPosition_Shoulder::Calc_FollowTargetPos(_vector vLookTargetWorldPos)
|
||||
_vector fRotQ = XMQuaternionRotationAxis(XMVectorSet(0.f, 1.f, 0.f, 0.f), XMConvertToRadians(-m_fFollowTargetIncludedAngleDegree));
|
||||
_vector vDestPos = Calc_DampingParentPos();
|
||||
_vector vHeadPos = vDestPos + XMVectorSet(0.f, m_fHeadHeight, 0.f, 0.f);
|
||||
_vector vDir = XMVector3Normalize(vHeadPos - vLookTargetWorldPos);
|
||||
vDir = XMVector3Rotate(vDir, fRotQ);
|
||||
_vector vDir = vHeadPos - vLookTargetWorldPos;
|
||||
_float fLengthSQ = XMVectorGetX(XMVector3LengthSq(vDir));
|
||||
|
||||
if (fLengthSQ < FLT_EPSILON)
|
||||
{
|
||||
vDir = XMVectorSet(0.f, 0.f, 1.f, 0.f);
|
||||
vDir = XMVector3Rotate(vDir, fRotQ);
|
||||
}
|
||||
else
|
||||
{
|
||||
vDir = XMVector3Normalize(vDir);
|
||||
vDir = XMVector3Rotate(vDir, fRotQ);
|
||||
}
|
||||
|
||||
m_BufferHit = {};
|
||||
_bool bHit = m_pGameInstance->SphereCast( 0.25f, vLookTargetWorldPos, vDir, fBestFollowTargetDistance,
|
||||
@@ -250,7 +271,11 @@ _vector CCamPosition_Shoulder::Calc_FollowTargetPos(_vector vLookTargetWorldPos)
|
||||
}
|
||||
_vector CCamPosition_Shoulder::Calc_DampingParentPos()
|
||||
{
|
||||
return XMVectorLerp(XMLoadFloat4(&m_vDampingStartPosition), XMLoadFloat4(&m_vDampingDestPosition), m_vDampingLerpTimer.x / m_vDampingLerpTimer.y);
|
||||
_float duration = max(m_vDampingLerpTimer.y, FLT_EPSILON);
|
||||
_float fTime = m_vDampingLerpTimer.x / duration;
|
||||
fTime = CMyTools::Saturate(fTime); // 0~1
|
||||
|
||||
return XMVectorLerp(XMLoadFloat4(&m_vDampingStartPosition), XMLoadFloat4(&m_vDampingDestPosition), fTime);
|
||||
}
|
||||
void CCamPosition_Shoulder::Set_CameraShake(_float fXShock, _float fYShock)
|
||||
{
|
||||
@@ -297,9 +322,11 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts()
|
||||
CCamPosition_Target::CAMERAPOSITION_TARGET_DESC Desc{};
|
||||
Desc.pParentTransform = m_pTransformCom;
|
||||
m_pTarget_LookPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc);
|
||||
m_pTarget_LookPart->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -10.4f, 1.f));
|
||||
m_pTarget_FollowPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc);
|
||||
m_pTarget_FollowPart->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f));
|
||||
}
|
||||
|
||||
|
||||
CCamera_Gaze::CAMERA_GAZE_DESC CameraDesc{};
|
||||
CameraDesc.fFovy = XMConvertToRadians(60.0f);
|
||||
CameraDesc.fNear = 0.1f;
|
||||
@@ -308,7 +335,7 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts()
|
||||
CameraDesc.fRotationPerSec = XMConvertToRadians(90.f);
|
||||
CameraDesc.pFollowTarget = m_pTarget_FollowPart;
|
||||
CameraDesc.pLookTarget = m_pTarget_LookPart;
|
||||
CameraDesc.iPriority = 51;
|
||||
CameraDesc.iPriority = 55;
|
||||
CameraDesc.pCameraKey = CAMERA_SHOULDER;
|
||||
CameraDesc.bEnableTransitionLerp = true;
|
||||
CameraDesc.bEnableFollowLerp = false;
|
||||
@@ -321,8 +348,11 @@ HRESULT CCamPosition_Shoulder::Ready_SubParts()
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Camera(g_iStaticLevel, m_pBinded_Camera, CAMERA_SHOULDER);
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, true))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -362,15 +392,16 @@ void CCamPosition_Shoulder::Free()
|
||||
|
||||
void CCamPosition_Shoulder::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Cam_Shoulder");
|
||||
m_pTransformCom->Describe_Entity();
|
||||
GUI::Begin("CAMERA");
|
||||
if (GUI::CollapsingHeader("Cam_Shoulder")) {
|
||||
m_pTransformCom->Describe_Entity();
|
||||
|
||||
GUI::Text("fMouseSensor : %.1f", m_fMouseSensor);
|
||||
GUI::SliderFloat("m_fFollowTargetIncludedAngleDegree", &m_fFollowTargetIncludedAngleDegree, -360.f, 360.f, "%.1f");
|
||||
GUI::SliderFloat("m_fDefaultCameraBackToFrontRatio", &m_fDefaultCameraBackToFrontRatio, -1.f, 1.f);
|
||||
GUI::SliderFloat("m_vFocalRatio", &m_vFocalRatio.x, 0.f, 1.f);
|
||||
GUI::SliderFloat("m_fCameraFowardDistance", &m_fCameraFowardDistance, 0.f, 4.f);
|
||||
//GUI::
|
||||
GUI::Text("fMouseSensor : %.1f", m_fMouseSensor);
|
||||
GUI::SliderFloat("m_fFollowTargetIncludedAngleDegree", &m_fFollowTargetIncludedAngleDegree, -360.f, 360.f, "%.1f");
|
||||
GUI::SliderFloat("m_fDefaultCameraBackToFrontRatio", &m_fDefaultCameraBackToFrontRatio, -1.f, 1.f);
|
||||
GUI::SliderFloat("m_vFocalRatio", &m_vFocalRatio.x, 0.f, 1.f);
|
||||
GUI::SliderFloat("m_fCameraFowardDistance", &m_fCameraFowardDistance, 0.f, 4.f);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -17,12 +17,15 @@ CCamera_Debug::CCamera_Debug(const CCamera_Debug& rhs)
|
||||
|
||||
void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, false);
|
||||
#endif // _DEBUG
|
||||
|
||||
}
|
||||
|
||||
void CCamera_Debug::Update(_float fTimeDelta)
|
||||
{
|
||||
if (false == m_bActive) {
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_DEBUG))) {
|
||||
return;
|
||||
}
|
||||
Transition(fTimeDelta);
|
||||
@@ -87,7 +90,7 @@ void CCamera_Debug::Update(_float fTimeDelta)
|
||||
|
||||
void CCamera_Debug::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (false == m_bActive) {
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_DEBUG))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,14 +20,16 @@ void CCamera_Gaze::Priority_Update(_float fTimeDelta)
|
||||
}
|
||||
if (false == m_bIsCurrentTransition) {
|
||||
if (m_bEnable_FollowLerp) {
|
||||
_vector vNewPos = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vFollowPos_Src), XMLoadFloat3(&m_vFollowPos_Dest), m_vFollowLerpTime.x / m_vFollowLerpTime.y), 1.f);
|
||||
_float fTimeDenom = max(m_vFollowLerpTime.y, FLT_EPSILON);
|
||||
_vector vNewPos = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vFollowPos_Src), XMLoadFloat3(&m_vFollowPos_Dest), CMyTools::Saturate(m_vFollowLerpTime.x / fTimeDenom)), 1.f);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vNewPos);
|
||||
}
|
||||
else {
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pFollowTarget->Get_Component<CTransform>()->Get_State(STATE::POSITION));
|
||||
}
|
||||
if (m_bEnable_LookLerp) {
|
||||
_vector vNewLook = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLookPos_Src), XMLoadFloat3(&m_vLookPos_Dest), m_vLookLerpTime.x / m_vLookLerpTime.y), 1.f);
|
||||
_float fTimeDenom = max(m_vLookLerpTime.y, FLT_EPSILON);
|
||||
_vector vNewLook = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLookPos_Src), XMLoadFloat3(&m_vLookPos_Dest), CMyTools::Saturate(m_vLookLerpTime.x / fTimeDenom)), 1.f);
|
||||
m_pTransformCom->LookAt(vNewLook);
|
||||
}
|
||||
else {
|
||||
@@ -82,23 +84,27 @@ void CCamera_Gaze::Enable_FollowLerp()
|
||||
{
|
||||
m_bEnable_FollowLerp = true;
|
||||
m_vFollowLerpTime.x = 0.f;
|
||||
XMStoreFloat3(&m_vFollowPos_Src, m_pFollowTarget->Get_WorldPostion());
|
||||
|
||||
XMStoreFloat3(&m_vFollowPos_Src, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat3(&m_vFollowPos_Dest, m_pFollowTarget->Get_WorldPostion());
|
||||
}
|
||||
|
||||
void CCamera_Gaze::Enable_LookLerp()
|
||||
{
|
||||
m_bEnable_LookLerp = true;
|
||||
m_vLookLerpTime.x = 0.f;
|
||||
XMStoreFloat3(&m_vLookPos_Src, m_pLookTarget->Get_WorldPostion());
|
||||
_vector vLookTargetPos = m_pLookTarget->Get_WorldPostion();
|
||||
XMStoreFloat3(&m_vLookPos_Src, vLookTargetPos);
|
||||
XMStoreFloat3(&m_vLookPos_Dest, vLookTargetPos);
|
||||
}
|
||||
|
||||
void CCamera_Gaze::Toggle_Priority()
|
||||
{
|
||||
if (m_iPriority == 99) {
|
||||
if (m_iPriority == 55) {
|
||||
m_iPriority = 51;
|
||||
}
|
||||
else {
|
||||
m_iPriority = 99;
|
||||
m_iPriority = 55;
|
||||
m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, false);
|
||||
}
|
||||
}
|
||||
@@ -127,6 +133,8 @@ HRESULT CCamera_Gaze::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pFollowTarget->Get_WorldPostion());
|
||||
m_pTransformCom->LookAt(m_pLookTarget->Get_WorldPostion());
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -174,30 +182,32 @@ void CCamera_Gaze::Free()
|
||||
|
||||
void CCamera_Gaze::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("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);
|
||||
GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z);
|
||||
GUI::Text("FOLLOW_SRC %.2f, %.2f, %.2f", m_vFollowPos_Src.x, m_vFollowPos_Src.y, m_vFollowPos_Src.z);
|
||||
GUI::Text("FOLLOW_DST %.2f, %.2f, %.2f", m_vFollowPos_Dest.x, m_vFollowPos_Dest.y, m_vFollowPos_Dest.z);
|
||||
GUI::Checkbox("TransitionLerp", &m_bEnable_TransitionLerp);
|
||||
if (true == m_bEnable_TransitionLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vTransitionTime.x, m_vTransitionTime.y);
|
||||
GUI::SliderFloat("TranslationTime", &m_vTransitionTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
GUI::Begin("CAMERA");
|
||||
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);
|
||||
GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z);
|
||||
GUI::Text("FOLLOW_SRC %.2f, %.2f, %.2f", m_vFollowPos_Src.x, m_vFollowPos_Src.y, m_vFollowPos_Src.z);
|
||||
GUI::Text("FOLLOW_DST %.2f, %.2f, %.2f", m_vFollowPos_Dest.x, m_vFollowPos_Dest.y, m_vFollowPos_Dest.z);
|
||||
GUI::Checkbox("TransitionLerp", &m_bEnable_TransitionLerp);
|
||||
if (true == m_bEnable_TransitionLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vTransitionTime.x, m_vTransitionTime.y);
|
||||
GUI::SliderFloat("TranslationTime", &m_vTransitionTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
|
||||
GUI::Checkbox("LookLerp", &m_bEnable_LookLerp);
|
||||
if (true == m_bEnable_LookLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vLookLerpTime.x, m_vLookLerpTime.y);
|
||||
GUI::SliderFloat("LookTime", &m_vLookLerpTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
GUI::Checkbox("LookLerp", &m_bEnable_LookLerp);
|
||||
if (true == m_bEnable_LookLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vLookLerpTime.x, m_vLookLerpTime.y);
|
||||
GUI::SliderFloat("LookTime", &m_vLookLerpTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
|
||||
GUI::Checkbox("FollowLerp", &m_bEnable_FollowLerp);
|
||||
if (true == m_bEnable_FollowLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vFollowLerpTime.x, m_vFollowLerpTime.y);
|
||||
GUI::SliderFloat("FollowTime", &m_vFollowLerpTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
GUI::Checkbox("FollowLerp", &m_bEnable_FollowLerp);
|
||||
if (true == m_bEnable_FollowLerp) {
|
||||
GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vFollowLerpTime.x, m_vFollowLerpTime.y);
|
||||
GUI::SliderFloat("FollowTime", &m_vFollowLerpTime.y, 0.1f, 3.f, "%.1f");
|
||||
}
|
||||
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ CChair_Splesh::CChair_Splesh(const CChair_Splesh& rhs)
|
||||
|
||||
HRESULT CChair_Splesh::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Chair")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -31,8 +33,7 @@ HRESULT CChair_Splesh::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Chair")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ void CDamage_Font::Add_Damage(void* pArg)
|
||||
pInfo = *reinterpret_cast<DAMAGE_INFO*>(pArg);
|
||||
DAMAGE_FONT_INFO Desc{};
|
||||
|
||||
Desc.vTarget_Pos =pInfo.vTarget_Pos , XMVectorSet(m_pGameInstance->Real_Random_Float(2,5), 1.f, m_pGameInstance->Real_Random_Float(2, 5), 0.f);
|
||||
Desc.vTarget_Pos = pInfo.vTarget_Pos;
|
||||
Desc.pDamage = to_wstring(static_cast<_int>(pInfo.fDamage));
|
||||
if (pInfo.eType == DAMAGE_TYPE::NOMAL)
|
||||
{
|
||||
|
||||
@@ -25,6 +25,9 @@ CDecendo::CDecendo(const CDecendo& rhs)
|
||||
HRESULT CDecendo::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -37,7 +40,7 @@ HRESULT CDecendo::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
|
||||
@@ -22,6 +22,9 @@ CDecendoSide::CDecendoSide(const CDecendoSide& rhs)
|
||||
HRESULT CDecendoSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/DecendoSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -34,8 +37,7 @@ HRESULT CDecendoSide::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/DecendoSide")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"DecendoSide";
|
||||
|
||||
@@ -129,7 +129,7 @@ HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg)
|
||||
Desc.fContactOffset = 0.001f;
|
||||
Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.001f };
|
||||
Desc.fStepOffset = { 0.02f };
|
||||
Desc.fRadius = 0.5f;
|
||||
Desc.fHeight = 1.0f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create();
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
#include "EffectObject.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
CEffectObject::CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
:CPartObject(pDevice, pContext)
|
||||
@@ -220,6 +221,143 @@ HRESULT CEffectObject::Render_Bloom()
|
||||
|
||||
|
||||
|
||||
HRESULT CEffectObject::Load(CEffect_Container::EFFECT_SAVE_INFO EffectSaveInfo, LEVEL eLevel)
|
||||
{
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pNoise_TextureCom);
|
||||
SAFE_RELEASE(m_pMasking_TextureCom);
|
||||
SAFE_RELEASE(m_pDissolve_TextureCom);
|
||||
SAFE_RELEASE(m_pEmissive_TextureCom);
|
||||
SAFE_RELEASE(m_pInstance_ModelCom);
|
||||
|
||||
if (m_pLightCom != nullptr)
|
||||
SAFE_RELEASE(m_pLightCom);
|
||||
|
||||
m_EffectInfo = EffectSaveInfo.EffectInfo;
|
||||
|
||||
m_EffectInfo.LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION);
|
||||
m_EffectInfo.LightDesc.iLevel = ENUM_CLASS(eLevel);
|
||||
|
||||
|
||||
if (m_EffectInfo.LightDesc.eType != LIGHT::DIRECTIONAL) // 0이 아닐때만 생성
|
||||
{
|
||||
if (FAILED(Add_Component<CLight>(g_iStaticLevel, &m_pLightCom, &m_EffectInfo.LightDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pLightCom->Set_LightIntensity(m_EffectInfo.fLightIntensity);
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isDiffuse)
|
||||
{
|
||||
|
||||
m_strDiffuseName = EffectSaveInfo.wstrDiffuseName;
|
||||
|
||||
if (m_strDiffuseName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strDiffuseName,
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isNoise)
|
||||
{
|
||||
m_strNoiseName = EffectSaveInfo.wstrNoiseName;
|
||||
|
||||
if (m_strNoiseName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strNoiseName,
|
||||
reinterpret_cast<CComponent**>(&m_pNoise_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (m_EffectInfo.isMasking)
|
||||
{
|
||||
m_strMaskingName = EffectSaveInfo.wstrMaskingName;
|
||||
|
||||
if (m_strMaskingName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strMaskingName,
|
||||
reinterpret_cast<CComponent**>(&m_pMasking_TextureCom))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isDissolve)
|
||||
{
|
||||
m_strDissolveName = EffectSaveInfo.wstrDissolveName;
|
||||
|
||||
if (m_strDissolveName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strDissolveName,
|
||||
reinterpret_cast<CComponent**>(&m_pDissolve_TextureCom))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isEmissive)
|
||||
{
|
||||
|
||||
m_strEmissiveName = EffectSaveInfo.wstrEmissiveName;
|
||||
|
||||
if (m_strEmissiveName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strEmissiveName,
|
||||
reinterpret_cast<CComponent**>(&m_pEmissive_TextureCom))))
|
||||
{
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (m_EffectInfo.isDistortion)
|
||||
{
|
||||
|
||||
m_strDistortionName = EffectSaveInfo.wstrDistortionName;;
|
||||
|
||||
if (m_strDistortionName.length() > 0)
|
||||
{
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strDistortionName,
|
||||
reinterpret_cast<CComponent**>(&m_pDistortion_TextureCom))))
|
||||
{
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_strModelName = EffectSaveInfo.wstrModelName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strModelName,
|
||||
reinterpret_cast<CComponent**>(&m_pInstance_ModelCom))))
|
||||
{
|
||||
return E_FAIL;;
|
||||
}
|
||||
|
||||
|
||||
m_pInstance_ModelCom->Load_InstanceModel(EffectSaveInfo.InstanceModelInfo);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
{
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
@@ -299,9 +437,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strDiffuseName = szName;
|
||||
m_strDiffuseName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strDiffuseName,
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -332,9 +470,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strNoiseName = szName;
|
||||
m_strNoiseName = CMyTools::ToWstring(szName);;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strNoiseName,
|
||||
reinterpret_cast<CComponent**>(&m_pNoise_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -361,9 +499,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strMaskingName = szName;
|
||||
m_strMaskingName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strMaskingName,
|
||||
reinterpret_cast<CComponent**>(&m_pMasking_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -392,9 +530,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strDissolveName = szName;
|
||||
m_strDissolveName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel),m_strDissolveName,
|
||||
reinterpret_cast<CComponent**>(&m_pDissolve_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -425,9 +563,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strEmissiveName = szName;
|
||||
m_strEmissiveName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strEmissiveName,
|
||||
reinterpret_cast<CComponent**>(&m_pEmissive_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -456,9 +594,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strDistortionName = szName;
|
||||
m_strDistortionName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDistortionName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strDistortionName,
|
||||
reinterpret_cast<CComponent**>(&m_pDistortion_TextureCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -486,9 +624,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strModelName = szName;
|
||||
m_strModelName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strModelName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strModelName,
|
||||
reinterpret_cast<CComponent**>(&m_pInstance_ModelCom))))
|
||||
{
|
||||
CloseHandle(hFile);
|
||||
@@ -507,8 +645,6 @@ HRESULT CEffectObject::Load(const _char* pFilePath, LEVEL eLevel)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
HRESULT CEffectObject::Bind_ShaderResources()
|
||||
{
|
||||
if (m_pParentMatrix != nullptr)
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "Box_Splesh.h"
|
||||
#include "Chair_Splesh.h"
|
||||
#include "Barral_Splesh.h"
|
||||
#include "Goblin_Teleport.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -57,9 +58,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
// 디버그 모드일 때
|
||||
#ifdef _DEBUG
|
||||
|
||||
#ifdef gimch
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
@@ -80,8 +80,31 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
m_isActiveEffectCreate = false;
|
||||
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)
|
||||
{
|
||||
@@ -171,19 +194,6 @@ HRESULT CEffectPool::Bind_ShaderResources()
|
||||
|
||||
HRESULT CEffectPool::Ready_Effect()
|
||||
{
|
||||
#ifdef 기무리
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
CNomalJap* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CNomalJap>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
#endif // 기무리
|
||||
|
||||
|
||||
#ifndef 기무리
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
CNomalJap* pEffect = nullptr;
|
||||
|
||||
@@ -326,8 +336,6 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
#endif // !기무리
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -424,7 +432,15 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::GOBILN_TELEPORT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CGoblin_Teleport* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CGoblin_Teleport>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
|
||||
))) return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,9 @@ CEffect_Container::CEffect_Container(ID3D11Device* pDevice, ID3D11DeviceContext*
|
||||
}
|
||||
|
||||
CEffect_Container::CEffect_Container(const CEffect_Container& rhs)
|
||||
: CContainerObject(rhs)
|
||||
: CContainerObject(rhs),
|
||||
m_EffectsInfo(rhs.m_EffectsInfo),
|
||||
m_TrailsInfo(rhs.m_TrailsInfo)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -150,72 +152,377 @@ HRESULT CEffect_Container::Load_Package(const _char* pPath)
|
||||
|
||||
if (!strcmp(strExt.c_str(), "trail"))
|
||||
{
|
||||
CTrailObject* pTrail = nullptr;
|
||||
|
||||
Load_Trail_Data(strEffectPath.c_str());
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
m_TrailsInfo.back().wstrTrailName = CMyTools::ToWstring(strEffectName);
|
||||
continue;
|
||||
}
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
/////////////////////////////
|
||||
|
||||
_string strFilePath = strEffectPath;
|
||||
Load_Data(strFilePath.c_str());
|
||||
|
||||
m_EffectsInfo.back().wstrEffectName = CMyTools::ToWstring(strEffectName);
|
||||
}
|
||||
|
||||
if (FAILED(Add_PartObject<CTrailObject>(strEffectName, g_iStaticLevel, &pTrail, &PartsDesc))) {
|
||||
assert(false);
|
||||
CloseHandle(hFile);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Load_Data(const _char* pPath)
|
||||
{
|
||||
_string strPerfectFilePath = pPath;
|
||||
|
||||
HANDLE hFile = CreateFileW(
|
||||
CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름
|
||||
GENERIC_READ, // 읽기 모드
|
||||
FILE_SHARE_READ, // 다른 프로세스도 읽기 가능
|
||||
NULL,
|
||||
OPEN_EXISTING, // 기존 파일 열기
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
NULL
|
||||
);
|
||||
|
||||
|
||||
if (hFile == INVALID_HANDLE_VALUE) {
|
||||
MessageBox(NULL, L"오브젝트 읽기 실패", L"System Message", MB_OK);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
// 나중에 패키징할때 패스를 저장할거임
|
||||
|
||||
EFFECT_SAVE_INFO EffectSaveInfo = {};
|
||||
|
||||
DWORD dwByte(0);
|
||||
|
||||
if (!ReadFile(hFile, &EffectSaveInfo.EffectInfo, sizeof(EFFECT_INFO), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isDiffuse)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrDiffuseName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isNoise)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrNoiseName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isMasking)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
/*이펙트 로드 로드*/
|
||||
size_t iPos = {};
|
||||
|
||||
while ((iPos = strEffectPath.find(".trail")) != std::string::npos) {
|
||||
strEffectPath.erase(iPos, 6);
|
||||
};
|
||||
|
||||
|
||||
if (FAILED(pTrail->Load_Trail(strEffectPath.c_str() , static_cast<LEVEL>(NEXT_LEVEL))))
|
||||
{
|
||||
Safe_Release(pTrail);
|
||||
continue;
|
||||
}
|
||||
|
||||
Safe_Release(pTrail);
|
||||
|
||||
continue;
|
||||
EffectSaveInfo.wstrMaskingName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////
|
||||
}
|
||||
|
||||
CEffectParts* pEffectParts = nullptr;
|
||||
if (EffectSaveInfo.EffectInfo.isDissolve)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
/*이펙트 껍데기 생성*/
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>(strEffectName, g_iStaticLevel, &pEffectParts, &PartsDesc))) {
|
||||
assert(false);
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/*이펙트 로드 로드*/
|
||||
size_t iPosition = {};
|
||||
_string strFilePath = strEffectPath;
|
||||
|
||||
while ((iPosition = strFilePath.find(".bin")) != std::string::npos) {
|
||||
strFilePath.erase(iPosition, 4);
|
||||
};
|
||||
|
||||
|
||||
if (FAILED(pEffectParts->Load(strFilePath.c_str(), static_cast<LEVEL>(NEXT_LEVEL))))
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
Safe_Release(pEffectParts);
|
||||
continue;
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrDissolveName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
Safe_Release(pEffectParts);
|
||||
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isEmissive)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrEmissiveName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (EffectSaveInfo.EffectInfo.isDistortion)
|
||||
{
|
||||
size_t iComponentLength = {};
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
EffectSaveInfo.wstrDistortionName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
size_t iComponentLength = {};
|
||||
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)(DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
CloseHandle(hFile);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
EffectSaveInfo.wstrModelName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, &EffectSaveInfo.InstanceModelInfo, sizeof(CInstance_Model::INSTANCE_DESC), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
CloseHandle(hFile);
|
||||
|
||||
m_EffectsInfo.push_back(EffectSaveInfo);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Create_Effect()
|
||||
{
|
||||
CEffectParts* pEffectParts = nullptr;
|
||||
CTrailObject* pTrail = nullptr;
|
||||
|
||||
CPartObject::PARTOBJECT_DESC PartsDesc{};
|
||||
|
||||
PartsDesc.pParentTransform = m_pTransformCom;
|
||||
|
||||
/*이펙트 껍데기 생성*/
|
||||
|
||||
|
||||
|
||||
for (auto& EffectInfo : m_EffectsInfo)
|
||||
{
|
||||
|
||||
if (FAILED(Add_PartObject<CEffectParts>(CMyTools::ToString(EffectInfo.wstrEffectName), g_iStaticLevel, &pEffectParts, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
pEffectParts->Load(EffectInfo, static_cast<LEVEL>(NEXT_LEVEL));
|
||||
|
||||
Safe_Release(pEffectParts);
|
||||
}
|
||||
|
||||
for (auto& TrailInfo : m_TrailsInfo)
|
||||
{
|
||||
if (FAILED(Add_PartObject<CTrailObject>(CMyTools::ToString(TrailInfo.wstrTrailName), g_iStaticLevel, &pTrail, &PartsDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
pTrail->Load_Trail(TrailInfo, static_cast<LEVEL>(NEXT_LEVEL));
|
||||
|
||||
Safe_Release(pTrail);
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CEffect_Container::Load_Trail_Data(const _char* pPath)
|
||||
{
|
||||
_string strPerfectFilePath = pPath;
|
||||
|
||||
DWORD dwByte(0);
|
||||
|
||||
HANDLE hFile = CreateFileW(
|
||||
CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름
|
||||
GENERIC_READ, // 읽기 모드
|
||||
FILE_SHARE_READ, // 다른 프로세스도 읽기 가능
|
||||
NULL,
|
||||
OPEN_EXISTING, // 기존 파일 열기
|
||||
FILE_ATTRIBUTE_NORMAL,
|
||||
NULL
|
||||
);
|
||||
|
||||
if (hFile == INVALID_HANDLE_VALUE) {
|
||||
MessageBox(NULL, L"오브젝트 읽기 실패", L"System Message", MB_OK);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
TRAIL_SAVE_INFO Trail_Save_Info = {};
|
||||
|
||||
|
||||
size_t iComponentLength = {};
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Trail_Save_Info.wstrDiffuseName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Trail_Save_Info.wstrNoiseName = CMyTools::ToWstring(szName);
|
||||
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Trail_Save_Info.wstrMaskingName = CMyTools::ToWstring(szName);
|
||||
}
|
||||
|
||||
|
||||
if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (iComponentLength != 0)
|
||||
{
|
||||
_char szName[MAX_PATH] = {};
|
||||
|
||||
if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Trail_Save_Info.wstrDistortionName = CMyTools::ToWstring(szName);
|
||||
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, &Trail_Save_Info.TrailComponentDesc, sizeof(CTrail::TRAIL_DESC), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (!ReadFile(hFile, &Trail_Save_Info.TrailDesc, sizeof(TRAIL_INFO), &dwByte, nullptr)) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
m_TrailsInfo.push_back(Trail_Save_Info);
|
||||
|
||||
CloseHandle(hFile);
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -86,10 +86,6 @@ void CGoblin::Update(_float fTimeDelta)
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Play_Event();
|
||||
#ifdef _DEBUG
|
||||
GUI::Text("%d", m_pCharacter_Controller->IsActive());
|
||||
GUI::Text("%f %f", m_vStunTimer.x, m_vStunTimer.y);
|
||||
#endif // _DEBUG
|
||||
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
{ // 세트
|
||||
@@ -252,8 +248,8 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
if (true == m_bDead) {
|
||||
return;
|
||||
}
|
||||
_vector Head = (XMLoadFloat4x4(Get_HeadMatrix()) * m_pTransformCom->Get_XMWorldMatrix()).r[3];
|
||||
m_DamageInfo.vTarget_Pos = XMVectorSet(Head.m128_f32[0], Head.m128_f32[1], Head.m128_f32[2], 1.f);
|
||||
m_DamageInfo.vTarget_Pos = m_pCharacter_Controller->Get_HeadPosition();
|
||||
|
||||
m_pGoblinSpector->Set_Visible(false);
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
@@ -329,7 +325,7 @@ HRESULT CGoblin::Ready_Components()
|
||||
Desc.fContactOffset = 0.001f;
|
||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.001f };
|
||||
Desc.fStepOffset = { 0.02f };
|
||||
Desc.fRadius = 0.6f;
|
||||
Desc.fHeight = 0.7f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Monster_HitReport::Create();
|
||||
@@ -481,7 +477,6 @@ void CGoblin::Free()
|
||||
SAFE_RELEASE(m_pSmoke);
|
||||
SAFE_RELEASE(m_pGoblin_Particle);
|
||||
SAFE_RELEASE(m_pGoblin_Particle2);
|
||||
SAFE_RELEASE(m_pDetection);
|
||||
SAFE_RELEASE(m_pEffectPool);
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
@@ -490,40 +485,40 @@ void CGoblin::Free()
|
||||
|
||||
void CGoblin::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Goblin");
|
||||
GUI::Begin("UNIT");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("Goblin")) {
|
||||
GUI::Checkbox("LookAt", &m_bLookAt);
|
||||
|
||||
GUI::Checkbox("LookAt", &m_bLookAt);
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
if (GUI::DragFloat3("Pos", (_float*)&Pos))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
|
||||
}
|
||||
|
||||
if (GUI::DragFloat3("Pos", (_float*)&Pos))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
|
||||
XMFLOAT3 f3;
|
||||
XMStoreFloat3(&f3, m_vOriginPos);
|
||||
|
||||
GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
|
||||
|
||||
m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
|
||||
|
||||
GUI::Text("Length %.2f", m_fLength);
|
||||
|
||||
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
|
||||
}
|
||||
|
||||
XMFLOAT3 f3;
|
||||
XMStoreFloat3(&f3, m_vOriginPos);
|
||||
|
||||
GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
|
||||
|
||||
m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
|
||||
|
||||
GUI::Text("Length %.2f", m_fLength);
|
||||
|
||||
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
|
||||
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,9 @@ CGoblin_Attack::CGoblin_Attack(const CGoblin_Attack& rhs)
|
||||
HRESULT CGoblin_Attack::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinAttack")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -32,11 +35,11 @@ HRESULT CGoblin_Attack::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinAttack")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
m_wstrEffectName = L"GoblinAttack";
|
||||
|
||||
m_pPT1 = Get_PartObject<CEffectParts>("Goblin_Particle");
|
||||
|
||||
@@ -44,6 +44,10 @@ HRESULT CGoblin_BattleAxe::Initialize(void* pArg)
|
||||
|
||||
void CGoblin_BattleAxe::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
XMStoreFloat4(&m_vStartAxePos, Get_WorldPostion());
|
||||
XMStoreFloat4(&m_vStartGripPos, Get_WorldPostion());
|
||||
}
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
_matrix socketMatrix = {};
|
||||
|
||||
@@ -75,7 +79,13 @@ void CGoblin_BattleAxe::Update(_float fTimeDelta)
|
||||
|
||||
void CGoblin_BattleAxe::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
SwingHit(m_bPlayerHit);
|
||||
}
|
||||
else {
|
||||
m_bPlayerHit = false;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CGoblin_BattleAxe::Render()
|
||||
@@ -83,8 +93,10 @@ HRESULT CGoblin_BattleAxe::Render()
|
||||
if (!m_pModelCom)
|
||||
return S_OK;
|
||||
|
||||
if (!m_bVisible)
|
||||
if (!m_bVisible) {
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
@@ -193,6 +205,93 @@ HRESULT CGoblin_BattleAxe::Bind_ShaderResources()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_BattleAxe::CheckAxeHits(_uint& iHitCount, vector<PSX::PxSweepHit>& pxHits)
|
||||
{
|
||||
{
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartAxePos);
|
||||
_vector vEndPos = XMVectorSet(m_vAxeMat._41, m_vAxeMat._42, m_vAxeMat._43,1.f);
|
||||
_vector vDir = vEndPos - vStartPos;
|
||||
_float fDistance = XMVectorGetX(XMVector4Length(vDir));
|
||||
vDir = XMVector4Normalize(vDir);
|
||||
|
||||
_bool bCollision = false;
|
||||
m_SweepBufferAxe = {};
|
||||
bCollision = m_pGameInstance->SphereCast(1.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferAxe);
|
||||
if (true == bCollision) {
|
||||
iHitCount += m_SweepBufferAxe.getNbTouches() + m_SweepBufferAxe.hasBlock;
|
||||
auto touches = m_SweepBufferAxe.getTouches();
|
||||
for (_uint i = 0; i < m_SweepBufferAxe.nbTouches; ++i) {
|
||||
pxHits.push_back(m_SweepBufferAxe.touches[i]);
|
||||
}
|
||||
if (true == m_SweepBufferAxe.hasBlock) {
|
||||
pxHits.push_back(m_SweepBufferAxe.block);
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartGripPos);
|
||||
_vector vEndPos = m_pTransformCom->Get_State(STATE::POSITION);
|
||||
_vector vDir = vEndPos - vStartPos;
|
||||
_float fDistance = XMVectorGetX(XMVector4Length(vDir));
|
||||
vDir = XMVector4Normalize(vDir);
|
||||
|
||||
_bool bCollision = false;
|
||||
m_SweepBufferGrip = {};
|
||||
bCollision = m_pGameInstance->SphereCast(1.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip);
|
||||
if (true == bCollision) {
|
||||
iHitCount += m_SweepBufferGrip.getNbTouches() + m_SweepBufferGrip.hasBlock;
|
||||
auto touches = m_SweepBufferGrip.getTouches();
|
||||
for (_uint i = 0; i < m_SweepBufferGrip.nbTouches; ++i) {
|
||||
pxHits.push_back(m_SweepBufferGrip.touches[i]);
|
||||
}
|
||||
if (true == m_SweepBufferGrip.hasBlock) {
|
||||
pxHits.push_back(m_SweepBufferGrip.block);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void CGoblin_BattleAxe::SwingHit(_bool& bPlayerHit)
|
||||
{
|
||||
vector<PSX::PxSweepHit> pxHits;
|
||||
_uint iHitCount = 0;
|
||||
CheckAxeHits(iHitCount, pxHits);
|
||||
{
|
||||
for (_uint i = 0; i < pxHits.size(); ++i) {
|
||||
PSX::PxActor* pxHitActor = pxHits[i].actor;
|
||||
if (nullptr != pxHitActor && nullptr != pxHitActor->userData) {
|
||||
PhsXUserData* pUserData = (PhsXUserData*)pxHitActor->userData;
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::PLAYER:
|
||||
{
|
||||
if (true == bPlayerHit) {
|
||||
continue;
|
||||
}
|
||||
CStat* pStat = pUserData->pCharacter->Get_Owner()->Get_Component<CStat>();
|
||||
pStat->Get_Damage(20.f);
|
||||
bPlayerHit = true;
|
||||
pUserData->pOwner->OnCollision(this);
|
||||
} break;
|
||||
case PXOBJECT::ALLY_HITBOX:
|
||||
break;
|
||||
case PXOBJECT::ENVIRIONMENT:
|
||||
break;
|
||||
case PXOBJECT::TERRAIN:
|
||||
break;
|
||||
case PXOBJECT::BOX:
|
||||
break;
|
||||
case PXOBJECT::NPC:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
CGoblin_BattleAxe* CGoblin_BattleAxe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
|
||||
@@ -84,10 +84,6 @@ void CGoblin_Mage::Update(_float fTimeDelta)
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Play_Event();
|
||||
#ifdef _DEBUG
|
||||
GUI::Text("%d", m_pCharacter_Controller->IsActive());
|
||||
GUI::Text("%f %f", m_vStunTimer.x, m_vStunTimer.y);
|
||||
#endif // _DEBUG
|
||||
|
||||
if (true == m_pCharacter_Controller->IsActive()) {
|
||||
{ // 세트
|
||||
@@ -338,7 +334,7 @@ HRESULT CGoblin_Mage::Ready_Components()
|
||||
Desc.fContactOffset = 0.001f;
|
||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.001f };
|
||||
Desc.fStepOffset = { 0.02f };
|
||||
Desc.fRadius = 0.6f;
|
||||
Desc.fHeight = 0.7f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Monster_HitReport::Create();
|
||||
@@ -447,40 +443,42 @@ void CGoblin_Mage::Free()
|
||||
|
||||
void CGoblin_Mage::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("Goblin");
|
||||
GUI::Begin("UNIT");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("Goblin_Mage")) {
|
||||
|
||||
GUI::Checkbox("LookAt", &m_bLookAt);
|
||||
GUI::Checkbox("LookAt", &m_bLookAt);
|
||||
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
if (GUI::DragFloat3("Pos", (_float*)&Pos))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
|
||||
}
|
||||
|
||||
XMFLOAT3 f3;
|
||||
XMStoreFloat3(&f3, m_vOriginPos);
|
||||
|
||||
GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
|
||||
|
||||
m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
|
||||
|
||||
GUI::Text("Length %.2f", m_fLength);
|
||||
|
||||
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
|
||||
|
||||
if (GUI::DragFloat3("Pos", (_float*)&Pos))
|
||||
{
|
||||
m_pCharacter_Controller->Set_Position(XMLoadFloat3(&Pos));
|
||||
}
|
||||
|
||||
XMFLOAT3 f3;
|
||||
XMStoreFloat3(&f3, m_vOriginPos);
|
||||
|
||||
GUI::Text("Origin: %.2f, %.2f, %.2f", f3.x, f3.y, f3.z);
|
||||
|
||||
m_fLength = XMVectorGetX(XMVector2Length(m_pTransformCom->Get_State(STATE::POSITION) - m_vOriginPos));
|
||||
|
||||
GUI::Text("Length %.2f", m_fLength);
|
||||
|
||||
GUI::TextColored(ImVec4(1.f, 0.f, 0.f, 1.f), "Distance %.2f", m_fTargetDistance);
|
||||
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -326,6 +326,11 @@ void CGoblin_Mage::Behavior_BlinkEnter()
|
||||
|
||||
m_pCharacter_Controller->Set_Position(vFinalPos); }
|
||||
, 0.99f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBILN_TELEPORT, this);
|
||||
}, 0.1f);
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Mage::Behavior_BlinkExitCheck(_float fTimeDelta)
|
||||
|
||||
@@ -17,6 +17,8 @@ CGoblin_Protego::CGoblin_Protego(const CGoblin_Protego& rhs)
|
||||
|
||||
HRESULT CGoblin_Protego::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -30,7 +32,7 @@ HRESULT CGoblin_Protego::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinProtego")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere = Get_PartObject<CEffectParts>("ProtegoSphere");
|
||||
|
||||
@@ -348,11 +348,12 @@ void CGoblin_Spector::Free()
|
||||
|
||||
void CGoblin_Spector::Describe_Entity()
|
||||
{
|
||||
|
||||
GUI::Begin("GoblinSpector");
|
||||
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||
GUI::DragFloat3("Scale", (_float*)&vScale);
|
||||
|
||||
GUI::Begin("UNIT");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("GoblinSpector")) {
|
||||
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||
GUI::DragFloat3("Scale", (_float*)&vScale);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -369,6 +369,11 @@ void CGoblin::Behavior_BlinkEnter()
|
||||
|
||||
m_pCharacter_Controller->Set_Position(vFinalPos); }
|
||||
, 0.99f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::GOBILN_TELEPORT, this);
|
||||
}, 0.1f);
|
||||
}
|
||||
|
||||
HRESULT CGoblin::Behavior_BlinkExitCheck(_float fTimeDelta)
|
||||
|
||||
@@ -0,0 +1,175 @@
|
||||
#include "pch.h"
|
||||
#include "Goblin_Teleport.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
CGoblin_Teleport::CGoblin_Teleport(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CGoblin_Teleport::CGoblin_Teleport(const CGoblin_Teleport& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Teleport::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinTeleport")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Teleport::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"GoblinTeleport";
|
||||
|
||||
|
||||
m_fDuration = 2.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_Teleport::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_Teleport::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_Teleport::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Teleport::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
|
||||
|
||||
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_Component<CCharacter_Controller>()->Get_Position());
|
||||
|
||||
pSmoke->Set_Visible(true);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Teleport::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CGoblin_Teleport::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CGoblin_Teleport* CGoblin_Teleport::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CGoblin_Teleport* pInstance = new CGoblin_Teleport(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CGoblin_Teleport");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CGoblin_Teleport::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CGoblin_Teleport* pInstance = new CGoblin_Teleport(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CGoblin_Teleport");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CGoblin_Teleport::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
_int iIndex = CollisionCheck();
|
||||
|
||||
if (iIndex < 0)
|
||||
return;
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CGoblin_Teleport::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CGoblin_Teleport::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CGoblin_Teleport::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ HRESULT CInteractiveInfo::Refresh_LockOnTarget()
|
||||
_vector vCameraPos = m_pGameInstance->Get_CamXMPosition();
|
||||
_float fMaxDot = { 0.f };
|
||||
|
||||
_vector vMonsterPos;
|
||||
_vector vInteractablePos;
|
||||
_vector vToMonsterDir;
|
||||
_bool bAim = false;
|
||||
_float fFovy = 0.f;
|
||||
@@ -83,8 +83,11 @@ HRESULT CInteractiveInfo::Refresh_LockOnTarget()
|
||||
// (카메라의 룩)과 (카메라 -> 몬스터 방향 벡터)를 내적해서 가장 큰 크기가 나온 몬스타가 락온 대상
|
||||
CMapElement_Interactable* pInteractive = (*iter);
|
||||
|
||||
vMonsterPos = pInteractive->Get_LockOnPos();
|
||||
vToMonsterDir = vMonsterPos - vCameraPos;
|
||||
vInteractablePos = pInteractive->Get_LockOnPos();
|
||||
vToMonsterDir = vInteractablePos - vCameraPos;
|
||||
if (150.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) {
|
||||
continue;
|
||||
}
|
||||
_float fDotResult = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
|
||||
if (fDotResult <= cosf(fFovy)) {
|
||||
continue;
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
#include "pch.h"
|
||||
#include "Item_Potion.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CItem_Potion::CItem_Potion(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CPartObject(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CItem_Potion::CItem_Potion(const CItem_Potion& Prototype)
|
||||
: CPartObject(Prototype)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CItem_Potion::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CItem_Potion::Initialize(void* pArg)
|
||||
{
|
||||
POTION_DESC* pDesc = static_cast<POTION_DESC*> (pArg);
|
||||
m_pSocketMatrices = pDesc->pSocketMatrices;
|
||||
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(Ready_Components())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CItem_Potion::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void CItem_Potion::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
|
||||
}
|
||||
|
||||
void CItem_Potion::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible)
|
||||
{
|
||||
m_fTimer += fTimeDelta;
|
||||
if (m_fTimer >= 1.7f) {
|
||||
m_fTimer = 0.f;
|
||||
m_bVisible = false;
|
||||
}
|
||||
|
||||
}
|
||||
if (m_bAttach)
|
||||
{
|
||||
_matrix socketMatrix = {};
|
||||
|
||||
socketMatrix = XMLoadFloat4x4(m_pSocketMatrices);
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]);
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr()));
|
||||
}
|
||||
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
|
||||
HRESULT CItem_Potion::Render()
|
||||
{
|
||||
if (!m_pModelCom)
|
||||
return S_OK;
|
||||
|
||||
if (!m_bVisible)
|
||||
return S_OK;
|
||||
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_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_ANIM::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CItem_Potion::Set_Attach(_bool Attach)
|
||||
{
|
||||
m_bAttach = Attach;
|
||||
}
|
||||
|
||||
|
||||
HRESULT CItem_Potion::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Potion_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom))))
|
||||
return E_FAIL;
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CItem_Potion::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
CItem_Potion* CItem_Potion::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CItem_Potion* pInstance = new CItem_Potion(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CItem_Potion");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CItem_Potion::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CItem_Potion* pInstance = new CItem_Potion(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CItem_Potion");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CItem_Potion::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CItem_Potion::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -238,7 +238,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
isReady_Background = true;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
isReady_Background = false;
|
||||
isReady_Background = true;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
isReady_Background = true;
|
||||
@@ -263,11 +263,12 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data");
|
||||
|
||||
/* 물 오브젝트 */
|
||||
if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info")))
|
||||
if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info"))){
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* 조명 오브젝트 */
|
||||
/*CInfoInstance::GetInstance()->Load_LightElements("LightElement"); */
|
||||
CInfoInstance::GetInstance()->Load_LightElements("LightElement");
|
||||
|
||||
/* 상호작용 오브젝트 */
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_Barrel");
|
||||
@@ -441,6 +442,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_Camera()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{};
|
||||
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
|
||||
Camera_Desc.fNear = 0.1f;
|
||||
@@ -451,7 +453,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
|
||||
Camera_Desc.pCameraKey = CAMERA_DEBUG;
|
||||
Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f);
|
||||
Camera_Desc.fMouseSensor = 0.1f;
|
||||
Camera_Desc.iPriority = 70;
|
||||
Camera_Desc.iPriority = 53;
|
||||
Camera_Desc.pFollowTarget = { nullptr };
|
||||
Camera_Desc.pLookTarget = { nullptr };
|
||||
|
||||
@@ -461,11 +463,13 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera()
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG);
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, true))) {
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, true))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,8 +23,10 @@ CLevioso::CLevioso(const CLevioso& rhs)
|
||||
HRESULT CLevioso::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CLevioso::Initialize(void* pArg)
|
||||
@@ -35,12 +37,11 @@ HRESULT CLevioso::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Levioso")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
|
||||
|
||||
m_pLeviosoPJ_0 = Get_PartObject<CEffectParts>("Levioso_PJ0");
|
||||
m_pTrail_PT_0 = Get_PartObject<CEffectParts>("Trail_PT0");
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@ CLeviosoSide::CLeviosoSide(const CLeviosoSide& rhs)
|
||||
|
||||
HRESULT CLeviosoSide::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/LeviosoSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -33,8 +35,7 @@ HRESULT CLeviosoSide::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/LeviosoSide")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"LeviosoSide";
|
||||
|
||||
@@ -39,8 +39,10 @@ void CLight_Main::Priority_Update(_float fTimeDelta)
|
||||
void CLight_Main::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
GUI::Begin("Main_Light");
|
||||
m_pLightCom->Describe_Entity();
|
||||
GUI::Begin("LIGHT");
|
||||
if (GUI::CollapsingHeader("Main_Light")) {
|
||||
m_pLightCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "Troll_Rock.h"
|
||||
#include "Goblin_Dagger.h"
|
||||
#include "Wand.h"
|
||||
#include "Item_Potion.h"
|
||||
#include "Goblin_BattleAxe.h"
|
||||
|
||||
#pragma region ACTOR
|
||||
@@ -127,7 +128,7 @@
|
||||
#include "EffectPool.h"
|
||||
#include "Levioso.h"
|
||||
#include "Lumos.h"
|
||||
|
||||
#include "Goblin_Teleport.h"
|
||||
|
||||
|
||||
#include "TrollSwing.h"
|
||||
@@ -312,7 +313,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_Background = true;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
isLoad_Background = false;
|
||||
isLoad_Background = true;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
isLoad_Background = true;
|
||||
@@ -871,206 +872,206 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
m_pGameInstance->Load_GlobalSRV(TEXT("GLOBAL_DISOLVE_BURN_VERTICAL"), "../Bin/Resources/Textures/Effect/Diffuse/drp_fire_Line_Vertical.png");
|
||||
}
|
||||
#pragma endregion
|
||||
#pragma region UI_ANI
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Alohomora"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic_Throw"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Arresto_Momentum"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Avada_Kedavra"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Basic_Cast"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Feed"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Petting_Brush"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Bombarda"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Confringo"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Conjuring_Spell"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Descendo"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Depulso"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Diffindo"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Disillusionment"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Evanesco"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Expelliarmus"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Flipendo"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Glacius"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Imperio"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Incendio"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Levioso"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lumos"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Nab_Sack"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Petrificus_Totalus"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Protego"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Reparo"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Revelio"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Stupefy"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Transformation"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Wingardium_Leviosa"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Crucio"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216))))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
//#pragma region UI_ANI
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Altering_Spell"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Altering_Spell\\Altering_Spell%d.png"), 349))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Alohomora"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Alohomora\\Alohomora%d.png"), 394))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic\\Ancient_Magic%d.png"), 152))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Ancient_Magic_Throw"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Ancient_Magic_Throw\\Ancient_Magic_Throw%d.png"), 89))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Arresto_Momentum"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Arresto_Momentum\\Arresto_Momentum%d.png"), 120))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Avada_Kedavra"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Avada_Kedavra\\Avada_Kedavra%d.png"), 208))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Basic_Cast"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Basic_Cast\\Basic_Cast%d.png"), 308))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Feed"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Feed\\Beast_Feed%d.png"), 378))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Beast_Petting_Brush"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Beast_Petting_Brush\\Beast_Petting_Brush%d.png"), 327))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Bombarda"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Bombarda\\Bombarda%d.png"), 262))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Confringo"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Confringo\\Confringo%d.png"), 157))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Conjuring_Spell"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Conjuring_Spell\\Conjuring_Spell%d.png"), 115))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Descendo"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Descendo\\Descendo%d.png"), 155))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Depulso"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Depulso\\Depulso%d.png"), 152))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Diffindo"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Diffindo\\Diffindo%d.png"), 150))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Disillusionment"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Disillusionment\\Disillusionment%d.png"), 260))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Evanesco"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Evanesco\\Evanesco%d.png"), 136))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Expelliarmus"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Expelliarmus\\Expelliarmus%d.png"), 146))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Flipendo"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Flipendo\\Flipendo%d.png"), 188))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Glacius"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Glacius\\Glacius%d.png"), 156))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Imperio"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Imperio\\Imperio%d.png"), 462))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Incendio"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Incendio\\Incendio%d.png"), 213))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Levioso"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Levioso\\Levioso%d.png"), 180))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Lumos"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Lumos\\Lumos%d.png"), 365))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Nab_Sack"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Nab_Sack\\Nab_Sack%d.png"), 235))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Petrificus_Totalus"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Petrificus_Totalus\\Petrificus_Totalus%d.png"), 275))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Protego"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Protego\\Protego%d.png"), 285))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Reparo"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Reparo\\Reparo%d.png"), 385))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Revelio"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Revelio\\Revelio%d.png"), 227))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Stupefy"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Stupefy\\Stupefy%d.png"), 222))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Transformation"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Transformation\\Transformation%d.png"), 146))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Wingardium_Leviosa"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Wingardium_Leviosa\\Wingardium_Leviosa%d.png"), 273))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
// if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Crucio"),
|
||||
// CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("C:\\MeshTable\\SpellAnim\\Crucio\\Crucio%d.png"), 216))))
|
||||
// {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//
|
||||
//#pragma endregion
|
||||
|
||||
#pragma region TERRAIN_TEXTURE
|
||||
/* Terrain_Diffuse */
|
||||
@@ -1392,37 +1393,69 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
|
||||
|
||||
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
|
||||
{
|
||||
Desc.eType = ACTOR::BOX;
|
||||
Desc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ };
|
||||
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
||||
Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
|
||||
Desc.vMatInfo = { 0.5f, 0.5f, 0.6f };
|
||||
Desc.fContactOffset = { 0.05f };
|
||||
Desc.vhalfGeometryInfo = { 0.5f, 0.5f, 0.5f };
|
||||
Desc.fDensity = 1.f;
|
||||
Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
|
||||
Desc.eLockFlag = {};
|
||||
Desc.vAutoDamping = { 1.f, 1.f };
|
||||
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
|
||||
Desc.vLocalTranslation = { 0.f, 0.f, 0.f };
|
||||
}
|
||||
{ // LIGHT PHYSX DYNAMIC
|
||||
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
|
||||
{
|
||||
Desc.eType = ACTOR::BOX;
|
||||
Desc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ };
|
||||
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
||||
Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
|
||||
Desc.vMatInfo = { 0.5f, 0.5f, 0.6f };
|
||||
Desc.fContactOffset = { 0.05f };
|
||||
Desc.vhalfGeometryInfo = { 0.5f, 0.5f, 0.5f };
|
||||
Desc.fDensity = 1.f;
|
||||
Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
|
||||
Desc.eLockFlag = {};
|
||||
Desc.vAutoDamping = { 1.f, 1.f };
|
||||
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
|
||||
Desc.vLocalTranslation = { 0.f, 0.f, 0.f };
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//Desc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
//Desc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
{ // DOOR PHYSX
|
||||
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
|
||||
{
|
||||
Desc.eType = ACTOR::BOX;
|
||||
Desc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
|
||||
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
||||
Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
|
||||
Desc.vMatInfo = { 0.5f, 0.5f, 0.6f };
|
||||
Desc.fContactOffset = { 0.05f };
|
||||
Desc.vhalfGeometryInfo = { 0.35f, 0.75f, 0.15f };
|
||||
Desc.fDensity = 10.f;
|
||||
PSX::PxTransform pxPivotTransform = PSX::PxTransform(PSX::PxVec3(0.f, 0.f, 0.f));
|
||||
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
|
||||
Desc.vLocalTranslation = { 0.5f, 0.f, 0.f };
|
||||
|
||||
Desc.pxMassCenter = pxPivotTransform;
|
||||
Desc.eLockFlag = {
|
||||
PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_X |
|
||||
//PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_Y |
|
||||
PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_Z |
|
||||
PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_Y |
|
||||
PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_X |
|
||||
PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_Z
|
||||
};
|
||||
Desc.vAutoDamping = { 10.f, 10.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"),
|
||||
@@ -1471,6 +1504,11 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.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_Broom_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
@@ -1603,6 +1641,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CGoblin_Teleport>(NEXT_LEVEL, CGoblin_Teleport::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CEffectPool>(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -2188,6 +2230,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWand>(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Potion */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CItem_Potion>(g_iStaticLevel, CItem_Potion::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Troll_Weapon */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Weapon>(g_iStaticLevel, CTroll_Weapon::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -44,75 +44,41 @@ HRESULT CLoding_Panel::Initialize(void* pArg)
|
||||
Visible(true);
|
||||
m_bActive = true;
|
||||
//m_vImageposSi = _float4(0.f, 0.f, 1792.f, 1024.f);
|
||||
#ifdef _DEBUG
|
||||
INHYUK = true;
|
||||
human = 0;
|
||||
#endif // DEBUG
|
||||
|
||||
m_iToolTip_Count = 0;
|
||||
ToolTipSetting();
|
||||
return S_OK;
|
||||
}
|
||||
void CLoding_Panel::Set_Image(_int Index)
|
||||
{
|
||||
m_iImageNum = Index;
|
||||
}
|
||||
void CLoding_Panel::ToolTipSetting()
|
||||
{
|
||||
ToolTip[0] = TEXT("알고 계셨나요?\nF9를 눌러 브레이크포인트를 설정할 수 있습니다.");
|
||||
ToolTip[1] = TEXT("알고 계셨나요?\nF12를 눌러 정의로 바로 이동할 수 있습니다!.");
|
||||
ToolTip[2] = TEXT("알고 계셨나요?\n디버깅 중에도 핫 리로드로 코드를 수정할 수 있습니다.");
|
||||
ToolTip[3] = TEXT("알고 계셨나요?\nCtrl + R, R로 변수 또는 함수 이름을 프로젝트 전체에서 일괄 변경할 수 있습니다.");
|
||||
ToolTip[4] = TEXT("알고 계셨나요?\n디버깅 중 변수에 마우스를 올리면 현재 값을 확인할 수 있습니다.");
|
||||
}
|
||||
void CLoding_Panel::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CLoding_Panel::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
if (m_pGameInstance->Key_Down(DIK_M))
|
||||
{
|
||||
human++;
|
||||
if (human > 4) // 4보다 크면 0으로
|
||||
human = 0;
|
||||
m_iToolTip_Count++;
|
||||
if (m_iToolTip_Count > 4) // 4보다 크면 0으로
|
||||
m_iToolTip_Count = 0;
|
||||
}
|
||||
if (m_pGameInstance->Key_Down(DIK_N))
|
||||
{
|
||||
human--;
|
||||
if (human < 0) // 0보다 작으면 4로
|
||||
human = 4;
|
||||
m_iToolTip_Count--;
|
||||
if (m_iToolTip_Count < 0) // 0보다 작으면 4로
|
||||
m_iToolTip_Count = 4;
|
||||
}
|
||||
switch (human)
|
||||
{
|
||||
case 0:
|
||||
INHYUK = true;
|
||||
JINHO = false;
|
||||
HYUNBIN = false;
|
||||
NURI = false;
|
||||
JINWOO = false;
|
||||
break;
|
||||
case 1:
|
||||
INHYUK = false;
|
||||
JINHO = true;
|
||||
HYUNBIN = false;
|
||||
NURI = false;
|
||||
JINWOO = false;
|
||||
break;
|
||||
case 2:
|
||||
INHYUK = false;
|
||||
JINHO = false;
|
||||
HYUNBIN = true;
|
||||
NURI = false;
|
||||
JINWOO = false;
|
||||
break;
|
||||
case 3:
|
||||
INHYUK = false;
|
||||
JINHO = false;
|
||||
HYUNBIN = false;
|
||||
NURI = true;
|
||||
JINWOO = false;
|
||||
break;
|
||||
case 4:
|
||||
INHYUK = false;
|
||||
JINHO = false;
|
||||
HYUNBIN = false;
|
||||
NURI = false;
|
||||
JINWOO = true;
|
||||
break;
|
||||
}
|
||||
#endif // DEBUG
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -135,20 +101,10 @@ HRESULT CLoding_Panel::Render()
|
||||
if (FAILED(m_pVIBufferCom->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("<- N M ->."), _float2(100.f, 750.f));
|
||||
|
||||
if (INHYUK == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\nUI의 생일은 28일 이랍니다."), _float2(100.f, 800.f));
|
||||
if (JINHO == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n우리팀 맵툴은 최강 입니다."), _float2(100.f, 800.f));
|
||||
if (HYUNBIN == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n이제 막 범인에서 벗어 났습니다."), _float2(100.f, 800.f));
|
||||
if (NURI == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n이제 막 슬슬 범인 입니다."), _float2(100.f, 800.f));
|
||||
if (JINWOO == true)
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), TEXT("알고 계셨나요?\n그는 그림자의 군주입니다."), _float2(100.f, 800.f));
|
||||
#endif // DEBUG
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), ToolTip[m_iToolTip_Count].c_str(), _float2(100.f, 800.f));
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -17,9 +17,11 @@ CLumos::CLumos(const CLumos& rhs)
|
||||
|
||||
HRESULT CLumos::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Lumos")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLumos::Initialize(void* pArg)
|
||||
@@ -30,8 +32,7 @@ HRESULT CLumos::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Lumos")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"Lumos";
|
||||
@@ -67,6 +68,12 @@ void CLumos::Update(_float fTimeDelta)
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
if (910!= m_pOwner->Get_Owner()->Get_Component<CModel>()->Get_SecondAnimIndex())
|
||||
{
|
||||
_int iIndex = m_pOwner->Get_Owner()->Get_Component<CModel>()->Get_SecondAnimIndex();
|
||||
m_bVisible = false;
|
||||
}
|
||||
}
|
||||
|
||||
void CLumos::Late_Update(_float fTimeDelta)
|
||||
|
||||
@@ -20,6 +20,9 @@ CMageSide::CMageSide(const CMageSide& rhs)
|
||||
HRESULT CMageSide::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/MageSide")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -32,8 +35,7 @@ HRESULT CMageSide::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/MageSide")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ CMage_Down_Attack::CMage_Down_Attack(const CMage_Down_Attack& rhs)
|
||||
HRESULT CMage_Down_Attack::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/DownAttack")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -34,11 +37,9 @@ HRESULT CMage_Down_Attack::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/DownAttack")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"DownAttack";
|
||||
|
||||
|
||||
|
||||
@@ -22,6 +22,10 @@ CMage_Nomal_Attack::CMage_Nomal_Attack(const CMage_Nomal_Attack& rhs)
|
||||
HRESULT CMage_Nomal_Attack::Initialize_Prototype()
|
||||
{
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/NomalAttack")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -34,8 +38,7 @@ HRESULT CMage_Nomal_Attack::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/GoblinMage/NomalAttack")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,9 @@ void CMainApp::Update(_float fTimeDelta)
|
||||
GUI::NewFrame();
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Present_TimeCost();
|
||||
GUI::Begin("SYSTEM");
|
||||
GUI::SliderFloat("fTimeMult", &g_fTimeMult, 0.01f, 4.f);
|
||||
GUI::End();
|
||||
m_pGameInstance->Update_Engine(fTimeDelta * g_fTimeMult);
|
||||
#endif // _DEBUG
|
||||
#ifndef _DEBUG
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "MapElement_Door.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "RigidBody_Dynamic.h"
|
||||
#include "Terrain.h"
|
||||
#include "Layer.h"
|
||||
#include "VIBuffer_Terrain.h"
|
||||
@@ -43,17 +44,39 @@ HRESULT CMapElement_Door::Initialize(void* pArg)
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||
|
||||
m_vBoxSize = _float3(1.f, 1.f, 1.f);/*
|
||||
m_pActor = static_cast<PSX::PxRigidDynamic*>(m_pRigidBody->Get_Actor());
|
||||
XMStoreFloat4((_float4*)&m_pxStartQuat, m_pTransformCom->Get_QuarternionVector());
|
||||
XMStoreFloat4x4(&m_InitialMatrix, m_pTransformCom->Get_XMWorldMatrix());
|
||||
|
||||
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_HalfGeometryInfo(pDesc->vBoxSize);
|
||||
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition);*/
|
||||
m_vRadianYAngle.y = pDesc->vRotation.z;
|
||||
m_vRadianYAngle.x = m_vRadianYAngle.y + XMConvertToRadians(-70.f);
|
||||
m_vRadianYAngle.z = m_vRadianYAngle.y + XMConvertToRadians(70.f);
|
||||
|
||||
{ // RIGID_BODY
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::DOOR);
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_DOOR"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
m_pActor = (PSX::PxRigidDynamic*)m_pRigidBody->Get_Actor();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Door::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pActor->getRigidBodyFlags() & PSX::PxRigidBodyFlag::eKINEMATIC) {
|
||||
m_vKinematicTimer.x += fTimeDelta;
|
||||
if (m_vKinematicTimer.x < m_vKinematicTimer.z) {
|
||||
// 행렬없이 럴프 버전
|
||||
_float fTime = max(0.f, ((m_vKinematicTimer.x - m_vKinematicTimer.y) / (m_vKinematicTimer.z - m_vKinematicTimer.y)));
|
||||
Lerp_Matrix(fTime);
|
||||
//Lerp_NonMatrix(fTime);
|
||||
}
|
||||
else {
|
||||
m_pActor->setRigidBodyFlag(PSX::PxRigidBodyFlag::eKINEMATIC, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CMapElement_Door::Update(_float fTimeDelta)
|
||||
@@ -63,6 +86,45 @@ void CMapElement_Door::Update(_float fTimeDelta)
|
||||
void CMapElement_Door::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
_vector vRPY = m_pTransformCom->Get_RollPitchYawVector();
|
||||
if (!(m_pActor->getRigidBodyFlags() & PSX::PxRigidBodyFlag::eKINEMATIC)) {
|
||||
_float fPitch = XMVectorGetX(vRPY);
|
||||
_float fYaw = XMVectorGetY(vRPY);
|
||||
_float fRoll = XMVectorGetZ(vRPY);
|
||||
|
||||
_float fClampedYaw = ClampRadian(fYaw);
|
||||
if (fClampedYaw != fYaw) {
|
||||
_vector vNewQuat = XMQuaternionRotationRollPitchYaw(fPitch, fClampedYaw, fRoll);
|
||||
|
||||
PSX::PxTransform actorPose = m_pActor->getGlobalPose();
|
||||
PSX::PxTransform massLocalPose = m_pActor->getCMassLocalPose();
|
||||
|
||||
PSX::PxVec3 vpxMassLocal = massLocalPose.p;
|
||||
PSX::PxVec3 vpxMassWorld = actorPose.transform(vpxMassLocal);
|
||||
|
||||
_vector vMassLocal = XMVectorSet(vpxMassLocal.x, vpxMassLocal.y, vpxMassLocal.z, 0.f);
|
||||
_vector vMassWorld = XMVectorSet(vpxMassWorld.x, vpxMassWorld.y, vpxMassWorld.z, 1.f);
|
||||
|
||||
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||
_matrix ScaleMatrix = XMMatrixScalingFromVector(XMLoadFloat3(&vScale));
|
||||
_matrix RotationMatrix = XMMatrixRotationQuaternion(vNewQuat);
|
||||
|
||||
_matrix TranslationLocal = XMMatrixTranslationFromVector(-vMassLocal);
|
||||
_matrix TranslationWorld = XMMatrixTranslationFromVector(vMassWorld);
|
||||
|
||||
// 최종 월드 행렬
|
||||
_matrix world = TranslationLocal // 피벗중심으로 좌표계를 이동시킴
|
||||
* (ScaleMatrix * RotationMatrix * TranslationWorld); // 그 후 SRT 적용
|
||||
|
||||
m_pTransformCom->Set_WorldMatrix(world);
|
||||
m_pActor->setGlobalPose(XMWorldToPx_NoScale(world));
|
||||
|
||||
m_pActor->setAngularVelocity(PSX::PxVec3(0));
|
||||
m_pActor->setLinearVelocity(PSX::PxVec3(0));
|
||||
m_pActor->setRigidBodyFlag(PSX::PxRigidBodyFlag::eKINEMATIC, true);
|
||||
m_vKinematicTimer.x = 0.f;
|
||||
}
|
||||
}
|
||||
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
@@ -125,14 +187,6 @@ HRESULT CMapElement_Door::Ready_Components(void* pArg)
|
||||
|
||||
ELEMENT_DOOR_DESC* pPhysXDummyDesc = static_cast<ELEMENT_DOOR_DESC*>(pArg);
|
||||
|
||||
//// RIGID_BODY
|
||||
//CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
//Desc.iSubKind = ENUM_CLASS(PXOBJECT::BOX);//pPhysXDummyDesc->iSubKind;
|
||||
//if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -155,6 +209,67 @@ HRESULT CMapElement_Door::Bind_ShaderResources()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Door::Lerp_Matrix(_float fTime)
|
||||
{
|
||||
{
|
||||
_float4x4 OutMatrix = {};
|
||||
_float4x4 CurrentMatrix = {};
|
||||
XMStoreFloat4x4(&CurrentMatrix, m_pTransformCom->Get_XMWorldMatrix());
|
||||
CMyTools::MatrixLerp(&CurrentMatrix, &m_InitialMatrix, OutMatrix, fTime);
|
||||
m_pTransformCom->Set_WorldMatrix(OutMatrix);
|
||||
}
|
||||
}
|
||||
|
||||
void CMapElement_Door::Lerp_NonMatrix(_float fTime)
|
||||
{
|
||||
{
|
||||
_vector vCurrQ = m_pTransformCom->Get_QuarternionVector();
|
||||
_vector vInitialQ = XMLoadFloat4((_float4*)&m_pxStartQuat);
|
||||
_vector vLerpQuat = XMVector4Normalize(XMVectorLerp(vCurrQ, vInitialQ, fTime));
|
||||
|
||||
PSX::PxTransform actorPose = m_pActor->getGlobalPose();
|
||||
PSX::PxTransform massLocalPose = m_pActor->getCMassLocalPose();
|
||||
|
||||
PSX::PxVec3 vpxMassLocal = massLocalPose.p;
|
||||
PSX::PxVec3 vpxMassWorld = actorPose.transform(vpxMassLocal);
|
||||
|
||||
_vector vMassLocal = XMVectorSet(vpxMassLocal.x, vpxMassLocal.y, vpxMassLocal.z, 0.f);
|
||||
_vector vMassWorld = XMVectorSet(vpxMassWorld.x, vpxMassWorld.y, vpxMassWorld.z, 1.f);
|
||||
|
||||
|
||||
_float3 vScale = m_pTransformCom->Get_Scale();
|
||||
_matrix ScaleMatrix = XMMatrixScalingFromVector(XMLoadFloat3(&vScale));
|
||||
_matrix RotationMatrix = XMMatrixRotationQuaternion(vLerpQuat);
|
||||
|
||||
_matrix TranslationLocal = XMMatrixTranslationFromVector(-vMassLocal);
|
||||
_matrix TranslationWorld = XMMatrixTranslationFromVector(vMassWorld);
|
||||
|
||||
// 최종 월드 행렬
|
||||
_matrix world = TranslationLocal // 피벗중심으로 좌표계를 이동시킴
|
||||
* (ScaleMatrix * RotationMatrix * TranslationWorld); // 그 후 SRT 적용
|
||||
|
||||
m_pTransformCom->Set_WorldMatrix(world);
|
||||
}
|
||||
}
|
||||
|
||||
_float CMapElement_Door::ClampRadian(_float fNewRadian)
|
||||
{
|
||||
// [x, z] 사이로 잘라주는 단순한 클램프
|
||||
_float minYaw = m_vRadianYAngle.x;
|
||||
_float maxYaw = m_vRadianYAngle.z;
|
||||
|
||||
// 라디안 노멀라이즈 ([-pi, pi] 같은 범위로)
|
||||
fNewRadian = CMyTools::NormalizeRadian(fNewRadian);
|
||||
|
||||
if (fNewRadian < minYaw) {
|
||||
fNewRadian = minYaw;
|
||||
}
|
||||
else if (fNewRadian > maxYaw) {
|
||||
fNewRadian = maxYaw;
|
||||
}
|
||||
return fNewRadian;
|
||||
}
|
||||
|
||||
CMapElement_Door* CMapElement_Door::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMapElement_Door* pInstance = new CMapElement_Door(pDevice, pContext);
|
||||
@@ -188,7 +303,7 @@ void CMapElement_Door::Free()
|
||||
}
|
||||
__super::Free();
|
||||
|
||||
//SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
for (auto& pModel : m_pModelComs)
|
||||
|
||||
@@ -680,44 +680,45 @@ void CMapInfo::Free()
|
||||
|
||||
void CMapInfo::Describe_Entity()
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_BACKGROUND);
|
||||
if (nullptr == pLayer) {
|
||||
return;
|
||||
}
|
||||
static _bool s_bConverted = { false };
|
||||
static _bool s_bReadyToCreate = { false };
|
||||
GUI::Begin("CLIENT_SYSTEM");
|
||||
if (GUI::CollapsingHeader("MapInfoDesc")) {
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_BACKGROUND);
|
||||
if (nullptr == pLayer) {
|
||||
return;
|
||||
}
|
||||
static _bool s_bConverted = { false };
|
||||
static _bool s_bReadyToCreate = { false };
|
||||
|
||||
const list<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
const list<CGameObject*>* pObjects = pLayer->Get_Objects();
|
||||
|
||||
GUI::Begin("MapInfoDesc");
|
||||
GUI::SetNextItemWidth(80.f);
|
||||
GUI::BeginChild("CollisonPartObjects");
|
||||
GUI::SetNextItemWidth(80.f);
|
||||
if (false == s_bReadyToCreate) {
|
||||
if (GUI::Button("Ready_StaticMeshesForPhyX_ALL")) {
|
||||
s_bReadyToCreate = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ReadyForPhysX();
|
||||
GUI::SetNextItemWidth(80.f);
|
||||
GUI::BeginChild("CollisonPartObjects");
|
||||
if (false == s_bReadyToCreate) {
|
||||
if (GUI::Button("Ready_StaticMeshesForPhyX_ALL")) {
|
||||
s_bReadyToCreate = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ReadyForPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (false == s_bConverted) {
|
||||
if (GUI::Button("Convert_StaticMeshesForPhyX_ALL")) {
|
||||
s_bConverted = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ConvertToPhysX();
|
||||
else if (false == s_bConverted) {
|
||||
if (GUI::Button("Convert_StaticMeshesForPhyX_ALL")) {
|
||||
s_bConverted = true;
|
||||
list<CGameObject*>::const_iterator iter = pObjects->begin();
|
||||
for (; iter != pObjects->end(); ++iter) {
|
||||
CMapContainer* pContainer = dynamic_cast<CMapContainer*>(*iter);
|
||||
if (nullptr != pContainer) {
|
||||
pContainer->ConvertToPhysX();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
GUI::EndChild();
|
||||
}
|
||||
GUI::EndChild();
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -94,6 +94,10 @@ void CMiniMap_Camera::Free()
|
||||
__super::Free();
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CMiniMap_Camera::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
|
||||
@@ -142,7 +142,6 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters()
|
||||
{ // 뷰프러스텀 순회해서 가장 중앙에 근접한 몬스터 찾기
|
||||
for (list<CMonster*>::iterator iter = m_ActiveMonsters.begin(); iter != m_ActiveMonsters.end(); ++iter)
|
||||
{
|
||||
|
||||
// (카메라의 룩)과 (카메라 -> 몬스터 방향 벡터)를 내적해서 가장 큰 크기가 나온 몬스타가 락온 대상
|
||||
CMonster* pMonster = (*iter);
|
||||
if (pMonster->Get_Hp().x <= 0) {
|
||||
@@ -150,6 +149,9 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters()
|
||||
}
|
||||
vMonsterPos = pMonster->Get_LockOnPos();
|
||||
vToMonsterDir = vMonsterPos - vCameraPos;
|
||||
if (150.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) {
|
||||
continue;
|
||||
}
|
||||
_float fDotResult = CMyTools::DirectionCompare(vCameraLook, vToMonsterDir);
|
||||
if (fDotResult <= cosf(fFovy)) {
|
||||
continue;
|
||||
|
||||
@@ -25,7 +25,9 @@ void CNPC_Ollivander::Priority_Update(_float fTimeDelta)
|
||||
void CNPC_Ollivander::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
|
||||
}
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
__super::Update(fTimeDelta);
|
||||
#ifdef _DEBUG
|
||||
@@ -39,6 +41,7 @@ void CNPC_Ollivander::Late_Update(_float fTimeDelta)
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
@@ -137,7 +140,8 @@ HRESULT CNPC_Ollivander::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(40.f, 4.f, 68.9f, 1.f));
|
||||
m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -192,21 +196,25 @@ void CNPC_Ollivander::Free()
|
||||
|
||||
void CNPC_Ollivander::Describe_Entity()
|
||||
{
|
||||
m_pModelCom->Describe_Entity();
|
||||
if (ImGui::TreeNode("ANIM STATE")) {
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Ollivander")) {
|
||||
m_pModelCom->Describe_Entity();
|
||||
if (ImGui::TreeNode("ANIM STATE")) {
|
||||
|
||||
for (auto& pState : m_States)
|
||||
{
|
||||
if (ImGui::Button(to_string(pState.first).c_str()))
|
||||
for (auto& pState : m_States)
|
||||
{
|
||||
m_pFSM->Change_State(pState.first);
|
||||
if (ImGui::Button(to_string(pState.first).c_str()))
|
||||
{
|
||||
m_pFSM->Change_State(pState.first);
|
||||
}
|
||||
}
|
||||
|
||||
GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
|
||||
GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
|
||||
|
||||
ImGui::TreePop();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -22,6 +22,9 @@ CNomalJap::CNomalJap(const CNomalJap& rhs)
|
||||
|
||||
HRESULT CNomalJap::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -35,14 +38,14 @@ HRESULT CNomalJap::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_iSkillType = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
|
||||
|
||||
m_wstrEffectName = L"Nomal_Jap";
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
m_pProjectile_Side = Get_PartObject<CEffectParts>("JapProjSide");
|
||||
|
||||
@@ -20,9 +20,10 @@ CNomalJapSide::CNomalJapSide(const CNomalJapSide& rhs)
|
||||
|
||||
HRESULT CNomalJapSide::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/JapsideEffect")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CNomalJapSide::Initialize(void* pArg)
|
||||
@@ -34,7 +35,7 @@ HRESULT CNomalJapSide::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/JapsideEffect")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_wstrEffectName = L"JapSideEffect";
|
||||
|
||||
@@ -106,7 +106,7 @@ HRESULT CPhysXEffectHitBox::Ready_Components(void* pArg)
|
||||
Desc.fContactOffset = 0.3f;
|
||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.05f };
|
||||
Desc.fStepOffset = { 0.02f };
|
||||
Desc.fRadius = 0.5f;
|
||||
Desc.fHeight = 1.0f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_EffectHitBox_HitReport::Create();
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "Camera_Gaze.h"
|
||||
#include "CamPosition_Arm.h"
|
||||
#include "Wand.h"
|
||||
#include "Item_Potion.h"
|
||||
#include "Character_Controller.h"
|
||||
#include "CallBack_Playable_Behavior.h"
|
||||
#include "CamPosition_Shoulder.h"
|
||||
@@ -92,6 +93,7 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
m_pInfoInstance->Set_Damage(m_pStat->Get_Stat().fDamage);
|
||||
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(-34.f, 5, -11.4f, 1.f));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f));
|
||||
|
||||
#ifdef _DEBUG
|
||||
m_BasicEffect = make_unique<BasicEffect>(m_pDevice);
|
||||
@@ -147,6 +149,14 @@ __super::Update(fTimeDelta);
|
||||
m_pInfoInstance->Mouse_Input(ENUM_CLASS(KEYINPUT::DIM_RBUTTON_UP));
|
||||
m_bAim = false;
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_1)) {
|
||||
if (m_pModelCom->Get_SecondAnimIndex() == m_Animation[STATEANIM::LUMOS].first)
|
||||
{
|
||||
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), m_Animation[STATEANIM::LUMOS_STOP].first, m_Animation[STATEANIM::LUMOS_STOP].second);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CPlayer::UpdateGrapInteractive(_float fTimeDelta)
|
||||
@@ -310,7 +320,6 @@ void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
void CPlayer::OnHit(CGameObject* pOther, CGameObject* pCaller)
|
||||
{
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CPlayer::Start_CameraShake(_float fTime, _float fIntense)
|
||||
{
|
||||
@@ -319,6 +328,7 @@ void CPlayer::Start_CameraShake(_float fTime, _float fIntense)
|
||||
m_fCameraShakeIntense = fIntense;
|
||||
m_bCameraShake = true;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CPlayer::Render_CameraCoordinateSystem()
|
||||
{
|
||||
@@ -327,42 +337,47 @@ void CPlayer::Render_CameraCoordinateSystem()
|
||||
const _float fArrowLength = 2.0f;
|
||||
_vector xmvLook = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
|
||||
_float2 vLook = { XMVectorGetX(xmvLook), XMVectorGetZ(xmvLook) };
|
||||
GUI::Begin("Player_CAM_COOORD");
|
||||
GUI::Text("%d", m_LockOnInfo.pUnit);
|
||||
|
||||
GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z);
|
||||
GUI::Text("A : %.2f, %.2f, %.2f", -m_vCameraRightDir.x, 0.f, -m_vCameraRightDir.z);
|
||||
GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z);
|
||||
GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z);
|
||||
|
||||
_float fButtonSize = 45.f;
|
||||
GUI::Button("##0", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##2", { fButtonSize, fButtonSize });
|
||||
GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##4", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize });
|
||||
GUI::Button("##6", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##8", { fButtonSize, fButtonSize });
|
||||
|
||||
GUI::Begin("CAMERA");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("Player_CAM_COOORD")) {
|
||||
|
||||
GUI::Text("%d", m_LockOnInfo.pUnit);
|
||||
|
||||
GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z);
|
||||
GUI::Text("A : %.2f, %.2f, %.2f", -m_vCameraRightDir.x, 0.f, -m_vCameraRightDir.z);
|
||||
GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z);
|
||||
GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z);
|
||||
|
||||
_float fButtonSize = 45.f;
|
||||
GUI::Button("##0", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##2", { fButtonSize, fButtonSize });
|
||||
GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##4", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize });
|
||||
GUI::Button("##6", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##8", { fButtonSize, fButtonSize });
|
||||
//W CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })
|
||||
//A CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , - m_vCameraRightDir.z })
|
||||
//S CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })
|
||||
//D CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , - m_vCameraLookDir.z })
|
||||
}
|
||||
GUI::End();
|
||||
//W CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })
|
||||
//A CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , - m_vCameraRightDir.z })
|
||||
//S CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })
|
||||
//D CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , - m_vCameraLookDir.z })
|
||||
m_Batch->DrawLine( // W
|
||||
VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::Blue)
|
||||
VertexPositionColor(fArrowLength* XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::Blue)
|
||||
);
|
||||
m_Batch->DrawLine( // D
|
||||
VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::Red)
|
||||
VertexPositionColor(fArrowLength* XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::Red)
|
||||
);
|
||||
m_Batch->DrawLine( // PlayerLook
|
||||
VertexPositionColor(XMVectorZero(), DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(fArrowLength * xmvLook, DirectX::Colors::HotPink)
|
||||
VertexPositionColor(fArrowLength* xmvLook, DirectX::Colors::HotPink)
|
||||
);
|
||||
|
||||
m_Batch->End();
|
||||
}
|
||||
#endif // _DEBUG
|
||||
@@ -417,7 +432,7 @@ HRESULT CPlayer::Ready_Components()
|
||||
Desc.fContactOffset = 0.001f;
|
||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.001f };
|
||||
Desc.fStepOffset = { 0.02f };
|
||||
Desc.fRadius = 0.5f;
|
||||
Desc.fHeight = 0.6f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create();
|
||||
@@ -454,6 +469,18 @@ HRESULT CPlayer::Ready_Parts()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CItem_Potion::POTION_DESC PotionDesc{};
|
||||
|
||||
PotionDesc.pParentTransform = m_pTransformCom;
|
||||
PotionDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_LeftHand");
|
||||
|
||||
if (FAILED(Add_PartObject<CItem_Potion>("Potion", g_iStaticLevel, nullptr, &PotionDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Get_PartObject<CItem_Potion>()->Set_Visible(false);
|
||||
|
||||
{
|
||||
CCamPosition_Shoulder::CAMERA_SHOULDER_DESC Desc;
|
||||
Desc.pParentTransform = m_pTransformCom;
|
||||
@@ -590,85 +617,87 @@ void CPlayer::Free()
|
||||
|
||||
void CPlayer::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("PLAYER_DESC");
|
||||
m_pCharacter_Controller->Describe_Entity();
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_char label[256];
|
||||
for (auto& iter : m_KeyFrames)
|
||||
{
|
||||
sprintf_s(label, "%s %.2f", iter.first.c_str(), iter.second);
|
||||
GUI::Begin("UNIT");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("PLAYER_DESC")) {
|
||||
m_pCharacter_Controller->Describe_Entity();
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w);
|
||||
_char label[256];
|
||||
for (auto& iter : m_KeyFrames)
|
||||
{
|
||||
sprintf_s(label, "%s %.2f", iter.first.c_str(), iter.second);
|
||||
|
||||
GUI::Text(label);
|
||||
}
|
||||
GUI::Text(label);
|
||||
}
|
||||
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
_float3 Pos;
|
||||
XMStoreFloat3(&Pos, Get_WorldPostion());
|
||||
|
||||
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
|
||||
GUI::DragFloat3("Pos", Pos3);
|
||||
float Pos3[3] = { Pos.x, Pos.y, Pos.z };
|
||||
GUI::DragFloat3("Pos", Pos3);
|
||||
|
||||
|
||||
_float RotR, RotU, RotL;
|
||||
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
|
||||
RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
|
||||
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
_float RotR, RotU, RotL;
|
||||
RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT));
|
||||
RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP));
|
||||
RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK));
|
||||
|
||||
float Rot3[3] = { RotR, RotU,RotL };
|
||||
GUI::DragFloat3("Rot", Rot3);
|
||||
float Rot3[3] = { RotR, RotU,RotL };
|
||||
GUI::DragFloat3("Rot", Rot3);
|
||||
|
||||
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex());
|
||||
GUI::Text(AnimList.c_str());
|
||||
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
GUI::Text("AnimSpeed %.2f", m_pModelCom->Get_AnimSpeed());
|
||||
GUI::Text("AnimTrack %.2f", m_pModelCom->Get_CurrentTrackPosition());
|
||||
GUI::Text("AnimRatio %.2f", m_pModelCom->Get_CurrentTrackProgressRatio());
|
||||
GUI::Text("AnimSpeed %.2f", m_pModelCom->Get_AnimSpeed());
|
||||
|
||||
GUI::Checkbox("Render", &m_bVisible);
|
||||
GUI::Checkbox("Render", &m_bVisible);
|
||||
|
||||
GUI::Text("%d", m_iStateMask);
|
||||
GUI::Text("HP : %f, %f", m_pStat->Get_Stat().fCurrentHp, m_pStat->Get_Stat().fMaxHp);
|
||||
GUI::SameLine(); if (GUI::Button("FULL")) { m_pStat->Set_Stat(ENUM_CLASS(STAT::CURRENTHP), m_pStat->Get_Stat().fMaxHp); }
|
||||
GUI::Text("%d", m_iStateMask);
|
||||
GUI::Text("HP : %f, %f", m_pStat->Get_Stat().fCurrentHp, m_pStat->Get_Stat().fMaxHp);
|
||||
GUI::SameLine(); if (GUI::Button("FULL")) { m_pStat->Set_Stat(ENUM_CLASS(STAT::CURRENTHP), m_pStat->Get_Stat().fMaxHp); }
|
||||
#pragma region CAMERA_SHAKE
|
||||
if (false == m_bCameraShake && GUI::Button("Shake")) {
|
||||
m_bCameraShake = true;
|
||||
}
|
||||
if (GUI::SliderFloat("m_fCameraShakeTime", &m_fCameraShakeTime, 0.125f, 0.f, "%.3f")) {
|
||||
m_vCameraShakeTimer.y = m_fCameraShakeTime;
|
||||
}
|
||||
GUI::SliderFloat("m_fCameraShakeIntense", &m_fCameraShakeIntense, 5.f, 20.f, "%.1f");
|
||||
if (false == m_bCameraShake && GUI::Button("Shake")) {
|
||||
m_bCameraShake = true;
|
||||
}
|
||||
if (GUI::SliderFloat("m_fCameraShakeTime", &m_fCameraShakeTime, 0.125f, 0.f, "%.3f")) {
|
||||
m_vCameraShakeTimer.y = m_fCameraShakeTime;
|
||||
}
|
||||
GUI::SliderFloat("m_fCameraShakeIntense", &m_fCameraShakeIntense, 5.f, 20.f, "%.1f");
|
||||
#pragma endregion
|
||||
|
||||
_vector xmvInputDir = XMVectorZero();
|
||||
_vector xmvInputDir = XMVectorZero();
|
||||
|
||||
_vector xmvCamLook = XMVector4Normalize(XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f));
|
||||
_vector xmvCamRight = XMVector4Normalize(XMVectorSet(m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z, 0.f));
|
||||
_vector xmvCamLook = XMVector4Normalize(XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f));
|
||||
_vector xmvCamRight = XMVector4Normalize(XMVectorSet(m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z, 0.f));
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W))
|
||||
xmvInputDir += xmvCamLook;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_S))
|
||||
xmvInputDir -= xmvCamLook;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_A))
|
||||
xmvInputDir -= xmvCamRight;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_D))
|
||||
xmvInputDir += xmvCamRight;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W))
|
||||
xmvInputDir += xmvCamLook;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_S))
|
||||
xmvInputDir -= xmvCamLook;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_A))
|
||||
xmvInputDir -= xmvCamRight;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_D))
|
||||
xmvInputDir += xmvCamRight;
|
||||
|
||||
xmvInputDir = XMVector3Normalize(xmvInputDir);
|
||||
xmvInputDir = XMVector3Normalize(xmvInputDir);
|
||||
|
||||
_float2 vInputDir = { XMVectorGetX(xmvInputDir),XMVectorGetZ(xmvInputDir) };
|
||||
_vector xmvCurLook = XMVector4Normalize(
|
||||
XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
|
||||
_float2 vCurLook = { XMVectorGetX(xmvCurLook),XMVectorGetZ(xmvCurLook) };
|
||||
_float2 vInputDir = { XMVectorGetX(xmvInputDir),XMVectorGetZ(xmvInputDir) };
|
||||
_vector xmvCurLook = XMVector4Normalize(
|
||||
XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
|
||||
_float2 vCurLook = { XMVectorGetX(xmvCurLook),XMVectorGetZ(xmvCurLook) };
|
||||
|
||||
_float vDir = CMyTools::Get_Direction2D(vCurLook, vInputDir);
|
||||
_float degree = XMConvertToDegrees(vDir);
|
||||
_float vDir = CMyTools::Get_Direction2D(vCurLook, vInputDir);
|
||||
_float degree = XMConvertToDegrees(vDir);
|
||||
|
||||
GUI::Text("Angle %.2f", degree);
|
||||
|
||||
m_pLightCom->Describe_Entity();
|
||||
GUI::Text("Angle %.2f", degree);
|
||||
|
||||
m_pLightCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "Camera_Gaze.h"
|
||||
#include "CamPosition_Arm.h"
|
||||
#include "Wand.h"
|
||||
#include "Item_Potion.h"
|
||||
#include "Character_Controller.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "CallBack_Playable_Behavior.h"
|
||||
@@ -215,6 +216,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
||||
Get_PartObject<CItem_Potion>()->Set_Visible(true);
|
||||
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_B)) {
|
||||
@@ -408,6 +410,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Down(DIK_G)) {
|
||||
Get_PartObject<CItem_Potion>()->Set_Visible(true);
|
||||
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_NECK_L), m_Animation[STATEANIM::POTION].first, m_Animation[STATEANIM::POTION].second);
|
||||
}
|
||||
|
||||
@@ -640,6 +643,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
if (m_pFSM->IsEnable(FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::SPRINT) ||
|
||||
!SUCCEEDED(InputMove())) {
|
||||
if (!m_pFSM->IsEnable(FSMSTATE::STOP))
|
||||
@@ -844,6 +848,12 @@ void CPlayer::Behavior_CombatEnter()
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { Throwing_Interactive(); },
|
||||
0.2f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pGameInstance->SlowMotion(0.1f, 0.35f);
|
||||
},
|
||||
0.1f);
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
@@ -989,7 +999,7 @@ void CPlayer::Behavior_LightAttackEnter()
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &iIndex); },
|
||||
0.1f);
|
||||
0.07f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>()); },
|
||||
@@ -1016,7 +1026,13 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
_uint iNext = iCurr + 1;
|
||||
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
|
||||
pairAnimInfo.first = iNext;
|
||||
|
||||
_float fAttackRatio;
|
||||
if (pairAnimInfo.first - m_Animation[STATEANIM::LIGHT_ATTACK].first == 3) {
|
||||
fAttackRatio = 0.12f;
|
||||
}
|
||||
else {
|
||||
fAttackRatio = 0.07f;
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
@@ -1032,7 +1048,7 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
_uint comboIndex = m_pModelCom->Get_AnimIndex() - m_Animation[STATEANIM::LIGHT_ATTACK].first;
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &comboIndex);
|
||||
},
|
||||
0.05f);
|
||||
fAttackRatio);
|
||||
|
||||
Add_Event(iNext,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE,Get_PartObject<CWand>());
|
||||
@@ -1831,7 +1847,7 @@ void CPlayer::Behavior_Broom_DismountEnter()
|
||||
m_pTransformCom->Set_State(STATE::RIGHT, right);
|
||||
m_pTransformCom->Set_State(STATE::UP, up);
|
||||
m_pTransformCom->Set_State(STATE::LOOK, look);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.3f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.6f);
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_Broom_DismountExitCheck(_float fTimeDelta)
|
||||
@@ -2310,7 +2326,7 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::SPELL_90_L] = { 826,false };
|
||||
|
||||
m_Animation[STATEANIM::MAPHELP] = { 122,false };
|
||||
m_Animation[STATEANIM::POTION] = { 114,false }; // 114 포션 // 909 루모스
|
||||
m_Animation[STATEANIM::POTION] = { 115,false }; // 114 포션 // 909 루모스
|
||||
m_Animation[STATEANIM::ACCIO] = { 417,false };
|
||||
m_Animation[STATEANIM::DESCENDO] = { 857,false };
|
||||
m_Animation[STATEANIM::DEPULSO] = { 858,false };
|
||||
|
||||
@@ -18,6 +18,9 @@ CProtego::CProtego(const CProtego& rhs)
|
||||
HRESULT CProtego::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -30,8 +33,7 @@ HRESULT CProtego::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Protego")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
m_pSphere = Get_PartObject<CEffectParts>("ProtegoSphere");
|
||||
|
||||
@@ -19,6 +19,9 @@ CRevelio::CRevelio(const CRevelio& rhs)
|
||||
HRESULT CRevelio::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Revelio")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -31,10 +34,10 @@ HRESULT CRevelio::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Revelio")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_pRevelioPT_Y = Get_PartObject<CEffectParts>("WandPT_Y");
|
||||
m_pRevelioPT_B = Get_PartObject<CEffectParts>("WandPT_B");
|
||||
m_pRevelioPT_R = Get_PartObject<CEffectParts>("WandPT_R");
|
||||
|
||||
@@ -19,6 +19,7 @@ HRESULT CSkill_Data::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pCon
|
||||
Spell_UnLock(2);
|
||||
Spell_UnLock(6);
|
||||
Spell_UnLock(11);
|
||||
Spell_UnLock(14);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,9 @@ CStunEffect::CStunEffect(const CStunEffect& rhs)
|
||||
HRESULT CStunEffect::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Stun")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -31,8 +34,7 @@ HRESULT CStunEffect::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Stun")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -55,9 +55,7 @@ void CTerrain::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CTerrain::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
//Describe_Entity();
|
||||
#endif // DEBUG
|
||||
|
||||
}
|
||||
|
||||
void CTerrain::Late_Update(_float fTimeDelta)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "Trail.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
|
||||
CTrailObject::CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -96,6 +97,67 @@ void CTrailObject::Late_Update(_float fTimeDelta)
|
||||
|
||||
}
|
||||
|
||||
HRESULT CTrailObject::Load_Trail(CEffect_Container::TRAIL_SAVE_INFO Trail_Save_Info, LEVEL eLevel)
|
||||
{
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
SAFE_RELEASE(m_pMasking_TextureCom);
|
||||
SAFE_RELEASE(m_pNoise_TextureCom);
|
||||
SAFE_RELEASE(m_pDistortion_TextureCom);
|
||||
|
||||
|
||||
if (Trail_Save_Info.wstrDiffuseName.length() != 0)
|
||||
{
|
||||
|
||||
m_strTrailDiffuseName = Trail_Save_Info.wstrDiffuseName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailDiffuseName,
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (Trail_Save_Info.wstrNoiseName.length() != 0)
|
||||
{
|
||||
|
||||
m_strTrailNoiseName = Trail_Save_Info.wstrNoiseName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailNoiseName,
|
||||
reinterpret_cast<CComponent**>(&m_pNoise_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (Trail_Save_Info.wstrMaskingName.length() != 0)
|
||||
{
|
||||
|
||||
m_strTrailMaskingName = Trail_Save_Info.wstrMaskingName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailMaskingName,
|
||||
reinterpret_cast<CComponent**>(&m_pMasking_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (Trail_Save_Info.wstrDistortionName.length() != 0)
|
||||
{
|
||||
|
||||
m_strTrailDistortionName = Trail_Save_Info.wstrDistortionName;
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailDistortionName,
|
||||
reinterpret_cast<CComponent**>(&m_pDistortion_TextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
}
|
||||
|
||||
m_pTrailCom->Load_Trail(Trail_Save_Info.TrailComponentDesc);
|
||||
|
||||
m_TrailInfo = Trail_Save_Info.TrailDesc;
|
||||
|
||||
m_pTrailCom->ReStructVB(m_TrailInfo.iNumVertex);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
{
|
||||
SAFE_RELEASE(m_pDiffuse_TextureCom);
|
||||
@@ -140,9 +202,9 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strTrailDiffuseName = szName;
|
||||
m_strTrailDiffuseName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDiffuseName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailDiffuseName,
|
||||
reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -159,9 +221,9 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strTrailNoiseName = szName;
|
||||
m_strTrailNoiseName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailNoiseName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailNoiseName,
|
||||
reinterpret_cast<CComponent**>(&m_pNoise_TextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -179,9 +241,9 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strTrailMaskingName = szName;
|
||||
m_strTrailMaskingName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailMaskingName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailMaskingName,
|
||||
reinterpret_cast<CComponent**>(&m_pMasking_TextureCom))))
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -199,9 +261,9 @@ HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_strTrailDistortionName = szName;
|
||||
m_strTrailDistortionName = CMyTools::ToWstring(szName);
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDistortionName),
|
||||
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), m_strTrailDistortionName ,
|
||||
reinterpret_cast<CComponent**>(&m_pDistortion_TextureCom))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ void CTroll::Update(_float fTimeDelta)
|
||||
for (_uint i = 0; i < ENUM_CLASS(TROLL_SKILL::END); i++)
|
||||
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#pragma region TRAIL_UPDATE
|
||||
@@ -182,7 +182,7 @@ void CTroll::Late_Update(_float fTimeDelta)
|
||||
m_fCross = XMVectorGetY(XMVector3Cross(vLook, vDir));
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
|
||||
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
|
||||
}
|
||||
|
||||
HRESULT CTroll::Render()
|
||||
@@ -337,29 +337,48 @@ void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
|
||||
_vector Head = (XMLoadFloat4x4(Get_HeadMatrix()) * m_pTransformCom->Get_XMWorldMatrix()).r[3];
|
||||
m_DamageInfo.vTarget_Pos = XMVectorSet(Head.m128_f32[0], Head.m128_f32[1], Head.m128_f32[2], 1.f);
|
||||
m_DamageInfo.vTarget_Pos = m_pCharacter_Controller->Get_HeadPosition();
|
||||
|
||||
_uint iSkillType = dynamic_cast<CEffect_Container*>(pOther)->Get_SkillType();
|
||||
auto damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
switch (iSkillType)
|
||||
CEffect_Container* pEffect_Container = dynamic_cast<CEffect_Container*>(pOther);
|
||||
|
||||
pair<_float, _float> damagePair = {};
|
||||
|
||||
if (pEffect_Container != nullptr)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::FLIPENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
break;
|
||||
default:
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
break;
|
||||
_uint iSkillType = pEffect_Container->Get_SkillType();
|
||||
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
|
||||
switch (iSkillType)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::FLIPENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
break;
|
||||
default:
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC_THROW)));
|
||||
}
|
||||
|
||||
CMapElement_Interactable* pProps = dynamic_cast<CMapElement_Interactable*>(pOther);
|
||||
|
||||
if (pProps != nullptr)
|
||||
{
|
||||
m_eHitSpell = STATEANIM::KNOCKDOWN_FWD;
|
||||
}
|
||||
|
||||
m_DamageInfo.fDamage = damagePair.first;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
if (0 == damagePair.second) {
|
||||
@@ -367,6 +386,8 @@ void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
return;
|
||||
}
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CTroll::OnHit(CGameObject* pOther, CGameObject* pCaller)
|
||||
@@ -411,7 +432,7 @@ HRESULT CTroll::Ready_Components()
|
||||
Desc.fContactOffset = 0.001f;
|
||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.001f };
|
||||
Desc.fStepOffset = { 0.12f };
|
||||
Desc.fRadius = 1.2f;
|
||||
Desc.fHeight = 1.5f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Troll_HitReport::Create();
|
||||
@@ -620,16 +641,20 @@ void CTroll::Free()
|
||||
|
||||
void CTroll::Describe_Entity()
|
||||
{
|
||||
__super::Describe_Entity();
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Troll")) {
|
||||
__super::Describe_Entity();
|
||||
|
||||
_float4x4 socketMat = *m_pModelCom->Get_BoneMatrixPtr("HeadEnd");
|
||||
_float4x4 socketMat = *m_pModelCom->Get_BoneMatrixPtr("HeadEnd");
|
||||
|
||||
_string strSocket = "Socket " + to_string(socketMat._41) + to_string(socketMat._42) + to_string(socketMat._43);
|
||||
_string strSocket = "Socket " + to_string(socketMat._41) + to_string(socketMat._42) + to_string(socketMat._43);
|
||||
|
||||
GUI::Text(strSocket.c_str());
|
||||
GUI::Text(strSocket.c_str());
|
||||
|
||||
|
||||
m_pTransformCom->Describe_Entity();
|
||||
m_pTransformCom->Describe_Entity();
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -22,6 +22,9 @@ CTrollSwing::CTrollSwing(const CTrollSwing& rhs)
|
||||
HRESULT CTrollSwing::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollSwing")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -34,8 +37,7 @@ HRESULT CTrollSwing::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollSwing")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -19,6 +19,9 @@ CTroll_Nomal_Smoke::CTroll_Nomal_Smoke(const CTroll_Nomal_Smoke& rhs)
|
||||
HRESULT CTroll_Nomal_Smoke::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollNomalSmoke")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -31,8 +34,7 @@ HRESULT CTroll_Nomal_Smoke::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollNomalSmoke")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
|
||||
@@ -269,8 +269,11 @@ void CTroll_Rock::Free()
|
||||
|
||||
void CTroll_Rock::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("TrollRock");
|
||||
GUI::Checkbox("Visible", &m_bVisible);
|
||||
GUI::Begin("UNIT");
|
||||
GUI::PushItemWidth(80);
|
||||
if (GUI::CollapsingHeader("TrollRock")) {
|
||||
GUI::Checkbox("Visible", &m_bVisible);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ CTroll_Rush_Hit::CTroll_Rush_Hit(const CTroll_Rush_Hit& rhs)
|
||||
HRESULT CTroll_Rush_Hit::Initialize_Prototype()
|
||||
{
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollRush")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
@@ -34,11 +37,9 @@ HRESULT CTroll_Rush_Hit::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollRush")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"Troll_Nomal_Smoke";
|
||||
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ CTroll_State_BackHand_Swing::CTroll_State_BackHand_Swing()
|
||||
|
||||
void CTroll_State_BackHand_Swing::Enter()
|
||||
{
|
||||
m_bPlayerHit = false;
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
@@ -22,13 +23,14 @@ HRESULT CTroll_State_BackHand_Swing::Update(_float fTimeDelta)
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
m_funcLateUpdate(fTimeDelta, m_bPlayerHit);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll_State_BackHand_Swing::Exit()
|
||||
{
|
||||
m_bPlayerHit = false;
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
|
||||
@@ -579,7 +579,7 @@ HRESULT CTroll::Behavior_BackHandSwingExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
return E_FAIL;
|
||||
}
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll::Behavior_BackHandSwingExit()
|
||||
@@ -811,7 +811,7 @@ void CTroll::Add_FSM()
|
||||
Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_BackHandSwingExitCheck(fTimeDelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_BackHandSwingExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
Desc.funcLateUpdate = [this](_float fTimeDelta, _bool& bHit) { SwingHit(bHit); };
|
||||
m_States.emplace(FSMSTATE::BACKHAND_SWING, CTroll_State_BackHand_Swing::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
@@ -912,7 +912,7 @@ void CTroll::CheckHammerHits(_uint& iHitCount, vector<PSX::PxSweepHit>& pxHits)
|
||||
|
||||
_bool bCollision = false;
|
||||
m_SweepBufferHammer = {};
|
||||
bCollision = m_pGameInstance->SphereCast(1.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferHammer);
|
||||
bCollision = m_pGameInstance->SphereCast(1.5f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferHammer);
|
||||
if (true == bCollision) {
|
||||
iHitCount += m_SweepBufferHammer.getNbTouches() + m_SweepBufferHammer.hasBlock;
|
||||
auto touches = m_SweepBufferHammer.getTouches();
|
||||
@@ -933,7 +933,7 @@ void CTroll::CheckHammerHits(_uint& iHitCount, vector<PSX::PxSweepHit>& pxHits)
|
||||
|
||||
_bool bCollision = false;
|
||||
m_SweepBufferGrip = {};
|
||||
bCollision = m_pGameInstance->SphereCast(1.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip);
|
||||
bCollision = m_pGameInstance->SphereCast(1.5f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip);
|
||||
if (true == bCollision) {
|
||||
iHitCount += m_SweepBufferGrip.getNbTouches() + m_SweepBufferGrip.hasBlock;
|
||||
auto touches = m_SweepBufferGrip.getTouches();
|
||||
|
||||
@@ -210,27 +210,31 @@ void CTroll_Weapon::Free()
|
||||
|
||||
void CTroll_Weapon::Describe_Entity()
|
||||
{
|
||||
_float4 vPos;
|
||||
_float4 vHammerWorldPos;
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("Troll_Hammer")) {
|
||||
_float4 vPos;
|
||||
_float4 vHammerWorldPos;
|
||||
|
||||
_float4 vHammerRight;
|
||||
_float4 vHammerUp;
|
||||
_float4 vHammerLook;
|
||||
_float4 vHammerPos;
|
||||
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat4(&vHammerWorldPos, Get_WorldPostion());
|
||||
_float4 vHammerRight;
|
||||
_float4 vHammerUp;
|
||||
_float4 vHammerLook;
|
||||
_float4 vHammerPos;
|
||||
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat4(&vHammerWorldPos, Get_WorldPostion());
|
||||
|
||||
XMStoreFloat4(&vHammerRight, XMLoadFloat4((_float4*)&m_HammerMatrix.m[0][0]));
|
||||
XMStoreFloat4(&vHammerUp, XMLoadFloat4((_float4*)&m_HammerMatrix.m[1][0]));
|
||||
XMStoreFloat4(&vHammerLook, XMLoadFloat4((_float4*)&m_HammerMatrix.m[2][0]));
|
||||
XMStoreFloat4(&vHammerPos, XMLoadFloat4((_float4*)&m_HammerMatrix.m[3][0]));
|
||||
XMStoreFloat4(&vHammerRight, XMLoadFloat4((_float4*)&m_HammerMatrix.m[0][0]));
|
||||
XMStoreFloat4(&vHammerUp, XMLoadFloat4((_float4*)&m_HammerMatrix.m[1][0]));
|
||||
XMStoreFloat4(&vHammerLook, XMLoadFloat4((_float4*)&m_HammerMatrix.m[2][0]));
|
||||
XMStoreFloat4(&vHammerPos, XMLoadFloat4((_float4*)&m_HammerMatrix.m[3][0]));
|
||||
|
||||
GUI::Text("vPos, %.2f, %.2f, %.2f, %.2f", vPos.x, vPos.y, vPos.z, vPos.w);
|
||||
GUI::Text("vHammerWorldPos, %.2f, %.2f, %.2f, %.2f", vHammerWorldPos.x, vHammerWorldPos.y, vHammerWorldPos.z, vHammerWorldPos.w);
|
||||
GUI::Text("vHammerRight, %.2f, %.2f, %.2f, %.2f", vHammerRight.x, vHammerRight.y, vHammerRight.z, vHammerRight.w);
|
||||
GUI::Text("vHammerUp, %.2f, %.2f, %.2f, %.2f", vHammerUp.x, vHammerUp.y, vHammerUp.z, vHammerUp.w);
|
||||
GUI::Text("vHammerLook, %.2f, %.2f, %.2f, %.2f", vHammerLook.x, vHammerLook.y, vHammerLook.z, vHammerLook.w);
|
||||
GUI::Text("vHammerPos, %.2f, %.2f, %.2f, %.2f", vHammerPos.x, vHammerPos.y, vHammerPos.z, vHammerPos.w);
|
||||
GUI::Text("vPos, %.2f, %.2f, %.2f, %.2f", vPos.x, vPos.y, vPos.z, vPos.w);
|
||||
GUI::Text("vHammerWorldPos, %.2f, %.2f, %.2f, %.2f", vHammerWorldPos.x, vHammerWorldPos.y, vHammerWorldPos.z, vHammerWorldPos.w);
|
||||
GUI::Text("vHammerRight, %.2f, %.2f, %.2f, %.2f", vHammerRight.x, vHammerRight.y, vHammerRight.z, vHammerRight.w);
|
||||
GUI::Text("vHammerUp, %.2f, %.2f, %.2f, %.2f", vHammerUp.x, vHammerUp.y, vHammerUp.z, vHammerUp.w);
|
||||
GUI::Text("vHammerLook, %.2f, %.2f, %.2f, %.2f", vHammerLook.x, vHammerLook.y, vHammerLook.z, vHammerLook.w);
|
||||
GUI::Text("vHammerPos, %.2f, %.2f, %.2f, %.2f", vHammerPos.x, vHammerPos.y, vHammerPos.z, vHammerPos.w);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -192,27 +192,31 @@ void CWand::Free()
|
||||
|
||||
void CWand::Describe_Entity()
|
||||
{
|
||||
_float4 vPos;
|
||||
_float4 vTipWorldPos;
|
||||
GUI::Begin("UNIT");
|
||||
if (GUI::CollapsingHeader("WAND")) {
|
||||
_float4 vPos;
|
||||
_float4 vTipWorldPos;
|
||||
|
||||
_float4 vTipRight;
|
||||
_float4 vTipUp;
|
||||
_float4 vTipLook;
|
||||
_float4 vTipPos;
|
||||
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat4(&vTipWorldPos, Get_WorldPostion());
|
||||
_float4 vTipRight;
|
||||
_float4 vTipUp;
|
||||
_float4 vTipLook;
|
||||
_float4 vTipPos;
|
||||
XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat4(&vTipWorldPos, Get_WorldPostion());
|
||||
|
||||
XMStoreFloat4(&vTipRight, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[0][0]));
|
||||
XMStoreFloat4(&vTipUp, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[1][0]));
|
||||
XMStoreFloat4(&vTipLook, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[2][0]));
|
||||
XMStoreFloat4(&vTipPos, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[3][0]));
|
||||
XMStoreFloat4(&vTipRight, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[0][0]));
|
||||
XMStoreFloat4(&vTipUp, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[1][0]));
|
||||
XMStoreFloat4(&vTipLook, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[2][0]));
|
||||
XMStoreFloat4(&vTipPos, XMLoadFloat4((_float4*)&m_pWandTipMatrix.m[3][0]));
|
||||
|
||||
GUI::Text("vPos, %.2f, %.2f, %.2f, %.2f", vPos.x, vPos.y, vPos.z, vPos.w);
|
||||
GUI::Text("vTipWorldPos, %.2f, %.2f, %.2f, %.2f", vTipWorldPos.x, vTipWorldPos.y, vTipWorldPos.z, vTipWorldPos.w);
|
||||
GUI::Text("vTipRight, %.2f, %.2f, %.2f, %.2f", vTipRight.x, vTipRight.y, vTipRight.z, vTipRight.w);
|
||||
GUI::Text("vTipUp, %.2f, %.2f, %.2f, %.2f", vTipUp.x, vTipUp.y, vTipUp.z, vTipUp.w);
|
||||
GUI::Text("vTipLook, %.2f, %.2f, %.2f, %.2f", vTipLook.x, vTipLook.y, vTipLook.z, vTipLook.w);
|
||||
GUI::Text("vTipPos, %.2f, %.2f, %.2f, %.2f", vTipPos.x, vTipPos.y, vTipPos.z, vTipPos.w);
|
||||
GUI::Text("vPos, %.2f, %.2f, %.2f, %.2f", vPos.x, vPos.y, vPos.z, vPos.w);
|
||||
GUI::Text("vTipWorldPos, %.2f, %.2f, %.2f, %.2f", vTipWorldPos.x, vTipWorldPos.y, vTipWorldPos.z, vTipWorldPos.w);
|
||||
GUI::Text("vTipRight, %.2f, %.2f, %.2f, %.2f", vTipRight.x, vTipRight.y, vTipRight.z, vTipRight.w);
|
||||
GUI::Text("vTipUp, %.2f, %.2f, %.2f, %.2f", vTipUp.x, vTipUp.y, vTipUp.z, vTipUp.w);
|
||||
GUI::Text("vTipLook, %.2f, %.2f, %.2f, %.2f", vTipLook.x, vTipLook.y, vTipLook.z, vTipLook.w);
|
||||
GUI::Text("vTipPos, %.2f, %.2f, %.2f, %.2f", vTipPos.x, vTipPos.y, vTipPos.z, vTipPos.w);
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -17,6 +17,8 @@ CWandEnd::CWandEnd(const CWandEnd& rhs)
|
||||
|
||||
HRESULT CWandEnd::Initialize_Prototype()
|
||||
{
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/WandEnd")))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
@@ -30,10 +32,10 @@ HRESULT CWandEnd::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/WandEnd")))
|
||||
if (FAILED(Create_Effect()))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"Lumos";
|
||||
|
||||
m_pWandPt = Get_PartObject<CEffectParts>("WandParticle_R");
|
||||
|
||||
@@ -36,7 +36,10 @@ class CBarral_Splesh final : public CEffect_Container
|
||||
static CBarral_Splesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -36,7 +36,10 @@ class CBox_Splesh final : public CEffect_Container
|
||||
static CBox_Splesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -48,11 +48,13 @@ class CCamPosition_Shoulder final : public CCamPosition
|
||||
_float3 m_vShoulderLocalPos = { 1.f, 2.f, 2.f };
|
||||
#pragma endregion
|
||||
#pragma region Lerp
|
||||
_bool m_bStartGame = { true };
|
||||
_bool m_bDampingParentPos = { true };
|
||||
_bool m_bShoulderLerp = { false };
|
||||
_bool m_bRightShoulderActive = { true };
|
||||
_float2 m_vShoulderLerpTimer = { 0.f, 0.30f };
|
||||
_float2 m_vDampingLerpTimer = { 0.f, 0.10f };
|
||||
_float2 m_vStartLerpTimer = { 0.f, 0.30f };
|
||||
|
||||
_float2 m_vShoulderLerpDegree = { };
|
||||
_float2 m_vShoulderLerpIncludedAngleDegree = { -20.f, 20.f };
|
||||
|
||||
@@ -36,7 +36,10 @@ class CChair_Splesh final : public CEffect_Container
|
||||
static CChair_Splesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Client
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO,
|
||||
|
||||
/*고블린*/
|
||||
GOBLIN_ATTACK,
|
||||
GOBLIN_ATTACK, GOBILN_TELEPORT,
|
||||
|
||||
/*고블린 메이지*/
|
||||
GOBLIN_MAGE_ATTACK , GOBLIN_MAGE_DOWN , GOBLIN_MAGE_SIDE,
|
||||
|
||||
@@ -65,4 +65,195 @@ namespace Client
|
||||
_float fDamage{};
|
||||
DAMAGE_TYPE eType = DAMAGE_TYPE::NOMAL;
|
||||
}DAMAGE_INFO;
|
||||
|
||||
|
||||
typedef struct tagEffectInfo
|
||||
{
|
||||
_float4 vColor = { 0.f ,0.f ,0.f ,1.f };
|
||||
|
||||
_float2 vDiffuseUVGainAmount = {};
|
||||
_float2 vMaskingUVGainAmount = {};
|
||||
_float2 vNoiseUVGainAmount = {};
|
||||
|
||||
_float2 vDistortionTime = {};
|
||||
_float2 vMaskDistortionUVGainAmount = {};
|
||||
|
||||
_float2 vUVCutting = { 1.f ,1.f };
|
||||
_float2 vUVMaskCutting = { 1.f ,1.f };
|
||||
|
||||
_int iMaskMoveLerpOption = { 0 };
|
||||
_int iDiffuseMoveLerpOption = { 0 };
|
||||
_int iNoiseMoveLerpOption = { 0 };
|
||||
|
||||
_int iMaskDistortionMoveLerpOption = { 0 };
|
||||
_int iDiffuseDistortionMoveLerpOption = { 0 };
|
||||
|
||||
_int iBlurWeight = { 0 };
|
||||
|
||||
|
||||
_bool isDiffuse = {};
|
||||
_bool isMasking = {};
|
||||
_bool isDissolve = {};
|
||||
_bool isNoise = {};
|
||||
_bool isEmissive = {};
|
||||
_bool isDistortion = {};
|
||||
_bool isDiffuseUVMove = {};
|
||||
_bool isNoiseUVMove = {};
|
||||
_bool isMaskUVMove = {};
|
||||
_bool isBlur = {};
|
||||
_bool isBillboard = {};
|
||||
|
||||
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
||||
_float fDiffuseAlpha = { 1.f };
|
||||
_float fBlurIntensity = {};
|
||||
_float fNoiseDistortionIntensity = {};
|
||||
_float fEmissiveStrength = { 0.f };
|
||||
|
||||
LIGHT_DESC LightDesc = {};
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
|
||||
_bool isReverseDissolve = {};
|
||||
|
||||
EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT };
|
||||
|
||||
_bool isEmissiveDissolve = { false };
|
||||
|
||||
_bool isMaskClampSample = { false };
|
||||
_bool isNoiseColor = { false };
|
||||
_bool isNoiseAlpha = { false };
|
||||
_bool isNomalDissolve = {};
|
||||
|
||||
_float fSoftenExp = { 1.31429f };
|
||||
_float fSoftStrength = {};
|
||||
_float fCoreBoost = {};
|
||||
_float fRadius = {};
|
||||
|
||||
_float fSoftMaskEdge = {};
|
||||
_float fSoftMask = {};
|
||||
|
||||
_bool isEmissiveDissolveReverse = { false };
|
||||
_bool isOnlyBlur = { false };
|
||||
|
||||
SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP };
|
||||
|
||||
_bool isBlurNoEmissive = {};
|
||||
_bool isTexBlur = {};
|
||||
_bool isBlurDissolve = {};
|
||||
_bool isBlurReverseDissolve = {};
|
||||
|
||||
_float fBluringStrength = { 0.01f };
|
||||
|
||||
_bool isBloom = {};
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
_float fBloomStrength = {};
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
|
||||
|
||||
_float fDissolveDelay = {};
|
||||
_float fReverseDissolveDelay = {};
|
||||
_float2 vDissolveUVGainAmount = {};
|
||||
_bool isDissolveMove = {};
|
||||
|
||||
_float3 vDissolveValue = {};
|
||||
|
||||
|
||||
_float2 vPadding0 = {};
|
||||
|
||||
_float fLightDeley = {};
|
||||
_float fLightIntensity = {};
|
||||
_float isLightTime = { 0.f };
|
||||
_bool isLightDissolve = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
|
||||
_float4 vDissolveColor = {};
|
||||
_float2 vDissolveColorCut = {};
|
||||
|
||||
_float fEmissiveColorCut = {};
|
||||
|
||||
_float2 vPadding1 = {};
|
||||
_float4 vNoiseColor = {};
|
||||
_float4 vPadding3 = {};
|
||||
_float4 vPadding4 = {};
|
||||
_float4 vPadding5 = {};
|
||||
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
_bool isPadding3 = {};
|
||||
_bool isPadding4 = {};
|
||||
}EFFECT_INFO;
|
||||
|
||||
typedef struct tagTrailInfo
|
||||
{
|
||||
EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL };
|
||||
/* 디퓨즈 */
|
||||
_bool isDiffuse = {};
|
||||
_float fDiffuseAlpha = { 1.f };
|
||||
_float4 vColor = { 0.f ,0.f ,0.f ,1.f };
|
||||
|
||||
/* 마스크 */
|
||||
_bool isMask = {};
|
||||
_float fSoftMaskEdge = {};
|
||||
_float fSoftMask = {};
|
||||
|
||||
/* 노이즈 */
|
||||
_bool isNoise = {};
|
||||
_bool isNoiseColor = { false };
|
||||
_bool isNoiseAlpha = { false };
|
||||
_float fNoiseStrength = {};
|
||||
|
||||
/* 디스 토션 */
|
||||
_bool isDistortion = {};
|
||||
_float2 vDistortionTime = {};
|
||||
_float2 vDiffuseDistortioUVAmount = {};
|
||||
_float2 vMaskDistortionUVAmount = {};
|
||||
_float fDistortionIntensity = {};
|
||||
|
||||
/* 이미시브 */
|
||||
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
||||
|
||||
_float fEmissiveStrength = { 0.f };
|
||||
_float fSoftenExp = { 1.31429f };
|
||||
_float fSoftStrength = {};
|
||||
_float fCoreBoost = {};
|
||||
_float fRadius = {};
|
||||
|
||||
|
||||
/* 블러 */
|
||||
_bool isBlur = {};
|
||||
_bool isOnlyBlur = { false };
|
||||
_float fBlurIntensity = {};
|
||||
_int iBlurWeight = {};
|
||||
|
||||
/* 블룸 */
|
||||
_bool isBloom = {};
|
||||
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
|
||||
_float fBloomStrength = {};
|
||||
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
_float2 vBloomTime = {};
|
||||
|
||||
_int iNumVertex = {};
|
||||
|
||||
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
SHADER_PASS_POSTEX eShaderPass = { SHADER_PASS_POSTEX::TRAIL };
|
||||
|
||||
_float3 vPadding0 = {};
|
||||
_float3 vPadding1 = {};
|
||||
_float3 vPadding2 = {};
|
||||
|
||||
_float fPadding0 = {};
|
||||
_float fPadding1 = {};
|
||||
_float fPadding2 = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
|
||||
}TRAIL_INFO;
|
||||
};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PartObject.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CInstance_Model;
|
||||
@@ -15,125 +16,6 @@ NS_BEGIN(Client)
|
||||
|
||||
class CEffectObject abstract : public CPartObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagEffectInfo
|
||||
{
|
||||
_float4 vColor = { 0.f ,0.f ,0.f ,1.f };
|
||||
|
||||
_float2 vDiffuseUVGainAmount = {};
|
||||
_float2 vMaskingUVGainAmount = {};
|
||||
_float2 vNoiseUVGainAmount = {};
|
||||
|
||||
_float2 vDistortionTime = {};
|
||||
_float2 vMaskDistortionUVGainAmount = {};
|
||||
|
||||
_float2 vUVCutting = { 1.f ,1.f };
|
||||
_float2 vUVMaskCutting = { 1.f ,1.f };
|
||||
|
||||
_int iMaskMoveLerpOption = { 0 };
|
||||
_int iDiffuseMoveLerpOption = { 0 };
|
||||
_int iNoiseMoveLerpOption = { 0 };
|
||||
|
||||
_int iMaskDistortionMoveLerpOption = { 0 };
|
||||
_int iDiffuseDistortionMoveLerpOption = { 0 };
|
||||
|
||||
_int iBlurWeight = { 0 };
|
||||
|
||||
|
||||
_bool isDiffuse = {};
|
||||
_bool isMasking = {};
|
||||
_bool isDissolve = {};
|
||||
_bool isNoise = {};
|
||||
_bool isEmissive = {};
|
||||
_bool isDistortion = {};
|
||||
_bool isDiffuseUVMove = {};
|
||||
_bool isNoiseUVMove = {};
|
||||
_bool isMaskUVMove = {};
|
||||
_bool isBlur = {};
|
||||
_bool isBillboard = {};
|
||||
|
||||
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
||||
_float fDiffuseAlpha = { 1.f };
|
||||
_float fBlurIntensity = {};
|
||||
_float fNoiseDistortionIntensity = {};
|
||||
_float fEmissiveStrength = { 0.f };
|
||||
|
||||
LIGHT_DESC LightDesc = {};
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
|
||||
_bool isReverseDissolve = {};
|
||||
|
||||
EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT };
|
||||
|
||||
_bool isEmissiveDissolve = { false };
|
||||
|
||||
_bool isMaskClampSample = { false };
|
||||
_bool isNoiseColor = { false };
|
||||
_bool isNoiseAlpha = { false };
|
||||
_bool isNomalDissolve = {};
|
||||
|
||||
_float fSoftenExp = { 1.31429f };
|
||||
_float fSoftStrength = {};
|
||||
_float fCoreBoost = {};
|
||||
_float fRadius = {};
|
||||
|
||||
_float fSoftMaskEdge = {};
|
||||
_float fSoftMask = {};
|
||||
|
||||
_bool isEmissiveDissolveReverse = { false };
|
||||
_bool isOnlyBlur = { false };
|
||||
|
||||
SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP };
|
||||
|
||||
_bool isBlurNoEmissive = {};
|
||||
_bool isTexBlur = {};
|
||||
_bool isBlurDissolve = {};
|
||||
_bool isBlurReverseDissolve = {};
|
||||
|
||||
_float fBluringStrength = { 0.01f };
|
||||
|
||||
_bool isBloom = {};
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
_float fBloomStrength = {};
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
|
||||
|
||||
_float fDissolveDelay = {};
|
||||
_float fReverseDissolveDelay = {};
|
||||
_float2 vDissolveUVGainAmount = {};
|
||||
_bool isDissolveMove = {};
|
||||
|
||||
_float3 vDissolveValue = {};
|
||||
|
||||
|
||||
_float2 vPadding0 = {};
|
||||
|
||||
_float fLightDeley = {};
|
||||
_float fLightIntensity = {};
|
||||
_float isLightTime = { 0.f };
|
||||
_bool isLightDissolve = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
|
||||
_float4 vDissolveColor = {};
|
||||
_float2 vDissolveColorCut = {};
|
||||
|
||||
_float fEmissiveColorCut = {};
|
||||
|
||||
_float2 vPadding1 = {};
|
||||
_float4 vNoiseColor = {};
|
||||
_float4 vPadding3 = {};
|
||||
_float4 vPadding4 = {};
|
||||
_float4 vPadding5 = {};
|
||||
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
_bool isPadding3 = {};
|
||||
_bool isPadding4 = {};
|
||||
}EFFECT_INFO;
|
||||
|
||||
|
||||
protected:
|
||||
CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CEffectObject(const CEffectObject& rhs);
|
||||
@@ -147,8 +29,8 @@ class CEffectObject abstract : public CPartObject
|
||||
virtual HRESULT Render_Blur() override;
|
||||
virtual HRESULT Render_Bloom() override;
|
||||
public:
|
||||
HRESULT Load(CEffect_Container::EFFECT_SAVE_INFO EffectSaveInfo, LEVEL eLevel);
|
||||
HRESULT Load(const _char* pFilePath, LEVEL eLevel);
|
||||
|
||||
void Disable_Light();
|
||||
void Add_Light();
|
||||
void FollowParents(const _float4x4* pParentsMat, const _float4x4* pOffsetMat = nullptr);
|
||||
@@ -175,14 +57,14 @@ class CEffectObject abstract : public CPartObject
|
||||
_float4x4 m_FinalParentMatrix;
|
||||
|
||||
protected:
|
||||
EFFECT_INFO m_EffectInfo = {};
|
||||
_string m_strDiffuseName = {};
|
||||
_string m_strNoiseName = {};
|
||||
_string m_strMaskingName = {};
|
||||
_string m_strDissolveName = {};
|
||||
_string m_strModelName = {};
|
||||
_string m_strEmissiveName = {};
|
||||
_string m_strDistortionName = {};
|
||||
EFFECT_INFO m_EffectInfo = {};
|
||||
_wstring m_strDiffuseName = {};
|
||||
_wstring m_strNoiseName = {};
|
||||
_wstring m_strMaskingName = {};
|
||||
_wstring m_strDissolveName = {};
|
||||
_wstring m_strModelName = {};
|
||||
_wstring m_strEmissiveName = {};
|
||||
_wstring m_strDistortionName = {};
|
||||
|
||||
public:
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "Client_Define.h"
|
||||
#include "EffectObject.h"
|
||||
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CModel;
|
||||
class CShader;
|
||||
|
||||
@@ -2,14 +2,49 @@
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "ContainerObject.h"
|
||||
#include "Trail.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CInstance_Model;
|
||||
class CTrail;
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CEffect_Container abstract : public CContainerObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagEffectSaveInfo
|
||||
{
|
||||
EFFECT_INFO EffectInfo = {};
|
||||
LIGHT_DESC LightInfo = {};
|
||||
|
||||
_wstring wstrDiffuseName = {};
|
||||
_wstring wstrNoiseName = {};
|
||||
_wstring wstrMaskingName = {};
|
||||
_wstring wstrDissolveName = {};
|
||||
_wstring wstrEmissiveName = {};
|
||||
_wstring wstrDistortionName = {};
|
||||
_wstring wstrModelName = {};
|
||||
|
||||
_wstring wstrEffectName = {};
|
||||
|
||||
CInstance_Model::INSTANCE_DESC InstanceModelInfo = {};
|
||||
}EFFECT_SAVE_INFO;
|
||||
|
||||
typedef struct tagTrailSaveInfo
|
||||
{
|
||||
_wstring wstrDiffuseName = {};
|
||||
_wstring wstrNoiseName = {};
|
||||
_wstring wstrMaskingName = {};
|
||||
_wstring wstrDistortionName = {};
|
||||
|
||||
_wstring wstrTrailName = {};
|
||||
|
||||
CTrail::TRAIL_DESC TrailComponentDesc = {};
|
||||
TRAIL_INFO TrailDesc = {};
|
||||
}TRAIL_SAVE_INFO;
|
||||
|
||||
protected:
|
||||
CEffect_Container(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CEffect_Container(const CEffect_Container& rhs);
|
||||
@@ -24,6 +59,9 @@ class CEffect_Container abstract : public CContainerObject
|
||||
HRESULT Load_Directory(const _char* pPath);
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr);
|
||||
HRESULT Load_Package(const _char* pPath);
|
||||
HRESULT Load_Data(const _char* pPath);
|
||||
HRESULT Create_Effect();
|
||||
HRESULT Load_Trail_Data(const _char* pPath);
|
||||
_uint Get_SkillType() const { return m_iSkillType; }
|
||||
void Reset_Light();
|
||||
|
||||
@@ -60,6 +98,9 @@ class CEffect_Container abstract : public CContainerObject
|
||||
_uint m_iSkillType = ENUM_CLASS(SKILL_TYPE::END);
|
||||
_bool m_bHasDamage = { false };
|
||||
LOCKON_INFO m_Info = {};
|
||||
private:
|
||||
vector<EFFECT_SAVE_INFO> m_EffectsInfo = {};
|
||||
vector<TRAIL_SAVE_INFO> m_TrailsInfo = {};
|
||||
public:
|
||||
virtual void Free() override;
|
||||
};
|
||||
|
||||
@@ -35,6 +35,15 @@ class CGoblin_BattleAxe final : public CPartObject
|
||||
|
||||
_float4x4 m_vAxeMat= {};
|
||||
|
||||
|
||||
PSX::PxSweepBufferN<12> m_SweepBufferAxe = {};
|
||||
PSX::PxSweepBufferN<12> m_SweepBufferGrip = {};
|
||||
const _float4* m_pAxePos = { nullptr };
|
||||
const _float4* m_pAxeGripPos = { nullptr };
|
||||
_float4 m_vStartAxePos = { };
|
||||
_float4 m_vStartGripPos = { };
|
||||
_bool m_bPlayerHit = {};
|
||||
|
||||
#ifdef _DEBUG
|
||||
unique_ptr<GeometricPrimitive> m_pGripShape = { nullptr };
|
||||
unique_ptr<GeometricPrimitive> m_pSubShape = { nullptr };
|
||||
@@ -45,6 +54,10 @@ class CGoblin_BattleAxe final : public CPartObject
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
void CheckAxeHits(_uint& iHitCount, vector<PSX::PxSweepHit>& pxHits);
|
||||
|
||||
void SwingHit(_bool& bPlayerHit);
|
||||
|
||||
public:
|
||||
static CGoblin_BattleAxe* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "Monster.h"
|
||||
#include "CallBack_Monster_Behavior.h"
|
||||
#include "CallBack_Monster_HitReport.h"
|
||||
#include "Enemy_Detection.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
@@ -36,6 +37,7 @@ class CGoblin_Mage final : public CMonster
|
||||
private:
|
||||
CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
CCallBack_Monster_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||
CEnemy_Detection* m_pDetection = { nullptr };
|
||||
|
||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
@@ -74,6 +76,8 @@ class CGoblin_Mage final : public CMonster
|
||||
private:
|
||||
class CEffectPool* m_pEffectPool = { nullptr };
|
||||
|
||||
_bool m_bDetection = { false };
|
||||
|
||||
_float m_fSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::END)] = {};
|
||||
_float m_fMaxSkillCoolTime[ENUM_CLASS(GOBLIN_SKILL::END)] = { 20.f,5.f,30.f,15.f };
|
||||
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CGoblin_Teleport final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CGoblin_Teleport(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CGoblin_Teleport(const CGoblin_Teleport& rhs);
|
||||
virtual ~CGoblin_Teleport() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
public:
|
||||
static CGoblin_Teleport* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,54 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "PartObject.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CItem_Potion final : public CPartObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagPotion : public CPartObject::PARTOBJECT_DESC
|
||||
{
|
||||
const _float4x4* pSocketMatrices = { };
|
||||
}POTION_DESC;
|
||||
private:
|
||||
CItem_Potion(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CItem_Potion(const CItem_Potion& Prototype);
|
||||
virtual ~CItem_Potion() = default;
|
||||
|
||||
public:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
void Set_Attach(_bool Attach);
|
||||
public:
|
||||
|
||||
private:
|
||||
const _float4x4* m_pSocketMatrices = { };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CModel* m_pModelCom = { nullptr };
|
||||
|
||||
_float4x4 m_pWandTipMatrix = {};
|
||||
_float3 m_Offset = {};
|
||||
_bool m_bAttach = { true };
|
||||
_float m_fTimer = {};
|
||||
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
public:
|
||||
static CItem_Potion* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
|
||||
virtual void Free() override;
|
||||
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -15,55 +15,59 @@ class CLoding_Panel final : public CUIObject
|
||||
{
|
||||
|
||||
private:
|
||||
CLoding_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CLoding_Panel(const CLoding_Panel& rhs);
|
||||
virtual ~CLoding_Panel() = default;
|
||||
CLoding_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CLoding_Panel(const CLoding_Panel& rhs);
|
||||
virtual ~CLoding_Panel() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
virtual void Priority_Update(_float fTimeDelta);
|
||||
virtual void Update(_float fTimeDelta);
|
||||
virtual void Late_Update(_float fTimeDelta);
|
||||
virtual HRESULT Render() override;
|
||||
virtual _vector Get_WorldPostion() override;
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
public:
|
||||
void Set_Image(_int Index);
|
||||
void Set_Image(_int Index);
|
||||
void ToolTipSetting();
|
||||
|
||||
private:
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom = { nullptr };
|
||||
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
|
||||
|
||||
CGameObject* m_pCurrent_Spell_Slot = { nullptr };
|
||||
CGameObject* m_pLoadingWidget = { nullptr };
|
||||
CGameObject* m_pCurrent_Spell_Slot = { nullptr };
|
||||
CGameObject* m_pLoadingWidget = { nullptr };
|
||||
|
||||
|
||||
_int m_iImageNum{};
|
||||
_float4 m_vImageposSi{};
|
||||
_int m_iImageNum{};
|
||||
_float4 m_vImageposSi{};
|
||||
|
||||
_wstring ToolTip[5];
|
||||
_int m_iToolTip_Count{};
|
||||
|
||||
#ifdef _DEBUG
|
||||
_bool INHYUK = { false };
|
||||
_bool JINHO = { false };
|
||||
_bool HYUNBIN = { false };
|
||||
_bool NURI = { false };
|
||||
_bool JINWOO = { false };
|
||||
_int human{};
|
||||
_bool INHYUK = { false };
|
||||
_bool JINHO = { false };
|
||||
_bool HYUNBIN = { false };
|
||||
_bool NURI = { false };
|
||||
_bool JINWOO = { false };
|
||||
_int human{};
|
||||
#endif
|
||||
|
||||
public:
|
||||
static CLoding_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
static CLoding_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
void Describe_Entity() override;
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
@@ -44,7 +44,11 @@ class CMageSide final : public CEffect_Container
|
||||
static CMageSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -40,7 +40,10 @@ class CMage_Down_Attack final : public CEffect_Container
|
||||
static CMage_Down_Attack* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -48,7 +48,11 @@ class CMage_Nomal_Attack final : public CEffect_Container
|
||||
static CMage_Nomal_Attack* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -31,6 +31,11 @@ class CMapElement_Door final : public CMapElement
|
||||
CRigidBody* m_pRigidBody = { nullptr };
|
||||
PSX::PxRigidDynamic* m_pActor = { nullptr };
|
||||
|
||||
_float3 m_vRadianYAngle = {};
|
||||
_float3 m_vKinematicTimer = { 0.f, 2.f, 2.3f };
|
||||
PSX::PxQuat m_pxStartQuat = {};
|
||||
_float4x4 m_InitialMatrix = {};
|
||||
|
||||
#ifdef _DEBUG
|
||||
_bool m_bUseSelectColor = { true };
|
||||
|
||||
@@ -45,6 +50,9 @@ class CMapElement_Door final : public CMapElement
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
void Lerp_Matrix(_float fTime);
|
||||
void Lerp_NonMatrix(_float fTime);
|
||||
_float ClampRadian(_float fNewRadian);
|
||||
|
||||
public:
|
||||
static CMapElement_Door* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -34,10 +34,10 @@ class CNomalJap final : public CEffect_Container
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_float4 m_vJapData[4] = { _float4(65.f , 330.f , 35.f , 20.f)
|
||||
, _float4(55.f , 100.f , 55.f , 200.f)
|
||||
, _float4(55.f , 0.f , 0.f , 0.f)
|
||||
, _float4(65.f , 250.f , 35.f , 60.f) };
|
||||
_float4 m_vJapData[4] = { _float4(105.f , 330.f , 35.f , 20.f)
|
||||
, _float4(95.f , 100.f , 55.f , 200.f)
|
||||
, _float4(95.f , 0.f , 0.f , 0.f)
|
||||
, _float4(105.f , 250.f , 35.f , 60.f) };
|
||||
|
||||
class CPartObject* m_pProjectile = {};
|
||||
class CPartObject* m_pProjectile_Side = {};
|
||||
|
||||
@@ -121,8 +121,7 @@ class CPlayer final : public CUnit
|
||||
_float3 m_BroomScale = { 0.f, 0.f, 0.f };
|
||||
_float3 m_TargetScale = { 1.f, 1.f, 1.f };
|
||||
_float m_fScaleSmoothSpeed = 2.5f;
|
||||
|
||||
|
||||
_bool m_bLumos = {};
|
||||
|
||||
HRESULT InputAction();
|
||||
HRESULT InputMove();
|
||||
|
||||
@@ -38,7 +38,10 @@ class CStunEffect final : public CEffect_Container
|
||||
static CStunEffect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "EffectObject.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
class CShader;
|
||||
@@ -14,78 +15,7 @@ NS_BEGIN(Client)
|
||||
class CTrailObject final : public CPartObject
|
||||
{
|
||||
public:
|
||||
typedef struct tagTrailInfo
|
||||
{
|
||||
EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL };
|
||||
/* 디퓨즈 */
|
||||
_bool isDiffuse = {};
|
||||
_float fDiffuseAlpha = { 1.f };
|
||||
_float4 vColor = { 0.f ,0.f ,0.f ,1.f };
|
||||
|
||||
/* 마스크 */
|
||||
_bool isMask = {};
|
||||
_float fSoftMaskEdge = {};
|
||||
_float fSoftMask = {};
|
||||
|
||||
/* 노이즈 */
|
||||
_bool isNoise = {};
|
||||
_bool isNoiseColor = { false };
|
||||
_bool isNoiseAlpha = { false };
|
||||
_float fNoiseStrength = {};
|
||||
|
||||
/* 디스 토션 */
|
||||
_bool isDistortion = {};
|
||||
_float2 vDistortionTime = {};
|
||||
_float2 vDiffuseDistortioUVAmount = {};
|
||||
_float2 vMaskDistortionUVAmount = {};
|
||||
_float fDistortionIntensity = {};
|
||||
|
||||
/* 이미시브 */
|
||||
_float4 vEmissive = { 0.f ,0.f ,0.f ,0.f };
|
||||
|
||||
_float fEmissiveStrength = { 0.f };
|
||||
_float fSoftenExp = { 1.31429f };
|
||||
_float fSoftStrength = {};
|
||||
_float fCoreBoost = {};
|
||||
_float fRadius = {};
|
||||
|
||||
|
||||
/* 블러 */
|
||||
_bool isBlur = {};
|
||||
_bool isOnlyBlur = { false };
|
||||
_float fBlurIntensity = {};
|
||||
_int iBlurWeight = {};
|
||||
|
||||
/* 블룸 */
|
||||
_bool isBloom = {};
|
||||
|
||||
_bool isBloomDissolve = {};
|
||||
_bool isBloomReverseDissolve = {};
|
||||
|
||||
_float fBloomStrength = {};
|
||||
|
||||
BLOOM_TYPE eBloomType = {};
|
||||
_float2 vBloomTime = {};
|
||||
|
||||
_int iNumVertex = {};
|
||||
|
||||
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
SHADER_PASS_POSTEX eShaderPass = { SHADER_PASS_POSTEX::TRAIL };
|
||||
|
||||
_float3 vPadding0 = {};
|
||||
_float3 vPadding1 = {};
|
||||
_float3 vPadding2 = {};
|
||||
|
||||
_float fPadding0 = {};
|
||||
_float fPadding1 = {};
|
||||
_float fPadding2 = {};
|
||||
|
||||
_bool isPadding0 = {};
|
||||
_bool isPadding1 = {};
|
||||
_bool isPadding2 = {};
|
||||
|
||||
}TRAIL_INFO;
|
||||
private:
|
||||
CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CTrailObject(const CTrailObject& rhs);
|
||||
@@ -98,9 +28,9 @@ class CTrailObject final : public CPartObject
|
||||
|
||||
public:
|
||||
void Trail_Update(_fmatrix WorldMat, _float fTimeDelta);
|
||||
HRESULT Load_Trail(CEffect_Container::TRAIL_SAVE_INFO Trail_Save_Info, LEVEL eLevel);
|
||||
HRESULT Load_Trail(const _char* pPath, LEVEL eLevel);
|
||||
|
||||
|
||||
private:
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
@@ -128,10 +58,10 @@ class CTrailObject final : public CPartObject
|
||||
CShader* m_pShaderCom = { nullptr };
|
||||
CTrail* m_pTrailCom = { nullptr };
|
||||
|
||||
_string m_strTrailDiffuseName = {};
|
||||
_string m_strTrailNoiseName = {};
|
||||
_string m_strTrailMaskingName = {};
|
||||
_string m_strTrailDistortionName = {};
|
||||
_wstring m_strTrailDiffuseName = {};
|
||||
_wstring m_strTrailNoiseName = {};
|
||||
_wstring m_strTrailMaskingName = {};
|
||||
_wstring m_strTrailDistortionName = {};
|
||||
|
||||
_string m_strPath = {};
|
||||
_string m_strName = {};
|
||||
|
||||
@@ -9,7 +9,7 @@ class CTroll_State_BackHand_Swing final : public CState_Root
|
||||
public:
|
||||
typedef struct tagTrollBackHandSwing : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
function<void(_float, _bool&)> funcLateUpdate = { nullptr };
|
||||
}TROLL_STATE_BACK_HAND_SWING_DESC;
|
||||
public:
|
||||
CTroll_State_BackHand_Swing();
|
||||
@@ -22,7 +22,8 @@ class CTroll_State_BackHand_Swing final : public CState_Root
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
function<void(_float, _bool&)> m_funcLateUpdate = { nullptr };
|
||||
_bool m_bPlayerHit = false;
|
||||
|
||||
private:
|
||||
HRESULT Initialize(TROLL_STATE_BACK_HAND_SWING_DESC* pDesc);
|
||||
|
||||
@@ -1,174 +1,20 @@
|
||||
0 Trl_BM_Alert_LF_Walk_Turn_Start_Lft_135_anm
|
||||
1 Trl_BM_Alert_LF_Walk_Turn_Start_Lft_180_anm
|
||||
2 Trl_BM_Alert_LF_Walk_Turn_Start_Lft_45_anm
|
||||
3 Trl_BM_Alert_LF_Walk_Turn_Start_Lft_90_anm
|
||||
4 Trl_BM_Alert_LF_Walk_Turn_Start_Rht_135_anm
|
||||
5 Trl_BM_Alert_LF_Walk_Turn_Start_Rht_180_anm
|
||||
6 Trl_BM_Alert_LF_Walk_Turn_Start_Rht_90_anm
|
||||
7 Trl_BM_Alert_Look_2Cmbt_180L_anm
|
||||
8 Trl_BM_Alert_Look_2Cmbt_180R_anm
|
||||
9 Trl_BM_Alert_Look_2Cmbt_90L_anm
|
||||
10 Trl_BM_Alert_Look_2Cmbt_90R_anm
|
||||
11 Trl_BM_Alert_Look_2Cmbt_A_anm
|
||||
12 Trl_BM_Alert_Look_2Cmbt_anm
|
||||
13 Trl_BM_Alert_Look_2Cmbt_B_anm
|
||||
14 Trl_BM_Alert_Look_2Cmbt_C_ClubSwing_anm
|
||||
15 Trl_BM_Alert_Look_End_Fwd_anm
|
||||
16 Trl_BM_Alert_Look_Loop_anm
|
||||
17 Trl_BM_Alert_Look_Loop_v01_anm
|
||||
18 Trl_BM_Alert_Look_Loop_v02_anm
|
||||
19 Trl_BM_Alert_Look_Start_Fwd_anm
|
||||
20 Trl_BM_Alert_Look_Turn_InPlace_A_anm
|
||||
21 Trl_BM_Alert_Look_Turn_InPlace_B_anm
|
||||
22 Trl_BM_Alert_Walk_Loop_Fwd_anm
|
||||
23 Trl_BM_Alert_Walk_Loop_Fwd_End_anm
|
||||
24 Trl_BM_Alert_Walk_Loop_Fwd_Start_anm
|
||||
25 Trl_BM_Idle_01_Face_anm
|
||||
26 Trl_BM_Idle_Break_01_anm
|
||||
27 Trl_BM_Idle_Break_01_Face_anm
|
||||
28 Trl_BM_Idle_Break_02_anm
|
||||
29 Trl_BM_Idle_Break_02_Face_anm
|
||||
30 Trl_BM_Idle_Break_03_anm
|
||||
31 Trl_BM_Idle_Break_04_anm
|
||||
32 Trl_BM_Lean_0_anm
|
||||
33 Trl_BM_LF_Idle_anm
|
||||
34 Trl_BM_LF_Walk_Turn_Start_Lft_135_anm
|
||||
35 Trl_BM_LF_Walk_Turn_Start_Lft_180_anm
|
||||
36 Trl_BM_LF_Walk_Turn_Start_Lft_45_anm
|
||||
37 Trl_BM_LF_Walk_Turn_Start_Lft_90_anm
|
||||
38 Trl_BM_LF_Walk_Turn_Start_Rht_135_anm
|
||||
39 Trl_BM_LF_Walk_Turn_Start_Rht_180_anm
|
||||
40 Trl_BM_LF_Walk_Turn_Start_Rht_45_anm
|
||||
41 Trl_BM_LF_Walk_Turn_Start_Rht_90_anm
|
||||
42 Trl_BM_Walk_Loop_Fwd_End_Wander_anm
|
||||
43 Trl_BM_Walk_Loop_Fwd_Lft_45_Wander_anm
|
||||
44 Trl_BM_Walk_Loop_Fwd_Rht_45_Wander_anm
|
||||
45 Trl_BM_Walk_Loop_Fwd_Start_Wander_anm
|
||||
46 Trl_BM_Walk_Loop_Fwd_Wander_anm
|
||||
47 Trl_Cmbt_Atk_01_Face_anm
|
||||
48 Trl_Cmbt_Atk_02_Face_anm
|
||||
49 Trl_Cmbt_Atk_03_Face_anm
|
||||
50 Trl_Cmbt_Atk_Charge_Check_anm
|
||||
51 Trl_Cmbt_Atk_Charge_Knee_End_anm
|
||||
52 Trl_Cmbt_Atk_Charge_Knee_Loop_anm
|
||||
53 Trl_Cmbt_Atk_Charge_Knee_Start_anm
|
||||
54 Trl_Cmbt_Atk_Charge_Loop_anm
|
||||
55 Trl_Cmbt_Atk_Charge_Start_anm
|
||||
56 Trl_Cmbt_Atk_Charge_Stop_RU_anm
|
||||
57 Trl_Cmbt_Atk_Charge_Stop_Turn_Lft_anm
|
||||
58 Trl_Cmbt_Atk_Charge_Stop_Turn_Rht_anm
|
||||
59 Trl_Cmbt_Atk_Charge_Stumble_Fwd_anm
|
||||
60 Trl_Cmbt_Atk_Charge_Stun_anm
|
||||
61 Trl_Cmbt_Atk_Hop_Bckhnd_RU_anm
|
||||
62 Trl_Cmbt_Atk_Hop_Forhnd_LU_anm
|
||||
63 Trl_Cmbt_Atk_LF_Stomp_Bck_anm
|
||||
64 Trl_Cmbt_Atk_LF_Stomp_Fwd_anm
|
||||
65 Trl_Cmbt_Atk_LF_Stomp_Lft_anm
|
||||
66 Trl_Cmbt_Atk_Overhead_Slam_anm
|
||||
67 Trl_Cmbt_Atk_Overhead_Slam_BckHnd_anm
|
||||
68 Trl_Cmbt_Atk_Overhead_Slam_Jog_anm
|
||||
69 Trl_Cmbt_Atk_Overhead_Slam_Lft_180_anm
|
||||
70 Trl_Cmbt_Atk_Overhead_Slam_Lft_90_anm
|
||||
71 Trl_Cmbt_Atk_Overhead_Slam_Rht_180_anm
|
||||
72 Trl_Cmbt_Atk_Overhead_Slam_Rht_90_anm
|
||||
73 Trl_Cmbt_Atk_RF_Stomp_Rht_anm
|
||||
74 Trl_cmbt_Atk_RockThrow_Fwd_anm
|
||||
75 Trl_Cmbt_Atk_RockThrow_Lft_anm
|
||||
76 Trl_Cmbt_Atk_RockThrow_Rht_anm
|
||||
77 Trl_Cmbt_Atk_Rockthrow_Start_anm
|
||||
78 Trl_Cmbt_Atk_StepBack_Swing_Fwd_anm
|
||||
79 Trl_Cmbt_Atk_StepSwing_Fwd_BckHnd_anm
|
||||
80 Trl_Cmbt_Atk_StepSwing_Fwd_BckHnd_Splt_anm
|
||||
81 Trl_Cmbt_Atk_StepSwing_Fwd_ForHnd_anm
|
||||
82 Trl_Cmbt_Atk_StepSwing_Fwd_ForHnd_Splt_anm
|
||||
83 Trl_Cmbt_Atk_StepSwing_Lft_180_BckHnd_anm
|
||||
84 Trl_Cmbt_Atk_StepSwing_Lft_90_BckHnd_anm
|
||||
85 Trl_Cmbt_Atk_StepSwing_Rht_180_ForHnd_Splt_anm
|
||||
86 Trl_Cmbt_Atk_StepSwing_Rht_90_ForHnd_anm
|
||||
87 Trl_Cmbt_Atk_Swing_Fwd_anm
|
||||
88 Trl_Cmbt_Atk_Swing_Fwd_BckHnd_anm
|
||||
89 Trl_Cmbt_Atk_Swing_Fwd_BckHnd_Jog_anm
|
||||
90 Trl_Cmbt_Atk_Swing_Fwd_BckHnd_Splt_anm
|
||||
91 Trl_Cmbt_Atk_Swing_Fwd_Jog_anm
|
||||
92 Trl_Cmbt_Atk_Swing_Fwd_Splt_anm
|
||||
93 Trl_Cmbt_Atk_Swing_Lft_anm
|
||||
94 Trl_Cmbt_Atk_Swing_Rht_anm
|
||||
95 Trl_Cmbt_Atk_Swipe_anm
|
||||
96 Trl_Cmbt_Atk_Swipe_Lft_180_anm
|
||||
97 Trl_Cmbt_Atk_Swipe_Lft_90_anm
|
||||
98 Trl_Cmbt_Atk_Swipe_Rht_90_anm
|
||||
99 Trl_Cmbt_Atk_Tantrum_01_anm
|
||||
100 Trl_Cmbt_Atk_Tantrum_02_anm
|
||||
101 Trl_Cmbt_Idle_01_anm
|
||||
102 Trl_Cmbt_idle_01_Face_anm
|
||||
103 Trl_Cmbt_Jog_Loop_Fwd_anm
|
||||
104 Trl_Cmbt_Jog_Start_Fwd_anm
|
||||
105 Trl_Cmbt_Jog_Turn_Start_Lft_135_anm
|
||||
106 Trl_Cmbt_Jog_Turn_Start_Lft_180_anm
|
||||
107 Trl_Cmbt_Jog_Turn_Start_Lft_45_anm
|
||||
108 Trl_Cmbt_Jog_Turn_Start_Lft_90_anm
|
||||
109 Trl_Cmbt_Jog_Turn_Start_Rht_135_anm
|
||||
110 Trl_Cmbt_Jog_Turn_Start_Rht_180_anm
|
||||
111 Trl_Cmbt_Jog_Turn_Start_Rht_45_anm
|
||||
112 Trl_Cmbt_Jog_Turn_Start_Rht_90_anm
|
||||
113 Trl_Cmbt_LF_Idle_Turn_Lft_135_anm
|
||||
114 Trl_Cmbt_LF_Idle_Turn_Lft_180_anm
|
||||
115 Trl_Cmbt_LF_Idle_Turn_Lft_45_anm
|
||||
116 Trl_Cmbt_LF_Idle_Turn_Lft_90_anm
|
||||
117 Trl_Cmbt_LF_Idle_Turn_Rht_135_anm
|
||||
118 Trl_Cmbt_LF_Idle_Turn_Rht_180_anm
|
||||
119 Trl_Cmbt_LF_Idle_Turn_Rht_45_anm
|
||||
120 Trl_Cmbt_LF_Idle_Turn_Rht_90_anm
|
||||
121 Trl_Cmbt_Look_Lft_anm
|
||||
122 Trl_Cmbt_Look_Rht_anm
|
||||
123 Trl_Cmbt_OverHead_Slam_Taunt_01_anm
|
||||
124 Trl_Cmbt_OverHead_Slam_Taunt_02_anm
|
||||
125 Trl_Cmbt_Rct_Death_01_Face_anm
|
||||
126 Trl_Cmbt_Rct_Death_02_Face_anm
|
||||
127 Trl_Cmbt_Rct_Flinch_Charge_anm
|
||||
128 Trl_Cmbt_Rct_Hit_01_Face_anm
|
||||
129 Trl_Cmbt_Rct_Hit_02_Face_anm
|
||||
130 Trl_Cmbt_Rct_Hit_03_Face_anm
|
||||
131 Trl_Cmbt_Rct_Mandrake_Loop_anm
|
||||
132 Trl_Cmbt_Rct_Mandrake_Start_anm
|
||||
133 Trl_Cmbt_Rct_Mandrake_Stop_anm
|
||||
134 Trl_Cmbt_Roar_01_Face_anm
|
||||
135 Trl_Cmbt_Roar_02_Face_anm
|
||||
136 Trl_Cmbt_Roar_03_Face_anm
|
||||
137 Trl_Cmbt_Spawn_Ink_02_anm
|
||||
138 Trl_Cmbt_Spawn_Ink_anm
|
||||
139 Trl_Cmbt_Spwn_Breakthrough_01_anm
|
||||
140 Trl_Cmbt_Spwn_Breakthrough_02_anm
|
||||
141 Trl_Cmbt_Taunt_Fwd_05_anm
|
||||
142 Trl_Cmbt_Taunt_Fwd_06_anm
|
||||
143 Trl_Cmbt_Taunt_Fwd_07_anm
|
||||
144 Trl_Cmbt_Taunt_Fwd_08_anm
|
||||
145 Trl_Cmbt_Taunt_Fwd_09_anm
|
||||
146 Trl_Cmbt_Taunt_Lft_135_anm
|
||||
147 Trl_Cmbt_Taunt_Lft_180_anm
|
||||
148 Trl_Cmbt_Taunt_Lft_45_07_anm
|
||||
149 Trl_Cmbt_Taunt_Lft_90_07_anm
|
||||
150 Trl_Cmbt_Taunt_Lft_90_anm
|
||||
151 Trl_Cmbt_Taunt_Rht_135_anm
|
||||
152 Trl_Cmbt_Taunt_Rht_180_anm
|
||||
153 Trl_Cmbt_Taunt_Rht_45_07_anm
|
||||
154 Trl_Cmbt_Taunt_Rht_90_07_anm
|
||||
155 Trl_Cmbt_Taunt_Rht_90_anm
|
||||
156 Trl_Rct_Club_Face_anm
|
||||
157 Trl_Rct_Club_Face_End_anm
|
||||
158 Trl_Rct_Dazed_End_anm
|
||||
159 Trl_Rct_Dazed_Loop_anm
|
||||
160 Trl_Rct_Dazed_Start_anm
|
||||
161 Trl_Rct_Hitch_Bwd_Add_anm
|
||||
162 Trl_Rct_Hitch_Fwd_Add_anm
|
||||
163 Trl_Rct_Hitch_Lft_Add_anm
|
||||
164 Trl_Rct_Hitch_Rht_Add_anm
|
||||
165 Trl_Rct_KnckDn_Bck_anm
|
||||
166 Trl_Rct_Spell_Petrificus_Start_anm
|
||||
167 Trl_Rct_Stumble_Bck_02_anm
|
||||
168 Trl_Rct_Stumble_Bck_03_anm
|
||||
169 Trl_Rct_Stumble_Bck_04_anm
|
||||
170 Trl_Rct_Stumble_Fwd_anm
|
||||
171 Trl_Rct_Stumble_Lft_anm
|
||||
172 Trl_Rct_Stumble_Rht_anm
|
||||
173 Trl_STN_Grnd_Sleep_End_v01_anm
|
||||
0 CCL_Activity_WandSelection_Clip10_Ollivander_anm
|
||||
1 CCL_Activity_WandSelection_Clip11_Ollivander_anm
|
||||
2 CCL_Activity_WandSelection_Clip12_Ollivander_anm
|
||||
3 CCL_Activity_WandSelection_Clip13_Ollivander_anm
|
||||
4 CCL_Activity_WandSelection_Clip1_Ollivander_anm
|
||||
5 CCL_Activity_WandSelection_Clip21_Ollivander_anm
|
||||
6 CCL_Activity_WandSelection_Clip23_Ollivander_anm
|
||||
7 CCL_Activity_WandSelection_Clip24_Ollivander_anm
|
||||
8 CCL_Activity_WandSelection_Clip25_Ollivander_anm
|
||||
9 CCL_Activity_WandSelection_Clip26_Ollivander_anm
|
||||
10 CCL_Activity_WandSelection_Clip28_Ollivander_anm
|
||||
11 CCL_Activity_WandSelection_Clip29_Ollivander_anm
|
||||
12 CCL_Activity_WandSelection_Clip2_Ollivander_anm
|
||||
13 CCL_Activity_WandSelection_Clip3_Ollivander_anm
|
||||
14 CCL_Activity_WandSelection_Clip4_Ollivander_anm
|
||||
15 CCL_Activity_WandSelection_Clip5_Ollivander_anm
|
||||
16 CCL_Activity_WandSelection_Clip6_Ollivander_anm
|
||||
17 CCL_Activity_WandSelection_Clip7_Ollivander_anm
|
||||
18 CCL_Activity_WandSelection_Clip8_Ollivander_anm
|
||||
19 CCL_Activity_WandSelection_Clip9_Ollivander_anm
|
||||
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -940,9 +940,9 @@ PS_OUT_SSAO_AMBIENT_OCCLUSION PS_SSAO_AMBIENT_OCCLUSION(PS_IN In)
|
||||
|
||||
float4 vDepthDesc = g_DepthTexture.Sample(PointSampler, uv);
|
||||
float fCenterViewSpaceZ = vDepthDesc.y * g_fFar; // n ~ f
|
||||
float fRatio = lerp(0.f, 1.f, (g_fFar - fCenterViewSpaceZ) / g_fFar);
|
||||
if (fRatio <= 0.f)
|
||||
{
|
||||
float fRatio = saturate(smoothstep(0.f, 1.f, (g_fFar - fCenterViewSpaceZ) / g_fFar)); // 멀어지면 너무 반짝거려서 스무딩
|
||||
|
||||
if (fRatio <= 0.f) {
|
||||
Out.fOcclusion = 1.f;
|
||||
return Out;
|
||||
}
|
||||
@@ -1007,7 +1007,7 @@ PS_OUT_SSAO_BLUR PS_SSAO_BLUR(PS_IN In)
|
||||
for (int y = -2; y < 2; ++y)
|
||||
{
|
||||
float2 vOffset = float2((float) x, (float) y) * vTexelSize;
|
||||
fResult += g_SSAOInputTexture.Sample(DefaultSampler, In.vTexcoord + vOffset).r;
|
||||
fResult += g_SSAOInputTexture.Sample(BorderZeroSampler, In.vTexcoord + vOffset).r;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1526,8 +1526,11 @@ VS_OUT3D VS_MAIN3D(VS_IN3D In)
|
||||
|
||||
float3 vertexPos = worldCenter + dirRight + dirUp;
|
||||
|
||||
float2 TexCoord = In.vTexcoord;
|
||||
TexCoord.y = 1.f - TexCoord.y;
|
||||
|
||||
Out.vPosition = mul(float4(vertexPos, 1.f), matViewProj);
|
||||
Out.vTexcoord = 1.f - In.vTexcoord;
|
||||
Out.vTexcoord = TexCoord;
|
||||
return Out;
|
||||
}
|
||||
|
||||
|
||||
@@ -72,17 +72,17 @@ float2 g_vDiffuseUVGainAmount;
|
||||
float2 g_vMaskingUVGainAmount;
|
||||
float2 g_vNoiseUVGainAmount;
|
||||
|
||||
int g_iMaskMoveLerpOption;
|
||||
int g_iDiffuseMoveLerpOption;
|
||||
int g_iNoiseMoveLerpOption;
|
||||
int g_iMaskMoveLerpOption;
|
||||
int g_iDiffuseMoveLerpOption;
|
||||
int g_iNoiseMoveLerpOption;
|
||||
|
||||
//
|
||||
float2 g_vDistortionTime;
|
||||
float2 g_vMaskDistortionUVGainAmount;
|
||||
|
||||
|
||||
int g_iMaskDistortionMoveLerpOption;
|
||||
int g_iDiffuseDistortionMoveLerpOption;
|
||||
int g_iMaskDistortionMoveLerpOption;
|
||||
int g_iDiffuseDistortionMoveLerpOption;
|
||||
//
|
||||
|
||||
float2 g_vUVCutting;
|
||||
@@ -90,12 +90,12 @@ float2 g_vUVMaskCutting;
|
||||
|
||||
float g_fDiffuseAlpha;
|
||||
|
||||
int g_iBlurWeight; // 블러 강도
|
||||
int g_iBlurWeight; // 블러 강도
|
||||
float g_fBlurIntensity; //블러 세기
|
||||
float g_fNoiseDistortionIntensity; // 디스토션 왜곡 세기
|
||||
|
||||
float4 g_vEmissive;
|
||||
float g_fEmissiveStrength;
|
||||
float g_fEmissiveStrength;
|
||||
|
||||
float g_fSoftenExp;
|
||||
float g_fSoftStrength;
|
||||
@@ -137,18 +137,18 @@ bool g_isBlurReverseDissolve;
|
||||
|
||||
float g_fBluringStrength;
|
||||
|
||||
bool g_isBloomDissolve;
|
||||
bool g_isBloomReverseDissolve;
|
||||
bool g_isBloomDissolve;
|
||||
bool g_isBloomReverseDissolve;
|
||||
|
||||
float g_fBloomStrength;
|
||||
int g_iBloomType;
|
||||
float g_fBloomStrength;
|
||||
int g_iBloomType;
|
||||
|
||||
float g_fFar;
|
||||
|
||||
float g_fDissolveDelay;
|
||||
float g_fReverseDissolveDelay;
|
||||
float2 g_vDissolveUVGainAmount;
|
||||
bool g_isDissolveMove;
|
||||
float g_fDissolveDelay;
|
||||
float g_fReverseDissolveDelay;
|
||||
float2 g_vDissolveUVGainAmount;
|
||||
bool g_isDissolveMove;
|
||||
|
||||
float g_fDissolveMaskEdge;
|
||||
float g_fDissolveSoftMask;
|
||||
@@ -263,7 +263,6 @@ struct PS_OUT
|
||||
{
|
||||
float4 vDiffuse : SV_TARGET0;
|
||||
float4 vRevealage : SV_TARGET1;
|
||||
float4 vColorTarget : SV_TARGET2;
|
||||
};
|
||||
|
||||
float4 DrawEffect(PS_IN In)
|
||||
@@ -274,7 +273,7 @@ float4 DrawEffect(PS_IN In)
|
||||
vector vMtrlDissolve;
|
||||
vector vMtrlDistortion;
|
||||
|
||||
float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x;
|
||||
float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x;
|
||||
float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime;
|
||||
float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime;
|
||||
float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime;
|
||||
@@ -456,7 +455,7 @@ float4 DrawEffect(PS_IN In)
|
||||
|
||||
|
||||
if (g_isDissolve == true)
|
||||
{
|
||||
{
|
||||
float fTimeX = (In.vLifeTime.x - g_fDissolveDelay);
|
||||
float fTimeY = (In.vLifeTime.y - g_fDissolveDelay);
|
||||
float fTimeRatio = 0;
|
||||
@@ -481,14 +480,14 @@ float4 DrawEffect(PS_IN In)
|
||||
{
|
||||
vMtrlDiffuse.a *= In.vLifeTime.x / In.vLifeTime.y;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
float2 vDissolveUV = In.vTexcoord + SelectLerpUV(g_vDissolveUVGainAmount, (vDissolveUVMoveTime.x / vDissolveUVMoveTime.y), 0);
|
||||
|
||||
if (g_isDissolveMove)
|
||||
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV );
|
||||
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV);
|
||||
else
|
||||
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||
|
||||
@@ -557,12 +556,12 @@ float4 DrawEffect(PS_IN In)
|
||||
return vMtrlDiffuse;
|
||||
}
|
||||
|
||||
float4 EmissiveDraw(PS_IN In , float4 Diffuse)
|
||||
float4 EmissiveDraw(PS_IN In, float4 Diffuse)
|
||||
{
|
||||
float4 vEmissiveMtrl = vector(0.f, 0.f, 0.f, 0.f);
|
||||
float2 CenteredUV = In.vTexcoord - 0.5f;
|
||||
float fEmissive = 0.f;
|
||||
float fEmissiveStrength = g_fEmissiveStrength;
|
||||
float fEmissive = 0.f;
|
||||
float fEmissiveStrength = g_fEmissiveStrength;
|
||||
|
||||
if (g_fEmissiveColorCut >= FLT_EPSILON5)
|
||||
{
|
||||
@@ -661,7 +660,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
}
|
||||
|
||||
PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
||||
{
|
||||
{
|
||||
PS_OUT Out;
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
@@ -682,9 +681,7 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
||||
Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w);
|
||||
|
||||
//// 색깔 추가할 처리 (이미시브)
|
||||
|
||||
//Out.vDiffuse // 이미시브 스트랭스
|
||||
Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f);
|
||||
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -753,7 +750,7 @@ PS_BLUR_OUT PS_BLUR_NOEMISSIVE(PS_IN In)
|
||||
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
vMtrlDiffuse= DrawEffect(In);
|
||||
vMtrlDiffuse = DrawEffect(In);
|
||||
|
||||
//// 색깔 추가할 처리 (이미시브)
|
||||
|
||||
@@ -768,7 +765,7 @@ PS_BLUR_OUT PS_BLUR_NOEMISSIVE(PS_IN In)
|
||||
// }
|
||||
//}
|
||||
|
||||
Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity , vMtrlDiffuse.a);
|
||||
Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity, vMtrlDiffuse.a);
|
||||
Out.vBlurWeight = g_iBlurWeight / 128.f;
|
||||
|
||||
return Out;
|
||||
@@ -824,7 +821,7 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In)
|
||||
|
||||
vMtrlDiffuse.rgb += EmissiveDraw(In, vMtrlDiffuse).rgb;
|
||||
|
||||
float fBloomStrength = g_fBloomStrength;
|
||||
float fBloomStrength = g_fBloomStrength;
|
||||
|
||||
if (g_isBloomDissolve == true)
|
||||
{
|
||||
|
||||
@@ -2130,6 +2130,12 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
vector<future<pair<_wstring, CModel*>*>> futures = {};
|
||||
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SM_Bottle_EmptyCapOff_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM_LOCAL, "C:/MeshTable\\Game\\Cinematics\\Props\\SM_Bottle_EmptyCapOff.fbx", XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
#pragma region BODY
|
||||
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user