Merge branch 'Develope' into Effect
This commit is contained in:
@@ -1035,18 +1035,6 @@
|
||||
<Filter Include="02.GameObjects\Cameras\Debug">
|
||||
<UniqueIdentifier>{8d89a59c-fbd2-4a4a-ab01-a70abb80cc49}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\Plane">
|
||||
<UniqueIdentifier>{603938cc-e4fe-44d8-890b-784174a86161}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\Prop">
|
||||
<UniqueIdentifier>{2814c935-13d9-4b9a-94ba-c9e470219a18}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\Prop\SkyBox">
|
||||
<UniqueIdentifier>{19ee2ea4-2d79-46bd-b857-c759e3ec6cf4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\Prop\SkyBox\TriggerBox">
|
||||
<UniqueIdentifier>{2561df42-3dfa-4045-a30c-85f44cd65e09}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Cameras\CameraPosition">
|
||||
<UniqueIdentifier>{25ad4a41-5b06-4659-bd29-c0c4265a3277}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -2019,6 +2007,9 @@
|
||||
<Filter Include="02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit">
|
||||
<UniqueIdentifier>{06672a35-4ed9-4c17-aa7f-bb249190a1ee}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\20.TriggerBox">
|
||||
<UniqueIdentifier>{2561df42-3dfa-4045-a30c-85f44cd65e09}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2898,9 +2889,6 @@
|
||||
<ClCompile Include="..\Private\CamPosition_WorldLook.cpp">
|
||||
<Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp">
|
||||
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\PotionScreen.cpp">
|
||||
<Filter>02.GameObjects\Effect\Effects\Potion\PotionScreen</Filter>
|
||||
</ClCompile>
|
||||
@@ -2916,6 +2904,9 @@
|
||||
<ClCompile Include="..\Private\Ranrok_PropHit.cpp">
|
||||
<Filter>02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop\Ranrok_PropHit</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\TriggerBox.cpp">
|
||||
<Filter>04.Mechanic\20.TriggerBox</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\State_Parry.cpp">
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "Broom.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "InstancedProp.h"
|
||||
#include "EffectPool.h"
|
||||
|
||||
CBroomRaceManager::CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -39,6 +40,8 @@ HRESULT CBroomRaceManager::Initialize(void* pArg)
|
||||
|
||||
m_pInfoInstance->Add_Event(TEXT("BROOMRACENPCINTERACT"), [this](void* p) {this->RaceReady(); });
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -65,21 +68,16 @@ void CBroomRaceManager::Priority_Update(_float fTimeDelta)
|
||||
m_bRaceEnd = true;
|
||||
_float Alpha = 2.f;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("UIFadeIn"), &Alpha);
|
||||
}
|
||||
|
||||
for (auto& racer : m_Racers)
|
||||
{
|
||||
if (racer.pAI)
|
||||
for (auto& racer : m_Racers)
|
||||
{
|
||||
racer.pAI->Get_Broom()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
}
|
||||
if (racer.pRacer)
|
||||
{
|
||||
|
||||
if (racer.pAI)
|
||||
{
|
||||
racer.pAI->Get_Broom()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -357,6 +355,11 @@ void CBroomRaceManager::RaceReady()
|
||||
MSG_BOX("Failed Load Balloons");
|
||||
}
|
||||
|
||||
if (FAILED(Load_Broomrace_Effect()))
|
||||
{
|
||||
MSG_BOX("Failed Load Broomrace_Effect");
|
||||
}
|
||||
|
||||
CInstancedProp::INSTANCE_PROP_DESC Instance_Desc = {};
|
||||
|
||||
/* InstanceProp RouteMarker*/
|
||||
@@ -577,6 +580,48 @@ HRESULT CBroomRaceManager::Load_Balloons()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBroomRaceManager::Load_Broomrace_Effect()
|
||||
{
|
||||
CEffectPool* pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
|
||||
if (nullptr == pEffectPool)
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/EffectPart/Bubble_Data.xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("EffectParts");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
_float4 vPosition = {};
|
||||
|
||||
/* Transform */
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &vPosition.z);
|
||||
vPosition.w = 1.f;
|
||||
|
||||
pEffectPool->Use_Skill(SKILL_TYPE::BROOM_RACE_BUBBLE, this, &vPosition);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ void CBroomRace_Bubble::Late_Update(_float fTimeDelta)
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = pBubble->Get_WorldPostion();
|
||||
ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
|
||||
}
|
||||
|
||||
m_iIndex = static_cast<RacerDesc*>(pArg)->iIndex;
|
||||
m_bAI = true;
|
||||
|
||||
if (FAILED(Ready_Components())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -73,7 +75,6 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
|
||||
|
||||
|
||||
m_bAI = true;
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -121,9 +121,10 @@ void CBroom::Behavior_MoveEnter()
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
m_pFSM->Enable_State(FSMSTATE::MOVE);
|
||||
|
||||
|
||||
m_pBroomTrail->SetDissolve(false);
|
||||
m_pBroomTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
if (m_pParentUnit->IsAI() == false) {
|
||||
m_pBroomTrail->SetDissolve(false);
|
||||
m_pBroomTrail->Get_Component<CTrail>()->Reset_Trail();
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CBroom::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
@@ -449,23 +450,11 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
|
||||
if (vInput.x < 0.f)
|
||||
{
|
||||
/*if (vInput.z <= 0.f)
|
||||
{
|
||||
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.4f);
|
||||
}
|
||||
else {*/
|
||||
m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.3f);
|
||||
//}
|
||||
}
|
||||
else if (vInput.x > 0.f)
|
||||
{
|
||||
/*if (vInput.z <= 0.f)
|
||||
{
|
||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.4f);
|
||||
}
|
||||
else {*/
|
||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * 0.3f);
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
@@ -524,10 +513,6 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
|
||||
|
||||
/*if (bShift && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
|
||||
{
|
||||
m_bHoverToggle = false;
|
||||
}*/
|
||||
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
|
||||
{
|
||||
if (fRatio >= 0.5f && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
|
||||
|
||||
@@ -150,6 +150,7 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
|
||||
m_pTransformCom->Set_WorldMatrix(pContents->pxTransform);
|
||||
m_pFollowTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION));
|
||||
m_pLookTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION) + m_pTransformCom->Get_State(STATE::LOOK));
|
||||
Clear_Lerp_Rotation();
|
||||
Clear_Lerp_Translation();
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::TRANSLATION:
|
||||
|
||||
@@ -24,7 +24,8 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_DEBUG))) {
|
||||
return;
|
||||
}
|
||||
Transition(fTimeDelta);
|
||||
const _float fFixedDebugTimeDelta = 1.f / 60.f;
|
||||
Transition(fFixedDebugTimeDelta);
|
||||
_float3 vCamPos = {};
|
||||
_float3 vSetPos = {};
|
||||
XMStoreFloat3(&vCamPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
@@ -39,22 +40,22 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
#pragma region Position
|
||||
_float fSpeed = 5.f;
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W)) {
|
||||
m_pTransformCom->Go_Straight(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Straight(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_A)) {
|
||||
m_pTransformCom->Go_Left(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Left(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_S)) {
|
||||
m_pTransformCom->Go_Backward(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Backward(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_D)) {
|
||||
m_pTransformCom->Go_Right(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Right(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_SPACE)) {
|
||||
m_pTransformCom->Go_Up(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Up(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_C)) {
|
||||
m_pTransformCom->Go_Down(fTimeDelta * fSpeed);
|
||||
m_pTransformCom->Go_Down(fFixedDebugTimeDelta * fSpeed);
|
||||
}
|
||||
if (m_pGameInstance->Key_Pressing(DIK_TAB)) {
|
||||
Set_InitialPos();
|
||||
@@ -81,8 +82,8 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
#pragma region Angle
|
||||
|
||||
_float3 fMove = m_pGameInstance->Get_MouseMove();
|
||||
m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fTimeDelta * fMove.x * m_fMouseSensor);
|
||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::RIGHT), fTimeDelta * fMove.y * m_fMouseSensor);
|
||||
m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fFixedDebugTimeDelta * fMove.x * m_fMouseSensor);
|
||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::RIGHT), fFixedDebugTimeDelta * fMove.y * m_fMouseSensor);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@ CCutSceneInfo::CCutSceneInfo()
|
||||
}
|
||||
void CCutSceneInfo::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->Key_Pressing(DIK_LCONTROL) && m_pGameInstance->Key_Pressing(DIK_RCONTROL) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)&& m_pGameInstance->Key_Pressing(DIK_RSHIFT) && m_pGameInstance->Key_Pressing(DIK_LALT) && m_pGameInstance->Key_Pressing(DIK_RALT)) {
|
||||
Set_AllActiveEventsExit();
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
@@ -572,3 +575,15 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
|
||||
pair<_string, TimeLine*> pairResult = { _string(pContentsNode->Name()), pTimeLine };
|
||||
m_pInfoInstance->Load_Events(pairResult);
|
||||
}
|
||||
|
||||
void CCutSceneInfo::Set_AllActiveEventsExit()
|
||||
{
|
||||
map<_string, TimeLine*>::iterator iter = m_funcActiveEvents.begin();
|
||||
for (; iter != m_funcActiveEvents.end();++iter) {
|
||||
iter->second->m_vTimer.x = 1.f - FLT_EPSILON;
|
||||
for (list<CTimeSocket*>::iterator socketIter = (*iter).second->m_Sockets.begin();
|
||||
socketIter != (*iter).second->m_Sockets.end(); ++socketIter) {
|
||||
(*socketIter)->Trigger(1.f - FLT_EPSILON);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,7 +178,9 @@ HRESULT CGoblin_Assassin::Render()
|
||||
{
|
||||
RENDER ePass = m_pGameInstance->Get_CurrentRenderPass();
|
||||
|
||||
if (m_bMotionTrail) {
|
||||
|
||||
if (m_bMotionTrail)
|
||||
{
|
||||
if (ePass == RENDER::BLEND)
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
|
||||
@@ -126,7 +126,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
_bool bLoadNPC = { true };
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
bLoadNPC = false;
|
||||
bLoadNPC = true;
|
||||
#endif
|
||||
#endif // _DEBUG
|
||||
if (true == bLoadNPC) {
|
||||
@@ -175,7 +175,7 @@ void CLevel_GamePlay::Update(_float fTimeDelta)
|
||||
bStartCinematic = true;
|
||||
#elif Bin
|
||||
bStartCinematic = false;
|
||||
#elif gimchi
|
||||
#elif gimch
|
||||
bStartCinematic = false;
|
||||
#endif
|
||||
#endif // _DEBUG
|
||||
@@ -365,7 +365,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
#ifdef 기무리
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogwart = false;
|
||||
isReady_Hogwart = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isReady_Background = false;
|
||||
@@ -1140,8 +1140,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
|
||||
isLoad_NPC = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_NPC = false;
|
||||
isLoad_RandomNPC = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_RandomNPC = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isLoad_RandomNPC = true;
|
||||
@@ -1164,8 +1164,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
|
||||
}
|
||||
{
|
||||
CNPC_EleazarFig::NPCDESC NPCDesc{};
|
||||
NPCDesc.vPos = _float4(101.f, 14.f, 100.f, 1.f);
|
||||
NPCDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f);
|
||||
NPCDesc.vPos = _float4(96.311f, 4.676f, 77.116f, 1.f);
|
||||
NPCDesc.vRotQ = _float4(0.f, 0.691f, 0.f, 0.723f);
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPC_EleazarFig>(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -564,9 +564,9 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_Hogwart = true;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
|
||||
@@ -162,7 +162,7 @@ HRESULT CMapElement_Cave::Ready_TriggerBox()
|
||||
CTriggerBox::TRIGGERBOX_DESC Desc = {};
|
||||
|
||||
XMStoreFloat4(&Desc.vPosition_Radius, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
Desc.vPosition_Radius.w = 10.f;
|
||||
Desc.vPosition_Radius.w = 3.f;
|
||||
|
||||
m_pTriggerBox = CTriggerBox::Create(m_pDevice, m_pContext, &Desc);
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ void CMapElement_Interactable::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible)
|
||||
{
|
||||
if (m_isGraped == true)
|
||||
if (m_bThrow == true)
|
||||
{
|
||||
_float fRadius = m_pModelComs[0]->Get_Radius();
|
||||
|
||||
@@ -344,123 +344,77 @@ ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _f
|
||||
|
||||
_float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos));
|
||||
|
||||
PSX::PxSweepBuffer pxBuffer = {};
|
||||
PSX::PxSweepBufferN<12> pxBuffer = {};
|
||||
|
||||
_bool bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
|
||||
|
||||
const PSX::PxSweepHit& hit = pxBuffer.block;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
_bool bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eSTATIC | PSX::PxQueryFlag::eNO_BLOCK, pxBuffer);
|
||||
ON_COLLISION_INFO tagCollInfo = {};
|
||||
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.vWorldPos.w = 1.f;
|
||||
|
||||
if (bHit) {
|
||||
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PHYSX_USERDATA* pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
|
||||
tagCollInfo.pObject = pUserData->pOwner;
|
||||
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::MONSTER:
|
||||
HRESULT hr = CheckHit(&pxBuffer.block, tagCollInfo);
|
||||
if (FAILED(hr)) {
|
||||
PSX::PxSweepHit* hits = pxBuffer.touches;
|
||||
_uint iHitCount = pxBuffer.getNbTouches();
|
||||
for (_uint i = 0; i < iHitCount; ++i) {
|
||||
PSX::PxSweepHit* pHit = &pxBuffer.touches[i];
|
||||
hr = CheckHit(pHit, tagCollInfo);
|
||||
if (SUCCEEDED(hr)) {
|
||||
break;
|
||||
case PXOBJECT::GOBLIN_WARRIOR:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::GOBLIN_MAGICIAN:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::GOBLIN_ASSASSIN:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::TROLL:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::RANROK_BODY:
|
||||
case PXOBJECT::RANROK:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bHit == false)
|
||||
{
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
tagCollInfo.pObject = this;
|
||||
|
||||
bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, pxBuffer);
|
||||
|
||||
const PSX::PxSweepHit& hit = pxBuffer.block;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
|
||||
tagCollInfo.vWorldPos.w = 1.f;
|
||||
|
||||
if (bHit)
|
||||
{
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PHYSX_USERDATA* pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
|
||||
tagCollInfo.pObject = pUserData->pOwner;
|
||||
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::TERRAIN:
|
||||
{
|
||||
/* TODO, 터레인 안됨 */
|
||||
m_bHit = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return tagCollInfo;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::CheckHit(PSX::PxSweepHit* pHit, ON_COLLISION_INFO& Info)
|
||||
{
|
||||
HRESULT hr = E_FAIL;
|
||||
PSX::PxActor* pActor = pHit->actor;
|
||||
PSX::PxShape* pShape = pHit->shape;
|
||||
PHYSX_USERDATA* pUserData = { nullptr };
|
||||
CGameObject* pTarget = { nullptr };
|
||||
if (nullptr != pActor && nullptr != pActor->userData || nullptr != pShape && nullptr != pShape->userData) {
|
||||
pUserData = static_cast<PHYSX_USERDATA*>(pActor->userData);
|
||||
if (nullptr == pUserData) {
|
||||
pUserData = static_cast<PHYSX_USERDATA*>(pShape->userData);
|
||||
}
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::BODY_STATIC:
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::TERRAIN:
|
||||
case PXOBJECT::GOBLIN_WARRIOR:
|
||||
case PXOBJECT::GOBLIN_MAGICIAN:
|
||||
case PXOBJECT::GOBLIN_ASSASSIN:
|
||||
case PXOBJECT::TROLL:
|
||||
case PXOBJECT::RANROK_BODY:
|
||||
case PXOBJECT::RANROK:
|
||||
{
|
||||
hr = S_OK;
|
||||
m_bHit = true;
|
||||
} break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
} break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (SUCCEEDED(hr)) {
|
||||
memcpy_s(&Info.vWorldPos, sizeof(Info.vWorldPos), &pHit->position, sizeof(pHit->position));
|
||||
memcpy_s(&Info.vWorldNomal, sizeof(Info.vWorldNomal), &pHit->normal, sizeof(pHit->normal));
|
||||
Info.fLength = pHit->distance;
|
||||
Info.pObject = pUserData->pOwner;
|
||||
Info.pObject->OnCollision(this, &Info);
|
||||
}
|
||||
return hr;
|
||||
}
|
||||
|
||||
CMapElement_Interactable* CMapElement_Interactable::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMapElement_Interactable* pInstance = new CMapElement_Interactable(pDevice, pContext);
|
||||
|
||||
@@ -196,7 +196,6 @@ void CNPCInteraction::Priority_Update(_float fTimeDelta)
|
||||
m_fFontSize = 0;
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_pBoxInfo.fPosition));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CNPCInteraction::Update(_float fTimeDelta)
|
||||
|
||||
@@ -38,7 +38,9 @@ HRESULT CNPC_EleazarFig::Initialize(void* pArg)
|
||||
m_pCharacter_Controller->Set_Position(vPos);
|
||||
m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ));
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0, true);
|
||||
_int iRandom = m_pGameInstance->Real_Random_Int(0, 12);
|
||||
m_pModelCom->Set_AnimationIndex(iRandom, false, 1.f, false, 1.f, false);
|
||||
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller);
|
||||
m_bNpc = true;
|
||||
@@ -58,8 +60,6 @@ void CNPC_EleazarFig::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CNPC_EleazarFig::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
_int iRandom = m_pGameInstance->Real_Random_Int(0, 12);
|
||||
@@ -356,6 +356,7 @@ void CNPC_EleazarFig::Free()
|
||||
|
||||
void CNPC_EleazarFig::Describe_Entity()
|
||||
{
|
||||
m_pTransformCom->Describe_Entity();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -126,6 +126,8 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
m_fRayDistance = 5.f;
|
||||
m_pModelCom->Set_DisableRootMotionScale(true);
|
||||
|
||||
Ready_Sound_Events("../Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -144,7 +146,6 @@ void CPlayer::Update(_float fTimeDelta)
|
||||
Update_CameraCoordinateSystem(fTimeDelta);
|
||||
UpdateGrapInteractive(fTimeDelta);
|
||||
Update_RaycastElements();
|
||||
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
Play_SpellHitAnim();
|
||||
@@ -575,6 +576,9 @@ void CPlayer::Trigger(CTimeSocket& Socket)
|
||||
m_pModelCom->Set_AnimationIndex(m_Animation[STATEANIM::SPAWN].first, m_Animation[STATEANIM::SPAWN].second);
|
||||
}
|
||||
}
|
||||
else if (pContents->vFlags.b[2]) {
|
||||
m_pFSM->Change_State(FSMSTATE::DODGE);
|
||||
}
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX:
|
||||
{
|
||||
|
||||
@@ -62,10 +62,7 @@ void CPlayer::Get_UIState(_int UIState)
|
||||
|
||||
HRESULT CPlayer::InputAction()
|
||||
{
|
||||
if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
|
||||
m_eUIState !=ENUM_CLASS(UI_STATE::QUEST) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT))
|
||||
if (IsInputLocked())
|
||||
{
|
||||
if (
|
||||
m_pGameInstance->Key_Down(DIK_SPACE)
|
||||
@@ -111,11 +108,7 @@ HRESULT CPlayer::InputAction()
|
||||
|
||||
HRESULT CPlayer::InputMove()
|
||||
{
|
||||
if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::QUEST) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) &&
|
||||
!m_bDuel_ZOnlyMove &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT))
|
||||
if (IsInputLocked() && !m_bDuel_ZOnlyMove)
|
||||
{
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_A)
|
||||
@@ -131,11 +124,7 @@ HRESULT CPlayer::InputMove()
|
||||
|
||||
HRESULT CPlayer::InputKeyUpMove()
|
||||
{
|
||||
if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::QUEST) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) &&
|
||||
!m_bDuel_ZOnlyMove &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT))
|
||||
if (IsInputLocked() && !m_bDuel_ZOnlyMove)
|
||||
{
|
||||
if (m_pGameInstance->Key_Up(DIK_W)
|
||||
|| m_pGameInstance->Key_Up(DIK_A)
|
||||
@@ -150,10 +139,7 @@ HRESULT CPlayer::InputKeyUpMove()
|
||||
|
||||
HRESULT CPlayer::InputSpell()
|
||||
{
|
||||
if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::QUEST) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) {
|
||||
if (IsInputLocked()) {
|
||||
if (
|
||||
m_pGameInstance->Key_Down(DIK_1)
|
||||
|| m_pGameInstance->Key_Down(DIK_2)
|
||||
@@ -175,10 +161,7 @@ HRESULT CPlayer::InputSpell()
|
||||
|
||||
HRESULT CPlayer::InputAim()
|
||||
{
|
||||
if (m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::QUEST) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT)) {
|
||||
if (IsInputLocked()) {
|
||||
if (m_pGameInstance->Mouse_Pressing(DIM_RBUTTON) ||
|
||||
m_pGameInstance->Mouse_Pressing(DIM_LBUTTON))
|
||||
{
|
||||
@@ -1298,6 +1281,13 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (m_pBroom->Get_Ride())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
|
||||
{
|
||||
_uint iCurr = m_pModelCom->Get_AnimIndex();
|
||||
@@ -2093,10 +2083,9 @@ void CPlayer::Behavior_Spell_LearningEnter()
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false);
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {pair<_uint, _bool> pairAnimInfo;
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_LEARNING_WANDWAVE]; },
|
||||
pairAnimInfo = m_Animation[STATEANIM::SPELL_LEARNING_WANDWAVE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false); },
|
||||
0.95f);
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 1.f, false);
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_Spell_LearningExitCheck(_float fTimeDelta)
|
||||
@@ -3181,6 +3170,14 @@ void CPlayer::Hit_Levioso(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
_bool CPlayer::IsInputLocked()
|
||||
{
|
||||
return m_eUIState != ENUM_CLASS(UI_STATE::SPELL) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::QUEST) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::SPELLLNEARN) &&
|
||||
m_eUIState != ENUM_CLASS(UI_STATE::NPC_INTERACT);
|
||||
}
|
||||
|
||||
void CPlayer::Add_FSM()
|
||||
{
|
||||
#pragma region Behavior_Movement_NotFocus
|
||||
|
||||
@@ -454,6 +454,10 @@ void CTroll::Trigger(CTimeSocket& Socket)
|
||||
{
|
||||
if (pContents->vFlags.b[0]){
|
||||
m_pFSM->Change_State(FSMSTATE::RUSH);
|
||||
} else if (pContents->vFlags.b[1]) {
|
||||
m_pFSM->Change_State(FSMSTATE::SLAM);
|
||||
}else if (pContents->vFlags.b[2]) {
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::SET_ANIMSTATE:
|
||||
@@ -461,6 +465,21 @@ void CTroll::Trigger(CTimeSocket& Socket)
|
||||
if (pContents->vFlags.b[0]){
|
||||
auto& pairAnimation = m_Animation[STATEANIM::RUSH_LOOP];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimation.first, pairAnimation.second);
|
||||
} else if (pContents->vFlags.b[1]) {
|
||||
auto& pairAnimation = m_Animation[STATEANIM::SLAM];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimation.first, pairAnimation.second);
|
||||
} else if (pContents->vFlags.b[2]) {
|
||||
auto& pairAnimation = m_Animation[STATEANIM::IDLE];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimation.first, pairAnimation.second);
|
||||
}
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::LOOK_AT:
|
||||
{
|
||||
if (pContents->vFlags.b[0]) {
|
||||
m_pTransformCom->LookAt_Horizontal(XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
|
||||
}
|
||||
else {
|
||||
m_pTransformCom->LookAt_Horizontal(pContents->pOtherTarget->Get_WorldPostion());
|
||||
}
|
||||
} break;
|
||||
case TIMESOCKET_FUNC::END_CINEMATIC:
|
||||
|
||||
@@ -44,6 +44,7 @@ class CBroomRaceManager final : public CGameObject
|
||||
|
||||
HRESULT Load_RaceRing();
|
||||
HRESULT Load_Balloons();
|
||||
HRESULT Load_Broomrace_Effect();
|
||||
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
|
||||
@@ -26,7 +26,6 @@ class CCutSceneInfo final : public CBase
|
||||
HRESULT DeActive_ActiveEvent(_string& strKey);
|
||||
void Load_Events(pair<_string, TimeLine*>& pairTimeLine);
|
||||
HRESULT Clear_AllEvents();
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
@@ -41,6 +40,7 @@ class CCutSceneInfo final : public CBase
|
||||
void Update_WaitEvents(_float fTimeDelta);
|
||||
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
|
||||
void Load_CutSceneXML(const string& path);
|
||||
void Set_AllActiveEventsExit();
|
||||
|
||||
#ifdef _DEBUG
|
||||
public:
|
||||
|
||||
@@ -62,6 +62,7 @@ class CMapElement_Interactable final : public CMapElement
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
HRESULT CheckHit(PSX::PxSweepHit* pHit, ON_COLLISION_INFO& Info);
|
||||
|
||||
public:
|
||||
static CMapElement_Interactable* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -318,7 +318,7 @@ class CPlayer final : public CUnit
|
||||
void Hit_Levioso(_float fTimeDelta);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
_bool IsInputLocked();
|
||||
|
||||
private:
|
||||
class CEffectPool* m_pEffectPool = nullptr;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<Anim state="BROWSE_START" index="51" loop="false"/>
|
||||
</Name>
|
||||
|
||||
<Name Flow="1" Trigger="DIALOGUE_END">
|
||||
<Name Flow="1" Trigger="ANIM_END">
|
||||
<Anim state="BROWSE_END" index="50" loop="false"/>
|
||||
</Name>
|
||||
|
||||
|
||||
@@ -298,6 +298,117 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "TELEPORTATION" eTypeParam = "TRANSFORM" pTarget = "ACTOR_TROLL" eTypeFunc="TELEPORTATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.000" Y="0.966" Z="0.000" W="0.259"/>
|
||||
<Trans X="900.500" Y="15.736" Z="900.785"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "TROLL_IDLE" eTypeParam = "NOT_USE" pTarget = "ACTOR_TROLL" eTypeFunc="SET_FSMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">true</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "0">
|
||||
<Info strEventName = "TROLL_IDLE" eTypeParam = "NOT_USE" pTarget = "ACTOR_TROLL" eTypeFunc="SET_ANIMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">true</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
|
||||
<!--찻집-->
|
||||
<Socket fStartPosition = "2">
|
||||
@@ -935,7 +1046,7 @@
|
||||
</Param_12>
|
||||
</Socket>
|
||||
|
||||
<!--트롤돌진-->
|
||||
<!--트롤돌진-후방카메라-->
|
||||
<Socket fStartPosition = "12">
|
||||
<Info strEventName = "TELEPORTATION" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TELEPORTATION"/>
|
||||
<Param_0>
|
||||
@@ -1053,7 +1164,7 @@
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.000" Y="-0.214" Z="-0.000" W="0.977"/>
|
||||
<Trans X="100.718" Y="15.258" Z="120.916"/>
|
||||
<Trans X="100.718" Y="24.258" Z="120.916"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
@@ -1159,10 +1270,8 @@
|
||||
</Param_12>
|
||||
</Socket>
|
||||
|
||||
|
||||
|
||||
<!--끝-->
|
||||
<Socket fStartPosition = "17">
|
||||
<!--트롤방망이내려치기-전방카메라-->
|
||||
<Socket fStartPosition = "13.5">
|
||||
<Info strEventName = "DONT_LOOK_AT" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="DONT_LOOK_AT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
@@ -1199,13 +1308,13 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "17" >
|
||||
<Info strEventName = "Ready_PLAYERPos" eTypeParam = "TRANSFORM" pTarget = "ACTOR_PLAYER" eTypeFunc="TRANSLATION"/>
|
||||
<Socket fStartPosition = "13.5">
|
||||
<Info strEventName = "DONT_FOLLOW" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="DONT_FOLLOW"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.000" Y="-0.214" Z="-0.000" W="0.977"/>
|
||||
<Trans X="100.718" Y="15.258" Z="120.916"/>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
@@ -1236,7 +1345,417 @@
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "15" >
|
||||
<Socket fStartPosition = "13.5">
|
||||
<Info strEventName = "Set_Initial_Zoom" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ZOOM_IN"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="60" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
|
||||
<Socket fStartPosition = "13.5">
|
||||
<Info strEventName = "TELEPORTATION" eTypeParam = "TRANSFORM" pTarget = "CAMERA_CINEMATIC" eTypeFunc="TELEPORTATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="-0.148" Y="0.133" Z="0.020" W="0.980"/>
|
||||
<Trans X="96.043" Y="15.762" Z="120.701"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "13.5">
|
||||
<Info strEventName = "TELEPORTATION" eTypeParam = "TRANSFORM" pTarget = "ACTOR_TROLL" eTypeFunc="TELEPORTATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.000" Y="0.987" Z="-0.000" W="0.160"/>
|
||||
<Trans X="97.142" Y="15.821" Z="130.525"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "13.5">
|
||||
<Info strEventName = "LERP_SLAM_FOV" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="ZOOM_LERP"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="15" Y="30" Z="1" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "13.5">
|
||||
<Info strEventName = "LOOK_Troll" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="LOOK_AT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "Layer_Monster" TypeID = "ACTOR_TROLL"/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag ="Head"/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "13.5">
|
||||
<Info strEventName = "LOOK_Troll_To_Player" eTypeParam = "TARGET" pTarget = "ACTOR_TROLL" eTypeFunc="LOOK_AT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "Layer__Player" TypeID = "ACTOR_PLAYER"/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag ="Head"/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "13.5">
|
||||
<Info strEventName = "TROLL_SMASH" eTypeParam = "NOT_USE" pTarget = "ACTOR_TROLL" eTypeFunc="SET_FSMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">true</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "13.5">
|
||||
<Info strEventName = "TROLL_SMASH" eTypeParam = "NOT_USE" pTarget = "ACTOR_TROLL" eTypeFunc="SET_ANIMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">true</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
|
||||
<!--끝-->
|
||||
<Socket fStartPosition = "14">
|
||||
<Info strEventName = "Ready_PLAYERPos" eTypeParam = "TRANSFORM" pTarget = "ACTOR_PLAYER" eTypeFunc="TRANSLATION"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="0.031" Y="0.612" Z="-0.024" W="0.790"/>
|
||||
<Trans X="100.106" Y="16.301" Z="124.512"/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "14">
|
||||
<Info strEventName = "DONT_LOOK_AT" eTypeParam = "NOT_USE" pTarget = "CAMERA_CINEMATIC" eTypeFunc="DONT_LOOK_AT"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">false</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "14">
|
||||
<Info strEventName = "SET_FSMSTATE" eTypeParam = "NOT_USE" pTarget = "ACTOR_PLAYER" eTypeFunc="SET_FSMSTATE"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "" TypeID = ""/>
|
||||
<Transform>
|
||||
<RotQ X="" Y="" Z="" W=""/>
|
||||
<Trans X="" Y="" Z=""/>
|
||||
</Transform>
|
||||
</Param_0>
|
||||
<vFlags>
|
||||
<Flag id ="0">false</Flag>
|
||||
<Flag id ="1">false</Flag>
|
||||
<Flag id ="2">true</Flag>
|
||||
<Flag id ="3">false</Flag>
|
||||
<Flag id ="4">false</Flag>
|
||||
<Flag id ="5">false</Flag>
|
||||
<Flag id ="6">false</Flag>
|
||||
<Flag id ="7">false</Flag>
|
||||
<Flag id ="8">false</Flag>
|
||||
<Flag id ="9">false</Flag>
|
||||
<Flag id ="10">false</Flag>
|
||||
<Flag id ="11">false</Flag>
|
||||
<Flag id ="12">false</Flag>
|
||||
<Flag id ="13">false</Flag>
|
||||
<Flag id ="14">false</Flag>
|
||||
<Flag id ="15">false</Flag>
|
||||
</vFlags>
|
||||
<Param_10>
|
||||
<uint X="" Y="" Z="" W=""/>
|
||||
</Param_10>
|
||||
<Param_11>
|
||||
<float X="1.0" Y="" Z="" W=""/>
|
||||
</Param_11>
|
||||
<Param_12>
|
||||
<string tag =""/>
|
||||
</Param_12>
|
||||
</Socket>
|
||||
<Socket fStartPosition = "14">
|
||||
<Info strEventName = "Off_Camera" eTypeParam = "TARGET" pTarget = "CAMERA_CINEMATIC" eTypeFunc="END_CINEMATIC"/>
|
||||
<Param_0>
|
||||
<OtherTarget Layer = "Layer_Camera" TypeID = "CAMERA_SHOULDER"/>
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<EffectParts>
|
||||
<Object>
|
||||
<Position x="-557.4693" y="1.7081518" z="-404.99838"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-546.97711" y="3.4388852" z="-405.45068"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-533.41187" y="5.8523626" z="-407.15222"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-422.68542" y="12.297935" z="-423.10046"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-438.46686" y="11.288605" z="-419.94629"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-272.8252" y="11.575071" z="-466.4433"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-233.60553" y="4.5245433" z="-438.84055"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-116.56883" y="-5.2835941" z="-457.04156"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99998116"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-115.49762" y="-4.3404284" z="-462.14432"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99999428"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-114.33831" y="-2.8634744" z="-469.75327"/>
|
||||
<Scale x="0.99998319" y="0.99993736" z="0.99999428"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-114.49501" y="8.9647017" z="-630.75684"/>
|
||||
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-122.38454" y="9.379631" z="-632.39172"/>
|
||||
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-141.58109" y="9.3517723" z="-635.36981"/>
|
||||
<Scale x="0.99999809" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-358.02856" y="21.008039" z="-564.20557"/>
|
||||
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-381.73807" y="18.154875" z="-551.83118"/>
|
||||
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-420.54446" y="14.254954" z="-531.81177"/>
|
||||
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
<Object>
|
||||
<Position x="-470.04022" y="7.4956679" z="-506.46667"/>
|
||||
<Scale x="0.99999976" y="0.99993736" z="0.99999857"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Object>
|
||||
</EffectParts>
|
||||
@@ -0,0 +1,18 @@
|
||||
<KeyFrames>
|
||||
<Animation Index="206">
|
||||
<KeyFrame Event="Player/Voice/avadakedavra_voice.wav" Ratio="0.265" Volume="0.8"/>
|
||||
</Animation>
|
||||
<Animation Index="858">
|
||||
<KeyFrame Event="Player/Voice/decendo_voice.wav" Ratio="0.022" Volume="1"/>
|
||||
</Animation>
|
||||
<Animation Index="0">
|
||||
<KeyFrame Event="Player/spells_avada_kedavra_akb/avada_kedavra_7.wav" Ratio="0.05" Volume="0.69999999"/>
|
||||
<KeyFrame Event="Player/spells_avada_kedavra_akb/avada_kedavra_6.wav" Ratio="0.002" Volume="0.69999999"/>
|
||||
<KeyFrame Event="Player/spells_avada_kedavra_akb/avada_kedavra_10.wav" Ratio="0.163" Volume="0.69999999"/>
|
||||
<KeyFrame Event="Player/spells_avada_kedavra_akb/avada_kedavra_2.wav" Ratio="0.318" Volume="0.69999999"/>
|
||||
<KeyFrame Event="Player/spells_avada_kedavra_akb/avada_kedavra_3.wav" Ratio="0.296" Volume="0.69999999"/>
|
||||
<KeyFrame Event="Player/Voice/avadakedavra_voice.wav" Ratio="0.01" Volume="1"/>
|
||||
<KeyFrame Event="Player/spells_avada_kedavra_akb/avada_kedavra_4.wav" Ratio="0.296" Volume="0.80000001"/>
|
||||
<KeyFrame Event="Player/spells_avada_kedavra_akb/avada_kedavra_9.wav" Ratio="0.154" Volume="0.80000001"/>
|
||||
</Animation>
|
||||
</KeyFrames>
|
||||
Binary file not shown.
@@ -1,12 +1,12 @@
|
||||
<Material>
|
||||
<MI_FlyingClassBroom_01 ShaderIndex = "10" OutLineWrite="10">
|
||||
<MI_FlyingClassBroom_01 ShaderIndex = "8" OutLineWrite="10">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_FlightClassBroom_01_D" Extension=".png"/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_FlightClassBroom_01_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="T_FlightClassBroom_01_E" Extension=".png"/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="T_FlightClassBroom_01_E" Extension=".dds"/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_FlightClassBroom_01_N" Extension=".png"/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_FlightClassBroom_01_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
@@ -15,7 +15,7 @@
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_FlightClassBroom_01_MRO" Extension=".png"/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_FlightClassBroom_01_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
|
||||
BIN
Binary file not shown.
+8
-8
@@ -1,12 +1,12 @@
|
||||
<Material>
|
||||
<MI_DarkWizard_Broom_Bristles ShaderIndex = "10" OutLineWrite="10">
|
||||
<MI_DarkWizard_Broom_Bristles ShaderIndex = "8" OutLineWrite="10">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_DarkWizard_Broom_Bristles_D" Extension=".png"/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_DarkWizard_Broom_Bristles_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_DarkWizard_Broom_Bristles_N" Extension=".png"/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_DarkWizard_Broom_Bristles_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
@@ -15,7 +15,7 @@
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_DarkWizard_Broom_Bristles_MRO" Extension=".png"/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_DarkWizard_Broom_Bristles_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
@@ -28,14 +28,14 @@
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_DarkWizard_Broom_Bristles>
|
||||
<MI_DarkWizard_Broom ShaderIndex = "10" OutLineWrite="10">
|
||||
<MI_DarkWizard_Broom ShaderIndex = "8" OutLineWrite="10">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_DarkWizard_Broom_D" Extension=".png"/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_DarkWizard_Broom_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_DarkWizard_Broom_N" Extension=".png"/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_DarkWizard_Broom_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
@@ -44,7 +44,7 @@
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_DarkWizard_Broom_MRO" Extension=".png"/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_DarkWizard_Broom_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 MiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 MiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 2.5 MiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 6.8 MiB |
@@ -86,7 +86,7 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CCamera_Debug::Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
Describe_Entity();
|
||||
}
|
||||
|
||||
void CCamera_Debug::Late_Update(_float fTimeDelta)
|
||||
@@ -176,4 +176,30 @@ void CCamera_Debug::Free()
|
||||
}
|
||||
void CCamera_Debug::Describe_Entity()
|
||||
{
|
||||
_float3 vPosition = {};
|
||||
GUI::Begin("CAMERA");
|
||||
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
|
||||
if (m_pGameInstance->Key_Pressing(DIK_Y))
|
||||
{
|
||||
if (m_pGameInstance->isPicking(&vPosition))
|
||||
{
|
||||
GUI::InputFloat3("Pos", (float*)&vPosition);
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
GUI::Begin("CAMERA");
|
||||
_int iPriority = m_iPriority;
|
||||
size_t iAddress = (size_t)this;
|
||||
_string strHeader = "DEBUG_CAMERA_Priority##" + to_string(iAddress);
|
||||
if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
|
||||
m_iPriority = iPriority;
|
||||
}
|
||||
if (GUI::CollapsingHeader("DebugCamera")) {
|
||||
m_pTransformCom->Describe_Entity();
|
||||
_float fFovYDegree = XMConvertToDegrees(m_fFovy);
|
||||
if (GUI::SliderFloat("FOV", &fFovYDegree, 0.01f, 89.f, "%.2f")) {
|
||||
m_fFovy = XMConvertToRadians(fFovYDegree);
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -100,11 +100,11 @@ HRESULT CLevel_EffectViewer::Initialize()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//ZeroMemory(&m_PlaneData, sizeof(m_PlaneData));
|
||||
//m_PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
//m_PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
ZeroMemory(&m_PlaneData, sizeof(m_PlaneData));
|
||||
m_PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
m_PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
|
||||
//m_pGameInstance->Add_Editor_Plane(m_PlaneData);
|
||||
m_pGameInstance->Add_Editor_Plane(m_PlaneData);
|
||||
|
||||
|
||||
/* 호그 스미드 */
|
||||
@@ -261,6 +261,10 @@ HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag)
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Terrain"), &Desc)))
|
||||
// return E_FAIL;
|
||||
|
||||
|
||||
_float4 vColor = _float4(0.2f, 0.2f, 0.2f, 1.f);
|
||||
m_pGameInstance->Set_FogColor(vColor);
|
||||
m_pGameInstance->Set_Fog(10.f, 5.f);
|
||||
m_pInfoInstance->Load_MapObjects("Dungeon_Map_Data");
|
||||
|
||||
CInfoInstance::GetInstance()->Load_PointLights("Duengon_PointLight_Data");
|
||||
|
||||
@@ -56,11 +56,11 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
||||
}
|
||||
GUI::End();
|
||||
#ifdef gimch
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::MAP))))
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
|
||||
return;
|
||||
#endif // gimch
|
||||
#ifdef 기무리
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT))))
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
|
||||
return;
|
||||
#endif // 기무리
|
||||
#ifdef 진우
|
||||
|
||||
@@ -806,9 +806,9 @@ HRESULT CLevel_MapViewer::Ready_Layer_MapObjectManager(const _wstring& strLayerT
|
||||
|
||||
HRESULT CLevel_MapViewer::Ready_Layer_Player_And_Ranrok()
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
|
||||
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRanrok>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster"))))
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#include "Goblin.h"
|
||||
#include "Broom.h"
|
||||
#include "ReparoObject.h"
|
||||
#include "Sound_Manager.h"
|
||||
#include "Unit.h"
|
||||
CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID)
|
||||
: CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) }
|
||||
{
|
||||
@@ -42,6 +44,7 @@ HRESULT CLevel_ObjectViewer::Initialize()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fVolume = 0.8f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -59,6 +62,12 @@ void CLevel_ObjectViewer::Update(_float fTimeDelta)
|
||||
Parts_Object_Setting();
|
||||
|
||||
Find_Anim();
|
||||
|
||||
if(m_isUpdateEvent)
|
||||
{
|
||||
for (auto& pObject : m_Objects)
|
||||
dynamic_cast<CUnit*>(pObject)->Play_Event();
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CLevel_ObjectViewer::Render()
|
||||
@@ -362,6 +371,7 @@ void CLevel_ObjectViewer::Show_AnimList()
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
|
||||
void CLevel_ObjectViewer::Show_ObjectList()
|
||||
{
|
||||
for (size_t i = 0; i < m_Objects.size(); i++)
|
||||
@@ -428,6 +438,7 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
|
||||
_int iIndex = pModel->Get_AnimIndex();
|
||||
if (GUI::InputInt("Anim Index", &iIndex))
|
||||
{
|
||||
m_iCurAnimIndex = iIndex;
|
||||
pModel->Set_AnimationIndex(iIndex);
|
||||
}
|
||||
|
||||
@@ -438,8 +449,15 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
|
||||
|
||||
Load_KeyFrame(szName);
|
||||
}
|
||||
|
||||
static _char EventName[64] = {};
|
||||
if(GUI::Button("Load KeyFrame_"))
|
||||
{
|
||||
for (auto& pObject : m_Objects)
|
||||
{
|
||||
dynamic_cast<CUnit*>(pObject)->Reset_SoundEvent();
|
||||
dynamic_cast<CUnit*>(m_Objects[m_iObjectIndex])->Ready_Sound_Events("../Bin/Resources/Models/Human/PlayableCharacter/KeyFrame.xml");
|
||||
}
|
||||
}
|
||||
static _char EventName[256] = {};
|
||||
|
||||
GUI::InputText("EventName", EventName, sizeof(EventName));
|
||||
GUI::SameLine();
|
||||
@@ -456,6 +474,32 @@ void CLevel_ObjectViewer::Dummy_Object_Setting()
|
||||
EventName[0] = '\0';
|
||||
}
|
||||
}
|
||||
GUI::Checkbox("isUpdateEvent", &m_isUpdateEvent);
|
||||
GUI::InputFloat("Volume", &m_fVolume);
|
||||
static _char SoundFilter[256] = {};
|
||||
|
||||
if (GUI::Button("Stop Sound"))
|
||||
m_pGameInstance->Sound_StopAll();
|
||||
|
||||
if (GUI::CollapsingHeader("Sound list"))
|
||||
{
|
||||
GUI::InputText("Filter", SoundFilter, sizeof(SoundFilter));
|
||||
|
||||
_wstring soudnfilter = CMyTools::ToWstring(SoundFilter);
|
||||
for (_uint i = 0; i < ENUM_CLASS(SOUND::SD_KIND::END); ++i)
|
||||
{
|
||||
_wstring Name = SOUND::SD_PATH::SD_KIND_PATHS[i];
|
||||
if (string::npos != Name.find(soudnfilter))
|
||||
{
|
||||
if (GUI::Button(("S_" + CMyTools::ToString(Name)).c_str()))
|
||||
{
|
||||
strcpy_s(EventName, CMyTools::ToString(Name).c_str());
|
||||
m_pGameInstance->Sound_Play(static_cast<SOUND::SD_KIND>(i), SD_CHANNEL_GROUP::EFFECT, false, m_fVolume);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
for (auto& iter : m_KeyFrames)
|
||||
@@ -702,6 +746,7 @@ void CLevel_ObjectViewer::Find_Anim()
|
||||
|
||||
void CLevel_ObjectViewer::Save_KeyFrame()
|
||||
{
|
||||
|
||||
_char szDrive[MAX_PATH] = {};
|
||||
_char szDir[MAX_PATH] = {};
|
||||
_splitpath_s(m_DummyPath, szDrive, MAX_PATH, szDir, MAX_PATH, nullptr, 0, nullptr, 0);
|
||||
@@ -736,17 +781,17 @@ void CLevel_ObjectViewer::Save_KeyFrame()
|
||||
}
|
||||
}
|
||||
|
||||
if (!pAnimNode)
|
||||
if (nullptr == pAnimNode)
|
||||
{
|
||||
pAnimNode = doc.NewElement("Animation");
|
||||
pAnimNode->SetAttribute("Index", m_iCurAnimIndex);
|
||||
pRoot->InsertEndChild(pAnimNode);
|
||||
}
|
||||
|
||||
while (tinyxml2::XMLElement* pKey = pAnimNode->FirstChildElement("KeyFrame"))
|
||||
{
|
||||
pAnimNode->DeleteChild(pKey);
|
||||
}
|
||||
//while (tinyxml2::XMLElement* pKey = pAnimNode->FirstChildElement("KeyFrame"))
|
||||
//{
|
||||
// pAnimNode->DeleteChild(pKey);
|
||||
//}
|
||||
|
||||
for (auto& iter : m_KeyFrames)
|
||||
{
|
||||
@@ -757,9 +802,20 @@ void CLevel_ObjectViewer::Save_KeyFrame()
|
||||
pKey->SetAttribute("Ratio", buf);
|
||||
pKey->SetAttribute("Volume", m_fVolume);
|
||||
pAnimNode->InsertEndChild(pKey);
|
||||
|
||||
SOUND::SD_KIND eSoundKind = m_pGameInstance->Find_Sound(CMyTools::ToWstring(Path));
|
||||
|
||||
if(nullptr != m_Objects[m_iObjectIndex])
|
||||
{
|
||||
dynamic_cast<CUnit*>(m_Objects[m_iObjectIndex])->Add_Sound_Event(m_iCurAnimIndex,
|
||||
[this, eSoundKind, iter]() { m_pGameInstance->Sound_Play(eSoundKind, SD_CHANNEL_GROUP::EFFECT, false, m_fVolume); },
|
||||
iter.second, true);
|
||||
}
|
||||
}
|
||||
m_KeyFrames.clear();
|
||||
|
||||
doc.SaveFile(Path.c_str());
|
||||
|
||||
}
|
||||
|
||||
HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag)
|
||||
|
||||
@@ -418,6 +418,15 @@ HRESULT CLoader::Loading_For_Logo()
|
||||
|
||||
m_strMessage = TEXT("Model Loading..");
|
||||
|
||||
m_strMessage = TEXT("Sound Loading..");
|
||||
|
||||
const _tchar* pSoundFilePath = TEXT("../Bin/Resources/Sounds/");
|
||||
|
||||
for (int iIndex = 0; iIndex < ENUM_CLASS(SOUND::SD_KIND::END); ++iIndex) {
|
||||
if (FAILED(m_pGameInstance->Load_Sound((SOUND::SD_KIND)iIndex, (_wstring(pSoundFilePath) + SOUND::SD_PATH::SD_KIND_PATHS[iIndex]).c_str(), FMOD_DEFAULT))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
m_strMessage = TEXT("Shader Loading..");
|
||||
|
||||
@@ -1812,62 +1821,123 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
#pragma region DUNGEON_MAP
|
||||
vector<_wstring> ModelPrototypeTags = {};
|
||||
vector<filesystem::path> ModelPrototypePath = {};
|
||||
/* Cave Wall */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Wall",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Props */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Props",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* ArenaFloor */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/ArenaFloor",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Sanctum_Dungeon_Center_Structure_AnteChamber */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Center_Structure/AnteChamber",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Sanctum_Dungeon_Center_Structure_Core */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Center_Structure/Core",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Sanctum_Dungeon_ConjuredDragonAttackZones */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/ConjuredDragonAttackZones",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Sanctum_Dungeon_Rock_Barriers */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Rock_Barriers",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Sanctum_Dungeon_Rock_SM_Repository_FloatingGround */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/SM_Repository_FloatingGround",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Sanctum_Dungeon_Rock_SM_Repository_Stage3MoveableRocks */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Stage3MoveableRocks",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Sanctum_Dungeon_Rock_Interactables */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/BreakingRocks/LG_E",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Sanctum_Dungeon_Rock_Main */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Sanctum_Dungeon_Rock_Main */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Interactables",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
/* Cavern_Dungeon_Rocks */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Cavern_Dungeon/Mesh/Rocks",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
vector<future<void>> jobFutures;
|
||||
|
||||
_uint iLoadCount = 13;
|
||||
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
|
||||
|
||||
_bool isLoad_Map = { true };
|
||||
if (isLoad_Map)
|
||||
{
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Wall",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Props",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/ArenaFloor",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Center_Structure/AnteChamber",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Center_Structure/Core",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/ConjuredDragonAttackZones",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Rock_Barriers",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/SM_Repository_FloatingGround",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/Stage3MoveableRocks",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository/BreakingRocks/LG_E",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Meshes/Repository",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Sanctum_Dungeon/Interactables",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
|
||||
jobFutures.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Cavern_Dungeon/Mesh/Rocks",
|
||||
".bin", false,
|
||||
&Contents[jobFutures.size()]
|
||||
));
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
if (isLoad_Map)
|
||||
{
|
||||
for (auto& jobFuture : jobFutures)
|
||||
{
|
||||
jobFuture.get();
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < Contents.size(); ++i) {
|
||||
for (_uint j = 0; j < (Contents[i])->size(); ++j) {
|
||||
FOLDER_LOAD* pContents = (*Contents[i])[j];
|
||||
if (true == pContents->bLoadTags) {
|
||||
ModelPrototypeTags.push_back(pContents->pModelTag);
|
||||
ModelPrototypePath.push_back(pContents->pathModel);
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint k = 0; k < pContents->pRigidBodyTags.size(); ++k) {
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[k], pContents->LoadedRigidBody[k]))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
m_strMessage = TEXT("Shader Loading..");
|
||||
@@ -2136,6 +2206,15 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
Desc.iNumBones = pModelOriginal->Get_BoneAbsoluteCount();
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_MotionTrail"), CMotion_Trail::Create(m_pDevice, m_pContext, &Desc)))) {
|
||||
return E_FAIL;
|
||||
|
||||
if (isLoad_Map)
|
||||
{
|
||||
for (_uint i = 0; i < Contents.size(); ++i) {
|
||||
for (_uint j = 0; j < (Contents[i])->size(); ++j) {
|
||||
Safe_Delete((*Contents[i])[j]);
|
||||
}
|
||||
Safe_Delete(Contents[i]);
|
||||
}
|
||||
}
|
||||
|
||||
m_strMessage = TEXT("Loading Success!");
|
||||
@@ -2865,25 +2944,25 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"),
|
||||
// CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CRanrok>(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CRanrok>(g_iStaticLevel, CRanrok::Create(m_pDevice, m_pContext)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CFSM>(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext))))
|
||||
// return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_Player */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
///* For.Prototype_GameObject_Player */
|
||||
//if (FAILED(m_pGameInstance->Add_Prototype<CPlayer>(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext))))
|
||||
// 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_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) {
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
/* For.Prototype_GameObject_Wand */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWand>(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext))))
|
||||
@@ -3497,7 +3576,7 @@ _bool bLoadHogsmeade = true;
|
||||
}
|
||||
|
||||
#pragma region HOGWART
|
||||
_bool bHogwartLoad = { false };
|
||||
_bool bHogwartLoad = { true };
|
||||
|
||||
/* Hogwart LOD */
|
||||
if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD",
|
||||
@@ -3840,7 +3919,7 @@ vector<future<void>> jobFutures;
|
||||
_uint iLoadCount = 44;
|
||||
vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
|
||||
|
||||
_bool isLoad_Map = { true };
|
||||
_bool isLoad_Map = { false };
|
||||
if(isLoad_Map)
|
||||
{
|
||||
{ /* Terrain */
|
||||
|
||||
@@ -75,14 +75,6 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
|
||||
#pragma region MONSTER
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "C:\\MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_BattleAxe01.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GoblinSpector_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "C:\\MeshTable\\Game\\RiggedObjects\\Props\\Weapons\\Goblins\\SK_WPN_GOB_SmallSword.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_SK_GOB_M_T4Melee_INST_A_Master_Model")
|
||||
|
||||
@@ -58,6 +58,9 @@ HRESULT CMapElement_Static::Initialize(void* pArg)
|
||||
XMStoreFloat3(&m_vWorldCenterPosition, XMVector3TransformCoord(XMLoadFloat3(&vOffset), m_pTransformCom->Get_XMWorldMatrix()));
|
||||
#endif // _DEBUG
|
||||
|
||||
ReadyForPhysX();
|
||||
ConvertToPhysX();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -157,6 +160,38 @@ HRESULT CMapElement_Static::Bind_ShaderResources()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Static::ReadyForPhysX()
|
||||
{
|
||||
_uint iLevel = NEXT_LEVEL;
|
||||
|
||||
CModel* pModel = m_pModelComs[0];
|
||||
|
||||
if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
void CMapElement_Static::ConvertToPhysX()
|
||||
{
|
||||
CModel* pModel = m_pModelComs[0];
|
||||
|
||||
_uint iNumMeshes = pModel->Get_NumMeshes();
|
||||
|
||||
for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
|
||||
{
|
||||
_wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
|
||||
CRigidBody_Static* pRigidBody = { nullptr };
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
Desc.pMeshName = wstrName.c_str();
|
||||
Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, wstrName, (CComponent**)&pRigidBody, &Desc))) {
|
||||
assert(false);
|
||||
}
|
||||
m_RigidBodies.push_back(pRigidBody);
|
||||
}
|
||||
}
|
||||
|
||||
CMapElement_Static* CMapElement_Static::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMapElement_Static* pInstance = new CMapElement_Static(pDevice, pContext);
|
||||
@@ -188,6 +223,10 @@ void CMapElement_Static::Free()
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
|
||||
SAFE_RELEASE(m_RigidBodies[i]);
|
||||
} m_RigidBodies.clear();
|
||||
for (auto& pModel : m_pModelComs)
|
||||
SAFE_RELEASE(pModel);
|
||||
}
|
||||
@@ -196,6 +235,11 @@ void CMapElement_Static::Describe_Entity()
|
||||
{
|
||||
if (m_bDead)
|
||||
return;
|
||||
|
||||
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
|
||||
SAFE_RELEASE(m_RigidBodies[i]);
|
||||
} m_RigidBodies.clear();
|
||||
|
||||
if (nullptr == m_pGameInstance)
|
||||
return;
|
||||
|
||||
|
||||
@@ -247,10 +247,10 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFilePath)
|
||||
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
|
||||
}
|
||||
|
||||
if (MAPOBJECT_TYPE::ELEMENT_STATIC == eType)
|
||||
//if (MAPOBJECT_TYPE::ELEMENT_STATIC == eType)
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Static>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Static"), &Desc);
|
||||
else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType)
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interactable"), &Desc);
|
||||
//else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType)
|
||||
//m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interactable"), &Desc);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
/*if (FAILED(Load_LightObject("LightElement")))
|
||||
return E_FAIL;*/
|
||||
|
||||
if (FAILED(Load_InteractObject("E_INTER_Barrel")))
|
||||
/*if (FAILED(Load_InteractObject("E_INTER_Barrel")))
|
||||
return E_FAIL;
|
||||
if (FAILED(Load_InteractObject("E_INTER_PostPackage_B")))
|
||||
return E_FAIL;
|
||||
@@ -85,11 +85,11 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
if (FAILED(Load_InteractObject("E_INTER_TeaShopTable")))
|
||||
return E_FAIL;
|
||||
if (FAILED(Load_InteractObject("E_INTER_TeaShopChair")))
|
||||
return E_FAIL;
|
||||
return E_FAIL;*/
|
||||
|
||||
#pragma region HOGSMEADE
|
||||
if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
|
||||
return E_FAIL;
|
||||
//if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
|
||||
// return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
#pragma region DUNGEON
|
||||
@@ -100,10 +100,10 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
#pragma endregion
|
||||
|
||||
#pragma region HOGWART
|
||||
//if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
|
||||
// return E_FAIL;
|
||||
//if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
|
||||
// return E_FAIL;
|
||||
if (FAILED(Load_MapData("Hogwart_MapContainer_Data", LAYER_HOGWART)))
|
||||
return E_FAIL;
|
||||
if (FAILED(Load_MapData("HogwartMap1221", LAYER_HOGWART)))
|
||||
return E_FAIL;
|
||||
#pragma endregion
|
||||
|
||||
#pragma region Light
|
||||
@@ -277,9 +277,9 @@ void CMapObject_Manager::Update(_float fTimeDelta)
|
||||
//Update_LightSpawer();
|
||||
//Update_Decal();
|
||||
//Update_RaceRing();
|
||||
//Update_EditEffect();
|
||||
Update_EditEffect();
|
||||
//Update_Balloon();
|
||||
Update_DummyNpc();
|
||||
//Update_DummyNpc();
|
||||
|
||||
Update_Unified();
|
||||
|
||||
@@ -2766,7 +2766,7 @@ void CMapObject_Manager::Update_EditEffect()
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEditEffect>(ENUM_CLASS(LEVEL::MAP), NEXT_LEVEL, TEXT("Layer_Effect_EDIT"), &PartsDesc, nullptr, &pEffect)))
|
||||
return;
|
||||
|
||||
pEffect->Load("../Bin/Resources/Data/Effect/MapEffect/Ranrok_Decal_35",LEVEL::MAP);
|
||||
pEffect->Load("../Bin/Resources/Data/Effect/BroomRace/Bubble",LEVEL::MAP);
|
||||
pEffect->Set_Visible(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ class CLevel_ObjectViewer final : public CLevel
|
||||
vector<CGameObject*> m_Objects;
|
||||
vector<CGameObject*> m_PartsObjects;
|
||||
class CRootModelPart* m_HumanRoot = { nullptr };
|
||||
|
||||
_bool m_isUpdateEvent = { true };
|
||||
_int m_iObjectIndex = { 0 };
|
||||
_int m_iPartsObjectIndex = { 0 };
|
||||
_float m_fKeyFrame = {};
|
||||
|
||||
@@ -23,12 +23,17 @@ class CMapElement_Static : public CMapElement
|
||||
_float m_fRadius = {};
|
||||
_float3 m_vWorldCenterPosition = {};
|
||||
|
||||
vector<CRigidBody_Static*> m_RigidBodies;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
void ReadyForPhysX();
|
||||
void ConvertToPhysX();
|
||||
|
||||
public:
|
||||
static CMapElement_Static* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -1032,10 +1032,34 @@ HRESULT CGameInstance::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundF
|
||||
{
|
||||
return m_pSound_Manager->Load_Sound(eKind, wstrSoundFilePath, eSoundMode);
|
||||
}
|
||||
SOUND::SD_KIND CGameInstance::Find_Sound(const _wstring wstrFilePath)
|
||||
{
|
||||
return m_pSound_Manager->Find_Sound(wstrFilePath);
|
||||
}
|
||||
void CGameInstance::Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume)
|
||||
{
|
||||
m_pSound_Manager->Sound_Play(eSoundKind, eSoundChannel, bRepeat, fVolume);
|
||||
}
|
||||
void CGameInstance::Sound_Play_3DPos(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _float3& refSpeaker, _float fMin, _float fMax, _bool bRepeat)
|
||||
{
|
||||
m_pSound_Manager->Sound_Play_3DPos(eSoundKind, eSoundChannel, refSpeaker, fMin, fMax, bRepeat);
|
||||
}
|
||||
void CGameInstance::Sound_Pause_Channel(SD_CHANNEL_GROUP eSoundChannel, bool bPause)
|
||||
{
|
||||
m_pSound_Manager->Sound_Pause_Channel(eSoundChannel, bPause);
|
||||
}
|
||||
void CGameInstance::Sound_Set3DListenerPos(CTransform* pTransform)
|
||||
{
|
||||
m_pSound_Manager->Sound_Set3DListenerPos(pTransform);
|
||||
}
|
||||
void CGameInstance::Sound_StopChannel(SD_CHANNEL_GROUP eSoundChannel)
|
||||
{
|
||||
m_pSound_Manager->Sound_StopChannel(eSoundChannel);
|
||||
}
|
||||
void CGameInstance::Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel)
|
||||
{
|
||||
m_pSound_Manager->Sound_Stop(eSoundKind, eSoundChannel);
|
||||
}
|
||||
void CGameInstance::Sound_StopAll()
|
||||
{
|
||||
m_pSound_Manager->Sound_StopAll();
|
||||
|
||||
@@ -477,11 +477,11 @@ HRESULT CPhysX_Manager::SaveTriMeshes(const _char* pPath, vector<PSX::PxTriangle
|
||||
void CPhysX_Manager::Add_Editor_Plane(PHYSX_USERDATA& PlaneData)
|
||||
{
|
||||
PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
PlaneData.iSubKind = UINT_MAX;
|
||||
PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
PlaneData.pOwner = nullptr;
|
||||
PlaneData.pBody = nullptr;
|
||||
|
||||
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
|
||||
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 14.210f), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
|
||||
pGroundPlane->userData = &PlaneData;
|
||||
pGroundPlane->setName("PHYSX_EDITPLANE");
|
||||
m_pScene->addActor(*pGroundPlane);
|
||||
|
||||
@@ -18,6 +18,32 @@ const _tchar* const SD_PATH::SD_KIND_PATHS[SD_KIND_COUNT] = {
|
||||
TEXT("Player/spells_perk_shadowblink_akb/blink_2.wav"),
|
||||
#pragma endregion
|
||||
|
||||
#pragma region AVADA_KEDAVRA
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_0.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_1.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_2.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_3.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_4.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_5.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_6.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_7.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_8.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_9.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_10.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_11.wav"),
|
||||
TEXT("Player/spells_avada_kedavra_akb/avada_kedavra_12.wav"),
|
||||
#pragma endregion
|
||||
|
||||
#pragma region ACCIO
|
||||
TEXT("Player/spells_accio_akb/accio_3.wav"),
|
||||
TEXT("Player/spells_accio_akb/accio_6.wav"),
|
||||
TEXT("Player/spells_accio_akb/accio_7.wav"),
|
||||
TEXT("Player/spells_accio_akb/accio_11.wav"),
|
||||
TEXT("Player/spells_accio_akb/accio_12.wav"),
|
||||
TEXT("Player/spells_accio_akb/accio_15.wav"),
|
||||
TEXT("Player/spells_accio_akb/accio_21.wav"),
|
||||
#pragma endregion
|
||||
|
||||
#pragma region VOICE
|
||||
TEXT("Player/Voice/avadakedavra_voice.wav"),
|
||||
TEXT("Player/Voice/bombarda_voice.wav"),
|
||||
|
||||
@@ -7,7 +7,7 @@ System* CSound_Manager::s_pSystem = { nullptr };
|
||||
_string CSound_Manager::s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)] = { "BGM", "ENVIRONMENT", "EFFECT", "VOICE" };
|
||||
list<Channel*> CSound_Manager::s_listChannel[ENUM_CLASS(SD_CHANNEL_GROUP::END)] = {};
|
||||
Sound* CSound_Manager::s_ArrSounds[ENUM_CLASS(SOUND::SD_KIND::END)] = {};
|
||||
|
||||
map<_wstring, SOUND::SD_KIND > CSound_Manager::s_SoundMap = {};
|
||||
|
||||
CSound_Manager::CSound_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: m_pDevice(pDevice),
|
||||
@@ -38,7 +38,6 @@ HRESULT CSound_Manager::Update()
|
||||
}
|
||||
}
|
||||
}
|
||||
Sound_Test();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -204,45 +203,8 @@ void CSound_Manager::Sound_SetVolume(SD_CHANNEL_GROUP eSoundChannel, float fVolu
|
||||
}
|
||||
}
|
||||
|
||||
void CSound_Manager::Sound_Test()
|
||||
{
|
||||
//GUI::Begin("Music_Player");
|
||||
//static int item_selected_CHANNEL = 0;
|
||||
//static int item_selected_SD_KIND = 0;
|
||||
|
||||
//GUI::BeginChild("##ITEMs", ImVec2(350.f, 175.f), true, ImGuiWindowFlags_HorizontalScrollbar);
|
||||
//for (int iIndex = 0; iIndex < SOUND::SD_KIND::END; ++iIndex) {
|
||||
// if (GUI::Button(CMyTools::ToString(SOUND::SD_PATH::SD_KIND_STRING[iIndex]).c_str())) {
|
||||
// item_selected_SD_KIND = iIndex;
|
||||
// }
|
||||
//}
|
||||
//GUI::EndChild();
|
||||
//GUI::BeginChild("##Channels", ImVec2(350.f, 175.f), true, ImGuiWindowFlags_HorizontalScrollbar);
|
||||
//for (int iIndex = 0; iIndex < ENUM_CLASS(SD_CHANNEL_GROUP::END); ++iIndex) {
|
||||
// if (GUI::Button(s_ArrChannelName[iIndex].c_str())) {
|
||||
// item_selected_CHANNEL = iIndex;
|
||||
// }
|
||||
//}
|
||||
//GUI::EndChild();
|
||||
|
||||
//if (GUI::Button("Play_Sound", { 50, 50 })) {
|
||||
// Sound_Play(static_cast<SOUND::SD_KIND>(item_selected_SD_KIND), static_cast<SD_CHANNEL_GROUP>(item_selected_CHANNEL), false, false, 1.f);
|
||||
//} GUI::SameLine();
|
||||
//if (GUI::Button("Sound_STOP", { 50, 50 })) {
|
||||
// Sound_StopAll();
|
||||
//}
|
||||
//GUI::End();
|
||||
}
|
||||
|
||||
HRESULT CSound_Manager::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode)
|
||||
{
|
||||
//const _tchar* pSoundFilePath = TEXT("../Bin/Resources/Sounds/");
|
||||
//for (int iIndex = 0; iIndex < ENUM_CLASS(SOUND::SD_KIND::END); ++iIndex) {
|
||||
// if (FAILED(m_pGameInstance->Load_Sound((SOUND::SD_KIND)iIndex, (_wstring(pSoundFilePath) + SOUND::SD_PATH::SD_KIND_STRING[iIndex]).c_str()))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//}
|
||||
|
||||
//// 사운드 생성, 파일 불러오기
|
||||
FMOD_RESULT fr = CSound_Manager::s_pSystem->createSound(
|
||||
CMyTools::ToString(wstrSoundFilePath).c_str(), // 대상 경로
|
||||
@@ -255,6 +217,16 @@ HRESULT CSound_Manager::Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSound
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
SOUND::SD_KIND CSound_Manager::Find_Sound(const _wstring wstrFilePath)
|
||||
{
|
||||
auto iter = s_SoundMap.find(wstrFilePath);
|
||||
|
||||
if (iter == s_SoundMap.end())
|
||||
return SOUND::SD_KIND::END;
|
||||
|
||||
return iter->second;
|
||||
}
|
||||
|
||||
HRESULT CSound_Manager::Initialize()
|
||||
{
|
||||
FMOD_RESULT r = System_Create(&s_pSystem);
|
||||
@@ -275,9 +247,22 @@ HRESULT CSound_Manager::Initialize()
|
||||
s_pSystem->init(512, FMOD_INIT_NORMAL, nullptr);
|
||||
}
|
||||
|
||||
Ready_SoundMap();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CSound_Manager::Ready_SoundMap()
|
||||
{
|
||||
_uint iNumSound = ENUM_CLASS(SOUND::SD_KIND::END);
|
||||
for (_uint i = 0; i < iNumSound; ++i)
|
||||
{
|
||||
s_SoundMap.emplace(SOUND::SD_PATH::SD_KIND_PATHS[i], static_cast<SOUND::SD_KIND>(i));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
CSound_Manager* CSound_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CSound_Manager* pInstance = new CSound_Manager(pDevice, pContext);
|
||||
|
||||
@@ -186,6 +186,37 @@ void CUnit::Play_Event()
|
||||
|
||||
++iter;
|
||||
}
|
||||
|
||||
/* Sound */
|
||||
for (auto iter = m_SoundEvents.begin(); iter != m_SoundEvents.end(); )
|
||||
{
|
||||
_float ratio = m_pModelCom->Get_CurrentTrackProgressRatio();
|
||||
_uint curAnim = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
_float prevRatio = iter->PrevRatio;
|
||||
|
||||
if (curAnim == iter->AnimIndex)
|
||||
{
|
||||
if (prevRatio <= iter->fRatio && ratio >= iter->fRatio)
|
||||
{
|
||||
iter->Callback();
|
||||
|
||||
if (!iter->bKeep)
|
||||
{
|
||||
iter = m_SoundEvents.erase(iter);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
iter->PrevRatio = ratio;
|
||||
}
|
||||
else
|
||||
{
|
||||
iter->PrevRatio = 0.f;
|
||||
}
|
||||
|
||||
++iter;
|
||||
}
|
||||
}
|
||||
|
||||
void CUnit::Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio,_bool bKeep)
|
||||
@@ -198,6 +229,21 @@ void CUnit::Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio,
|
||||
m_PendingEvents.push_back(Desc);
|
||||
}
|
||||
|
||||
void CUnit::Add_Sound_Event(_uint AnimIndex, function<void()> Callback, _float fRatio, _bool bKeep)
|
||||
{
|
||||
PendingEvent Desc;
|
||||
Desc.AnimIndex = AnimIndex;
|
||||
Desc.fRatio = fRatio;
|
||||
Desc.Callback = Callback;
|
||||
Desc.bKeep = bKeep;
|
||||
m_SoundEvents.push_back(Desc);
|
||||
}
|
||||
|
||||
void CUnit::Reset_SoundEvent()
|
||||
{
|
||||
m_SoundEvents.clear();
|
||||
}
|
||||
|
||||
void CUnit::Reset_Event()
|
||||
{
|
||||
m_PendingEvents.clear();
|
||||
@@ -584,6 +630,48 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s)
|
||||
return it->second;
|
||||
}
|
||||
|
||||
HRESULT CUnit::Ready_Sound_Events(const _char* pFilePath)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(pFilePath)))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("KeyFrames");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Animation = root->FirstChildElement("Animation"); Animation; Animation = Animation->NextSiblingElement("Animation"))
|
||||
{
|
||||
_uint iAnimationIndex = {};
|
||||
|
||||
Animation->QueryUnsignedAttribute("Index", &iAnimationIndex);
|
||||
|
||||
|
||||
for (auto* KeyFrame = Animation->FirstChildElement("KeyFrame"); KeyFrame; KeyFrame = KeyFrame->NextSiblingElement("KeyFrame"))
|
||||
{
|
||||
_float fVolume = {};
|
||||
_float fRatio = {};
|
||||
const _char* pPath = {};
|
||||
|
||||
KeyFrame->QueryStringAttribute("Event", &pPath);
|
||||
KeyFrame->QueryFloatAttribute("Ratio", &fRatio);
|
||||
KeyFrame->QueryFloatAttribute("Volume", &fVolume);
|
||||
|
||||
SOUND::SD_KIND eSoundKind = m_pGameInstance->Find_Sound(CMyTools::ToWstring(pPath));
|
||||
|
||||
Add_Sound_Event(iAnimationIndex,
|
||||
[this, eSoundKind, fVolume]() { m_pGameInstance->Sound_Play(eSoundKind, SD_CHANNEL_GROUP::EFFECT, false, fVolume); },
|
||||
fRatio, true);
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CUnit::Free()
|
||||
{
|
||||
|
||||
@@ -211,8 +211,14 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
#pragma endregion
|
||||
#pragma region SOUND_MANAGER
|
||||
HRESULT Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode);
|
||||
SOUND::SD_KIND Find_Sound(const _wstring wstrFilePath);
|
||||
void Sound_Play(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _bool bRepeat, _float fVolume);
|
||||
void Sound_StopAll(); // 전체 정지
|
||||
void Sound_Play_3DPos(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel, _float3& refSpeaker, _float fMin = 3.f, _float fMax = 20.f, _bool bRepeat = false);
|
||||
void Sound_Pause_Channel(SD_CHANNEL_GROUP eSoundChannel, bool bPause);
|
||||
void Sound_Set3DListenerPos(class CTransform* pTransform);
|
||||
void Sound_StopChannel(SD_CHANNEL_GROUP eSoundChannel);
|
||||
void Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel);
|
||||
void Sound_StopAll();
|
||||
#pragma endregion
|
||||
|
||||
#pragma region PICKING
|
||||
@@ -245,10 +251,10 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
void ApplyFilterData(PSX::PxRigidActor* pRigidActor);
|
||||
HRESULT ConvertToTriMeshes(vector<class CMesh*>& Meshes, vector<class PSX::PxTriangleMesh*>& pxTriMeshes, _fmatrix WorldMatrix = XMMatrixIdentity());
|
||||
#ifdef EDITOR_PROJECT
|
||||
void Add_Editor_Plane(PHYSX_USERDATA& PlaneData);
|
||||
HRESULT SaveTriMeshes(const _char* pPath, vector<PSX::PxTriangleMesh*>& TriMeshes);
|
||||
#endif // EDITOR_PROJECT
|
||||
HRESULT LoadTriMeshes(const _char* pPath, vector<PSX::PxTriangleMesh*>& TriMeshes); // 모델 불러왔던 경로에 그대로 있음
|
||||
void Add_Editor_Plane(PHYSX_USERDATA& PlaneData);
|
||||
#pragma endregion
|
||||
#pragma region THREADHOLDER
|
||||
template<class Function, class... Args>
|
||||
|
||||
@@ -23,6 +23,31 @@ enum class SD_KIND {
|
||||
SP_JAP_13,
|
||||
SP_BLINK_2,
|
||||
#pragma endregion
|
||||
#pragma region AVADA_KEDAVRA
|
||||
S_AVADA_KEDAVRA_0,
|
||||
S_AVADA_KEDAVRA_1,
|
||||
S_AVADA_KEDAVRA_2,
|
||||
S_AVADA_KEDAVRA_3,
|
||||
S_AVADA_KEDAVRA_4,
|
||||
S_AVADA_KEDAVRA_5,
|
||||
S_AVADA_KEDAVRA_6,
|
||||
S_AVADA_KEDAVRA_7,
|
||||
S_AVADA_KEDAVRA_8,
|
||||
S_AVADA_KEDAVRA_9,
|
||||
S_AVADA_KEDAVRA_10,
|
||||
S_AVADA_KEDAVRA_11,
|
||||
S_AVADA_KEDAVRA_12,
|
||||
#pragma endregion
|
||||
#pragma region ACCIO
|
||||
SP_ACCIO_0,
|
||||
SP_ACCIO_1,
|
||||
SP_ACCIO_2,
|
||||
SP_ACCIO_3,
|
||||
SP_ACCIO_4,
|
||||
SP_ACCIO_5,
|
||||
SP_ACCIO_6,
|
||||
#pragma endregion
|
||||
|
||||
|
||||
#pragma region VOICE
|
||||
VOICE_AVADAKEDAVRA,
|
||||
|
||||
@@ -11,6 +11,7 @@ class CSound_Manager final :
|
||||
static _string s_ArrChannelName[ENUM_CLASS(SD_CHANNEL_GROUP::END)];
|
||||
static list<Channel*> s_listChannel[ENUM_CLASS(SD_CHANNEL_GROUP::END)];
|
||||
static Sound* s_ArrSounds[ENUM_CLASS(SOUND::SD_KIND::END)];
|
||||
static map<_wstring, SOUND::SD_KIND> s_SoundMap;
|
||||
|
||||
private:
|
||||
CSound_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
@@ -29,9 +30,9 @@ class CSound_Manager final :
|
||||
void Sound_Stop(SOUND::SD_KIND eSoundKind, SD_CHANNEL_GROUP eSoundChannel); // 특정 사운드 정지
|
||||
void Sound_StopAll(); // 전체 정지
|
||||
void Sound_SetVolume(SD_CHANNEL_GROUP eSoundChannel, float fVolume);
|
||||
void Sound_Test();
|
||||
|
||||
HRESULT Load_Sound(SOUND::SD_KIND eKind, const _tchar* wstrSoundFilePath, FMOD_MODE eSoundMode);
|
||||
SOUND::SD_KIND Find_Sound(const _wstring wstrFilePath);
|
||||
|
||||
private:
|
||||
ID3D11Device* m_pDevice = { nullptr };
|
||||
@@ -41,6 +42,7 @@ class CSound_Manager final :
|
||||
|
||||
private:
|
||||
HRESULT Initialize();
|
||||
void Ready_SoundMap();
|
||||
|
||||
public:
|
||||
static CSound_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
@@ -36,6 +36,9 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
|
||||
_wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; }
|
||||
_bool IsAI() { return m_bAI; }
|
||||
|
||||
HRESULT Ready_Sound_Events(const _char* pFilePath);
|
||||
void Add_Sound_Event(_uint AnimIndex, function<void()> Callback, _float fRatio = 0.f, _bool bKeep = false);
|
||||
void Reset_SoundEvent();
|
||||
#ifdef _DEBUG
|
||||
void Load_KeyFrame();
|
||||
#endif // _DEBUG
|
||||
@@ -89,6 +92,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
|
||||
_float m_fHitRadius = {};
|
||||
|
||||
vector<PendingEvent> m_PendingEvents;
|
||||
vector<PendingEvent> m_SoundEvents = {};
|
||||
|
||||
_float m_fHitDegree = {};
|
||||
_float m_fHitCross = {};
|
||||
@@ -105,12 +109,17 @@ class ENGINE_DLL CUnit abstract : public CContainerObject
|
||||
|
||||
protected:
|
||||
HRESULT Ready_Components(void*pArg);
|
||||
#ifdef _DEBUG
|
||||
public:
|
||||
#endif // _DEBUG
|
||||
void Play_Event();
|
||||
protected:
|
||||
void Add_Event(_uint AnimIndex, function<void()> Callback, _float fRatio = 0.f, _bool bKeep = false);
|
||||
void Reset_Event();
|
||||
void Check_HitAngle(_vector ProjectileDir);
|
||||
virtual void Load_AnimXML(const string& path);
|
||||
STATEANIM::ESTATE StringToStateAnim(const string& s);
|
||||
|
||||
public:
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE;
|
||||
virtual void Free() override;
|
||||
|
||||
Reference in New Issue
Block a user