diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl deleted file mode 100644 index 60c0ef454..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl +++ /dev/null @@ -1,3352 +0,0 @@ - -#include "Engine_Shader_Defines.hlsli" - -matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; -Texture2D g_DepthTexture; - -float3 g_CamaraPosition; - -int g_iImageCountX; -int g_iImageCountY; - -uint g_iIndexU; -uint g_iIndexV; -uint g_iQuestType; -int g_iSpellType; - -float g_fPI; -float g_fFar; -float g_fBlinkTime; -float g_fTime; -float g_fColorTime; -float g_fFrame; -float g_fDeltaU; -float g_fDeltaV; -float g_fAlpha; -float g_fOwnerAlpha; -float g_fCanvasAlpha; -float g_fAngle; -float g_fMapAngle; -float g_fCoolTime; -float g_fHp; - -float2 g_fViewport; -float2 g_fOrigin_Size; -float2 g_fCurrent_Size; -float2 g_fPosition; -float2 g_fHpBG; -float2 g_Pos; -float2 g_fImageSize; - -float4 g_fNine_Slice; -float4 g_fImageUV; -float4 g_fImageUV1; - -uint g_iArrayCount; -float2 g_fItemPosition1; -float2 g_fItemImageSizes1; -float2 g_fItemPosition2; -float2 g_fItemImageSizes2; -float2 g_fImageSizes[4]; -float4 g_fImagesUV[4]; - -float4 g_fImageSipos1; -float4 g_fImageSipos2; -float4 g_fImageSipos3; -float4 g_fImageSipos4; - -Texture2D g_Texture; -Texture2D g_Texture1; -Texture2D g_Texture2; -Texture2D g_Texture3; -Texture2D g_Texture4; -Texture2D g_Texture5; -Texture2D g_Texture6; -Texture2D g_DiffuseTexture; -Texture2D g_MaskingTexture; - -int g_iHover; -int g_iBoosterOn; -int g_iBoosterOff; -int g_iFinish; -int g_iClick; -int g_iColor; -int g_Count; -int g_ChaseCount; - -int g_iStep1 = 0; -int g_iStep2 = 0; -int g_iStep3 = 0; - -float2 g_Trail[200]; -float2 g_ChaseTrail[200]; - - -struct VS_IN -{ - float3 vPosition : POSITION; - float2 vTexcoord : TEXCOORD0; -}; - -struct VS_OUT -{ - float4 vPosition : SV_Position; - float2 vTexcoord : TEXCOORD0; -}; - -VS_OUT VS_MAIN(VS_IN In) -{ - VS_OUT Out = (VS_OUT) 0; - - - matrix matWV, matWVP; - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); - Out.vTexcoord = In.vTexcoord; - - return Out; -} - -struct PS_IN -{ - float4 vPosition : SV_Position; - float2 vTexcoord : TEXCOORD0; -}; - -struct PS_OUT -{ - float4 vColor : SV_Target0; -}; - -PS_OUT PS_MAIN(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Texture_Color(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - float4 Color = g_Texture1.Sample(DefaultSampler, In.vTexcoord); - - tex1.rgb *= Color.rgb; - - tex1.a *= Alpha; - Out.vColor = tex1; - return Out; -} - -PS_OUT PS_Logo(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha; - float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - float4 Dissolve = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord); - - if (g_fTime >= Dissolve.r) - discard; - - if (g_fTime != 0.f) - { - Color.a *= Dissolve.a; - } - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Logo_Text(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha; - float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - Color.rgb = (Color.rgb - 0.5f) * 1.2f + 0.5f; - - Color.rgb = pow(clamp(Color.rgb, 0.f, 1.f), 1.25f); - - float luminance = dot(Color.rgb, float3(0.299f, 0.587f, 0.114f)); - float light = smoothstep(0.7f, 0.92f, luminance); - Color.rgb *= (1.0f - light * 0.1f); - - Color.rgb = lerp(Color.rgb, Color.rgb * Color.rgb, 0.12f); - - Color.rgb *= 0.7f; - - Color.rgb = saturate(Color.rgb); - - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Logo_Glow(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord).r; - float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); - float3 Blue = float3(14.f, 180.f, 252.f) / 255.f; - - Color.a *= tex1; - tex2.rgb *= Color.a * 5.f * Alpha; - Color.rgb *= Blue; - - Color = lerp(Color, tex2, tex2.a); - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_AlphaBlend(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - Color.rgb *= 1.5f; - - Color.a *= Alpha; - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Clamp(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - Color.rgb = saturate(Color.rgb * g_fTime); - - Color.a *= Alpha; - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Cursor(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(0.f, 0.f, 0.f, 0.f); - float4 White = float4(1.f, 1.f, 1.f, 1.f); - - float2 UV = In.vTexcoord; - float2 Center = float2(0.5f, 0.5f); - - float CW = -g_fTime; - float CCW = g_fTime; - - float2 RedCircle = UV; - float2 RedUV = UV - Center; - - RedCircle.x = RedUV.x * cos(CCW) - RedUV.y * sin(CCW); - RedCircle.y = RedUV.x * sin(CCW) + RedUV.y * cos(CCW); - RedCircle = RedCircle + Center; - - float2 BlueCircle = UV; - float2 BlueUV = UV - Center; - - BlueCircle.x = BlueUV.x * cos(CW) - BlueUV.y * sin(CW); - BlueCircle.y = BlueUV.x * sin(CW) + BlueUV.y * cos(CW); - BlueCircle = BlueCircle + Center; - - - float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle); - float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle); - - if (Texture1.r >= 0.7f) - Color = Texture1; - - if (Texture2.b >= 0.7f) - Color = Texture2; - - if (all(Color.rgb <= 0.5f)) - discard; - - Color = White; - - Color.a *= Alpha; - - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Key_Hold_Rotation(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - Color = tex1; - - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f); - float4 tex2 = g_Texture1.Sample(ClampSampler, Imagelocal); - if (inside1) - { - float2 center = float2(0.5f, 0.5f); - float2 dir = Imagelocal - center; - - float angle = atan2(dir.x, -dir.y); - if (angle < 0) - angle += g_fPI; - - float rotation = saturate(g_fTime) * g_fPI; - - tex2.rgb = (angle <= rotation) ? 1.0 : tex2.rgb; - - - Color = lerp(Color, tex2, tex2.a); - } - - - - float2 Imagetexpos2 = g_fImageSipos2.xy / g_fCurrent_Size; - float2 Imagetexsize2 = g_fImageSipos2.zw / g_fCurrent_Size; - float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2; - bool inside2 = all(Imagelocal2 >= 0.0f && Imagelocal2 <= 1.0f); - if (inside2) - { - float2 atlasUV = g_fImageUV.xy + Imagelocal2 * (g_fImageUV.zw - g_fImageUV.xy); - float2 safeUV = saturate(atlasUV); - float4 tex3 = g_Texture2.Sample(ClampSampler, safeUV); - Color = lerp(Color, tex3, tex3.a); - } - - float2 Imagetexpos3 = g_fImageSipos3.xy / g_fCurrent_Size; - float2 Imagetexsize3 = g_fImageSipos3.zw / g_fCurrent_Size; - float2 Imagelocal3 = (In.vTexcoord - Imagetexpos3) / Imagetexsize3; - bool inside3 = all(Imagelocal3 >= 0.0f && Imagelocal3 <= 1.0f); - if (inside3) - { - float3 QuestColor = float3(253.f, 207.f, 11.f) / 255.f; - - float4 tex4 = g_Texture3.Sample(ClampSampler, Imagelocal3); - - if (g_iQuestType == 0) - { - - tex4.rgb *= QuestColor; - - } - - Color = lerp(Color, tex4, tex4.a); - } - - Color.a *= Alpha; - - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Mission(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(0.f, 0.f, 0.f, 0.f); - - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); - - tex1.a *= 0.5f; - - if (tex1.a >= 0.f) - Color = tex1; - - Color = lerp(Color, tex2, tex2.a); - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Sptire_Sheet(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(0.f, 0.f, 0.f, 0.f); - float2 UV = In.vTexcoord; - - int iTotalFrame = g_iImageCountX * g_iImageCountY; - - uint iCurrentFrame = uint(floor(g_fTime / g_fFrame)) % iTotalFrame; - - int iFrameX = iCurrentFrame % g_iImageCountX; - int iFrameY = iCurrentFrame / g_iImageCountX; - - float fFreamWidth = 1.0 / g_iImageCountX; - float fFreamHeight = 1.0 / g_iImageCountY; - - UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth; - UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight; - - float4 Texture = g_Texture.Sample(DefaultSampler, UV); - - Color = Texture; - - if (Color.r <= 0.4f) - discard; - - - Color.a *= Alpha; - - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_QuestType(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float3 Color = float3(253.f, 207.f, 11.f) / 255.f; - float4 Texture1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - if (g_iQuestType == 0) - { - if (Texture1.r >= 0.3f) - { - Texture1.rgb = Color; - } - } - - Texture1.a *= Alpha; - Out.vColor = Texture1; - - return Out; -} - -PS_OUT PS_Spell_Anim(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - Color = tex1; - - float2 texpos = g_fImageSipos1.xy / g_fCurrent_Size; - float2 texsize = g_fImageSipos1.zw / g_fCurrent_Size; - float2 texlocal = (In.vTexcoord - texpos) / texsize; - bool inside = all(texlocal >= 0.0f && texlocal <= 1.0f); - if (inside) - { - float4 tex2 = g_Texture1.Sample(DefaultSampler, texlocal); - Color = lerp(Color, tex2, tex2.a); - } - - Color.a *= Alpha; - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_NineSlice(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv); - float4 tex2 = g_Texture1.Sample(ClampSampler, Finaluv); - - tex1.a *= 0.5f; - - if (tex1.a >= 0.f) - Color = tex1; - - Color = lerp(Color, tex2, tex2.a); - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Rotation(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 color = float4(0.f, 0.f, 0.f, 0.f); - - float2 center = float2(0.5f, 0.5f); - float2 uv = In.vTexcoord - center; - float2 Rotation; - Rotation.x = uv.x * cos(g_fMapAngle) - uv.y * sin(g_fMapAngle); - Rotation.y = uv.x * sin(g_fMapAngle) + uv.y * cos(g_fMapAngle); - Rotation += center; - - float4 tex1 = g_Texture.Sample(BorderZeroLinearSampler, Rotation); - - if (tex1.a <= 0.f) - discard; - - color = tex1; - - color.a *= Alpha; - - Out.vColor = color; - return Out; - -} - -PS_OUT PS_Slot(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float2 center = float2(0.5f, 0.5f); - float2 uv = In.vTexcoord - center; - uv *= sqrt(2.0f); - float2 Rotation = In.vTexcoord; - Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); - Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); - Rotation += center; - - float4 color = g_Texture.Sample(ClampSampler, Rotation); - - color.a *= Alpha; - - Out.vColor = color; - - return Out; -} - -PS_OUT PS_SpellAnim(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 color = float4(0.f, 0.f, 0.f, 0.f); - - float2 center = float2(0.5f, 0.5f); - float2 uv = In.vTexcoord - center; - uv *= sqrt(2.0f); - float2 Rotation = In.vTexcoord; - Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); - Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); - Rotation += center; - - float2 startUV = g_fImageUV.xy; - float2 endUV = g_fImageUV.zw; - - float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); - - float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); - float4 tex2 = g_Texture2.Sample(DefaultSampler, atlasUV); - - tex1.rgb *= 0.4f; - color = tex1; - tex2.rgb *= 0.3f; - - if (tex2.a >= 0.9f) - color = tex2; - float3 BGColor = float3(1.f, 1.f, 1.f); - - switch (g_iSpellType) - { - case 0: - BGColor = float3(220.f, 165.f, 70.f) / 255.f; - break; - case 1: - BGColor = float3(150.f, 120.f, 240.f) / 255.f; - break; - case 2: - BGColor = float3(190.f, 46., 34.f) / 255.f; - break; - case 3: - BGColor = float3(24.f, 190.f, 255.f) / 255.f; - break; - case 4: - BGColor = float3(200.f, 220.f, 150.f) / 255.f; - break; - case 5: - BGColor = float3(50.f, 150.f, 110.f) / 255.f; - break; - case 6: - BGColor = float3(0.f, 0.f, 0.f); - break; - } - float4 color1 = float4(1.f, 1.f, 1.f, 1.f); - - float2 OverrayUV = In.vTexcoord; - float CoolTime = 1.f - g_fDeltaV; - float CoolTime2 = 1.f - g_fDeltaV + 0.1f; - atlasUV = startUV + In.vTexcoord * (endUV - startUV); - float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV); - tex3.rgb *= BGColor; - float4 tex4 = g_Texture2.Sample(DefaultSampler, atlasUV); - - if (tex4.a >= 0.9f) - tex3 = tex4; - - color1 = tex3; - - float wave1 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f; - float wave2 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f; - float waveThreshold1 = CoolTime + wave1; - float waveThreshold2 = CoolTime2 + wave2; - float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1)); - waveUV = saturate(waveUV); - float tex5 = g_Texture3.Sample(DefaultSampler, waveUV).r; - - if (g_fDeltaV <= 1.f) - { - if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2) - { - color1.rgb += float3(1.f, 1.f, 1.f) * tex5 * g_fDeltaU; - } - } - - float waveThreshold = CoolTime + wave1; - - if (OverrayUV.y <= waveThreshold) - { - color1.a = 0.f; - } - - color = lerp(color, color1, color1.a); - - color.a *= Alpha; - - Out.vColor = color; - return Out; -} - -PS_OUT PS_HpBar(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float4 Color1 = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv); - tex1.rgb = float3(255.f, 0.f, 0.f) / 255.f; - if (g_fHp <= 0.3f) - { - tex1.a *= (sin(g_fBlinkTime) * 0.25f + 0.75f) * 1.5f; - } - else - { - tex1.a = 0.f; - } - Color = tex1; - - float2 BGPos = g_Pos; - float2 BGSize = g_fImageSize; - float2 BGPixel = Finaluv * g_fOrigin_Size; - float2 localUV = (BGPixel - BGPos) / BGSize; - bool inside = all(localUV >= 0.0f && localUV <= 1.0f); - - float4 tex2 = g_Texture1.Sample(ClampSampler, localUV); - - if (inside) - Color = lerp(Color, tex2, tex2.a); - - float2 reversuv = In.vTexcoord; - - reversuv.x = 1.0f - localUV.x; - - float4 tex3 = g_Texture2.Sample(ClampSampler, localUV); - - if (reversuv.x >= g_fHp) - { - tex3.rgb = float3(0.f, 0.f, 0.f); - } - - float3 Green = (float3(112.f, 241.f, 31.f) / 255.f) * 1.2f; - float3 Red = (float3(255.f, 0.f, 0.f) / 255.f) * 1.2f; - - tex3.rgb *= lerp(Green, Red, g_fTime); - - if (all(Color.rgb >= float3(55.f / 255.f, 0.f / 255.f, 55.f / 255.f))) - Color = lerp(Color, tex3, tex3.a); - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Magic_Meter(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float3 Blue = float3(41.f, 165.f, 255.f) / 255.f; - - float4 color = float4(1.f, 1.f, 1.f, 1.f); - float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord); - float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord); - - float2 reverseuv = 1.f - In.vTexcoord; - - color = tex1; - tex2.rgb *= Blue * 1.5f; - - if (reverseuv.x >= g_fHp) - { - tex2.rgb = float3(0.f, 0.f, 0.f); - } - - if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f))) - color = tex2; - - color.a *= Alpha; - - Out.vColor = color; - - return Out; -} - - -PS_OUT PS_Magic_Icon(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float2 center = float2(0.5f, 0.5f); - float2 BGuv = In.vTexcoord - center; - BGuv *= sqrt(2.0f); - float2 Rotation = In.vTexcoord; - Rotation.x = BGuv.x * cos(g_fAngle) - BGuv.y * sin(g_fAngle); - Rotation.y = BGuv.x * sin(g_fAngle) + BGuv.y * cos(g_fAngle); - Rotation += center; - - float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); - float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation); - - Color = tex1; - Color = lerp(tex1, tex2, tex2.a); - - float2 uv = In.vTexcoord; - float scale = 1.2; - - uv = (uv - center) * scale + center; - float4 tex3 = g_Texture2.Sample(ClampSampler, uv); - - - Color = Color * (1 - tex3.a) + tex3; - - Color.a *= Alpha; - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_RemapUV(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - - float2 startUV = g_fImageUV.xy; - float2 endUV = g_fImageUV.zw; - - float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); - - float4 tex1 = g_Texture.Sample(DefaultSampler, atlasUV); - - Color = tex1; - - Color.a *= Alpha; - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Revelio(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float2 UV = In.vTexcoord; - - //float2 Position[4]; - //float2 startUV[4]; - //float2 endUV[4]; - - //float2 Atlases[4]; - - //for (int i = 0; i < 4; ++i) - //{ - // Position[i] = g_fPosition[i]; - // startUV[i] = g_fImagesUV[i].xy; - // endUV[i] = g_fImagesUV[i].zw; - - // Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]); - //} - - //float4 tex1 = g_Texture.Sample(DefaultSampler, UV); - //float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]); - //float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]); - //float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]); - //float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]); - - - - ////float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); - - Color.a *= Alpha; - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Potion(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(214.f / 255.f, 225 / 255.f, 36 / 255.f, 1.f); - - float2 center = float2(0.5f, 0.5f); - float2 uv = In.vTexcoord - center; - uv *= sqrt(2.0f); - float2 Rotation = In.vTexcoord; - Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); - Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); - Rotation += center; - - float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); - Color = tex1; - - float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); - //Color += tex2; - float4 tex3 = g_Texture2.Sample(ClampSampler, Rotation); - Color = lerp(Color, tex3, tex3.a); - - float2 Potionuv = In.vTexcoord; - float scale = 1.2; - - Potionuv = (Potionuv - center) * scale + center; - float4 tex4 = g_Texture3.Sample(ClampSampler, Potionuv); - Color = lerp(Color, tex4, tex4.a); - - float2 tex5pos = g_Pos / g_fCurrent_Size; - float2 tex5size = g_fOrigin_Size / g_fCurrent_Size; - float2 tex5local = (In.vTexcoord - tex5pos) / tex5size; - bool inside = all(tex5local >= 0.0f && tex5local <= 1.0f); - float4 tex5 = g_Texture4.Sample(ClampSampler, tex5local); - if (inside) - Color = lerp(Color, tex5, tex5.a); - - Color.a *= Alpha; - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Magic_Item(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 color = float4(1.f, 1.f, 1.f, 1.f); - - float2 center = float2(0.5f, 0.5f); - float2 uv = In.vTexcoord - center; - uv *= sqrt(2.0f); - float2 Rotation = In.vTexcoord; - Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); - Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); - Rotation += center; - - float2 startUV = g_fImageUV.xy; - float2 endUV = g_fImageUV.zw; - - float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); - - float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); - float4 tex2 = g_Texture3.Sample(ClampSampler, atlasUV); - - tex1.rgb *= 0.4f; - color = tex1; - tex2.rgb *= 0.3f; - - if (tex2.a >= 0.9f) - color = tex2; - float3 BGColor = float3(1.f, 1.f, 1.f); - - switch (g_iSpellType) - { - case 0: - BGColor = float3(50.f, 50.f, 50.f) / 255.f; - break; - case 1: - BGColor = float3(89.f, 32.f, 215.f) / 255.f; - break; - case 2: - BGColor = float3(190.f, 46., 34.f) / 255.f; - break; - case 3: - BGColor = float3(37.f, 129.f, 162.f) / 255.f; - break; - case 4: - BGColor = float3(134.f, 171.f, 78.f) / 255.f; - break; - } - - float4 color1 = float4(1.f, 1.f, 1.f, 1.f); - - float2 OverrayUV = In.vTexcoord; - float CoolTime = 0.f + g_fDeltaV; - float CoolTime2 = 0.f + g_fDeltaV + 0.1f; - atlasUV = startUV + In.vTexcoord * (endUV - startUV); - float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV); - tex3.rgb *= BGColor; - float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV); - - if (g_fDeltaV <= 1.f) - { - if (tex4.a >= 0.9f) - tex3 = tex4; - - color1 = tex3; - - float wave1 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f; - float wave2 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f; - - float waveThreshold1 = CoolTime + wave1; - float waveThreshold2 = CoolTime2 + wave2; - float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1)); - waveUV = saturate(waveUV); - float Mask = g_MaskingTexture.Sample(DefaultSampler, waveUV).r; - if (g_fDeltaV <= 1.f) - { - if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2) - { - color1.rgb += float3(1.f, 1.f, 1.f) * Mask * 1.f; - } - } - - float waveThreshold = CoolTime + wave1; - - if (OverrayUV.y <= waveThreshold) - { - color1.a = 0.f; - } - - color = lerp(color, color1, color1.a); - } - else if (g_fDeltaV >= 1.f) - color = lerp(color, tex4, tex4.a); - - float4 tex5 = g_Texture2.Sample(ClampSampler, Rotation); - color = lerp(color, tex5, tex5.a); - - float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size; - float2 texpos2 = g_fItemPosition2 / g_fCurrent_Size; - float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size; - float2 texsize2 = g_fItemImageSizes2 / g_fCurrent_Size; - float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1; - float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2; - - - bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f); - float4 tex6 = g_Texture4.Sample(DefaultSampler, texlocal1); - - if (inside1) - color = lerp(color, tex6, tex6.a); - - bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f); - - float4 tex7 = g_Texture5.Sample(DefaultSampler, texlocal2); - if (inside2) - color = lerp(color, tex7, tex7.a); - - color.a *= Alpha; - - Out.vColor = color; - return Out; -} - -PS_OUT PS_Spell_Preview(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv); - float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); - float4 tex3 = g_Texture2.Sample(DefaultSampler, Finaluv); - Color = tex1; - - tex3.rgb = tex2.rgb; - - Color = lerp(Color, tex3, tex3.a); - - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f); - float4 tex4 = g_Texture3.Sample(DefaultSampler, Finaluv); - if (inside1) - { - Color = lerp(Color, tex4, tex4.a); - } - - Color.a *= Alpha; - - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Spell_Header(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float3 BGColor = float3(1.f, 1.f, 1.f); - - switch (g_iSpellType) - { - case 0: - BGColor = float3(220.f, 165.f, 70.f) / 255.f; - break; - case 1: - BGColor = float3(150.f, 120.f, 240.f) / 255.f; - break; - case 2: - BGColor = float3(190.f, 46., 34.f) / 255.f; - break; - case 3: - BGColor = float3(24.f, 190.f, 255.f) / 255.f; - break; - case 4: - BGColor = float3(200.f, 220.f, 150.f) / 255.f; - break; - case 5: - BGColor = float3(50.f, 150.f, 110.f) / 255.f; - break; - case 6: - BGColor = float3(0.f, 0.f, 0.f); - break; - } - - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - Color.rgb = tex1.rgb * 0.8f; - Color.a = tex1.a; - - Color.rgb *= BGColor; - - Color.a *= Alpha * 0.5f; - - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Spell_Header_Line(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv); - float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); - Color = tex1; - - //Color.rgb = tex2.rgb; - - Color.a *= Alpha; - - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Spell_Drag(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - float tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r; - float4 tex2Color = g_Texture2.Sample(DefaultSampler, In.vTexcoord); - - tex2Color.a = tex2; - Color = lerp(tex1, tex2Color, tex2Color.a); - - float2 atlasUV = g_fImageUV.xy + In.vTexcoord * (g_fImageUV.zw - g_fImageUV.xy); - //float2 center = (g_fImageUV.xy + g_fImageUV.zw) * 0.5f; - //float2 uv = atlasUV - center; - //uv *= 0.7f; - //uv += center; - float4 tex3 = g_Texture3.Sample(ClampSampler, atlasUV); - - Color = lerp(Color, tex3, tex3.a); - - Color.a *= Alpha; - - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Camera_LockOn(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float2 center = float2(0.5, 0.5); - float2 uv = In.vTexcoord - center; - float angle = -g_fTime; - float s = sin(angle); - float c = cos(angle); - float2 maskuv = float2(uv.x * c - uv.y * s, uv.x * s + uv.y * c) + center; - - float tex1 = g_Texture.Sample(ClampSampler, maskuv).r; - - Color.a = tex1 * 0.3f; - - if (g_iHover == 0) - { - float4 tex2 = g_Texture1.Sample(ClampSampler, maskuv); - - Color.rgb += (tex2.rgb * tex2.a) * 2.f; - } - - float2 UpUV = In.vTexcoord; - UpUV.y += g_fTime; - - float4 tex3 = g_Texture2.Sample(DefaultSampler, UpUV); - float tex4 = g_Texture1.Sample(ClampSampler, In.vTexcoord).r; - - tex3.a *= tex4; - - Color = lerp(Color, tex3, tex3.a); - - Color.a *= Alpha; - - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Loding_Screen(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); - Color = tex1; - Color = lerp(Color, tex2, tex2.a); - - //float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - //float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - //float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - //bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f); - //if (inside1) - //{ - // float2 uv = saturate(Imagelocal); - // float4 tex2 = g_Texture1.Sample(DefaultSampler, uv); - - // Color = lerp(Color, tex2, tex2.a); - //} - - Color.a *= Alpha; - - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Enemy_HpBer(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float4 Color1 = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv); - float4 tex2 = g_Texture1.Sample(DefaultSampler, Finaluv); - - Color = tex1; - - tex2.rgb *= float3(1.f, 0.f, 0.f); - - if (In.vTexcoord.x >= g_fHp) - { - tex2.rgb = float3(0.f, 0.f, 0.f); - } - - Color = lerp(Color, tex2, tex2.a); - - if (Color.a <= 0.f) - discard; - - if (g_iHover != 0) - { - float4 tex3 = g_Texture2.Sample(DefaultSampler, In.vTexcoord); - - tex3.rgb *= float3(1.f, 0.f, 0.f); - - if (g_fTime >= tex3.r) - { - Color.a *= tex3.r; - Color.rgb = float3(1.f, 0.f, 0.f); - } - } - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Boss_HpBer(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float4 Color1 = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv); - float4 tex2 = g_Texture1.Sample(DefaultSampler, Finaluv); - - Color = tex1; - - tex2.rgb *= float3(1.f, 0.f, 0.f); - - if (In.vTexcoord.x >= g_fHp) - { - tex2.rgb = float3(0.f, 0.f, 0.f); - } - - if (all(Color.rgb >= (float3(55.f, 55.f, 55.f) / 255.f))) - Color = tex2; - - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Quest_Border(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float4 Color1 = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv); - Color = tex1; - - if (g_iColor == 1) - Color.rgb *= float3(100.f, 0.f, 100.f) / 255.f; - - if (g_iColor == 2) - { - Color.rgb *= 0.3f; - } - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Quest_Info(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float4 Color1 = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv); - float4 tex2 = g_Texture1.Sample(DefaultSampler, Finaluv); - - Color = tex1; - - Color = lerp(Color, tex2, tex2.a); - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Quest_Status(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - if (g_iClick == 0) - { - if (g_iHover == 0) - { - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - tex1.rgb *= float3(60.f, 80.f, 150.f) / 255.f; - Color = tex1; - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f); - if (inside1) - { - float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy); - float2 safeUV = saturate(atlasUV); - float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV); - Color = lerp(Color, tex2, tex2.a); - } - } - else - { - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - Color = tex1; - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f); - if (inside1) - { - float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy); - float2 safeUV = saturate(atlasUV); - float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV); - Color = lerp(Color, tex2, tex2.a); - } - } - } - else - { - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - Color = tex1; - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f); - if (inside1) - { - float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy); - float2 safeUV = saturate(atlasUV); - float4 tex2 = g_Texture1.Sample(DefaultSampler, safeUV); - Color = lerp(Color, tex2, tex2.a); - } - float mask = g_Texture2.Sample(DefaultSampler, In.vTexcoord).r; - float3 glowColor = float3(1.0f, 1.0f, 1.0f); - Color.rgb += glowColor * mask * 0.5f; - Color.rgb *= float3(140.f, 140.f, 20.f) / 255.f; - } - - - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Broomstick(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 color = float4(1.f, 1.f, 1.f, 1.f); - - float2 center = float2(0.5f, 0.5f); - float2 uv = In.vTexcoord - center; - uv *= sqrt(2.0f); - float2 Rotation = In.vTexcoord; - Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); - Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); - Rotation += center; - - float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); - float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation); - tex1.rgb *= 0.4f; - color = tex1; - tex2.rgb *= 0.3f; - - color = lerp(color, tex2, tex2.a); - - float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size * 0.5f; - float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size * 0.5; - float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1; - bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f); - if (inside1) - { - float4 tex3 = g_Texture2.Sample(ClampSampler, texlocal1); - color = lerp(color, tex3, tex3.a); - } - - float2 texpos2 = g_fImageSipos2.xy / g_fCurrent_Size; - float2 texsize2 = g_fImageSipos2.zw / g_fCurrent_Size; - float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2; - bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f); - if (inside2) - { - float2 startUV = g_fImageUV.xy; - float2 endUV = g_fImageUV.zw; - float2 atlasUV = atlasUV = startUV + texlocal2 * (endUV - startUV); - float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV); - color = lerp(color, tex4, tex4.a); - } - - color.a *= Alpha; - - Out.vColor = color; - return Out; -} - - -PS_OUT PS_SpellLearn(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float4 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord); - float tex1 = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r; - Color = tex; - - tex1 *= 0.95f; - - Color.a = tex1; - - Color.a *= Alpha; - - Out.vColor = Color; - return Out; -} - -PS_OUT PS_SpellLearnColor(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float4 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord); - float4 tex1 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); - Color = tex; - - Color.rgb *= tex1.rgb; - - float2 rectPos = g_fPosition - float2(256.f, 259.f); - float2 rectSize = g_fCurrent_Size; - - float2 itemPos = g_fItemPosition1; - float2 itemSize = g_fItemImageSizes1; - - float2 pixelPos; - pixelPos.x = rectPos.x + In.vTexcoord.x * rectSize.x; - pixelPos.y = rectPos.y + (1.0f - In.vTexcoord.y) * rectSize.y; - - if (pixelPos.x >= itemPos.x && - pixelPos.x <= itemPos.x + itemSize.x && - pixelPos.y >= itemPos.y && - pixelPos.y <= itemPos.y + itemSize.y) - { - Color.rgb = float3(0.f, 0.f, 1.f); - } - - for (int i = 0; i < g_Count; ++i) - { - float2 trailTopLeft = g_Trail[i]; - float2 trailCenter = trailTopLeft + itemSize / 2.0f; - - float halfWidth = itemSize.x / 2.0f + 12.f; - float halfHeight = itemSize.y / 2.0f + 12.f; - - if (pixelPos.x >= trailCenter.x - halfWidth && - pixelPos.x <= trailCenter.x + halfWidth && - pixelPos.y >= trailCenter.y - halfHeight && - pixelPos.y <= trailCenter.y + halfHeight) - { - Color.rgb = float3(20.f, 100.f, 180.f) / 255.f; - break; - } - } - - for (int j = 0; j < g_ChaseCount; ++j) - { - float2 ChaseTopLeft = g_ChaseTrail[j]; - float2 ChaseCenter = ChaseTopLeft + itemSize / 2.0f; - - float halfWidth = itemSize.x * 0.7f; - float halfHeight = itemSize.y * 0.7f; - - if (pixelPos.x >= ChaseCenter.x - halfWidth && - pixelPos.x <= ChaseCenter.x + halfWidth && - pixelPos.y >= ChaseCenter.y - halfHeight && - pixelPos.y <= ChaseCenter.y + halfHeight) - { - Color.rgb = float3(110.f, 5.f, 5.f) / 255.f; - break; - } - } - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_SpellLearnBooster(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float4 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - Color = tex; - - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f); - - if (g_iBoosterOn == 0 && g_iBoosterOff == 0) - { - if (inside1) - { - float4 tex1 = g_Texture1.Sample(DefaultSampler, Imagelocal); - Color = lerp(Color, tex1, tex1.a); - } - } - else if (g_iBoosterOn != 0 && g_iBoosterOff == 0) - { - - float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord); - Color = lerp(Color, tex3, tex3.a); - } - else if (g_iBoosterOn == 0 && g_iBoosterOff != 0) - { - float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord); - - tex2.rgb *= float3(1.f, 0.f, 0.f); - Color = tex; - - Color = lerp(Color, tex2, tex2.a); - } - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_NPCInteraction(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv); - - Color = tex1; - - float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size * 0.5f; - float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size * 0.5; - float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1; - bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f); - if (inside1) - { - float2 startUV = g_fImageUV.xy; - float2 endUV = g_fImageUV.zw; - float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV); - float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV); - Color = lerp(Color, tex2, tex2.a); - - } - - Color.a *= Alpha; - - Out.vColor = Color; - return Out; -} - -PS_OUT PS_CanvasFade(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha; - float4 Color = float4(0.f, 0.f, 0.f, 1.f); - - float4 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - Color = tex; - - Color.a = Alpha; - - Out.vColor = Color; - return Out; -} - -PS_OUT PS_FlagWave(PS_IN In) -{ - PS_OUT Out; - float Alpha = g_fAlpha; - float4 Color = float4(0.f, 0.f, 0.f, 1.f); - - float2 uv = In.vTexcoord; - - float phase = uv.y * 1.5f; - - float waveX = - sin(uv.y * 20.f + g_fTime * 1.0f + phase) * 0.007f; - - float waveY = - sin(uv.x * 12.f + g_fTime * 0.8f) * 0.002f; - - uv.x += waveX; - uv.y += waveY; - - float4 tex = g_Texture.Sample(ClampSampler, uv); - - Color = tex; - - if (Color.r <= 0.f) - discard; - - Color.a = Alpha; - - Out.vColor = Color; - return Out; -} - -PS_OUT PS_BroomCircle(PS_IN In) -{ - PS_OUT Out; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 color = float4(0.f, 0.f, 0.f, 0.f); - - float2 center = float2(0.5f, 0.5f); - float2 uv = In.vTexcoord - center; - float2 Rotation; - Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); - Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); - Rotation += center; - - float4 tex = g_Texture.Sample(BorderZeroLinearSampler, Rotation); - color = tex; - - float Diffuse = g_Texture1.Sample(DefaultSampler, In.vTexcoord).r; - - if (g_iHover != 0) - { - if (g_fTime >= Diffuse) - { - discard; - } - } - - if (g_iFinish == 0) - { - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f); - if (inside1) - { - float4 tex1 = g_Texture2.Sample(DefaultSampler, Imagelocal1); - color = lerp(color, tex1, tex1.a); - } - } - - color.a *= Alpha; - - Out.vColor = color; - return Out; -} - -PS_OUT PS_Ride_info_Key(PS_IN In) -{ - PS_OUT Out; - - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - Color = tex1; - - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f); - if (inside1) - { - float2 atlasUV = g_fImageUV.xy + Imagelocal1 * (g_fImageUV.zw - g_fImageUV.xy); - float2 safeUV = saturate(atlasUV); - float4 tex2 = g_Texture1.Sample(ClampSampler, safeUV); - Color = lerp(Color, tex2, tex2.a); - } - - float2 Imagetexpos2 = g_fImageSipos2.xy / g_fCurrent_Size; - float2 Imagetexsize2 = g_fImageSipos2.zw / g_fCurrent_Size; - float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2; - bool inside2 = all(Imagelocal2 >= 0.0f && Imagelocal2 <= 1.0f); - if (inside2) - { - float4 tex3 = g_Texture2.Sample(ClampSampler, Imagelocal2); - Color = lerp(Color, tex3, tex3.a); - } - - Color.a *= Alpha; - - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Ride_Info(PS_IN In) -{ - PS_OUT Out; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex = g_Texture.Sample(ClampSampler, Finaluv); - - Color = tex; - - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f); - if (inside1) - { - float4 tex1 = g_Texture1.Sample(ClampSampler, Imagelocal1); - Color = lerp(Color, tex1, tex1.a); - } - - float2 Imagetexpos2 = g_fImageSipos2.xy / g_fCurrent_Size; - float2 Imagetexsize2 = g_fImageSipos2.zw / g_fCurrent_Size; - float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2; - bool inside2 = all(Imagelocal2 >= 0.0f && Imagelocal2 <= 1.0f); - if (inside2) - { - float4 tex2 = g_Texture2.Sample(ClampSampler, Imagelocal2); - Color = lerp(Color, tex2, tex2.a); - } - - float2 Imagetexpos3 = g_fImageSipos3.xy / g_fCurrent_Size; - float2 Imagetexsize3 = g_fImageSipos3.zw / g_fCurrent_Size; - float2 Imagelocal3 = (In.vTexcoord - Imagetexpos3) / Imagetexsize3; - bool inside3 = all(Imagelocal3 >= 0.0f && Imagelocal3 <= 1.0f); - if (inside3) - { - float4 tex3 = g_Texture3.Sample(ClampSampler, Imagelocal3); - Color = lerp(Color, tex3, tex3.a); - } - - float2 Imagetexpos4 = g_fImageSipos4.xy / g_fCurrent_Size; - float2 Imagetexsize4 = g_fImageSipos4.zw / g_fCurrent_Size; - float2 Imagelocal4 = (In.vTexcoord - Imagetexpos4) / Imagetexsize4; - bool inside4 = all(Imagelocal4 >= 0.0f && Imagelocal4 <= 1.0f); - if (inside4) - { - float4 tex4 = g_Texture4.Sample(ClampSampler, Imagelocal4); - Color = lerp(Color, tex4, tex4.a); - } - - Color.a *= Alpha; - - Out.vColor = Color; - return Out; -} - -PS_OUT PS_Ride_HpSlot(PS_IN In) -{ - PS_OUT Out; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - - float2 center = float2(0.5f, 0.5f); - float2 BGuv = In.vTexcoord - center; - float2 Rotation = In.vTexcoord; - BGuv *= sqrt(2.0f); - Rotation.x = BGuv.x * cos(g_fAngle) - BGuv.y * sin(g_fAngle); - Rotation.y = BGuv.x * sin(g_fAngle) + BGuv.y * cos(g_fAngle); - Rotation += center; - - float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); - float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation); - - Color = tex1; - Color = lerp(tex1, tex2, tex2.a); - - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal1 = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal1 >= 0.0f && Imagelocal1 <= 1.0f); - if (inside1) - { - float4 tex3 = g_Texture2.Sample(ClampSampler, Imagelocal1); - Color = lerp(Color, tex3, tex3.a); - } - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_BoosterGauge(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float4 Color1 = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv); - if (g_iClick == 1) - { - tex1.rgb = float3(255.f, 255.f, 0.f) / 255.f; - float blink = abs(sin(g_fBlinkTime)); - tex1.a = saturate(tex1.a * blink); - } - else if (g_iClick == 0) - { - tex1.a = 0.f; - } - Color = tex1; - - float2 BGPos = g_Pos; - float2 BGSize = g_fImageSize; - float2 BGPixel = Finaluv * g_fOrigin_Size; - float2 localUV = (BGPixel - BGPos) / BGSize; - bool inside = all(localUV >= 0.0f && localUV <= 1.0f); - - float4 tex2 = g_Texture1.Sample(ClampSampler, localUV); - - if (inside) - Color = lerp(Color, tex2, tex2.a); - - float2 reversuv = In.vTexcoord; - - reversuv.x = 1.0f - localUV.x; - - float4 tex3 = g_Texture2.Sample(ClampSampler, localUV); - - if (reversuv.x >= g_fHp) - { - tex3.rgb *= float3(0.f, 0.f, 0.f); - } - else - { - tex3.rgb *= float3(1.f, 1.f, 0.f); - } - if (all(tex2.rgb >= float3(55.f / 255.f, 0.f / 255.f, 55.f / 255.f))) - Color = lerp(Color, tex3, tex3.a); - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_BoosterHpBar(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float4 Color1 = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex2 = g_Texture.Sample(ClampSampler, Finaluv); - Color = tex2; - - float2 reversuv = In.vTexcoord; - - reversuv.x = 1.0f - Finaluv.x; - - float4 tex3 = g_Texture1.Sample(ClampSampler, Finaluv); - - if (reversuv.x >= g_fHp) - { - tex3.rgb *= float3(0.f, 0.f, 0.f); - } - else - { - tex3.rgb *= float3(0.f, 1.f, 0.f); - } - if (all(tex2.rgb >= float3(55.f / 255.f, 0.f / 255.f, 55.f / 255.f))) - Color = lerp(Color, tex3, tex3.a); - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -PS_OUT PS_DialogueChoice(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 0.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - - if (g_iHover != 0) - { - float4 tex = g_Texture.Sample(ClampSampler, Finaluv); - Color = tex; - - float2 ImgaePos1 = g_fImageSipos1.xy; - float2 ImgaeSize1 = g_fImageSipos1.zw; - float2 ImgaePixel = Finaluv * g_fOrigin_Size; - float2 localUV = (ImgaePixel - ImgaePos1) / ImgaeSize1; - bool inside = all(localUV >= 0.0f && localUV <= 1.0f); - if (inside) - { - float4 tex2 = g_Texture1.Sample(ClampSampler, localUV); - Color = lerp(Color, tex2, tex2.a); - } - - float2 ImgaePos2 = g_fImageSipos2.xy; - float2 ImgaeSize2 = g_fImageSipos2.zw; - float2 ImgaePixe2 = Finaluv * g_fOrigin_Size; - float2 ReverseUV = (ImgaePixe2 - ImgaePos2) / ImgaeSize2; - bool inside2 = all(ReverseUV >= 0.0f && ReverseUV <= 1.0f); - if (inside2) - { - ReverseUV.y = 1.f - ReverseUV.y; - float4 tex2 = g_Texture1.Sample(ClampSampler, ReverseUV); - Color = lerp(Color, tex2, tex2.a); - } - } - - float2 ImgaePos3 = g_fImageSipos3.xy / g_fCurrent_Size; - float2 ImgaeSize3 = g_fImageSipos3.zw / g_fCurrent_Size; - float2 localUV2 = (In.vTexcoord - ImgaePos3) / ImgaeSize3; - bool inside3 = all(localUV2 >= 0.0f && localUV2 <= 1.0f); - if (inside3) - { - float4 tex2 = g_Texture2.Sample(ClampSampler, localUV2); - Color = lerp(Color, tex2, tex2.a); - } - - Color.a *= Alpha; - Out.vColor = Color; - return Out; -} - -struct VS_IN3D -{ - float3 vPosition : POSITION; - float2 vTexcoord : TEXCOORD0; -}; - -struct VS_OUT3D -{ - float4 vPosition : SV_Position; - float2 vTexcoord : TEXCOORD0; -}; - -VS_OUT3D VS_MAIN3D(VS_IN3D In) -{ - VS_OUT3D Out; - - matrix matViewProj = mul(g_ViewMatrix, g_ProjMatrix); - - float2 Offset = In.vTexcoord - 0.5f; - float3 worldCenter = float3(g_WorldMatrix._41, g_WorldMatrix._42, g_WorldMatrix._43); - - - float3 vLook = normalize(g_CamaraPosition - worldCenter); - - vLook.y = 0.f; - vLook = normalize(vLook); - - float3 upDir = float3(0.f, 1.f, 0.f); - - float3 rightDir = normalize(cross(vLook, upDir)); - - float3 dirRight = rightDir * g_fCurrent_Size.x * Offset.x; - float3 dirUp = upDir * g_fCurrent_Size.y * Offset.y; - - float3 vertexPos = worldCenter + dirRight + dirUp; - - float2 TexCoord = In.vTexcoord; - TexCoord.y = 1.f - TexCoord.y; - - Out.vPosition = mul(float4(vertexPos, 1.f), matViewProj); - Out.vTexcoord = TexCoord; - return Out; -} - -PS_OUT PS_Enemy_Detection(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - - float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha); - - if (g_iStep1 != 0) - { - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f); - if (inside1) - { - float4 tex3 = g_Texture1.Sample(ClampSampler, Imagelocal); - - float2 Imagetexpos2 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize2 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2; - - Color = lerp(Color, tex3, tex3.a); - - float4 tex4 = g_Texture2.Sample(ClampSampler, Imagelocal2); - float4 tex5 = g_Texture3.Sample(ClampSampler, Imagelocal2); - - float4 Color1 = tex4; - - Color1 = lerp(tex4, tex5, tex5.a); - - Imagelocal2.y = 1.f - Imagelocal2.y; - - if (Imagelocal2.y >= g_fTime) - { - Color1.a = 0.f; - } - - Color = lerp(Color, Color1, Color1.a); - - Color.a *= g_fAlpha; - Out.vColor = Color; - - return Out; - } - } - if (g_iStep2 != 0) - { - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f); - if (inside1) - { - float4 tex3 = g_Texture1.Sample(ClampSampler, Imagelocal); - - float2 Imagetexpos2 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize2 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal2 = (In.vTexcoord - Imagetexpos2) / Imagetexsize2; - - float4 tex4 = g_Texture2.Sample(ClampSampler, Imagelocal2); - float4 tex6 = g_Texture4.Sample(ClampSampler, Imagelocal2); - Color = lerp(Color, tex3, tex3.a); - float4 Color1 = tex4; - Color1 = lerp(tex4, tex6, tex6); - Color1.rgb *= float3(1.f, 1.f, 0.f); - Imagelocal2.y = 1.f - Imagelocal2.y; - if (Imagelocal2.y >= g_fTime) - { - Color1.a = 0.f; - } - Color = lerp(Color, Color1, Color1.a); - - Color.a *= g_fAlpha; - - Out.vColor = Color; - - return Out; - } - } - if (g_iStep3 != 0) - { - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - Color = tex1; - Color.rgb *= float3(1.f, 0.f, 0.f); - - float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1; - bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f); - if (inside1) - { - float4 tex7 = g_Texture5.Sample(ClampSampler, Imagelocal); - - Color = lerp(Color, tex7, tex7.a); - - Color.a *= g_fAlpha; - Out.vColor = Color; - - return Out; - } - - } - - Color.a *= g_fAlpha; - Out.vColor = Color; - - return Out; -} - -VS_OUT3D VS_NONESIZE3D(VS_IN3D In) -{ - VS_OUT3D Out; - - float3 worldCenter = float3( - g_WorldMatrix._41, - g_WorldMatrix._42, - g_WorldMatrix._43 - ); - - float4 clipPos = mul( - float4(worldCenter, 1.f), - mul(g_ViewMatrix, g_ProjMatrix) - ); - - float w = clipPos.w; - - clipPos.xy /= w; - - float2 offset = In.vTexcoord - 0.5f; - float2 pixelOffset = offset * g_fCurrent_Size.xy; - - float2 ndcOffset; - ndcOffset.x = pixelOffset.x / g_fViewport.x * 2.f; - ndcOffset.y = pixelOffset.y / g_fViewport.y * 2.f; - - clipPos.xy += ndcOffset; - - clipPos.xy *= w; - clipPos.w = w; - - Out.vPosition = clipPos; - - float2 TexCoord = In.vTexcoord; - TexCoord.y = 1.f - TexCoord.y; - Out.vTexcoord = TexCoord; - - return Out; -} - -PS_OUT PS_Interaction_Object(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - - float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha); - - float2 atlasUV = g_fImageUV.xy + In.vTexcoord * (g_fImageUV.zw - g_fImageUV.xy); - float2 safeUV = saturate(atlasUV); - float4 tex1 = g_Texture.Sample(DefaultSampler, safeUV); - - Color = tex1; - - Color.a *= g_fAlpha; - Out.vColor = Color; - - return Out; -} - -PS_OUT PS_Interaction_Npc(PS_IN In) -{ - PS_OUT Out = (PS_OUT) 0; - float Alpha = g_fAlpha; - float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; - float2 CurrentPixelPosition = uv * g_fCurrent_Size; - float OriginLeft = g_fNine_Slice.x; - float OriginRight = g_fNine_Slice.y; - float OriginTop = g_fNine_Slice.z; - float OriginBottom = g_fNine_Slice.w; - - float CurrentLeft = OriginLeft; - float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); - float CurrentTop = OriginTop; - float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - - float2 Finaluv = In.vTexcoord; - - if (CurrentPixelPosition.x < CurrentLeft) - { - Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; - } - else if (CurrentPixelPosition.x > CurrentRight) - { - float dist = CurrentPixelPosition.x - CurrentRight; - Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; - } - else - { - float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); - Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); - } - - if (CurrentPixelPosition.y < CurrentTop) - { - Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; - } - else if (CurrentPixelPosition.y > CurrentBottom) - { - float dist = CurrentPixelPosition.y - CurrentBottom; - Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; - } - else - { - float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); - Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); - } - - float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv); - - Color = tex1; - - float2 texpos1 = g_fImageSipos1.xy / g_fCurrent_Size; - float2 texsize1 = g_fImageSipos1.zw / g_fCurrent_Size; - float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1; - bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f); - if (inside1) - { - float2 startUV = g_fImageUV.xy; - float2 endUV = g_fImageUV.zw; - float2 atlasUV = atlasUV = startUV + texlocal1 * (endUV - startUV); - float4 tex2 = g_Texture1.Sample(DefaultSampler, atlasUV); - Color = lerp(Color, tex2, tex2.a); - - } - - - Color.a *= Alpha; - - Out.vColor = Color; - return Out; -} - -PS_OUT PS_BroomGateTarget(PS_IN In) -{ - PS_OUT Out; - - float4 Color = float4(1.f, 1.f, 1.f, 0.f * g_fAlpha); - - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - Color = tex1; - - Color.a *= g_fAlpha; - Out.vColor = Color; - - return Out; -} - -technique11 PosTexTechnique11 -{ - pass Default //0 - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_MAIN(); - } - - pass Texture_Color - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Texture_Color(); - } - - pass Logo - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Logo(); - } - - pass Logo_Text - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Logo_Text(); - } - - pass Logo_Glow - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Logo_Glow(); - } - - pass AlphaBlend - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_AlphaBlend(); - } - - pass TextureClamp - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Clamp(); - } - - pass Mouse_Cursor - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Cursor(); - } - - pass Sptire_Sheet - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Sptire_Sheet(); - } - - pass Key_Hold_Rotation // 9 - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Key_Hold_Rotation(); - } - - pass Mission - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Mission(); - } - - pass QuestType - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_QuestType(); - } - - pass Spell_Anim - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Spell_Anim(); - } - - pass NineSlice - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_NineSlice(); - } - - pass Rotation - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Rotation(); - } - - pass Slot //15 - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Slot(); - } - - pass SpellAnim - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_SpellAnim(); - } - pass HpBar - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_HpBar(); - } - pass Magic_Meter - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Magic_Meter(); - } - - pass Magic_Icon - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Magic_Icon(); - } - - pass RemapUV //20 - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_RemapUV(); - } - - pass Revelio - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Revelio(); - } - - pass Potion - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Potion(); - } - - pass Magic_Item - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Magic_Item(); - } - - pass Spell_Preview - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Spell_Preview(); - } - - pass Spell_Header //25 - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Spell_Header(); - } - - pass Spell_Header_Line - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Spell_Header_Line(); - } - - pass Spell_Drag - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Spell_Drag(); - } - - pass Camera_LockOn - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Camera_LockOn(); - } - - pass Loding_Screen - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Loding_Screen(); - } - - pass Enemy_HpBer //30 - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Enemy_HpBer(); - } - - pass Boss_HpBer - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Boss_HpBer(); - } - - pass Quest_Border - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Quest_Border(); - } - - pass Quest_Info - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Quest_Info(); - } - - pass Quest_Status - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Quest_Status(); - } - - pass Broomstick //35 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Broomstick(); - } - - pass SpellLearn - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_SpellLearn(); - } - - pass SpellLearnColor - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_SpellLearnColor(); - } - - pass SpellLearnBooster - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_SpellLearnBooster(); - } - - pass NPCInteraction - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_NPCInteraction(); - } - - pass CanvasFade //40 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_CanvasFade(); - } - - pass FlagWave - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_FlagWave(); - } - - pass BroomCircle - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_BroomCircle(); - } - - pass Ride_info_Key - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Ride_info_Key(); - } - - pass Ride_Info - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Ride_Info(); - } - - pass Ride_HpSlot //45 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_Ride_HpSlot(); - } - - pass BoosterGauge - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_BoosterGauge(); - } - - pass BoosterHpBar - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_BoosterHpBar(); - } - - pass DialogueChoice - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - - PixelShader = compile ps_5_0 PS_DialogueChoice(); - } - - pass Enemy_Detection - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN3D(); - - PixelShader = compile ps_5_0 PS_Enemy_Detection(); - } - - pass Interaction_Object - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_None, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_NONESIZE3D(); - - PixelShader = compile ps_5_0 PS_Interaction_Object(); - } - - pass Interaction_Npc - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_None, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_NONESIZE3D(); - - PixelShader = compile ps_5_0 PS_Interaction_Npc(); - } - - pass BroomGateTarget //51 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_None, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_NONESIZE3D(); - - PixelShader = compile ps_5_0 PS_BroomGateTarget(); - } -} diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index ed5efbdc5..b22b67c15 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -163,6 +163,8 @@ call Update_Resources.bat + + @@ -216,8 +218,6 @@ call Update_Resources.bat - - @@ -240,6 +240,7 @@ call Update_Resources.bat + @@ -334,6 +335,9 @@ call Update_Resources.bat + + + @@ -469,6 +473,8 @@ call Update_Resources.bat + + @@ -503,7 +509,6 @@ call Update_Resources.bat - @@ -524,7 +529,6 @@ call Update_Resources.bat - @@ -546,6 +550,7 @@ call Update_Resources.bat + @@ -646,6 +651,9 @@ call Update_Resources.bat + + + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 38641358d..37e8d62e8 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -400,7 +400,6 @@ 02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Mage - 02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector @@ -440,9 +439,6 @@ 02.GameObjects\Environment\03.MapElement\Lake - - 02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Warrior - 02.GameObjects\Effect\MonsterEffect\Goblin_Protego @@ -743,12 +739,6 @@ 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Point - - 02.GameObjects\Player - - - 02.GameObjects\Player\Robe - 02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Assassin @@ -911,9 +901,6 @@ 02.GameObjects\Effect\MonsterEffect\Goblin_Protego\Goblin_ProtegoHit - - 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit - 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop @@ -932,6 +919,9 @@ 04.Mechanic\State\State_Combat\State_Parry + + 02.GameObjects\Effect\Effects\Accio\AccioSide + 02.GameObjects\Environment\Prop\SkyBox\TriggerBox @@ -939,6 +929,27 @@ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + 02.GameObjects\Effect\MonsterEffect\Troll_Shout + + + 02.GameObjects\Effect\MonsterEffect\Troll_Rush + + + 02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit + + + 02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit + + + 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + + 02.GameObjects\NPC\Ally\Elf + + + 02.GameObjects\Environment\03.MapElement\Cave + 02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_SkillUI @@ -1378,9 +1389,6 @@ {e666a8b4-c92e-48ee-b63b-40d852b27b06} - - {14ad0431-680b-4c8b-93d7-601aee5ce435} - {1d1dc743-5cf2-4b8f-a80e-16b16437c7aa} @@ -1588,9 +1596,6 @@ {a94e24d2-0f61-4263-b834-bfdf9f6c06ae} - - {f3c7cf8d-2b83-49d3-85da-fe135e376a11} - {af9f5cf6-151a-49bc-9af4-28ba0bde1d37} @@ -1939,6 +1944,27 @@ {4a11eb4b-127e-41f2-8456-cae963c94a4c} + + {0e6d6920-c33c-4202-a2a5-3c883e1d4597} + + + {a4b6f0be-8841-4748-8947-e497d755c2d9} + + + {34b736fb-456e-46e3-8038-49cff23b2f95} + + + {c276c050-7000-441e-bb53-30ec3c20c6f5} + + + {9263815e-9651-4ba2-813f-c2a7f207522d} + + + {44a8eee1-6b7f-4c9a-bf92-21f6b90e84c3} + + + {5599bbbd-12f7-4b40-8e3d-24f869cce464} + {b28b8285-3d1a-49cf-bde2-c7ebc18e6389} @@ -2647,9 +2673,6 @@ 04.Mechanic\State\Movement\Dash - - 02.GameObjects\Player\Robe - 02.GameObjects\NPC\Hostile\Monster\Goblin\Goblin_Spector\Goblin_Warrior_Spector @@ -2740,9 +2763,6 @@ 02.GameObjects\NPC\Hostile\Human_Duelist - - 02.GameObjects\Player\Robe - 02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Rush @@ -2815,6 +2835,17 @@ 02.GameObjects\Effect\Effects\Stupefy\StupefySide + + 02.GameObjects\Environment\03.MapElement\Cave + + + + + 04.Mechanic\State\State_Combat\State_Parry + + + 02.GameObjects\Effect\Effects\Accio\AccioSide + 02.GameObjects\Environment\03.MapElement\Balloon @@ -2828,6 +2859,21 @@ 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + 02.GameObjects\Effect\MonsterEffect\Troll_Rush + + + 02.GameObjects\Effect\MonsterEffect\Troll_Shout + + + 02.GameObjects\Effect\MonsterEffect\Troll_Self_Hit + + + 02.GameObjects\UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + + 02.GameObjects\NPC\Ally\Elf + 02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Enemy_SkillUI diff --git a/Jusin154_Team3D/Client/Private/Accio.cpp b/Jusin154_Team3D/Client/Private/Accio.cpp index d3cca9579..834213de4 100644 --- a/Jusin154_Team3D/Client/Private/Accio.cpp +++ b/Jusin154_Team3D/Client/Private/Accio.cpp @@ -66,7 +66,18 @@ HRESULT CAccio::Initialize(void* pArg) XMStoreFloat4x4(&m_TrailWorld, XMMatrixIdentity()); - m_fDuration = 6.f; + m_fDuration = 4.f; + + m_Events.emplace(2.f, [&]() { + + m_pRope_Trail->Get_Component()->Rope_Fix(true); + + if (m_isDissolve) + m_pRope_Trail->SetDissolve(true); + + m_pRope_Trail->Get_TrailInfo()->fMass = 0.1f; + + }); return S_OK; } @@ -151,9 +162,16 @@ void CAccio::Late_Update(_float fTimeDelta) if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); - OnCollision(this , &CollisionInfo); + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + { + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); + OnCollision(this, &CollisionInfo); + } + } } @@ -180,8 +198,6 @@ HRESULT CAccio::Pre_Setting(CGameObject* pObject, void* pArg) pCircle->Set_Visible(true); m_pWandLight->Set_Visible(true); - m_pWandLight->Get_Effect_Info()->isDissolve = false; - m_pWandLight->Get_Effect_Info()->isLightDissolve = false; pSpread_Circle->Set_Visible(true); @@ -304,8 +320,6 @@ void CAccio::OnCollision(CGameObject* pOther, void* pDesc) pCircle->Set_Visible(false); pSpread_Circle->Set_Visible(false); - m_pWandLight->Get_Effect_Info()->isDissolve = true; - m_pWandLight->Get_Effect_Info()->isLightDissolve = true; m_pRotate0->Set_Visible(true); m_pRotate1->Set_Visible(true); diff --git a/Jusin154_Team3D/Client/Private/AccioSide.cpp b/Jusin154_Team3D/Client/Private/AccioSide.cpp new file mode 100644 index 000000000..41beb13af --- /dev/null +++ b/Jusin154_Team3D/Client/Private/AccioSide.cpp @@ -0,0 +1,206 @@ +#include "pch.h" +#include "AccioSide.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Player.h" +#include "Wand.h" +#include "TrailObject.h" + + +CAccioSide::CAccioSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CAccioSide::CAccioSide(const CAccioSide& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CAccioSide::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/AccioSide"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CAccioSide::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Create_Effect())) + return E_FAIL; + + m_wstrEffectName = L"AccioSide"; + + + //m_pWandParticle = Get_PartObject("Wand_PT"); + + m_pWandLight = Get_PartObject("Wand_Light_B"); + m_pWandTrail = Get_PartObject(); + + SAFE_ADDREF(m_pWandLight); + SAFE_ADDREF(m_pWandTrail); + //SAFE_ADDREF(m_pWandParticle); + + m_fDuration = 2.f; + + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pWandTrail->SetDissolve(true); + }); + + return S_OK; +} + +void CAccioSide::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CAccioSide::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return; + + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + // 파티클생성이 막히면 실행되지 않음 + //if (m_isParticleEnd == false) + // m_pWandParticle->Get_Component()->Set_WorldMatrix(pWand->Get_WorldMatrix()); + + // 트레일이 종료되면 위치를 고정함 + _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); + +} + +void CAccioSide::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CAccioSide::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + CWand* pWand = static_cast(m_pOwner); + + if (pWand == nullptr) + return E_FAIL; + + //m_pWandParticle->Set_Visible(true); + m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고 + + m_pWandLight->Set_Visible(true); + + /*트레일 초기화 */ + m_pWandTrail->Set_Visible(true); + m_isTrailEnd = false; + m_pWandTrail->Get_Component()->Reset_Trail(); + + /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ + + m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + + return S_OK; +} + +HRESULT CAccioSide::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CAccioSide::Ready_Child() +{ + return S_OK; +} + +CAccioSide* CAccioSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CAccioSide* pInstance = new CAccioSide(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CAccioSide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CAccioSide::Clone(void* pArg, CGameObject* pOwner) +{ + CAccioSide* pInstance = new CAccioSide(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CAccioSide"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CAccioSide::OnCollision(CGameObject* pOther, void* pDesc) +{ + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + +} + +void CAccioSide::Free() +{ + __super::Free(); + + + Safe_Release(m_pWandLight); + Safe_Release(m_pWandTrail); + //Safe_Release(m_pWandParticle); +} +#ifdef _DEBUG + +void CAccioSide::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CAccioSide::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp index 80c05ab5d..8450f9a04 100644 --- a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp +++ b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp @@ -79,13 +79,15 @@ void CAvadakedavra::Late_Update(_float fTimeDelta) _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); - + if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); - - OnCollision(this, &CollisionInfo); + if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + { + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); + OnCollision(this, &CollisionInfo); + } } } diff --git a/Jusin154_Team3D/Client/Private/Bombard.cpp b/Jusin154_Team3D/Client/Private/Bombard.cpp index 49c57d782..251347135 100644 --- a/Jusin154_Team3D/Client/Private/Bombard.cpp +++ b/Jusin154_Team3D/Client/Private/Bombard.cpp @@ -99,9 +99,16 @@ void CBombard::Late_Update(_float fTimeDelta) if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f , true); - OnCollision(this, &CollisionInfo); + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + { + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f, true); + OnCollision(this, &CollisionInfo); + } + } } } diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp index b398b360b..c35330de7 100644 --- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp @@ -524,6 +524,70 @@ HRESULT CBroomRaceManager::Load_RaceRing() HRESULT CBroomRaceManager::Load_Balloons() { + //tinyxml2::XMLDocument xmlDoc; + + //string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml"; + + //if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + // return E_FAIL; + + // Desc.pBroomRaceManager = this; + + // /* Transform */ + // auto* Rotation = Object->FirstChildElement("Scale"); + // Rotation->QueryFloatAttribute("x", &Desc.vScale.x); + // Rotation->QueryFloatAttribute("y", &Desc.vScale.y); + // Rotation->QueryFloatAttribute("z", &Desc.vScale.z); + + // auto* Scale = Object->FirstChildElement("Rotation"); + // Scale->QueryFloatAttribute("x", &Desc.vRotation.x); + // Scale->QueryFloatAttribute("y", &Desc.vRotation.y); + // Scale->QueryFloatAttribute("z", &Desc.vRotation.z); + + // auto* Position = Object->FirstChildElement("Position"); + // Position->QueryFloatAttribute("x", &Desc.vPosition.x); + // Position->QueryFloatAttribute("y", &Desc.vPosition.y); + // Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_RING, &Desc))) + // return E_FAIL; + //} + + //tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Balloon"); + + //if (nullptr == root) + //{ + // MSG_BOX("Failed to Find root"); + // return S_OK; + //} + + //for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) + //{ + // CMapElement_Balloon::BALLOON_DESC Desc = {}; + + // auto* Value = Object->FirstChildElement("Value"); + // Value->QueryBoolAttribute("isFloating", &Desc.isFloating); + // Value->QueryUnsignedAttribute("DiffuseIndex", &Desc.iDiffuseIndex); + + // /* Transform */ + // auto* Rotation = Object->FirstChildElement("Scale"); + // Rotation->QueryFloatAttribute("x", &Desc.vScale.x); + // Rotation->QueryFloatAttribute("y", &Desc.vScale.y); + // Rotation->QueryFloatAttribute("z", &Desc.vScale.z); + + // auto* Scale = Object->FirstChildElement("Rotation"); + // Scale->QueryFloatAttribute("x", &Desc.vRotation.x); + // Scale->QueryFloatAttribute("y", &Desc.vRotation.y); + // Scale->QueryFloatAttribute("z", &Desc.vRotation.z); + + // auto* Position = Object->FirstChildElement("Position"); + // Position->QueryFloatAttribute("x", &Desc.vPosition.x); + // Position->QueryFloatAttribute("y", &Desc.vPosition.y); + // Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc))) + // return E_FAIL; + //} tinyxml2::XMLDocument xmlDoc; string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml"; diff --git a/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp index b973b2653..846adfb5c 100644 --- a/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp +++ b/Jusin154_Team3D/Client/Private/CallBack_Troll_HitReport.cpp @@ -57,6 +57,8 @@ void CCallBack_Troll_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit) if (pOwner->Get_AnimInfo(STATEANIM::RUSH_LOOP).first == iAnimIndex) { CFSM* pFSM = pOwner->Get_Component(); pFSM->Change_State(FSMSTATE::STUN); + + /**/ } } if (vWorldNormal.y > 0) { diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp index d50693a07..a16c9ed45 100644 --- a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp +++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp @@ -455,7 +455,7 @@ CCamPosition_Shoulder* CCamPosition_Shoulder::Create(ID3D11Device* pDevice, ID3D } CCamPosition_Shoulder* CCamPosition_Shoulder::Clone(void* pArg, class CGameObject* pOWner) { - CCamPosition_Shoulder* pInstance = new CCamPosition_Shoulder(*this); + CCamPosition_Shoulder* pInstance = new CCamPosition_Shoulder(*this); pInstance->m_pOwner = pOWner; if (FAILED(pInstance->Initialize(pArg))) { diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp index dd8799a7d..d7289191b 100644 --- a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp +++ b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp @@ -44,7 +44,7 @@ void CCamPosition_Target::Set_WorldPostion(_vector vPos) _bool CCamPosition_Target::IsStalking() { - return nullptr == m_pStalkingTarget; + return nullptr != m_pStalkingTarget; } void CCamPosition_Target::Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix) @@ -58,6 +58,12 @@ void CCamPosition_Target::Stalking_Target(CUnit* pStalkingTarget, const _float4x void CCamPosition_Target::Stop_Stalking() { SAFE_RELEASE(m_pStalkingTarget); + m_pTargetSocketMatrix = nullptr; +} + +_matrix CCamPosition_Target::Get_XMWorldMatrix() +{ + return m_pTransformCom->Get_XMWorldMatrix(); } HRESULT CCamPosition_Target::Initialize_Prototype() diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp index 22cbcd485..57ced80fd 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp @@ -12,17 +12,6 @@ CCamera_Cinematic::CCamera_Cinematic(const CCamera_Cinematic& rhs) : CCamera(rhs void CCamera_Cinematic::Priority_Update(_float fTimeDelta) { -#ifdef _DEBUG - if (m_pGameInstance->Key_Pressing(DIK_HOME)) { - if (m_pGameInstance->Key_Up(DIK_END)) { - _string strCutSceneName = "RanrokIntro"; - m_pInfoInstance->Active_Event(strCutSceneName); - } - } -#endif // _DEBUG - if (false == m_bActive) { - return; - } if (false == m_bIsCurrentTransition) { m_pLookTargetPart->Priority_Update(fTimeDelta); m_pFollowTargetPart->Priority_Update(fTimeDelta); @@ -32,8 +21,11 @@ void CCamera_Cinematic::Priority_Update(_float fTimeDelta) else { Transition(fTimeDelta); } - m_bActive = true; Update_LerpTimer(fTimeDelta); + if (false == m_bActive) { + return; + } + __super::Bind_Matrices(); } @@ -49,10 +41,62 @@ void CCamera_Cinematic::Update(_float fTimeDelta) void CCamera_Cinematic::Late_Update(_float fTimeDelta) { if (false == m_bActive) { +#ifdef _DEBUG + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this); +#endif // _DEBUG return; } + else { + } } -HRESULT CCamera_Cinematic::Render() { return S_OK; } +HRESULT CCamera_Cinematic::Render() { +#ifdef _DEBUG + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + RENDER eType = m_pGameInstance->Get_CurrentRenderPass(); + if (RENDER::NONBLEND == eType) { + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::WIREFRAME)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + } + else if (RENDER::NONLIGHT == eType) { + + m_Batch->Begin(); + + _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW); + _matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ); + + _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x0000ff, 1.f); + m_pSubShape->Draw(m_pLookTargetPart->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true); + vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x00ff00, 1.f); + m_pSubShape->Draw(m_pFollowTargetPart->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true); + + m_Batch->End(); + + + + } +#endif // _DEBUG + return S_OK; +} + + void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo) { if (true == m_bEnable_TransitionLerp) { @@ -70,12 +114,12 @@ void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta) { - if (false == m_bActive) { - return; - } Lerp_Translation(fTimeDelta); Lerp_Rotation(fTimeDelta); Lerp_FovY(fTimeDelta); + if (false == m_bActive) { + return; + } } void CCamera_Cinematic::Set_Priority(_uint iPriority) @@ -101,6 +145,13 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket) case TIMESOCKET_FUNC::BIND_CAMERA: m_pGameInstance->Bind_Camera(NEXT_LEVEL, pContents->wstrKeyName, true); break; + case TIMESOCKET_FUNC::TELEPORTATION: + { + m_pTransformCom->Set_WorldMatrix(pContents->pxTransform); + m_pFollowTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION)); + m_pLookTargetPart->Set_WorldPostion(m_pTransformCom->Get_State(STATE::POSITION) + m_pTransformCom->Get_State(STATE::LOOK)); + Clear_Lerp_Translation(); + } break; case TIMESOCKET_FUNC::TRANSLATION: { m_pFollowTargetPart->Set_WorldPostion(XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f)); @@ -123,13 +174,22 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket) case TIMESOCKET_FUNC::LOOK_AT: { CUnit* pUnit = (CUnit*)pContents->pOtherTarget; - Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str())); - //Set_LookTarget(pUnit, nullptr); + Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str())); }break; case TIMESOCKET_FUNC::DONT_LOOK_AT: + { + m_pLookTargetPart->Stop_Stalking(); + }break; + case TIMESOCKET_FUNC::FOLLOW: { CUnit* pUnit = (CUnit*)pContents->pOtherTarget; - Set_FollowTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str())); + const _char* pName = pContents->vParam_12.c_str(); + const _float4x4* pSocketMatrix = pUnit->Get_SocketMatrixPtr(pName); + Set_FollowTarget(pUnit, pSocketMatrix); + }break; + case TIMESOCKET_FUNC::DONT_FOLLOW: + { + m_pFollowTargetPart->Stop_Stalking(); }break; case TIMESOCKET_FUNC::ZOOM_IN: { @@ -172,6 +232,12 @@ HRESULT CCamera_Cinematic::Initialize(void* pArg) return E_FAIL; } + +#ifdef _DEBUG + m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.25f, 12, false, false)); + + m_Batch = make_unique>(m_pContext); +#endif // _DEBUG return S_OK; } HRESULT CCamera_Cinematic::Ready_Components(void* pArg) @@ -179,7 +245,18 @@ HRESULT CCamera_Cinematic::Ready_Components(void* pArg) if (FAILED(__super::Ready_Components(pArg))) { return E_FAIL; } +#ifdef _DEBUG + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Camera_Model"), + reinterpret_cast(&m_pModelCom)))) { + return E_FAIL; + } + + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } +#endif // _DEBUG return S_OK; } @@ -198,7 +275,22 @@ HRESULT CCamera_Cinematic::Ready_SubPart() HRESULT CCamera_Cinematic::Bind_ShaderResources() { +#ifdef _DEBUG + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } +#endif // _DEBUG return S_OK; + } void CCamera_Cinematic::Lerp_Translation(_float fTimeDelta) { @@ -351,7 +443,10 @@ CGameObject* CCamera_Cinematic::Clone(void* pArg, CGameObject* pOwner) void CCamera_Cinematic::Free() { __super::Free(); - +#ifdef _DEBUG + SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pShaderCom); +#endif // _DEBUG SAFE_RELEASE(m_pLookTargetPart); SAFE_RELEASE(m_pFollowTargetPart); } @@ -361,11 +456,21 @@ void CCamera_Cinematic::Free() void CCamera_Cinematic::Describe_Entity() { GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG); + _int iPriority = m_iPriority; + size_t iAddress = (size_t)this; + _string strHeader = "CINEMATIC_CAMERA_Priority##" + to_string(iAddress); + if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) { + m_iPriority = iPriority; + } if (GUI::CollapsingHeader("Camera_Cinematic_Describe")) { if (GUI::SmallButton("Trigger_RanrokIntro")) { _string strCutSceneName = "RanrokIntro"; m_pInfoInstance->Active_Event(strCutSceneName); } + if (GUI::SmallButton("Trigger_CarriageIntro")) { + _string strCutSceneName = "CarriageIntro"; + m_pInfoInstance->Active_Event(strCutSceneName); + } m_pTransformCom->Describe_Entity(); GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z); GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z); diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp index 78e8930ea..17ab6c973 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp @@ -197,6 +197,12 @@ void CCamera_Debug::Describe_Entity() } GUI::End(); GUI::Begin("CAMERA"); + _int iPriority = m_iPriority; + size_t iAddress = (size_t)this; + _string strHeader = "DEBUG_CAMERA_Priority##" + to_string(iAddress); + if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) { + m_iPriority = iPriority; + } if (GUI::CollapsingHeader("DebugCamera")){ m_pTransformCom->Describe_Entity(); } diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp index a36b464d9..184c98758 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp @@ -247,6 +247,12 @@ void CCamera_Gaze::Free() void CCamera_Gaze::Describe_Entity() { GUI::Begin("CAMERA", 0, IMGUI_GLOBAL_BEGIN_FLAG); + _int iPriority = m_iPriority; + size_t iAddress = (size_t)this; + _string strHeader = "GAZE_CAMERA_Priority##" + to_string(iAddress); + if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) { + m_iPriority = iPriority; + } if (GUI::CollapsingHeader("Camera_Gaze_Describe")) { m_pTransformCom->Describe_Entity(); GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z); diff --git a/Jusin154_Team3D/Client/Private/Camera_Model.cpp b/Jusin154_Team3D/Client/Private/Camera_Model.cpp index 8399307da..5c7a52e09 100644 --- a/Jusin154_Team3D/Client/Private/Camera_Model.cpp +++ b/Jusin154_Team3D/Client/Private/Camera_Model.cpp @@ -94,26 +94,9 @@ HRESULT CCamera_Model::Render() #ifdef _DEBUG m_Batch->Begin(); - _vector vRight = m_pTransformCom->Get_State(STATE::RIGHT); - _vector vUp = m_pTransformCom->Get_State(STATE::UP); - _vector vLook = m_pTransformCom->Get_State(STATE::LOOK); - _vector vPosition = m_pTransformCom->Get_State(STATE::POSITION); _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW); _matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ); - static _float fLength = 1.f; - GUI::DragFloat("Length", &fLength, 0.1f, 0.1f, 10.f, "%.1f"); - m_Batch->DrawLine( - VertexPositionColor(vPosition, DirectX::Colors::GhostWhite), - VertexPositionColor(vPosition + vRight * fLength, DirectX::Colors::Green) - ); - m_Batch->DrawLine( - VertexPositionColor(vPosition, DirectX::Colors::GhostWhite), - VertexPositionColor(vPosition + vUp * fLength, DirectX::Colors::Red) - ); - m_Batch->DrawLine( - VertexPositionColor(vPosition, DirectX::Colors::GhostWhite), - VertexPositionColor(vPosition + vLook * fLength, DirectX::Colors::Blue) - ); + _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0000, 1.f); _matrix WorldMatrix; WorldMatrix = XMLoadFloat4x4(m_CtrlCam); diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp index 57383a131..0870fa0bb 100644 --- a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp +++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp @@ -9,6 +9,7 @@ #include "TimeSocket.h" #include "Camera_Cinematic.h" #include "Ranrok.h" +#include "ThestralCarriage.h" CCutSceneInfo::CCutSceneInfo() { @@ -22,7 +23,7 @@ void CCutSceneInfo::Update(_float fTimeDelta) Update_ActiveEvents(fTimeDelta); } -void CCutSceneInfo::Change_Level() +void CCutSceneInfo::Load_CutScenes() { LEVEL eLevel = (LEVEL)m_pGameInstance->Get_NextLevelID(); switch (eLevel) @@ -33,7 +34,7 @@ void CCutSceneInfo::Change_Level() break; case LEVEL::FIELD: Clear_AllEvents(); - Ready_GameplayCutScenes(); + Ready_FieldCutScenes(); break; default: Clear_ActiveEvents(); @@ -169,6 +170,9 @@ HRESULT CCutSceneInfo::Clear_AllEvents() } HRESULT CCutSceneInfo::Ready_GameplayCutScenes() { + { + Load_CutSceneXML("../Bin/Resources/Data/CutScene/CarriageIntro.xml"); + } return S_OK; } HRESULT CCutSceneInfo::Ready_FieldCutScenes() @@ -353,7 +357,7 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path) } TimeLine* pTimeLine = new TimeLine(); - tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement("RanrokIntro"); + tinyxml2::XMLElement* pContentsNode = doc.FirstChildElement(); if (!pContentsNode) { return; } @@ -368,11 +372,13 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path) { SOCKETCONTENTS SocketContents = {}; + _float fStartPosition = 0.f; SocketContents.fRatio = 0.f; - _float fStartPosition = 0; pSocketNode->QueryFloatAttribute("fStartPosition", &fStartPosition); SocketContents.fRatio = CMyTools::Saturate(fStartPosition / pTimeLine->m_vTimer.y); + // Info + _bool bUseSystem = false; tinyxml2::XMLElement* pInfoNode = pSocketNode->FirstChildElement("Info"); if (pInfoNode != nullptr) { @@ -422,9 +428,28 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path) SocketContents.pEventTarget = pEventTarget; SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); }; } + else if (strcmp(pTargetText, "ACTOR_CARRIAGE") == 0) + { + CThestralCarriage* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_ITEM)->Get_Object(); + SocketContents.pEventTarget = pEventTarget; + SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); }; + } + else if (strcmp(pTargetText, "SYSTEM") == 0) + { + bUseSystem = true; + } + assert((nullptr != SocketContents.pEventTarget) || bUseSystem); + assert((nullptr != SocketContents.funcEvent) || bUseSystem); } } + // -------- vFlags / Param_10 / Param_11 / Param_12 ---------- + ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags); + ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10); + ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11); + const _char* pStringParma = pSocketNode->FirstChildElement("Param_12")->FirstChildElement("string")->Attribute("tag"); + SocketContents.vParam_12 = pStringParma; + // -------- Param_0 ---------- tinyxml2::XMLElement* pParam0Node = pSocketNode->FirstChildElement("Param_0"); if (nullptr != pParam0Node) @@ -445,10 +470,17 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path) SocketContents.wstrLayerName = CMyTools::ToWstring(pLayerNameText); SocketContents.wstrKeyName = CMyTools::ToWstring(pTypeIdText); - if (string_view(pTypeIdText) == "Ranrok") + if (string_view(pTypeIdText) == "ACTOR_RANROK") { - SocketContents.pOtherTarget = - m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object(); + SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object(); + } + else if (string_view(pTypeIdText) == "ACTOR_PLAYER") + { + SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object(); + } + else if (string_view(pTypeIdText) == "ACTOR_CARRIAGE") + { + SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object(); } else if (string_view(pTypeIdText) == "CAMERA_CINEMATIC") { @@ -458,28 +490,49 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path) { SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_SHOULDER); } - - break; - } - + assert(nullptr != SocketContents.pOtherTarget); + }break; case TIMESOCKET_PARAM::TRANSFORM: { tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform"); ReadPxTransform(pTransformNode, SocketContents.pxTransform); - break; - } + + }break; + case TIMESOCKET_PARAM::NOT_USE: + { + if (true == bUseSystem) { + switch (SocketContents.eTypeFunc) + { + case TIMESOCKET_FUNC::STOP_CINEMATIC: + SocketContents.funcEvent = [&](CTimeSocket& Socket) { m_pInfoInstance->DeActive_ActiveEvent(Socket.m_Contents.vParam_12); }; + break; + case TIMESOCKET_FUNC::RESET_ENVIRONMENT: + SocketContents.funcEvent = [&](CTimeSocket& Socket) { m_pGameInstance->ResetLevel_Environment(); }; + break; + case TIMESOCKET_FUNC::SET_VOLUMETRIC: + { + tinyxml2::XMLElement* pTransformNode = pParam0Node->FirstChildElement("Transform"); + ReadPxTransform(pTransformNode, SocketContents.pxTransform); + SocketContents.funcEvent = [&](CTimeSocket& Socket) { + if (Socket.m_Contents.vFlags.b[0]) { + m_pGameInstance->Setting_Volumetirc( + Socket.m_Contents.pxTransform.q.x, Socket.m_Contents.pxTransform.q.y, Socket.m_Contents.pxTransform.q.z, Socket.m_Contents.pxTransform.q.w, + Socket.m_Contents.pxTransform.p.x); + } + }; + }break; + default: + break; + } + assert(nullptr != SocketContents.funcEvent); + } + }break; case TIMESOCKET_PARAM::END: default: break; } } - // -------- vFlags / Param_10 / Param_11 / Param_12 ---------- - ReadFlags16(pSocketNode->FirstChildElement("vFlags"), SocketContents.vFlags); - ReadUInt4(pSocketNode->FirstChildElement("Param_10"), SocketContents.vParam_10); - ReadFloat4(pSocketNode->FirstChildElement("Param_11"), SocketContents.vParam_11); - const _char* pStringParma = pSocketNode->FirstChildElement("Param_12")->FirstChildElement("string")->Attribute("tag"); - SocketContents.vParam_12 = pStringParma; CTimeSocket* pSocket = CTimeSocket::Create(&SocketContents); if (!pSocket) { continue; @@ -494,7 +547,7 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path) pTriggerNode->QueryFloatAttribute("X", &Desc.vPosition_Radius.x); pTriggerNode->QueryFloatAttribute("Y", &Desc.vPosition_Radius.y); pTriggerNode->QueryFloatAttribute("Z", &Desc.vPosition_Radius.z); - pTimeLine->m_pTriggerBox = CTriggerBox::Create(&Desc); + pTimeLine->m_pTriggerBox = CTriggerBox::Create(m_pDevice, m_pContext, &Desc); } } diff --git a/Jusin154_Team3D/Client/Private/Decendo.cpp b/Jusin154_Team3D/Client/Private/Decendo.cpp index 4ea08497c..0247ff623 100644 --- a/Jusin154_Team3D/Client/Private/Decendo.cpp +++ b/Jusin154_Team3D/Client/Private/Decendo.cpp @@ -24,7 +24,6 @@ CDecendo::CDecendo(const CDecendo& rhs) HRESULT CDecendo::Initialize_Prototype() { - if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo"))) return E_FAIL; @@ -40,11 +39,11 @@ HRESULT CDecendo::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; + if (FAILED(Create_Effect())) return E_FAIL; m_iSkillType = ENUM_CLASS(SKILL_TYPE::DESCENDO); - m_wstrEffectName = L"Decendo"; m_pProjectile_Blur = Get_PartObject("Decendo_Proj_Blur"); @@ -90,7 +89,6 @@ void CDecendo::Update(_float fTimeDelta) m_pProjectile_Blur->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f); m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f); - } void CDecendo::Late_Update(_float fTimeDelta) @@ -98,19 +96,25 @@ void CDecendo::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - Get_PartObject()->Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); + Get_PartObject()->Oneside_Rope_Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion()); _vector vDir = XMLoadFloat4(&m_vEndPos) - XMLoadFloat4(&m_vStartPos); - if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); - OnCollision(this, &CollisionInfo); + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + { + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); + OnCollision(this, &CollisionInfo); + } + } } __super::Late_Update(fTimeDelta); @@ -129,12 +133,15 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg) CPartObject* pCircle0 = Get_PartObject(); CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); + CPartObject* pDecendo_Wand_Line = Get_PartObject("Decendo_Wand_Line"); pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pDecendo_Wand_Line->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pCircle0->Set_Visible(true); pWandLight->Set_Visible(true); + pDecendo_Wand_Line->Set_Visible(true); /* 초기 위치 저장 */ _vector vStartPos = m_pOwner->Get_WorldPostion(); @@ -148,6 +155,7 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 비지블 */ m_pProjectile->Set_Visible(true); m_pProjectile_Blur->Set_Visible(true); + //m_pProjectile_Fire->Set_Visible(true); /*트레일 초기화 */ Get_PartObject()->Set_Visible(true); @@ -158,11 +166,9 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg) XMStoreFloat3(&m_vCameraLook, vDirection); - - { /* 대상 위치 지정 */ - m_pInfoInstance->Get_LockOnInfo(m_Info); + if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) { XMStoreFloat4(&m_vTargetPos, Get_LockOnPos(m_Info)); @@ -258,48 +264,52 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc) ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); - _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + CCharacter_Controller* pCCT = CollisionDesc.pObject->Get_Component(); + _vector vFootPos = {}; + _vector vHeadPos = {}; + _vector vPos = {}; - for (auto& pPair : m_PartObjects) + if (pCCT != nullptr) { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } + vFootPos = pCCT->Get_FootPosition(); + vPos = pCCT->Get_Position(); + vHeadPos = pCCT->Get_HeadPosition(); + CPartObject* pDecendo_Rock_PT = Get_PartObject("Decendo_Rock_PT"); + CPartObject* pDecendo_Red_Blur = Get_PartObject("Decendo_Red_Blur"); + CPartObject* pDecendo_Down = Get_PartObject("Decendo_Down"); + CPartObject* pDecendo_Ring = Get_PartObject("Decendo_Ring"); + CPartObject* pDecendo_Smoke = Get_PartObject("Decendo_Smoke"); + + pDecendo_Rock_PT->Set_Visible(true); + pDecendo_Rock_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + pDecendo_Red_Blur->Set_Visible(true); + pDecendo_Red_Blur->Get_Component()->Set_State(STATE::POSITION, vPos); + + pDecendo_Down->Set_Visible(true); + pDecendo_Down->Get_Component()->Set_State(STATE::POSITION, vHeadPos); + + pDecendo_Ring->Set_Visible(true); + pDecendo_Ring->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + pDecendo_Smoke->Set_Visible(true); + pDecendo_Smoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + + } + m_pProjectile_Blur->Set_Visible(false); m_pProjectile->Set_Visible(false); - - CWand* pWand = static_cast(m_pOwner); - - if (pWand == nullptr) - return; - - CPartObject* pCircle0 = Get_PartObject(); - CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); - - - pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - pCircle0->Set_Visible(false); - pWandLight->Set_Visible(false); - - _vector vPlayerPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); - - - - Get_PartObject("Decendo_Down")->Get_Component()->LookAt(vPlayerPos); - Get_PartObject("Decendo_Smoke")->Get_Component()->LookAt(vPlayerPos); - - - Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); Get_PartObject()->Set_Visible(false); + } void CDecendo::Free() @@ -308,12 +318,11 @@ void CDecendo::Free() SAFE_RELEASE(m_pProjectile_Blur); SAFE_RELEASE(m_pProjectile); - } #ifdef _DEBUG void CDecendo::Describe_Entity() { - GUI::Begin("DECENDO", 0, IMGUI_GLOBAL_BEGIN_FLAG); + GUI::Begin("DECENDO"); GUI::InputFloat("Speed", &m_fLinearSpeed); diff --git a/Jusin154_Team3D/Client/Private/DecendoSide.cpp b/Jusin154_Team3D/Client/Private/DecendoSide.cpp index 481332cbf..eac181609 100644 --- a/Jusin154_Team3D/Client/Private/DecendoSide.cpp +++ b/Jusin154_Team3D/Client/Private/DecendoSide.cpp @@ -44,21 +44,19 @@ HRESULT CDecendoSide::Initialize(void* pArg) m_pWandLight = Get_PartObject("Wand_Light_R"); m_pWandTrail = Get_PartObject(); + m_pWand_Fire = Get_PartObject("Wand_Fire"); SAFE_ADDREF(m_pWandLight); SAFE_ADDREF(m_pWandTrail); + SAFE_ADDREF(m_pWand_Fire); m_fDuration = 2.f; - m_Events.emplace(0.6f, [&]() { - CWand* pWand = static_cast(m_pOwner); - if (pWand == nullptr) - return; - - m_isTrailEnd = true; - - XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + m_Events.emplace(0.8f, [&]() { + m_isParticleEnd = true; + m_pWandTrail->SetDissolve(true); + m_pWand_Fire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); }); return S_OK; @@ -87,6 +85,9 @@ void CDecendoSide::Update(_float fTimeDelta) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + if(m_isParticleEnd == false) + m_pWand_Fire->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); m_pWandTrail->Trail_Update(TrailMat, fTimeDelta); @@ -114,17 +115,20 @@ HRESULT CDecendoSide::Pre_Setting(CGameObject* pObject, void* pArg) return E_FAIL; m_isTrailEnd = false; + m_isParticleEnd = false; m_pWandLight->Set_Visible(true); + m_pWand_Fire->Set_Visible(true); /*트레일 초기화 */ m_pWandTrail->Set_Visible(true); + m_pWandTrail->Get_Component()->Reset_Trail(); /*_vector pPos = pPlayer->Get_WandPos().r[3];*/ m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - + m_pWand_Fire->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); return S_OK; } @@ -182,6 +186,8 @@ void CDecendoSide::Free() Safe_Release(m_pWandLight); Safe_Release(m_pWandTrail); + Safe_Release(m_pWand_Fire); + } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp index ab0a59d8b..a438c9f5c 100644 --- a/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Dialogue_Panel.cpp @@ -150,7 +150,7 @@ void CDialogue_Panel::Change_Map() CLayer* pDuelistLayer = m_pGameInstance->Get_Layer(CURRENT_LEVEL, LAYER_DUELIST); if (nullptr != pDuelistLayer) { CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object(); - pDuelist->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1016.f, 1.f)); + pDuelist->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1015.f, 1.f)); pDuelist->Set_Battle(true); } @@ -158,9 +158,10 @@ void CDialogue_Panel::Change_Map() if (nullptr != pLayer) { CHuman_Duelist* pDuelist = pDuelistLayer->Get_Object(); CPlayer* pPlayer = pLayer->Get_Object(); - pPlayer->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1008.f, 1.f)); + _vector vOriginPos = pPlayer->Get_Component()->Get_Position(); + pPlayer->Get_Component()->Set_Position(XMVectorSet(1007.23f, 2.f, 1010.f, 1.f)); pPlayer->Set_Battle(true); - + pPlayer->Set_OriginPos(vOriginPos); _vector vPos = pPlayer->Get_WorldPostion(); _vector vForward = XMVectorSet(0.f, 0.f, 1.f, 0.f); @@ -184,7 +185,6 @@ void CDialogue_Panel::Change_Map() } } #endif // Bin - } void CDialogue_Panel::Priority_Update(_float fTimeDelta) diff --git a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp index 505c1e6ea..8c019cd6e 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_Levioso.cpp @@ -92,9 +92,16 @@ void CDuelist_Levioso::Late_Update(_float fTimeDelta) _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.002f); - OnCollision(this, &CollisionInfo); + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + { + ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f); + OnCollision(this, &CollisionInfo); + } + } } __super::Late_Update(fTimeDelta); diff --git a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp index 033f89984..1169c6e4b 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_NormalJap.cpp @@ -129,9 +129,19 @@ void CDuelist_NormalJap::Late_Update(_float fTimeDelta) if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = m_pProjectile->Get_WorldPostion(); - ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f); - OnCollision(this, &CollisionInfo); + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + { + ON_COLLISION_INFO CollisionInfo = MonsterSweepTarget(vStartPos, vEndPos, 0.02f); + OnCollision(this, &CollisionInfo); + } + else { + int a = 0; + } + } } __super::Late_Update(fTimeDelta); diff --git a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp index 8259220b0..bc7c74009 100644 --- a/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Duelist_Protego.cpp @@ -62,8 +62,9 @@ void CDuelist_Protego::Priority_Update(_float fTimeDelta) void CDuelist_Protego::Update(_float fTimeDelta) { - if (m_bVisible == false) + if (m_bVisible == false) { return; + } m_pSphere->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); m_pSphereLay->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); @@ -101,6 +102,12 @@ void CDuelist_Protego::Late_Update(_float fTimeDelta) } +void CDuelist_Protego::Set_Visible(_bool bVisible) +{ + m_bVisible = true; + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), CURRENT_LEVEL); +} + HRESULT CDuelist_Protego::Pre_Setting(CGameObject* pObject, void* pArg) { if (FAILED(__super::Pre_Setting(pObject, nullptr))) @@ -196,11 +203,13 @@ void CDuelist_Protego::OnCollision(CGameObject* pOther, void* pDesc) { case ENUM_CLASS(SKILL_TYPE::LEVIOSO): m_pOwner->OnCollision(pOther, CollisionDesc); + m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; case ENUM_CLASS(SKILL_TYPE::STUPEFY): m_pOwner->OnCollision(pOther, CollisionDesc); + m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp index 416db96f1..a39378b13 100644 --- a/Jusin154_Team3D/Client/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp @@ -180,7 +180,7 @@ void CEffectObject::FollowParents(const _float4x4* pParentsMat,const _float4x4* m_pParentMatrix = pParentsMat; } - m_bVisible = true; + Set_Visible(true); } diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp index 1fd0ae662..01ab839fb 100644 --- a/Jusin154_Team3D/Client/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp @@ -20,6 +20,7 @@ #include "AvadakedavraSide.h" #include "StupefySide.h" #include "TransformationSide.h" +#include "AccioSide.h" #include "NomalJapSide.h" #include "Lumos.h" @@ -30,6 +31,10 @@ #include "Troll_Rush_Hit.h" #include "Troll_Nomal_Smoke.h" #include "TrollSwing.h" +#include "Troll_Rush.h" +#include "Troll_Shout.h" +#include "Troll_Self_Hit.h" + #include "Goblin_Protego.h" #include "Goblin_Attack.h" #include "Mage_Down_Attack.h" @@ -92,6 +97,8 @@ HRESULT CEffectPool::Initialize(void* pArg) if (FAILED(Ready_Components())) { return E_FAIL; } + m_isActiveEffectCreate = true; + m_isActiveMonsterEffectCreate = true; // 디버그 모드일 때 #ifdef _DEBUG #ifdef gimch @@ -115,31 +122,6 @@ HRESULT CEffectPool::Initialize(void* pArg) m_isActiveMonsterEffectCreate = true; #endif // #endif - //// 디버그 모드가 아닐 때, 릴리즈모드에 -#ifndef _DEBUG -#ifdef gimch - m_isActiveEffectCreate = true; - m_isActiveMonsterEffectCreate = true; -#endif // gimch -#ifdef Bin - m_isActiveEffectCreate = true; - m_isActiveMonsterEffectCreate = true; -#endif // -#ifdef 진우 - m_isActiveEffectCreate = true; - m_isActiveMonsterEffectCreate = true; -#endif // -#ifdef 기무리 - m_isActiveEffectCreate = true; - m_isActiveMonsterEffectCreate = true; -#endif // -#ifdef 나 - m_isActiveEffectCreate = true; - m_isActiveMonsterEffectCreate = true; -#endif // -#endif // !_DEBUG - - if (m_isActiveEffectCreate) { if (FAILED(Ready_Effect())) @@ -521,6 +503,14 @@ HRESULT CEffectPool::Ready_Effect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::ACCIO_SIDE, 3, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CAccioSide* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; return S_OK; } @@ -782,7 +772,36 @@ HRESULT CEffectPool::Ready_MonsterEffect() return pEffect; } ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::TROLL_SHOUT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CTroll_Shout* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + + if (FAILED(Create_Effect(SKILL_TYPE::TROLL_RUSH, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CTroll_Rush* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::TROLL_SELF_HIT, 5, g_iStaticLevel, g_iStaticLevel, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CTroll_Self_Hit* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp index 89f5f376a..0490cc895 100644 --- a/Jusin154_Team3D/Client/Private/Effect_Container.cpp +++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp @@ -565,7 +565,7 @@ HRESULT CEffect_Container::Pre_Setting(CGameObject* pObject, void* pArg) m_fAccTime = 0.f; m_fPreAccTime = 0.f; - m_bVisible = true; + Set_Visible(true); m_isCollisionEnter = false; m_bHit = false; diff --git a/Jusin154_Team3D/Client/Private/Elf.cpp b/Jusin154_Team3D/Client/Private/Elf.cpp new file mode 100644 index 000000000..b0414f746 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Elf.cpp @@ -0,0 +1,628 @@ +#include "pch.h" +#include "Elf.h" + +#include "GameInstance.h" +#include "InfoInstance.h" +#include "Player.h" +#include "NPCInteraction.h" +#include "CallBack_NonPlayable_Behavior.h" +#include "CallBack_NonPlayable_HitReport.h" +#include "Layer.h" + +CElf::CElf(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CUnit(pDevice, pContext) +{ +} + +CElf::CElf(const CElf& Prototype) + : CUnit(Prototype), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ +} + +HRESULT CElf::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CElf::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + ELFDESC* pDesc = static_cast(pArg); + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + Load_AnimXML("../Bin/Resources/Data/AnimList/Elf.xml"); + + Load_ElfPos("../Bin/Resources/Data/ElfPos/ElfPos.xml"); + + _vector vPos = XMLoadFloat4(&pDesc->vPos); + m_pTransformCom->Set_State(STATE::POSITION, vPos); + m_pCharacter_Controller->Set_Position(vPos); + m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ)); + + m_pModelCom->Set_AnimationIndex(m_Anims[m_iCurrentFlow].AnimIndex, false); + + m_pCallBack_Behavior->Initialize(m_pCharacter_Controller); + m_pCallBack_HitReport->Initialize(m_pCharacter_Controller); + + return S_OK; +} + +void CElf::Priority_Update(_float fTimeDelta) +{ + m_pTransformCom->RewindMomentum(); + m_iEntered -= 1; + if (m_iEntered < 0) { + m_iEntered = 0; + } + __super::Priority_Update(fTimeDelta); +} + +void CElf::Update(_float fTimeDelta) +{ + MoveTo(fTimeDelta); + + Set_Anim(); + + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); + + __super::Update(fTimeDelta); +#ifdef _DEBUG + Describe_Entity(); +#endif // _DEBUG + { // 세트 + m_pCallBack_HitReport->BeginFrame(); + m_pCharacter_Controller->Move(fTimeDelta); + m_pCallBack_HitReport->Set_CurrentSlop(); + } + + m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true); + + _vector vCurrentPos = Get_WorldPostion(); + pair pairTarget = m_pInfoInstance->Get_NearestPlayerAlly(vCurrentPos); + if (nullptr != pairTarget.first) { + Set_Target(*pairTarget.first, *pairTarget.second); + } + if (nullptr != m_pTarget && m_pTarget->isDead()) { + SAFE_RELEASE(m_pTarget); + m_fTargetDistance = { FLT_MAX }; + } +} + +void CElf::Late_Update(_float fTimeDelta) +{ + m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition()); + + m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true); + + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + + Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())); + + + __super::Late_Update(fTimeDelta); +} + +HRESULT CElf::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pShaderCom->Bind_Matrices( + "g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size() + ))) + { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + if (FAILED(Bind_ShaderParameters(i))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +HRESULT CElf::Render_Shadow(SHADOW eType) +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) { + return E_FAIL; + } + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pShaderCom->Bind_Matrices( + "g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size() + ))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +void CElf::OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos) +{ + CPlayer* pPlayer = dynamic_cast(pCaster); + if (nullptr == pPlayer) { + return; + } + if (fDistance < m_fEncounterDistance) { + m_iEntered = 4; + } +} + +_wstring CElf::Get_Name() +{ + return m_pNpcStat->Get_Stat().pNpc_Name; +} + +_wstring CElf::Get_NpcName() +{ + return m_pNpcStat->Get_Stat().pName; +} + +void CElf::Set_Target(CUnit& pTarget, CTransform& pTransform) +{ + SAFE_RELEASE(m_pTarget); + m_pTarget = &pTarget; + SAFE_ADDREF(m_pTarget); + + _vector vTargetPos = pTransform.Get_State(STATE::POSITION); + _vector vToTargetDir = vTargetPos - Get_WorldPostion(); + XMStoreFloat4(&m_vTargetPos, vTargetPos); + XMStoreFloat3(&m_vToTargetDir, XMVector3Normalize(vToTargetDir)); + m_fTargetDistance = XMVectorGetX(XMVector3Length(vToTargetDir)); +} + + +HRESULT CElf::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +HRESULT CElf::Bind_ShaderParameters(_uint iMeshOrder) +{ + _bool bUseColorMixer = false; + + _uint iColorParam = { UINT_MAX }; + _float fMixerFactor = { FLT_MAX }; + _uint iColorMixerMethod = { 0 }; + + switch (m_pModelCom->Get_UsingPass(iMeshOrder, m_pShaderCom)) + { + case 23: + { + bUseColorMixer = true; + iColorParam = 0x2E2E2E; + fMixerFactor = 0.9f; + iColorMixerMethod = 1; + } + break; + } + if (true == bUseColorMixer) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_iPackedBlendColor", &iColorParam, sizeof(_uint)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fMixerFactor", &fMixerFactor, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iColorMixerMethod", &iColorMixerMethod, sizeof(_uint)))) { + return E_FAIL; + } + } + return S_OK; +} + +void CElf::MoveTo(_float fTimeDelta) +{ + if (m_Points.empty()) + return; + + if (m_iCurrentFlow > m_Points.size()) + { + return; + } + + _vector Target = XMLoadFloat4(&m_Points[m_iCurrentFlow]); + + _vector CurPos = m_pCharacter_Controller->Get_Position(); + _vector vLook = XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK)); + + + _vector toTarget = Target - CurPos; + _float fDist = XMVectorGetX(XMVector3Length(toTarget)); + + if (fDist < 3.f) + { + if (m_iCurrentFlow + 1 < m_Points.size()) + { + if (m_pModelCom->IsFinishedAnim() && m_Anims[m_iCurrentFlow].Trigger == ENUM_CLASS(FLOW_TRIGGER::ARRIVE_POS)) { + m_iCurrentFlow++; + } + } + } + + m_pTransformCom->LookAt_Horizontal_Lerp(Target, fTimeDelta, 5.f); +} + +void CElf::Set_Anim() +{ + if (m_Anims[m_iCurrentFlow].Trigger == ENUM_CLASS(FLOW_TRIGGER::ANIM_END)) + { + if (m_pModelCom->IsFinishedAnim()) + { + m_iCurrentFlow++; + } + } + + _bool bRootBone = true; + + m_pairAnimInfo = m_Anims[m_iCurrentFlow]; + if (m_pairAnimInfo.AnimIndex == 1) + { + bRootBone = false; + } + m_pModelCom->Set_AnimationIndex(m_pairAnimInfo.AnimIndex, m_pairAnimInfo.Loop, 1.f, false, 1.f, bRootBone); +} + + +void CElf::Load_AnimXML(const string& path) +{ + tinyxml2::XMLDocument doc; + if (doc.LoadFile(path.c_str()) != tinyxml2::XML_SUCCESS) + return; + + tinyxml2::XMLElement* pDialogue = doc.FirstChildElement("Dialogue"); + if (!pDialogue) + return; + + for (tinyxml2::XMLElement* pName = pDialogue->FirstChildElement("Name"); + pName; + pName = pName->NextSiblingElement("Name")) + { + _int flow = pName->IntAttribute("Flow"); + + pName->QueryIntAttribute("Flow", &flow); + + auto* pAnim = pName->FirstChildElement("Anim"); + if (!pAnim) continue; + + const char* stateStr = pAnim->Attribute("state"); + if (!stateStr) + continue; + + DialogueAnim Anim = {}; + + STATEANIM::ESTATE State = StringToStateAnim(stateStr); + + Anim.AnimIndex = pAnim->IntAttribute("index"); + Anim.Loop = pAnim->BoolAttribute("loop"); + + const char* trig = pName->Attribute("Trigger"); + + if (!strcmp(trig, "DIALOGUE_END")) + Anim.Trigger = ENUM_CLASS(FLOW_TRIGGER::DIALOGUE_END); + else if (!strcmp(trig, "ARRIVE_POS")) + Anim.Trigger = ENUM_CLASS(FLOW_TRIGGER::ARRIVE_POS); + else if (!strcmp(trig, "ANIM_END")) + Anim.Trigger = ENUM_CLASS(FLOW_TRIGGER::ANIM_END); + + + m_Anims[flow] = Anim; + + m_Animation[State] = { Anim.AnimIndex, Anim.Loop }; + } +} + +HRESULT CElf::Load_ElfPos(const _char* pFilePath) +{ + tinyxml2::XMLDocument doc; + if (doc.LoadFile(pFilePath) != tinyxml2::XML_SUCCESS) + return E_FAIL; + + auto* pElfPosInfo = doc.FirstChildElement("ElfPosInfo"); + if (!pElfPosInfo) return E_FAIL; + + auto* pElfPosData = pElfPosInfo->FirstChildElement("ElfPosData"); + if (!pElfPosData) return E_FAIL; + + for (auto* pName = pElfPosData->FirstChildElement("Name"); + pName; + pName = pName->NextSiblingElement("Name")) + { + int flow = -1; + pName->QueryIntAttribute("Flow", &flow); + + auto* pPosition = pName->FirstChildElement("Position"); + if (!pPosition) continue; + + auto* pPos = pPosition->FirstChildElement("Pos"); + if (!pPos) continue; + + _float x{}, y{}, z{}; + pPos->QueryFloatAttribute("x", &x); + pPos->QueryFloatAttribute("y", &y); + pPos->QueryFloatAttribute("z", &z); + + m_Points[flow] = { x, y, z, 1.f }; + } + + return S_OK; +} + + +HRESULT CElf::Ready_Components(void* pArg) +{ + CTransform::TRANSFORM_DESC Desc = {}; + + Desc.fSpeedPerSec = 10.f; + Desc.fRotationPerSec = XMConvertToRadians(180.0f); + Desc.fRadius = 10.f; + + if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, pArg))) { + return E_FAIL; + } + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Elf_Model"), + reinterpret_cast(&m_pModelCom)))) { + return E_FAIL; + } + + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("ELF"), (CComponent**)&m_pNpcStat))) { + return E_FAIL; + } + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } + { // CCT + CCharacter_Controller::Character_Controller_DESC Desc{}; + + Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER); + Desc.pTransform = m_pTransformCom; + Desc.eBodyType = ACTOR::CAPSULE; + Desc.fContactOffset = 0.0001f; + Desc.fMaterial = { 1.2f, 1.0f, 0.0f }; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.02f }; + Desc.fRadius = 0.2f; + Desc.fHeight = 0.3f; + Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_NonPlayable_HitReport::Create(); + Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_NonPlayable_Behavior::Create(); + Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; + Desc.fWalkableSlope = 45.f; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { + return E_FAIL; + } + m_pCharacter_Controller->SetGravity(true); + } + { // DO + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER); + Desc.bAutoOwnerTranslation = false; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_NPC_HITBOX"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + } + + return S_OK; +} + +CElf* CElf::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CElf* pInstance = new CElf(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CElf"); + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +CGameObject* CElf::Clone(void* pArg, CGameObject* pOwner) +{ + CElf* pInstance = new CElf(*this); + + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CElf"); + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CElf::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pCharacter_Controller); + SAFE_RELEASE(m_pNpcStat); + SAFE_RELEASE(m_pRigidBody); + SAFE_RELEASE(m_pTarget); + if (nullptr != m_pInfoInstance) { + CInfoInstance* pInfo = m_pInfoInstance; + m_pInfoInstance = nullptr; + } + if (nullptr != m_pCallBack_Behavior) { + m_pCallBack_Behavior->Finalize(); + } + if (nullptr != m_pCallBack_HitReport) { + m_pCallBack_HitReport->Finalize(); + } + Safe_Delete(m_pCallBack_Behavior); + Safe_Delete(m_pCallBack_HitReport); +} +#ifdef _DEBUG + +void CElf::Describe_Entity() +{ + if (m_Anims[m_iCurrentFlow].Trigger == ENUM_CLASS(FLOW_TRIGGER::DIALOGUE_END)) + { + GUI::InputInt("Flow", &m_iCurrentFlow); + } + + _float3 Pos; + XMStoreFloat3(&Pos, Get_WorldPostion()); + + if (GUI::DragFloat3("Pos", (_float*)&Pos, 0.01f)) + { + m_pCharacter_Controller->Set_Position( + XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f)); + } + + _float4 vMomentum = {}; + XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum()); + GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w); + + if (GUI::Button("Move To Player")) + { + CPlayer* pPlayer = + m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_PLAYER)->Get_Object(); + m_pCharacter_Controller->Set_Position(pPlayer->Get_WorldPostion()); + + _vector vCurPos = m_pCharacter_Controller->Get_Position(); + _float4 vPos; + XMStoreFloat4(&vPos, vCurPos); + + char buf[128]; + sprintf_s(buf, + "", + vPos.x, vPos.y, vPos.z); + + GUI::SetClipboardText(buf); + } + + GUI::Separator(); + + if (GUI::TreeNode("Points")) + { + GUI::Text("Total Count : %d", (_int)m_Points.size()); + + for (auto it = m_Points.begin(); it != m_Points.end(); ) + { + _int index = it->first; + _float4& p = it->second; + + GUI::PushID(index); + + GUI::Text("[%d] (%.2f, %.2f, %.2f)", index, p.x, p.y, p.z); + GUI::SameLine(); + + if (GUI::SmallButton("Move")) + { + m_pCharacter_Controller->Set_Position( + XMVectorSet(p.x, p.y, p.z, 1.f)); + } + + GUI::SameLine(); + + if (GUI::SmallButton("Copy")) + { + _vector vCurPos = m_pCharacter_Controller->Get_Position(); + XMStoreFloat4(&p, vCurPos); + + char buf[128]; + sprintf_s(buf, + "", + p.x, p.y, p.z); + + GUI::SetClipboardText(buf); + } + + GUI::SameLine(); + + if (GUI::SmallButton("X")) + { + it = m_Points.erase(it); + GUI::PopID(); + continue; + } + + GUI::PopID(); + ++it; + } + + if (GUI::SmallButton("Clear All")) + { + m_Points.clear(); + } + + GUI::TreePop(); + } + +} +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp b/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp index 13e82b73d..07ec14580 100644 --- a/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp +++ b/Jusin154_Team3D/Client/Private/Enemy_Panel.cpp @@ -76,6 +76,10 @@ void CEnemy_Panel::Update_Target() static_cast(m_pEnemy_Info)->Set_FadeOut(); return; } + + CStat* pStat = m_pInfoInstance->Get_TargetMonster()->Get_Stat(); + if (pStat == nullptr) + return; if (m_pInfoInstance->Get_TargetMonster()->Get_Stat()->Get_Stat().bBoss == true) { static_cast(m_pBoss_HpBar)->Update_Target(); diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp index 214eb3e41..dd1139d24 100644 --- a/Jusin154_Team3D/Client/Private/Goblin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin.cpp @@ -393,8 +393,11 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc) if (pEffect_Container != nullptr) { _uint iSkillType = pEffect_Container->Get_SkillType(); + + damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType)); + switch (iSkillType) { case ENUM_CLASS(SKILL_TYPE::DESCENDO): @@ -440,7 +443,6 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc) } } - m_DamageInfo.fDamage = damagePair.first; m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo); if (0 == damagePair.second) { diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp index 7e4506566..4b80f2b91 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin.cpp @@ -406,7 +406,12 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc) if (pEffect_Container != nullptr) { _uint iSkillType = pEffect_Container->Get_SkillType(); - //damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType)); + +#ifndef Bin + damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType)); +#endif // !Bin + + switch (iSkillType) { @@ -453,16 +458,16 @@ void CGoblin_Assassin::OnCollision(CGameObject* pOther, void* pDesc) } } - - /*m_DamageInfo.fDamage = damagePair.first; +#ifndef Bin + m_DamageInfo.fDamage = damagePair.first; m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo); if (0 == damagePair.second) { m_pFSM->Change_State(FSMSTATE::DEAD); _int ID = m_pStat->Get_Stat().iObjectID; m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID); return; - }*/ - + } +#endif // !Bin m_pFSM->Change_State(FSMSTATE::HIT); diff --git a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp index d4bd1a5bf..e136496cc 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Protego.cpp @@ -102,6 +102,12 @@ void CGoblin_Protego::Late_Update(_float fTimeDelta) } +void CGoblin_Protego::Set_Visible(_bool bVisible) +{ + m_bVisible = true; + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), CURRENT_LEVEL); +} + HRESULT CGoblin_Protego::Pre_Setting(CGameObject* pObject, void* pArg) { if (FAILED(__super::Pre_Setting(pObject, nullptr))) @@ -197,16 +203,19 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc) { case ENUM_CLASS(SKILL_TYPE::BOMBARDA): m_pOwner->OnCollision(pOther, CollisionDesc); + m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA): m_pOwner->OnCollision(pOther, CollisionDesc); + m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; case ENUM_CLASS(SKILL_TYPE::ANCIENT_MAGIC): m_pOwner->OnCollision(pOther, CollisionDesc); + m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); break; @@ -218,7 +227,7 @@ void CGoblin_Protego::OnCollision(CGameObject* pOther, void* pDesc) if (pProps != nullptr) { m_pOwner->OnCollision(pOther, CollisionDesc); - m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); + m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; } } diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index e8f82652e..63f22ab9e 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -11,6 +11,7 @@ #include "Layer.h" #include "Wand.h" #include "Mesh.h" +#include "Player.h" CHuman_Duelist::CHuman_Duelist(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CMonster(pDevice, pContext) @@ -67,6 +68,7 @@ HRESULT CHuman_Duelist::Initialize(void* pArg) _vector vRotQ = XMLoadFloat4(&pDesc->vRotQ); m_pCharacter_Controller->Set_Position(vPos); m_pTransformCom->Set_State(STATE::POSITION, vPos); + m_OriginPos = pDesc->vPos; m_pTransformCom->Rotation(vRotQ); } @@ -93,8 +95,7 @@ void CHuman_Duelist::Update(_float fTimeDelta) Play_Event(); - - + Check_BattleLose(); __super::Update(fTimeDelta); #ifdef _DEBUG @@ -109,8 +110,6 @@ void CHuman_Duelist::Update(_float fTimeDelta) for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++) m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta); - - } void CHuman_Duelist::Late_Update(_float fTimeDelta) @@ -481,80 +480,21 @@ HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder) _float fMixerFactor = { FLT_MAX }; _uint iColorMixerMethod = { 0 }; - switch (PLAYER_MESH_ORDER(iMeshOrder)) + switch (CPlayer::PLAYER_MESH_ORDER(iMeshOrder)) { - case PLAYER_MESH_ORDER::HAIR_MAIN: - case PLAYER_MESH_ORDER::HEAD_EYELASH: - case PLAYER_MESH_ORDER::HAIR_SUB: + case CPlayer::PLAYER_MESH_ORDER::HAIR_MAIN: + case CPlayer::PLAYER_MESH_ORDER::EYELASH: bUseColorMixer = true; iColorParam = 0x2E2E2E; fMixerFactor = 0.9f; iColorMixerMethod = 1; break; - case PLAYER_MESH_ORDER::LOWER: + case CPlayer::PLAYER_MESH_ORDER::CLOTH: bUseColorMixer = true; iColorParam = 0x292557; fMixerFactor = 0.5f; iColorMixerMethod = 1; break; - case PLAYER_MESH_ORDER::SHOES: - bUseColorMixer = true; - iColorParam = 0x614242; - fMixerFactor = 0.5f; - iColorMixerMethod = 1; - break; - case PLAYER_MESH_ORDER::UPPER: - bUseColorMixer = true; - iColorParam = 0xBFAC29; - fMixerFactor = 0.658333f; - iColorMixerMethod = 1; - break; -#ifdef 기무리 - - //case PLAYER_MESH_ORDER::ROBE_CLOTH: - //{ - // CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)); - // _uint MeshBoneCount = pMesh->Get_NumBone(); - - // for (_uint i = 0; i < MeshBoneCount; ++i) - // { - // XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity()); - // } - - // _uint temp = 0; - // vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH)); - // vector<_int> boneIndices = pMesh->Get_BoneIndices(); - - // for (_uint i = 0; i < MeshBoneCount; ++i) - // { - // _uint global = boneIndices[i]; - // if (global == 38) - // continue; - // if (globalMask[global] == 1) - // { - // SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++); - // } - // } - - // GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f); - - // if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) { - // return E_FAIL; - // } - - - // if (FAILED(m_pShaderCom->Bind_Matrices( - // "g_BoneMatrices", - // SkinMatrices.data(), - // (_int)SkinMatrices.size() - // ))) - // { - // return E_FAIL; - // } - //} - //break; -#endif // _DEBUG - default: break; } @@ -574,6 +514,29 @@ HRESULT CHuman_Duelist::Bind_ShaderParameters(_uint iMeshOrder) return S_OK; } +void CHuman_Duelist::Check_BattleLose() +{ + if (!m_bBattle) + return; + + _float vPosY = XMVectorGetY(m_pCharacter_Controller->Get_Position()); + + if (m_OriginPos.y > vPosY) + { + if (true == m_pCharacter_Controller->IsOnGround()) + { + m_pEffectPool->Use_Skill(SKILL_TYPE::BOX_SPLESH, this); + m_bBattle = false; + CPlayer* pPlayer = dynamic_cast(m_pInfoInstance->Get_NearestPlayerAlly(Get_WorldPostion()).first); + + if (pPlayer == nullptr) + return; + + pPlayer->ExitBattle(); + } + } +} + _matrix CHuman_Duelist::Get_WandPos() { diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp index 42cb3e79b..3b46ee80f 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist_States.cpp @@ -35,11 +35,15 @@ void CHuman_Duelist::Behavior_IdleEnter() HRESULT CHuman_Duelist::Behavior_IdleExitCheck(_float fTimeDelta) { - if (m_bBattle) { - m_pFSM->Change_State(FSMSTATE::CUTSCENE); - return E_FAIL; + if (false == m_pFSM->IsEnable_Previous(FSMSTATE::COMBAT)) + { + if (m_bBattle) { + m_pFSM->Change_State(FSMSTATE::CUTSCENE); + return E_FAIL; + } } + if (m_fTargetDistance <= 20.f) { for (_uint i = 0; i < ENUM_CLASS(SKILL::END); i++) { @@ -263,6 +267,7 @@ void CHuman_Duelist::Behavior_HitEnter() { pair<_uint, _bool> pairAnimInfo; m_bLookAt = false; + m_bCameraShake = true; switch (m_eHitSpell) { @@ -278,11 +283,8 @@ void CHuman_Duelist::Behavior_HitEnter() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); break; case ENUM_CLASS(SKILL_TYPE::STUPEFY): - if (m_eHitState != ENUM_CLASS(HIT_STATE::END)) { - return; - } pairAnimInfo = m_Animation[STATEANIM::DAZED_START]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.3f); Add_Event(pairAnimInfo.first, [this]() { pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::DAZED_LOOP]; @@ -343,6 +345,15 @@ void CHuman_Duelist::Behavior_HitEnter() HRESULT CHuman_Duelist::Behavior_HitExitCheck(_float fTimeDelta) { _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex(); + + if (iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first || + iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_FWD_SPLT].first) + { + if (true == m_pCharacter_Controller->IsOnGround() && m_bCameraShake) { + CameraShake(10.f, 1.f, 2.f, 0.3f); + m_bCameraShake = false; + } + } Hit_Levioso(fTimeDelta); @@ -387,7 +398,7 @@ HRESULT CHuman_Duelist::Behavior_CutSceneExitCheck(_float fTimeDelta) void CHuman_Duelist::Behavior_CutSceneExit() { m_pFSM->Disable_State(FSMSTATE::CUTSCENE); - m_bBattle = false; + //m_bBattle = false; } void CHuman_Duelist::Hit_Levioso(_float fTimeDelta) diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp index 746bb26ca..b9cf7d5aa 100644 --- a/Jusin154_Team3D/Client/Private/InfoInstance.cpp +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -42,7 +42,7 @@ void CInfoInstance::Change_Level() m_pInteractiveInfo->Change_Level(); m_pEffectInfo->Change_Level(); // UI_Event.clear(); - m_pCutSceneInfo->Change_Level(); + m_pCutSceneInfo->Load_CutScenes(); } CStat* CInfoInstance::Get_PlayerStatPtr() @@ -172,10 +172,18 @@ HRESULT CInfoInstance::Load_EffectParts(const _char* pFileName, const _char* pEf { return m_pMapInfo->Load_EffectParts(pFileName, pEffectrFilePath); } +HRESULT CInfoInstance::Load_ReparoObjects(const _char* pFileName) +{ + return m_pMapInfo->Load_ReparoObjects(pFileName); +} HRESULT CInfoInstance::Load_DADA_INT() { return m_pMapInfo->Load_DADA_INT(); } +HRESULT CInfoInstance::Load_Npc() +{ + return m_pMapInfo->Load_Npc(); +} #pragma endregion #pragma region EFFECT_INFO @@ -541,6 +549,11 @@ HRESULT CInfoInstance::NPC_FileLoad(const _char* pDirectoryPath) return S_OK; } +void CInfoInstance::Load_CutScenes() +{ + m_pCutSceneInfo->Load_CutScenes(); +} + void CInfoInstance::Release_Information() { UI_Event.clear(); diff --git a/Jusin154_Team3D/Client/Private/Land.cpp b/Jusin154_Team3D/Client/Private/Land.cpp index f37bd626d..e52bf5d0e 100644 --- a/Jusin154_Team3D/Client/Private/Land.cpp +++ b/Jusin154_Team3D/Client/Private/Land.cpp @@ -98,6 +98,13 @@ HRESULT CLand::Initialize(void* pArg) m_fRaduis = 350.f; + LAND_DESC* pDesc = static_cast(pArg); + + string RigidBodyTag = CMyTools::ToString(pDesc->strModelComTag) + "_RigidBody"; + + ReadyForPhysX(RigidBodyTag.c_str()); + ConvertToPhysX(RigidBodyTag.c_str()); + return S_OK; } @@ -166,12 +173,15 @@ HRESULT CLand::Bind_ShaderResources() if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))) { return E_FAIL; } + if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))) { return E_FAIL; } + if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))) { return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_SRV("g_MaskTexture", m_pMaskTextureCom->Get_SRV(0)))) { return E_FAIL; } @@ -182,6 +192,28 @@ HRESULT CLand::Bind_ShaderResources() return S_OK; } +void CLand::ReadyForPhysX(const _char* pName) +{ + _uint iLevel = NEXT_LEVEL; + + if (FAILED(m_pModelCom->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel, pName))) { + assert(false); + } +} + +void CLand::ConvertToPhysX(const _char* pName) +{ + _wstring wstrName = CMyTools::ToWstring(pName); + + 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(NEXT_LEVEL, wstrName, (CComponent**)&m_RigidBody, &Desc))) { + assert(false); + } +} + CLand* CLand::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CLand* pInstance = new CLand(pDevice, pContext); @@ -217,6 +249,7 @@ void CLand::Free() SAFE_RELEASE(m_pMaskTextureCom); SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_RigidBody); SAFE_RELEASE(m_pModelCom); for (auto& pInstanceProp : m_InstanceProps) diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp index 965056526..d49249dc7 100644 --- a/Jusin154_Team3D/Client/Private/Level_Field.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp @@ -63,6 +63,9 @@ HRESULT CLevel_Field::Initialize(void* pArg) if (FAILED(Ready_Layer_Monster())) { return E_FAIL; } + + m_pInfoInstance->Load_CutScenes(); + m_bLevel = true; m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn")); @@ -152,8 +155,6 @@ HRESULT CLevel_Field::Render() HRESULT CLevel_Field::Ready_Lights() { - CLight_Main* pLight = { nullptr }; - LIGHT_DESC Desc = {}; if (m_isDay) { @@ -169,7 +170,7 @@ HRESULT CLevel_Field::Ready_Lights() } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &pLight))) { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &m_pLight))) { return E_FAIL; } @@ -184,9 +185,7 @@ HRESULT CLevel_Field::Ready_Lights() #endif // gimch - - - pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); + m_pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); return S_OK; @@ -237,7 +236,7 @@ HRESULT CLevel_Field::Ready_Camera() Camera_Desc.fNear = 0.1f; Camera_Desc.fFar = 500.f; Camera_Desc.pCameraKey = CAMERA_CINEMATIC; - Camera_Desc.iPriority = 65; + Camera_Desc.iPriority = 52; Camera_Desc.bEnableTransitionLerp = false; Camera_Desc.bEnableLookLerp = false; Camera_Desc.bEnableFollowLerp = false; @@ -369,6 +368,10 @@ HRESULT CLevel_Field::Reday_Layer_EffectPool() return S_OK; } +void CLevel_Field::ResetLevel_Environment() +{ +} + pair> CLevel_Field::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg) { CLevel_Field* pInstance = new CLevel_Field(pDevice, pContext, eLevelID); diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index cb04257b1..c0bcca4b1 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -5,7 +5,6 @@ #include "Light_Main.h" #include "Camera_Debug.h" #include "InfoInstance.h" -#include "Camera_Model.h" #include "UI_Manager.h" #include "Layer.h" #include "SkyBox.h" @@ -21,6 +20,7 @@ #include "BroomRaceManager.h" #include "ReparoObject.h" #include "ThestralCarriage.h" +#include "Camera_Cinematic.h" #pragma region ACTOR #include "Player.h" @@ -35,6 +35,7 @@ #include "BroomRacerAI.h" #include "Ranrok.h" #include "RandomNpc.h" +#include "Elf.h" #pragma endregion @@ -56,7 +57,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) m_isDay = true; #endif // #ifdef 진우 - m_isDay = false; + m_isDay = true; #endif // #ifdef 기무리 m_isDay = true; @@ -85,13 +86,15 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) map<_string, CLand*> Lands = {}; + if (FAILED(Ready_Land(&Lands))) { return E_FAIL; } +#ifndef 진우 if (FAILED(Ready_IntstanceProp(&Lands))) return E_FAIL; - +#endif if (FAILED(Ready_Markers())) { return E_FAIL; } @@ -107,9 +110,9 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) return E_FAIL; } - //if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) { - // return E_FAIL; - //} + if (FAILED(Ready_Layer_ReparoObject(TEXT("Layer_ReparoObject")))) { + return E_FAIL; + } if (FAILED(Ready_Layer_SkyBox(TEXT("Layer_SkyBox")))) { return E_FAIL; @@ -119,8 +122,23 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) return E_FAIL; } - if (FAILED(Ready_Layer_RacerAI(LAYER_RACERAI))) { - return E_FAIL; + _bool bLoadNPC = { true }; +#ifdef _DEBUG +#ifdef 기무리 + bLoadNPC = false; +#endif +#endif // _DEBUG + if (true == bLoadNPC) { + if (FAILED(Ready_Layer_RacerAI(LAYER_RACERAI))) { + return E_FAIL; + } + if (FAILED(Ready_Layer_Duelist())) { + return E_FAIL; + } + + if (FAILED(Ready_Layer_Npc())) { + return E_FAIL; + } } @@ -128,21 +146,13 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) return E_FAIL; } - if (FAILED(Ready_Layer_Duelist())) { - return E_FAIL; - } - - if (FAILED(Ready_Layer_Npc())) { - return E_FAIL; - } - - if (FAILED(m_pInfoInstance->Late_Initialize())) return E_FAIL; m_bLevel = true; m_pInfoInstance->Event_CallBack(TEXT("UIManagerFadeIn")); + return S_OK; } @@ -238,7 +248,7 @@ HRESULT CLevel_GamePlay::Ready_Lights() Desc.vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f); } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc))) { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT, &Desc, nullptr, &m_pLight))) { return E_FAIL; } @@ -258,6 +268,7 @@ HRESULT CLevel_GamePlay::Ready_Volumetric() 0.f ); } + else { m_pGameInstance->Setting_Volumetirc( @@ -318,6 +329,7 @@ HRESULT CLevel_GamePlay::Ready_Background() isReady_Background = true; isReady_Hogsmeade = true; isReady_Hogwart = false; + m_pInfoInstance->Load_ReparoObjects("Reparo_Data"); #endif // gimch #ifdef Bin isReady_Background = false; @@ -330,8 +342,8 @@ HRESULT CLevel_GamePlay::Ready_Background() isReady_Hogwart = false; #endif // #ifdef 기무리 - isReady_Background = true; - isReady_Hogsmeade = true; + isReady_Background = false; + isReady_Hogsmeade = false; isReady_Hogwart = false; #endif // #ifdef 나 @@ -554,6 +566,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Hogwart() { CInfoInstance::GetInstance()->Load_MapObjects("Hogwart_MapContainer_Data", LAYER_HOGWART); CInfoInstance::GetInstance()->Load_MapObjects("HogwartMap1221", LAYER_HOGWART); + CInfoInstance::GetInstance()->Load_MapObjects("CaveData", LAYER_HOGWART); CUnified::UNIFIED_DESC Desc = {}; @@ -895,29 +908,31 @@ HRESULT CLevel_GamePlay::Ready_Layer_Camera() m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG); } - { - CCamera_Model::CAMERA_MODEL_DESC Camera_Desc{}; - Camera_Desc.fSpeedPerSec = 5.f; - Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f); - Camera_Desc.fFovy = XMConvertToRadians(60.0f); - Camera_Desc.fNear = 0.1f; - Camera_Desc.fFar = 500.f; - Camera_Desc.pCameraKey = CAMERA_MODEL; - Camera_Desc.iPriority = 49; - Camera_Desc.pFollowTarget = { nullptr }; - Camera_Desc.pLookTarget = { nullptr }; - - CCamera_Model* pCamera = { nullptr }; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) { - return E_FAIL; - } - m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_MODEL); - - } - #endif // _DEBUG + { + CCamera_Cinematic::Camera_Cinematic_DESC Camera_Desc{}; + Camera_Desc.fSpeedPerSec = 5.f; + Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f); + Camera_Desc.fFovy = XMConvertToRadians(60.0f); + Camera_Desc.fNear = 0.3f; + Camera_Desc.fFar = 500.f; + Camera_Desc.pCameraKey = CAMERA_CINEMATIC; + Camera_Desc.iPriority = 52; + Camera_Desc.bEnableTransitionLerp = false; + Camera_Desc.bEnableLookLerp = false; + Camera_Desc.bEnableFollowLerp = false; + Camera_Desc.vTransitionTime.y = 1.f; + Camera_Desc.pFollowTarget = { nullptr }; + Camera_Desc.pLookTarget = { nullptr }; + + CCamera_Cinematic* pCamera = { nullptr }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) { + return E_FAIL; + } + m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_CINEMATIC); + } if (FAILED(m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_SHOULDER, true))) { return E_FAIL; } @@ -973,11 +988,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Item(const _wstring& strLayerTag) HRESULT CLevel_GamePlay::Ready_Layer_ReparoObject(const _wstring& strLayerTag) { - for (_uint i = 0; i < 1; ++i) { - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) { - return E_FAIL; - } - } + //for (_uint i = 0; i < 1; ++i) { + // if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) { + // return E_FAIL; + // } + //} return S_OK; } @@ -1090,11 +1105,12 @@ HRESULT CLevel_GamePlay::Ready_Layer_Duelist() { CHuman_Duelist::DUELISTDESC DuelistDesc = {}; - DuelistDesc.vPos = _float4(1007.f, 6.f, 1016.f, 1.f); + DuelistDesc.vPos = _float4(1007.23f, 1.775f, 1015.f, 1.f); DuelistDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_DUELIST, &DuelistDesc))) { return E_FAIL; } + return S_OK; } @@ -1102,18 +1118,20 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc() { _bool isLoad_NPC = { true }; _bool isLoad_RandomNPC = { true }; + _bool isRandomPosition = { true }; #ifdef _DEBUG #ifdef gimch - isLoad_NPC = false; - isLoad_RandomNPC = false; + isLoad_NPC = true; + isLoad_RandomNPC = true; + isRandomPosition = false; #endif // gimch #ifdef 진우 - isLoad_RandomNPC = true; - isLoad_NPC = true; + isLoad_RandomNPC = false; + isLoad_NPC = false; #endif // #ifdef 기무리 - isLoad_NPC = true; - isLoad_RandomNPC = true; + isLoad_NPC = false; + isLoad_RandomNPC = false; #endif // #ifdef 나 isLoad_RandomNPC = true; @@ -1142,12 +1160,22 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc() return E_FAIL; } } + { + CElf::ELFDESC ElfDesc{}; + ElfDesc.vPos = _float4(-84.20f, -30.98f, -60.13f, 1.f); + ElfDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &ElfDesc))) { + return E_FAIL; + } + } } if (true == isLoad_RandomNPC) { - for (_uint i = 0; i < 11; i++) + if(isRandomPosition) { + for (_uint i = 0; i < 12; i++) { CRandomNpc::NPCDESC NPCDesc{}; _float X = m_pGameInstance->Real_Random_Float(22.f, 29.f); @@ -1160,10 +1188,33 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc() } } } + else + m_pInfoInstance->Load_Npc(); } return S_OK; } +void CLevel_GamePlay::ResetLevel_Environment() +{ + Ready_Volumetric(); + _float4 vDiffuse; + _float4 vAmbient; + _float4 vSpecular; + if (m_isDay) + { + vDiffuse = _float4(0.6529f, 0.6157f, 0.7843f, 1.0f); + vAmbient = _float4(0.6275f, 0.6275f, 0.6275f, 0.0314f); + vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.05f); + } + else + { + vDiffuse = _float4(0.0471f, 0.0745f, 0.1294f, 0.2549f); + vAmbient = _float4(0.1686f, 0.1765f, 0.1373f, 0.0f); + vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f); + } + m_pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); +} + pair> CLevel_GamePlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg) { CLevel_GamePlay* pInstance = new CLevel_GamePlay(pDevice, pContext, eLevelID); @@ -1174,7 +1225,8 @@ pair> CLevel_GamePlay::Create(ID3D11Device* pDevice, I SAFE_RELEASE(pInstance); } - return { pInstance, [pInstance]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound(); } }; + return { pInstance, [=]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound(); + pInstance->m_pInfoInstance->Load_CutScenes(); } }; } void CLevel_GamePlay::Free() diff --git a/Jusin154_Team3D/Client/Private/Level_Loading.cpp b/Jusin154_Team3D/Client/Private/Level_Loading.cpp index ac72eb3bd..0cef5f61a 100644 --- a/Jusin154_Team3D/Client/Private/Level_Loading.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Loading.cpp @@ -25,7 +25,7 @@ HRESULT CLevel_Loading::Initialize(LEVEL eNextLevelID) if (nullptr == m_pLoader) { return E_FAIL; } - + if (FAILED(Ready_Layer_BackGround(LAYER_UI))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Client/Private/Levioso.cpp b/Jusin154_Team3D/Client/Private/Levioso.cpp index 2368577a6..ec346f614 100644 --- a/Jusin154_Team3D/Client/Private/Levioso.cpp +++ b/Jusin154_Team3D/Client/Private/Levioso.cpp @@ -92,9 +92,16 @@ void CLevioso::Late_Update(_float fTimeDelta) _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); - OnCollision(this, &CollisionInfo); + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + { + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); + OnCollision(this, &CollisionInfo); + } + } } __super::Late_Update(fTimeDelta); diff --git a/Jusin154_Team3D/Client/Private/Lightning.cpp b/Jusin154_Team3D/Client/Private/Lightning.cpp index 00fde485b..3f41eee83 100644 --- a/Jusin154_Team3D/Client/Private/Lightning.cpp +++ b/Jusin154_Team3D/Client/Private/Lightning.cpp @@ -109,6 +109,7 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg) CPartObject* pHitPT0 = Get_PartObject("HitPT0"); CPartObject* pLightning_Tornado_PT = Get_PartObject("Lightning_Tornado_PT"); CPartObject* pLightning0 = Get_PartObject("Lightning0"); + CPartObject* pLightning1 = Get_PartObject("Lightning1"); CPartObject* pStart_Line = Get_PartObject("Start_Line"); CPartObject* pLightning_Smoke = Get_PartObject("Lightning_Smoke"); CPartObject* pLightning_Rock_PT = Get_PartObject("Lightning_Rock_PT"); @@ -124,13 +125,25 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg) m_pInfoInstance->Get_LockOnInfo(m_Info); if (nullptr != m_Info.pUnit || nullptr != m_Info.pEffect) { - XMStoreFloat4(&m_vTargetPos, Get_LockOnPos(m_Info)); + _vector vLockOnPos = Get_LockOnPos(m_Info); + + CCharacter_Controller* pCCT = m_Info.pUnit->Get_Component(); + + if (pCCT != nullptr) + { + _float fYHeight = XMVectorGetY(pCCT->Get_FootPosition()) - pCCT->Get_Volume().y * 2.f + pCCT->Get_Volume().x * 2.f; + //_float fYHeight = XMVectorGetY(m_Info.pUnit->Get_Component()->Get_State(STATE::POSITION)); + vLockOnPos = XMVectorSetY(vLockOnPos, fYHeight); + } + + XMStoreFloat4(&m_vTargetPos, vLockOnPos); + XMStoreFloat3(&m_vCameraLook, XMVector3Normalize(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); } else { // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정 - XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 0.5f); + XMStoreFloat4(&m_vTargetPos, vStartPos + vDirection * m_fLinearSpeed * 10.f); } } @@ -139,18 +152,20 @@ HRESULT CLightning::Pre_Setting(CGameObject* pObject, void* pArg) pHitPT0->Set_Visible(true); pLightning_Tornado_PT->Set_Visible(true); pLightning0->Set_Visible(true); + pLightning1->Set_Visible(true); pStart_Line->Set_Visible(true); pLightning_Smoke->Set_Visible(true); - //pLightning_Rock_PT->Set_Visible(true); + pLightning_Rock_PT->Set_Visible(true); pBottomLightning->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pFlare->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pHitPT0->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pLightning_Tornado_PT->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pLightning0->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); + pLightning1->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pStart_Line->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); pLightning_Smoke->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); - //pLightning_Rock_PT->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); + pLightning_Rock_PT->Get_Component()->Set_State(STATE::POSITION, XMLoadFloat4(&m_vTargetPos)); m_fDistance = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - XMLoadFloat4(&m_vStartPos))); @@ -210,17 +225,6 @@ void CLightning::OnCollision(CGameObject* pOther, void* pDesc) _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - - CWand* pWand = static_cast(m_pOwner); - - if (pWand == nullptr) - return; - } diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index f5abcc74b..367fd1845 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -33,7 +33,7 @@ #include "Player.h" #include "Human_Duelist.h" -#include "PlayerRobe.h" +//#include "PlayerRobe.h" #include "Goblin.h" #include "Goblin_Mage.h" #include "Goblin_Assassin.h" @@ -45,11 +45,7 @@ #include "BroomRacerAI.h" #include "Ranrok.h" #include "RandomNpc.h" - -#ifdef _DEBUG -#include "Camera_Model.h" -#endif // _DEBUG - +#include "Elf.h" #pragma endregion @@ -192,6 +188,7 @@ #include "DecendoSide.h" #include "BombardSide.h" #include "LeviosoSide.h" +#include "AccioSide.h" #include "TransformationSide.h" #include "AvadakedavraSide.h" @@ -216,7 +213,9 @@ #include "TrollSwing.h" #include "Troll_Nomal_Smoke.h" #include "Troll_Rush_Hit.h" - +#include "Troll_Rush.h" +#include "Troll_Shout.h" +#include "Troll_Self_Hit.h" #include "WandEnd.h" #include "Goblin_Protego.h" @@ -276,6 +275,7 @@ #include "WorldDecal.h" #include "PointLight.h" #include "MapElement_Balloon.h" +#include "MapElement_Cave.h" #pragma endregion @@ -306,7 +306,7 @@ unsigned int APIENTRY LoadingMain(void* pArg) HRESULT CLoader::Initialize(LEVEL eNextLevelID) { m_eNextLevelID = eNextLevelID; - +//// m_pGameInstance->EnqueueJob(&LoadingMain, this); return S_OK; @@ -486,7 +486,7 @@ HRESULT CLoader::Loading_For_GamePlay() isLoad_Background = true; isLoad_Hogwart = false; isLoad_UI_SEQUANTIAL = false; - isLoad_NPC = true; + isLoad_NPC = false; isLoad_Monster = true; #endif // #ifdef 나 @@ -504,6 +504,7 @@ HRESULT CLoader::Loading_For_GamePlay() #pragma region MAP_MODELS vector*>> jobMapModels; + vector*>> jobCharacterModels = {}; vector*>> jobMapShaders; { { /* Terrain */ @@ -1102,6 +1103,10 @@ HRESULT CLoader::Loading_For_GamePlay() "../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/SUB_DADATower/StaticMesh/EXT", ".bin", false )); + jobMapModels.emplace_back(Deferred_FolderLoad( + "../Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes", + ".bin", false + )); } if (true == isLoad_DataClassroom) @@ -1138,6 +1143,200 @@ HRESULT CLoader::Loading_For_GamePlay() } } + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixIdentity(), + TEXT("Prototype_Component_Box") + )); + +#pragma region ACTOR + + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_Playable_Model") + )); + if (true == isLoad_NPC) { + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Npc_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_GerboldOlivander_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Professor_EleazarFig_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_VictorRookWood_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_ChiyoKogawa_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_MatildaWeasely_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_SatyavatiShah_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Ghost_Peeves_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_M_Student_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_PhineasBlack_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_F_Student_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Elf_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Kitchen_Female_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_BaiHowin_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_GeorgeOsric_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_DinahHecat_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_MudiwaOnai_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_GerboldOlivander_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_Professor_EleazarFig_Model") + )); + } + if (true == isLoad_Monster) { + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Goblin_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Goblin_Mage_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Goblin_Spector_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Goblin_Assassin_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Troll_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Ranrok_Model") + )); + } + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Camera_Model") + )); +#pragma endregion + +#pragma region ITEM + + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/SK_Wands_Amit.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Wand_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::NONANIM, "../Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_Potion_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::NONANIM, "../Bin/Resources/Models/Object/RaceRing/SM_BRR_RaceRing_01.bin", XMMatrixRotationX(XMConvertToRadians(90.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_RaceRing_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Broom_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/MoonTrimmerBroom/SK_MoonTrimmerBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_DarkWizardBroom_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/WildFireBroom/WildFireBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_WildFireBroom_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Troll_Weapon_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Troll_Rock_Big_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/SK_WPN_GOB_SmallSword.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_Goblin_Dagger_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_L.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_Goblin_Sword_L_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_R.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_Goblin_Sword_R_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin", XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Goblin_BattleAxe_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_ThestralCarriage_Model") + )); + jobCharacterModels.emplace_back(Deferred_ModelLoad( + MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity(), + TEXT("Prototype_Component_SkyboxModel") + )); + +#pragma endregion + #ifndef 진우 #pragma region SHADER @@ -1174,127 +1373,158 @@ HRESULT CLoader::Loading_For_GamePlay() TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPos.hlsl"), VTXPOS::Elements, VTXPOS::iNumElements)); } + { + m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); + _uint iIndex = 0; + for (auto& JobMapShader : jobMapShaders) + { + pair<_wstring, CShader*>* pOut = JobMapShader.get(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) { + return E_FAIL; + } + Safe_Delete(pOut); + } + } #pragma endregion #endif + /* LAND_MODEL */ { + CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; // + { + Desc.eType = ACTOR::TRIANGLEMESH; + Desc.ePxRigidBodyFlags = {}; + Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; + Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT; + Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f); + Desc.fContactOffset = 0.001f; + } + /* For.Prototype_Component_South_Hogwart_Land_LOD1 */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_South_Hogwart_Land_LOD1"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BCLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_South_Hogwart_Land_LOD1_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_North_Hogwart_Land_LOD1 */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart_Land_LOD1"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AVLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_North_Hogwart_Land_LOD1_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_North_Hogwart2_Land_LOD1 */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AULOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_North_Hogwart2_Land_LOD1_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_West_Hogwart_Land_LOD1 */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_West_Hogwart_Land_LOD1"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AZLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_West_Hogwart_Land_LOD1_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_East_Hogwart_Land_LOD1 */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_AYLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_East_Hogsmeade_Land_LOD1_RigidBody"), pRigid))) { + return E_FAIL; + } - // ----------------- /* For.Prototype_Component_Land_HN_BA */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BA_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BD */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BD_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BE */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BE_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BF */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BF_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BG */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BG_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BH */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BH_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BI */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BI_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_HN_BJ */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_HN_BJ_RigidBody"), pRigid))) { + return E_FAIL; + } /* For.Prototype_Component_Land_TU_BB */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"), CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) return E_FAIL; - - - ///* For.Prototype_Component_Land_HN_BA */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BA"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BALOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BD */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BD"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BDLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BG */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BG"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BGLOD/SM_LandscapeStreamingProxy_1_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BH */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BH"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BHLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - - ///* For.Prototype_Component_Land_HN_BE */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BE"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BELOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BF */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BF"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BFLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BI */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BI"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BILOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_HN_BJ */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_HN_BJ"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/HN_BJLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; - - ///* For.Prototype_Component_Land_TU_BB */ - //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Land_TU_BB"), - // CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/Levels/Overland/HOG/TU_BBLOD/SM_LandscapeStreamingProxy_0_LOD1.bin")))) - // return E_FAIL; + pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_Land_TU_BB_RigidBody"), pRigid))) { + return E_FAIL; + } } #pragma endregion #pragma region UI @@ -2228,7 +2458,7 @@ HRESULT CLoader::Loading_For_GamePlay() Desc1.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; Desc1.vMatInfo = { 0.5f, 0.5f, 0.6f }; Desc1.fContactOffset = { 0.05f }; - Desc1.vhalfGeometryInfo = { 2.f, 2.f, 2.f }; + Desc1.vhalfGeometryInfo = { 2.34f, 2.34f, 2.34f }; Desc1.fDensity = 1.f; Desc1.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); Desc1.eLockFlag = {}; @@ -2307,252 +2537,19 @@ HRESULT CLoader::Loading_For_GamePlay() Desc.vMatInfo = { 0.5f, 0.5f, 0.1f }; Desc.fContactOffset = { 0.05f }; Desc.vhalfGeometryInfo = { 0.5f, 1.f, 0.01f }; - Desc.fDensity = 100.f; + Desc.fDensity = 10.f; PSX::PxTransform pxPivotTransform = PSX::PxTransform(PSX::PxVec3(0.f, 1.f, 0.f)); Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f }; Desc.vLocalTranslation = { 0.5f, 1.375f, 0.f }; Desc.pxMassCenter = pxPivotTransform; - Desc.vAutoDamping = { 10.f, 10.f }; + Desc.vAutoDamping = { 5.f, 5.f }; } if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_DOOR"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) { return E_FAIL; } } - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Box"), - CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) { - return E_FAIL; - } - -#pragma region ACTOR - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Playable_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){ - return E_FAIL; - } - if (true == isLoad_NPC) { - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Npc_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GerboldOlivander_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Professor_EleazarFig_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VictorRookWood_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_ChiyoKogawa_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_MatildaWeasely_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MatildaWeasely/MatildaWeasely.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SatyavatiShah_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/SatyavatiShah/SatyavatiShah.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_PhineasBlack_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/PhineasBlack/PhineasBlack.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Student_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/M_Student/M_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_Student_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/F_Student/F_Student.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Elf_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Kitchen_Female_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_BaiHowin_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GeorgeOsric_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DinahHecat_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_MudiwaOnai_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/MudiwaOnai/MudiwaOnai.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - } - if (true == isLoad_Monster) { - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/SK_GOB_M_T4Melee_INST_A_Master.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Mage_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin_Mage/GoblinMage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Spector_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GerboldOlivander_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Professor_EleazarFig_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Spector_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Camera_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) { - return E_FAIL; - } - } -#pragma endregion - -#pragma region ITEM - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Wand_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/SK_Wands_Amit.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Potion_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Potion/SM_Bottle_EmptyCapOff.bin", XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_RaceRing_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/RaceRing/SM_BRR_RaceRing_01.bin", XMMatrixRotationX(XMConvertToRadians(90.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_SK_MoonTrimmerBroom_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/MoonTrimmerBroom/SK_MoonTrimmerBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_DarkWizardBroom_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/DarkWizardBroom/DarkWizardBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_WildFireBroom_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Broom/WildFireBroom/WildFireBroom.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/Troll_Rock/VFX_SM_Rock_01.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Dagger_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Dagger/SK_WPN_GOB_SmallSword.bin", XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Sword_L_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_L.bin", XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Sword_R_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_Sword/SK_WPN_GOB_SmallSword_R.bin", XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_BattleAxe_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Goblin_BattleAxe/SK_WPN_GOB_BattleAxe01.bin", XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_ThestralCarriage_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - - -#pragma endregion - - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPlayerRobe::Create(m_pDevice, m_pContext)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_CCL_CameraRig.001_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Camera/CCL_CameraRig.001.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) - return E_FAIL; - - /* For.Prototype_Component_SkyboxModel */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"), - CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity())))) - return E_FAIL; - - m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다."); if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTrail::Create(m_pDevice, m_pContext)))) { @@ -2628,6 +2625,10 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CAccioSide::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CStupefySide::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -2649,6 +2650,19 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Rush_Hit::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Rush::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Shout::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTroll_Self_Hit::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin_Protego::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -2866,6 +2880,16 @@ HRESULT CLoader::Loading_For_GamePlay() }); + Asset_FileLoad("../Bin/Resources/Models/Effect/Rock", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) { + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName, + CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0)))) + return E_FAIL; + + return S_OK; + + }); + m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다."); #pragma region UI @@ -3622,7 +3646,7 @@ HRESULT CLoader::Loading_For_GamePlay() /* For.Prototype_Component_FloatingBalloon */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_FloatingBalloon"), - CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin")))) + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "../Bin/Resources/Models/MapMesh/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin")))) return E_FAIL; /* For.Prototype_Component_Hogwart_Lake */ @@ -3715,6 +3739,10 @@ HRESULT CLoader::Loading_For_GamePlay() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapElement_Lake::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_Cave */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapElement_Cave::Create(m_pDevice, m_pContext)))) + return E_FAIL; + /* For.Prototype_GameObject_Land */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLand::Create(m_pDevice, m_pContext)))) { return E_FAIL; @@ -3784,13 +3812,10 @@ HRESULT CLoader::Loading_For_GamePlay() return E_FAIL; } -#ifdef _DEBUG - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamera_Model::Create(m_pDevice, m_pContext)))) { + /* For.Prototype_GameObject_Elf */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CElf::Create(m_pDevice, m_pContext)))) { return E_FAIL; } -#endif // _DEBUG - - #pragma endregion @@ -3883,11 +3908,7 @@ HRESULT CLoader::Loading_For_GamePlay() } - -/* 쉐이더 로딩 종료 이후 로딩*/ - #pragma region RECEIVE_THREAD - { // MapModels m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); _uint iIndex = 0; @@ -3912,20 +3933,18 @@ HRESULT CLoader::Loading_For_GamePlay() } } - { - m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); - _uint iIndex = 0; - for (auto& JobMapShader : jobMapShaders) - { - pair<_wstring, CShader*>* pOut = JobMapShader.get(); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pOut->first, pOut->second))) { + for (auto& job : jobCharacterModels) { + pair<_wstring, CModel*>* pResult = job.get(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pResult->first, pResult->second))) { + assert(false); return E_FAIL; } - Safe_Delete(pOut); + Safe_Delete(pResult); } } + #pragma endregion m_strMessage = TEXT("정보를 불러오는 중입니다."); diff --git a/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp new file mode 100644 index 000000000..16882de34 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/MapElement_Cave.cpp @@ -0,0 +1,267 @@ +#include "pch.h" +#include "MapElement_Cave.h" +#include "GameInstance.h" + +#include "Layer.h" +#include "TriggerBox.h" + +CMapElement_Cave::CMapElement_Cave(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CMapElement{ pDevice, pContext } +{ +} + +CMapElement_Cave::CMapElement_Cave(const CMapElement_Cave& rhs) + : CMapElement(rhs) +{ +} + +HRESULT CMapElement_Cave::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CMapElement_Cave::Initialize(void* pArg) +{ + MAPELEMENT_DESC* pDesc = static_cast(pArg); + + m_bVisible = pDesc->bVisible; + m_iMaxLodLevel = pDesc->iMaxLodLevel; + + for (_uint i = 0; i < m_iMaxLodLevel + 1; i++) + { + m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]); + } + + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + m_pTransformCom->Set_Scale(pDesc->vScale); + m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z)); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f)); + + _float fMaxScale = max(max(pDesc->vScale.x, pDesc->vScale.y), pDesc->vScale.z); + + m_fRadius = m_pModelComs[0]->Get_Radius() * fMaxScale; + + _float3 vOffset = m_pModelComs[0]->Get_RadiusOffset(); + XMStoreFloat3(&m_vWorldCenterPosition, XMVector3TransformCoord(XMLoadFloat3(&vOffset), m_pTransformCom->Get_XMWorldMatrix())); + + ReadyForPhysX(); + ConvertToPhysX(); + + if (FAILED(Ready_TriggerBox())) + return E_FAIL; + + return S_OK; +} + +void CMapElement_Cave::Priority_Update(_float fTimeDelta) +{ +} + +void CMapElement_Cave::Update(_float fTimeDelta) +{ +} + +void CMapElement_Cave::Late_Update(_float fTimeDelta) +{ + if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldCenterPosition), 1.f), m_fRadius)) { + if (m_bVisible) + { + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +#ifdef _DEBUG + m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, m_pTriggerBox); +#endif // _DEBUG + + } + + + + if (SUCCEEDED(m_pTriggerBox->TryScanArea(fTimeDelta))) + { + Enter_Cave(); + } + } +} + +HRESULT CMapElement_Cave::Render() +{ + if (FAILED(Bind_ShaderResources())) + return E_FAIL; + + _uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +HRESULT CMapElement_Cave::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i) + { + CModel* pModel = { nullptr }; + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, m_ModelPrototypeTags[i], + reinterpret_cast(&pModel)))) + return E_FAIL; + + m_pModelComs.push_back(pModel); + } + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CMapElement_Cave::Bind_ShaderResources() +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + +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; + + m_pTriggerBox = CTriggerBox::Create(m_pDevice, m_pContext, &Desc); + +#ifdef _DEBUG + +#endif // _DEBUG + + return S_OK; +} + +void CMapElement_Cave::ReadyForPhysX() +{ + if (true == m_bConverted) { + return; + } + m_bConverted = true; + _uint iLevel = NEXT_LEVEL; + + CModel* pModel = m_pModelComs[0]; + + if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) { + assert(false); + } +} + +void CMapElement_Cave::ConvertToPhysX() +{ + if (true == m_bReadyToCreatePhysX) { + return; + } + m_bReadyToCreatePhysX = true; + + 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(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) { + assert(false); + } + m_RigidBodies.push_back(pRigidBody); + } +} + +void CMapElement_Cave::Enter_Cave() +{ + m_pGameInstance->Set_LevelToChange(); +} + +CMapElement_Cave* CMapElement_Cave::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CMapElement_Cave* pInstance = new CMapElement_Cave(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CMapElement_Cave"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CMapElement_Cave::Clone(void* pArg, CGameObject* pOwner) +{ + CMapElement_Cave* pInstance = new CMapElement_Cave(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CMapElement_Cave"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CMapElement_Cave::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); +} + +#ifdef _DEBUG +void CMapElement_Cave::Describe_Entity() +{ + +} +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/MapElement_Chest_Lid.cpp b/Jusin154_Team3D/Client/Private/MapElement_Chest_Lid.cpp index 3f90bbb64..cd1d54fd5 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Chest_Lid.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Chest_Lid.cpp @@ -36,7 +36,7 @@ HRESULT CMapElement_Chest_Lid::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; - m_fOpenDuration = 0.1f; + m_fOpenDuration = 0.3f; m_fRotationAngle = pDesc->fRotaitionAngle; m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vLid_Offset), 1.f)); diff --git a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp index e539ed59b..1c8c4e357 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp @@ -271,7 +271,7 @@ void CMapElement_Door::Free() #ifdef _DEBUG void CMapElement_Door::Describe_Entity() { - GUI::Begin("PhysX"); + GUI::Begin("PhysX", 0, IMGUI_GLOBAL_BEGIN_FLAG); if (GUI::CollapsingHeader("Door")) { GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH); GUI::Text("m_vKinematicTimer %.3f", m_vKinematicTimer.x); diff --git a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp index 2d337ae85..dd61188d2 100644 --- a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp +++ b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp @@ -30,7 +30,6 @@ HRESULT CMapElement_Static::Initialize(void* pArg) for (_uint i = 0; i < m_iMaxLodLevel + 1; i++) { m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]); - //m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]); } if (FAILED(__super::Initialize(pArg))) diff --git a/Jusin154_Team3D/Client/Private/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp index 33f3553c6..6811e12f8 100644 --- a/Jusin154_Team3D/Client/Private/MapInfo.cpp +++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp @@ -18,6 +18,9 @@ #include "InstancedProp_Light.h" #include "Layer.h" #include "EffectParts.h" +#include "RandomNpc.h" +#include "MapElement_Cave.h" +#include "ReparoObject.h" CMapInfo::CMapInfo() { @@ -155,6 +158,10 @@ HRESULT CMapInfo::Load_MapObjects(const _char* pFileName, const _wchar* pLayerTa Desc.bVisible = false; m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc); } + else if (MAPOBJECT_TYPE::ELEMENT_CAVE == eType) + { + m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, pLayerTag, &Desc); + } /*else if (MAPOBJECT_TYPE::ELEMENT_INTERACT == eType) m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interact"), &Desc);*/ } @@ -829,6 +836,48 @@ HRESULT CMapInfo::Load_EffectParts(const _char* pFileName, const _char* pEffectr return S_OK; } +HRESULT CMapInfo::Load_ReparoObjects(const _char* pFileName) +{ + tinyxml2::XMLDocument xmlDoc; + + string strPath = "../Bin/Resources/Data/Map/Reparo/" + string(pFileName) + ".xml"; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Reparo"); + + if (nullptr == root) + { + MSG_BOX("Failed to Find root"); + return S_OK; + } + + for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) + { + CReparoObject::REPARO_OBJECT_DESC Desc = {}; + + Object->QueryUnsignedAttribute("Type", &Desc.iModelID); + Object->QueryFloatAttribute("Radius", &Desc.fRadius); + + /* Transform */ + auto* Rotation = Object->FirstChildElement("Rotation"); + Rotation->QueryFloatAttribute("x", &Desc.vRotation.x); + Rotation->QueryFloatAttribute("y", &Desc.vRotation.y); + Rotation->QueryFloatAttribute("z", &Desc.vRotation.z); + + auto* Position = Object->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &Desc.vPosition.x); + Position->QueryFloatAttribute("y", &Desc.vPosition.y); + Position->QueryFloatAttribute("z", &Desc.vPosition.z); + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_REPARO, &Desc))) + return E_FAIL; + } + + return S_OK; +} + HRESULT CMapInfo::Load_DADA_INT() { if (FAILED(Load_MapObjects("DATA_INT_Data", LAYER_DADA_INT))) @@ -853,6 +902,47 @@ HRESULT CMapInfo::Load_DADA_INT() return S_OK; } +HRESULT CMapInfo::Load_Npc() +{ + tinyxml2::XMLDocument xmlDoc; + + string strPath = "../Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml"; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str()))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("NPC"); + + if (nullptr == root) + { + MSG_BOX("Failed to Find root"); + return S_OK; + } + + for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object")) + { + CRandomNpc::NPCDESC NPCDesc{}; + Object->QueryIntAttribute("Index", &NPCDesc.iIndex); + /* Transform */ + auto* Position = Object->FirstChildElement("Position"); + Position->QueryFloatAttribute("x", &NPCDesc.vPos.x); + Position->QueryFloatAttribute("y", &NPCDesc.vPos.y); + Position->QueryFloatAttribute("z", &NPCDesc.vPos.z); + NPCDesc.vPos.w = 1.f; + + auto* Rotation = Object->FirstChildElement("Rotation"); + Rotation->QueryFloatAttribute("x", &NPCDesc.vRotQ.x); + Rotation->QueryFloatAttribute("y", &NPCDesc.vRotQ.y); + Rotation->QueryFloatAttribute("z", &NPCDesc.vRotQ.z); + NPCDesc.vRotQ.w = 1.f; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_NPC, &NPCDesc))) { + return E_FAIL; + } + } + + return S_OK; +} + HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) { m_pGameInstance = CGameInstance::GetInstance(); diff --git a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp index c2232d956..1621040f8 100644 --- a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp +++ b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp @@ -147,9 +147,15 @@ HRESULT CMonsterInfo::Refresh_LockOnMonsters() { // (카메라의 룩)과 (카메라 -> 몬스터 방향 벡터)를 내적해서 가장 큰 크기가 나온 몬스타가 락온 대상 CMonster* pMonster = (*iter); - if (pMonster->Get_Hp().x <= 0) { - continue; + + CStat*pStat = pMonster->Get_Component(); + + if (pStat != nullptr) { + if (pMonster->Get_Hp().x <= 0) { + continue; + } } + vMonsterPos = pMonster->Get_LockOnPos(); vToMonsterDir = vMonsterPos - vCameraPos; if (40.f <= XMVectorGetX(XMVector4Length(vToMonsterDir))) { diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index 9456e9d98..6fdb6e2ed 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -127,6 +127,21 @@ void CNomalJap::Late_Update(_float fTimeDelta) if (false == m_bVisible) { return; } + //if (false == m_bHit) { + // _vector vStartPos = XMLoadFloat4(&m_vStartPos); + // _vector vEndPos = m_pProjectile->Get_WorldPostion(); + + // if (false == m_bHit) { + // _vector vStartPos = XMLoadFloat4(&m_vStartPos); + // _vector vEndPos = XMLoadFloat4(&m_vEndPos); + // if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + // { + // ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); + // OnCollision(this, &CollisionInfo); + // } + // } + //} + if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = m_pProjectile->Get_WorldPostion(); diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index aaf10d146..4c4bfe1fa 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -15,13 +15,13 @@ #include "MapElement_Interactable.h" #include "Monster.h" #include "TimeSocket.h" -#include "PlayerRobe.h" #include "RaceRing.h" #include "Wand.h" #include "Mesh.h" #include "Effect_Container.h" #include "ThestralCarriage.h" #include "MapElement_Chest.h" +#include "ReparoObject.h" CPlayer::CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CUnit(pDevice, pContext) @@ -255,7 +255,9 @@ HRESULT CPlayer::Render() } } #ifdef _DEBUG - Render_CameraCoordinateSystem(); +#ifdef 기무리 + //Render_CameraCoordinateSystem(); +#endif // 기무리 //m_pCharacter_Controller->Render(); #endif // _DEBUG @@ -430,6 +432,12 @@ void CPlayer::Set_Interaction(_bool bInteraction) m_bCurrentInteraction = bInteraction; } +void CPlayer::ExitBattle() +{ + m_bDuel_ZOnlyMove = false; + m_pCharacter_Controller->Set_Position(XMLoadFloat4(&m_OriginPos)); +} + HRESULT CPlayer::Render_Shadow(SHADOW eType) { if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { @@ -455,16 +463,8 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType) if (FAILED(Bind_ShaderParameters(i))) { return E_FAIL; } - if (i == ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)) { - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW_LEGACY)))) { - return E_FAIL; - } - - } - else { - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) { - return E_FAIL; - } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) { + return E_FAIL; } m_pModelCom->Bind_OutPut_SRV_VS(26, 0); m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0); @@ -549,6 +549,7 @@ void CPlayer::Trigger(CTimeSocket& Socket) m_pCharacter_Controller->Set_Position(vNewPos); m_pTransformCom->RotationQ(pContents->pxTransform.q); m_pTransformCom->RewindMomentum(); + } break; } break; case TIMESOCKET_FUNC::TRANSLATION_LERP: @@ -557,6 +558,22 @@ void CPlayer::Trigger(CTimeSocket& Socket) } break; case TIMESOCKET_FUNC::SET_ANIMSTATE: { + } break; + case TIMESOCKET_FUNC::SET_FSMSTATE: + { + if (pContents->vFlags.b[0]) { + m_pFSM->Change_State(FSMSTATE::CUTSCENE); + } + else if (pContents->vFlags.b[1]) { + m_pFSM->Change_State(FSMSTATE::IDLE); + } + } break; + case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX: + { + + } break; + case TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX: + { } break; default: @@ -667,6 +684,10 @@ HRESULT CPlayer::Ready_Components() return E_FAIL; } m_pCharacter_Controller->SetGravity(false); + m_pCharacter_Controller->Set_GravityAmount(1.2f); +#ifdef _DEBUG + m_pCharacter_Controller->Set_Name("CCT_PLAYER"); +#endif // _DEBUG } { // DO @@ -770,17 +791,16 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder) _float fMixerFactor = { FLT_MAX }; _uint iColorMixerMethod = { 0 }; - switch (PLAYER_MESH_ORDER(iMeshOrder)) + switch (CPlayer::PLAYER_MESH_ORDER(iMeshOrder)) { - case PLAYER_MESH_ORDER::HAIR_MAIN: - case PLAYER_MESH_ORDER::HEAD_EYELASH: - case PLAYER_MESH_ORDER::HAIR_SUB: + case CPlayer::PLAYER_MESH_ORDER::HAIR_MAIN: + case CPlayer::PLAYER_MESH_ORDER::EYELASH: bUseColorMixer = true; iColorParam = 0x2E2E2E; fMixerFactor = 0.9f; iColorMixerMethod = 1; break; - case PLAYER_MESH_ORDER::LOWER: + case CPlayer::PLAYER_MESH_ORDER::CLOTH: bUseColorMixer = true; iColorParam = 0x292557; fMixerFactor = 0.5f; @@ -964,6 +984,24 @@ void CPlayer::Find_HiddenObjects() } +void CPlayer::Check_Reparoobejcts() +{ + CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_REPARO); + + if (nullptr == pLayer) + return; + + const list* pReparoObjects = pLayer->Get_Objects(); + + for (auto& pObject : *pReparoObjects) + { + CReparoObject* pReparoObject = dynamic_cast(pObject); + if (nullptr != pReparoObject) + if (pReparoObject->IsRepairable(false)) + return; + } +} + void CPlayer::Update_CameraCoordinateSystem(_float fTimeDelta) { _vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f)); @@ -1012,7 +1050,7 @@ void CPlayer::Free() { __super::Free(); - SAFE_RELEASE(m_pRobePart); + //SAFE_RELEASE(m_pRobePart); SAFE_RELEASE(m_pGrapInteractive); if (nullptr != m_pInfoInstance) { @@ -1191,12 +1229,9 @@ void CPlayer::Describe_Entity() m_pLightCom->Describe_Entity(); - for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++) - { - if (GUI::Button(m_pModelCom->Get_AnimList(i))) - { - m_pModelCom->Set_AnimationIndex(i); - } + if (GUI::TreeNode("PLAYER_ANIMLIST")) { + m_pModelCom->Describe_Entity(); + GUI::TreePop(); } } GUI::End(); diff --git a/Jusin154_Team3D/Client/Private/PlayerRobe.cpp b/Jusin154_Team3D/Client/Private/PlayerRobe.cpp index 9e0897e11..70e741d78 100644 --- a/Jusin154_Team3D/Client/Private/PlayerRobe.cpp +++ b/Jusin154_Team3D/Client/Private/PlayerRobe.cpp @@ -345,7 +345,7 @@ HRESULT CPlayerRobe::Update_RobeJoints() void CPlayerRobe::Describe_Entity() { - GUI::Begin("PhysX"); + GUI::Begin("PhysX", 0, IMGUI_GLOBAL_BEGIN_FLAG); if (GUI::CollapsingHeader("Robe")) { for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) { _uint iActor0 = i; diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index c72019d42..3634dadb7 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -9,6 +9,7 @@ #include "CamPosition_Arm.h" #include "State_CutScene.h" #include "Wand.h" +#include "ThestralCarriage.h" #include "Item_Potion.h" #include "Character_Controller.h" #include "MapElement_Interactable.h" @@ -382,7 +383,7 @@ void CPlayer::Behavior_CutSceneEnter() m_bSprintToggle = false; m_bWalkToggle = false; - pairAnimInfo = m_Animation[STATEANIM::CUTSCENE_OPENINGINTRO2]; + pairAnimInfo = m_Animation[STATEANIM::CUTSCENE_OPENINGINTRO1]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); m_bOpeningCutScene = true; } @@ -391,16 +392,11 @@ HRESULT CPlayer::Behavior_CutSceneExitCheck(_float fTimeDelta) { if (m_bOpeningCutScene) { - //_vector Offset = XMVectorSet(1.820f, 0.44f, 0.f, 0.f); - //m_pTransformCom->Set_WorldMatrix(m_pCarriage->Get_Component()->Get_XMWorldMatrix()); - m_pCharacter_Controller->Set_Position(m_pCarriage->Get_WorldPostion() /*+ Offset*/); + m_pTransformCom->Set_State(STATE::POSITION, m_pCarriage->Get_SocketWorldMatrix(CThestralCarriage::CARRIAGE_SOCKET::FRONT_RIGHT).r[3]); + m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION)); + m_pTransformCom->RotationQ(XMQuaternionRotationAxis(XMVectorSet(0.f, -1.f, 0.f, 0.f), XMConvertToRadians(90.f))); } - /*if (m_pCarriage->Get_Component()->IsFinishedAnim()) - { - m_pFSM->Change_State(FSMSTATE::IDLE); - return E_FAIL; - }*/ return S_OK; } @@ -1120,7 +1116,6 @@ void CPlayer::Behavior_CombatEnter() 0.1f); } } - } HRESULT CPlayer::Behavior_CombatExitCheck() @@ -1473,8 +1468,9 @@ void CPlayer::Behavior_SpellEnter() 0.01f); } Add_SpellEvent(pairAnimInfo.first, fRatio); - if (m_eSpell != ENUM_CLASS(SKILL_TYPE::LUMOS) && - m_eSpell != ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA)) + if(ENUM_CLASS(SKILL_TYPE::REPARO) == m_eSpell) + Check_Reparoobejcts(); + if (!m_bStartSpellAnim) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, fAnimSpeed); } @@ -1482,8 +1478,7 @@ void CPlayer::Behavior_SpellEnter() fRatio = 0.2f; pairAnimInfo = m_Animation[STATEANIM::SPELL]; Add_SpellEvent(pairAnimInfo.first, fRatio); - if (m_eSpell != ENUM_CLASS(SKILL_TYPE::LUMOS) && - m_eSpell !=ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA)) + if (!m_bStartSpellAnim) m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); } @@ -1505,7 +1500,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck() _uint iIndex = m_pModelCom->Get_AnimIndex(); _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); - if (SUCCEEDED(InputSpell()) && !m_bSpellHit) + if (SUCCEEDED(InputSpell()) && !m_bSpellHit && iIndex != m_Animation[STATEANIM::AVADA_KEDAVRA].first) { _uint iCurr = m_pModelCom->Get_AnimIndex(); _uint iStart = m_Animation[STATEANIM::SPELL].first; @@ -1625,7 +1620,7 @@ void CPlayer::Behavior_SpellExit() Reset_Event(); m_bLookAt = false; m_bSpellHit = false; - + m_bStartSpellAnim = false; } void CPlayer::Behavior_AncientSpellEnter() @@ -2747,7 +2742,7 @@ void CPlayer::Attach_Broom() _matrix BoneNoScale = XMMatrixRotationQuaternion(Rot) * XMMatrixTranslationFromVector(Trans); - m_OffsetPos = { 0.f,0.9f,0.f }; + m_OffsetPos = { 0.f,1.f,0.f }; _matrix Offset = XMMatrixTranslation(m_OffsetPos.x, m_OffsetPos.y, m_OffsetPos.z); @@ -2885,6 +2880,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) switch (m_eSpell) { case ENUM_CLASS(SKILL_TYPE::BOMBARDA): + m_bStartSpellAnim = false; Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this); }, /* 임시로 바꿔놓음 */ fRatio); @@ -2896,6 +2892,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) break; case ENUM_CLASS(SKILL_TYPE::DESCENDO): + m_bStartSpellAnim = false; Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::DESCENDO, Get_PartObject()); }, fRatio); @@ -2907,6 +2904,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) break; case ENUM_CLASS(SKILL_TYPE::LEVIOSO): + m_bStartSpellAnim = false; Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO, this); }, fRatio); @@ -2918,14 +2916,20 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) break; case ENUM_CLASS(SKILL_TYPE::ACCIO): + m_bStartSpellAnim = false; Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO, this); }, fRatio); + + Add_Event(AnimIndex, + [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::ACCIO_SIDE, Get_PartObject()); }, + 0.f); Info.pText = TEXT("아씨오!"); m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info); break; case ENUM_CLASS(SKILL_TYPE::TRANSFORMATION): + m_bStartSpellAnim = false; Add_Event(AnimIndex, [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION, this); }, fRatio); @@ -2936,19 +2940,8 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) Info.pText = TEXT("베라베르토!"); m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info); break; - - case ENUM_CLASS(SKILL_TYPE::DIFFINDO): - pairAnimInfo = m_Animation[STATEANIM::DIFFINDO]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); - Info.pText = TEXT("디핀도!"); - m_pInfoInstance->Event_CallBack(TEXT("Dialogue"), &Info); - break; - - case ENUM_CLASS(SKILL_TYPE::DISILLUSIONMENT): - pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_ENTER]; - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); - break; case ENUM_CLASS(SKILL_TYPE::AVADAKEDAVRA): + m_bStartSpellAnim = true; m_pInfoInstance->Set_SearchLockOnFlag(false); pairAnimInfo = m_Animation[STATEANIM::AVADA_KEDAVRA]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false,1.f,true); @@ -2970,6 +2963,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) break; case ENUM_CLASS(SKILL_TYPE::REPARO): { + m_bStartSpellAnim = true; pairAnimInfo = m_Animation[STATEANIM::REPARO_START]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true); @@ -2987,6 +2981,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) } break; case ENUM_CLASS(SKILL_TYPE::LUMOS): + m_bStartSpellAnim = true; if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first) { if (SUCCEEDED(InputMove())) @@ -3033,6 +3028,7 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio) } break; default: + m_bStartSpellAnim = true; pairAnimInfo = m_Animation[STATEANIM::SPELL_FAIL]; Add_Event(AnimIndex, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::WAND_END, Get_PartObject()); }, diff --git a/Jusin154_Team3D/Client/Private/Protego.cpp b/Jusin154_Team3D/Client/Private/Protego.cpp index 851ee14c1..0ab2b647d 100644 --- a/Jusin154_Team3D/Client/Private/Protego.cpp +++ b/Jusin154_Team3D/Client/Private/Protego.cpp @@ -131,6 +131,12 @@ HRESULT CProtego::Pre_Setting(CGameObject* pObject, void* pArg) return S_OK; } +void CProtego::Set_Visible(_bool bVisible) +{ + m_bVisible = true; + m_pGameInstance->Attach_Actor(*m_pRigidBody->Get_Actor(), CURRENT_LEVEL); +} + HRESULT CProtego::Ready_Components(void* pArg) { if (FAILED(__super::Ready_Components(pArg))) { @@ -199,8 +205,7 @@ void CProtego::OnCollision(CGameObject* pOther, void* pDesc) static_cast(m_pOwner)->Start_CameraShake(0.3f, 2.f); - m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL); - + m_pRigidBody->Detach_Actor(CURRENT_LEVEL); m_bVisible = false; } diff --git a/Jusin154_Team3D/Client/Private/RandomNpc.cpp b/Jusin154_Team3D/Client/Private/RandomNpc.cpp index 4f7fd24f7..e3d4a14f5 100644 --- a/Jusin154_Team3D/Client/Private/RandomNpc.cpp +++ b/Jusin154_Team3D/Client/Private/RandomNpc.cpp @@ -37,15 +37,20 @@ HRESULT CRandomNpc::Initialize(void* pArg) return E_FAIL; } + Load_AnimXML(("../Bin/Resources/Data/AnimList/RandomNpc.xml")); + _vector vPos = XMLoadFloat4(&pDesc->vPos); m_pTransformCom->Set_State(STATE::POSITION, vPos); m_pCharacter_Controller->Set_Position(vPos); - m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ)); + m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotQ.x), XMConvertToRadians(pDesc->vRotQ.y), XMConvertToRadians(pDesc->vRotQ.z)); - m_pModelCom->Set_AnimationIndex(0, true); + _int iRandom = m_pGameInstance->Real_Random_Int(0, 12); + m_pModelCom->Set_AnimationIndex(m_Anims[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; + + return S_OK; } @@ -67,8 +72,18 @@ void CRandomNpc::Update(_float fTimeDelta) if (!m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius())) { return; } + BattleObserve_Anim(); + if (m_pModelCom->IsFinishedAnim()) + { + if (false == m_bBattle) + { + _int iRandom = m_pGameInstance->Real_Random_Int(0, 12); + m_pModelCom->Set_AnimationIndex(m_Anims[iRandom], false, 1.f, false, 1.f, false); + } + } + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); __super::Update(fTimeDelta); #ifdef _DEBUG @@ -91,28 +106,6 @@ void CRandomNpc::Update(_float fTimeDelta) SAFE_RELEASE(m_pTarget); m_fTargetDistance = { FLT_MAX }; } - - /*if (m_fTargetDistance <= 5.f && m_bInteract == false) - { - m_pInfoInstance->Event_CallBack(TEXT("NPCDialogue"), m_pNpcStat); - m_bInteract = true; - } - - if (m_bInteract != m_bPreviousInteract) - { - m_bPreviousInteract = m_bInteract; - m_fInteractTime = 0.f; - } - else - { - m_fInteractTime += fTimeDelta; - } - - if (m_fInteractTime >= 5.f) - { - m_bInteract = false; - m_fInteractTime = 0.f; - }*/ } void CRandomNpc::Late_Update(_float fTimeDelta) @@ -320,7 +313,7 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) Desc.fRotationPerSec = XMConvertToRadians(180.0f); Desc.fRadius = 10.f; - if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, pArg))) { + if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, &Desc))) { return E_FAIL; } @@ -363,39 +356,47 @@ HRESULT CRandomNpc::Ready_Components(void* pArg) return E_FAIL; } m_bBattleObserve_Npc = true; - break; + break; case 6: - m_strModelPrototypeTag = TEXT("Prototype_Component_Elf_Model"); - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("ELF"), (CComponent**)&m_pNpcStat))) { - return E_FAIL; - } - break; - case 7: m_strModelPrototypeTag = TEXT("Prototype_Component_BaiHowin_Model"); if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("BAIHOWIN"), (CComponent**)&m_pNpcStat))) { return E_FAIL; } break; - case 8: + case 7: m_strModelPrototypeTag = TEXT("Prototype_Component_GeorgeOsric_Model"); if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("GEORGEOSRIC"), (CComponent**)&m_pNpcStat))) { return E_FAIL; } m_bBattleObserve_Npc = true; break; - case 9: + case 8: m_strModelPrototypeTag = TEXT("Prototype_Component_DinahHecat_Model"); if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("DINAHHECAT"), (CComponent**)&m_pNpcStat))) { return E_FAIL; } break; - case 10: + case 9: m_strModelPrototypeTag = TEXT("Prototype_Component_MudiwaOnai_Model"); if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("MUDIWAONAI"), (CComponent**)&m_pNpcStat))) { return E_FAIL; } m_bBattleObserve_Npc = true; break; + case 10: + m_strModelPrototypeTag = TEXT("Prototype_Component_VictorRookWood_Model"); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("VICTORROCKWOOD"), (CComponent**)&m_pNpcStat))) { + return E_FAIL; + } + m_bBroomRacer = true; + break; + case 11: + m_strModelPrototypeTag = TEXT("Prototype_Component_ChiyoKogawa_Model"); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("CHIYOKOGAWA"), (CComponent**)&m_pNpcStat))) { + return E_FAIL; + } + m_bBroomRacer = true; + break; } /* Com_Model */ @@ -450,15 +451,15 @@ void CRandomNpc::BattleObserve_Anim() _float fRandX = 0.f; if (iRand == 0) { - fRandX = m_pGameInstance->Real_Random_Float(1002.f, 1004.f); + fRandX = m_pGameInstance->Real_Random_Float(1003.f, 1005.f); } else { - fRandX = m_pGameInstance->Real_Random_Float(1010.f, 1012.f); + fRandX = m_pGameInstance->Real_Random_Float(1009.f, 1011.f); } - _float fRandY = m_pGameInstance->Real_Random_Float(1008.f, 1016.f); + _float fRandZ = m_pGameInstance->Real_Random_Float(1008.f, 1016.f); - m_pCharacter_Controller->Set_Position(XMVectorSet(fRandX, 2.f, fRandY, 1.f)); + m_pCharacter_Controller->Set_Position(XMVectorSet(fRandX, 2.f, fRandZ, 1.f)); _vector vPos = Get_WorldPostion(); _vector vForward = XMVectorZero(); @@ -469,6 +470,8 @@ void CRandomNpc::BattleObserve_Anim() vForward = XMVectorSet(-1.f, 0.f, 0.f, 0.f); } + _int iRandIndex = m_pGameInstance->Real_Random_Int(14, 21); + m_pModelCom->Set_AnimationIndex(iRandIndex, false, 1.f, false, 1.f, false); m_pTransformCom->LookAt(vPos + vForward); @@ -480,11 +483,47 @@ void CRandomNpc::BattleObserve_Anim() if (m_pModelCom->IsFinishedAnim()) { _int iRand = m_pGameInstance->Real_Random_Int(14, 21); - m_pModelCom->Set_AnimationIndex(iRand, false,1.f,false,1.f,false); + m_pModelCom->Set_AnimationIndex(iRand, false, 1.f, false, 1.f, false); } } } +void CRandomNpc::Load_AnimXML(const _char* pFilePath) +{ + tinyxml2::XMLDocument doc; + if (doc.LoadFile(pFilePath) != tinyxml2::XML_SUCCESS) + return; + + tinyxml2::XMLElement* pRoot = doc.FirstChildElement("NPCAnimations"); + + const char* pModelType = + (m_bBroomRacer == true) ? "RACING" : "DEFAULT"; + + for (tinyxml2::XMLElement* pNPC = pRoot->FirstChildElement("NPC"); + pNPC; + pNPC = pNPC->NextSiblingElement("NPC")) + { + if (strcmp(pNPC->Attribute("Model"), pModelType) != 0) + continue; + + for (tinyxml2::XMLElement* pAnim = pNPC->FirstChildElement("Anim"); + pAnim; + pAnim = pAnim->NextSiblingElement("Anim")) + { + string animName = pAnim->Attribute("Name"); + + for (tinyxml2::XMLElement* pIndex = pAnim->FirstChildElement("Index"); + pIndex; + pIndex = pIndex->NextSiblingElement("Index")) + { + m_Anims.push_back(pIndex->IntText()); + } + } + break; + } +} + + CRandomNpc* CRandomNpc::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CRandomNpc* pInstance = new CRandomNpc(pDevice, pContext); diff --git a/Jusin154_Team3D/Client/Private/ReparoObject.cpp b/Jusin154_Team3D/Client/Private/ReparoObject.cpp index 94fef5cff..5fc1d0554 100644 --- a/Jusin154_Team3D/Client/Private/ReparoObject.cpp +++ b/Jusin154_Team3D/Client/Private/ReparoObject.cpp @@ -8,13 +8,12 @@ #include "EffectParts.h" CReparoObject::CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - : CUnit(pDevice, pContext) + : CMonster(pDevice, pContext) { } CReparoObject::CReparoObject(const CReparoObject& Prototype) - : CUnit(Prototype), - m_pInfoInstance(CInfoInstance::GetInstance()) + : CMonster(Prototype) { } @@ -29,15 +28,20 @@ HRESULT CReparoObject::Initialize(void* pArg) return E_FAIL; } - if (FAILED(Ready_Components())) { return E_FAIL; } - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); - - m_pModelCom->Set_AnimationIndex(0); + REPARO_OBJECT_DESC* pDesc = static_cast(pArg); + m_iModelID = pDesc->iModelID; + m_fRadius = pDesc->fRadius; + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f)); + m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z)); + // 되돌리기 전 Before + m_ePreState = m_eCurState = REPARO_OBJECT_STATE::SLEEP; + m_pModelCom->Set_AnimationIndex(2); + m_pInfoInstance->Deregist_PlayerAlly(this); return S_OK; } @@ -51,20 +55,41 @@ void CReparoObject::Update(_float fTimeDelta) { __super::Update(fTimeDelta); + Change_State(); + + switch (m_eCurState) + { + case Client::CReparoObject::REPARO_OBJECT_STATE::SLEEP: + break; + case Client::CReparoObject::REPARO_OBJECT_STATE::BEFORE: + break; + case Client::CReparoObject::REPARO_OBJECT_STATE::PLAYANIM: + if (true == m_pModelCom->IsFinishedAnim()) + m_eCurState = REPARO_OBJECT_STATE::AFTER; + break; + + case Client::CReparoObject::REPARO_OBJECT_STATE::AFTER: + break; + + default: + break; + } + + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); #ifdef _DEBUG Describe_Entity(); #endif // _DEBUG - } void CReparoObject::Late_Update(_float fTimeDelta) { __super::Late_Update(fTimeDelta); - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + if(m_pGameInstance->IsIn_WorldFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_fRadius)) + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); } @@ -79,6 +104,10 @@ HRESULT CReparoObject::Render() } _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + _uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT); + if (true == m_bDrawOutLine) { + iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE); + } for (_uint i = 0; i < iNumMeshes; i++) { @@ -107,9 +136,130 @@ HRESULT CReparoObject::Render() } } + if (m_bDrawOutLine) { + Render_OutLine(); + } + return S_OK; } +_bool CReparoObject::IsRepairable(_bool isAwake) +{ + if (isAwake && REPARO_OBJECT_STATE::SLEEP == m_eCurState) + { + m_eCurState = REPARO_OBJECT_STATE::BEFORE; + return false; + } + LOCKON_INFO info = {}; + m_pInfoInstance->Get_LockOnInfo(info); + + if (info.pUnit == this && REPARO_OBJECT_STATE::BEFORE == m_eCurState) + { + m_eCurState = REPARO_OBJECT_STATE::PLAYANIM; + return true; + } + + return false; +} + +HRESULT CReparoObject::Render_OutLine() +{ + m_bDrawOutLine = false; + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) { + return E_FAIL; + } + + Compute_Depth(); + _float fCamFar = *m_pGameInstance->Get_CurrentCameraFar(); + _float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar))); + m_fOutLineThickness = CMyTools::Lerp_f1D(0.024f, 0.5f, fRatio); + if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) { + return E_FAIL; + } + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pShaderCom->Bind_Matrices( + "g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size() + ))) + { + return E_FAIL; + } + + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_READ)))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(31, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + return S_OK; +} + +void CReparoObject::Change_State() +{ + if (m_eCurState != m_ePreState) + { + switch (m_eCurState) + { + case Client::CReparoObject::REPARO_OBJECT_STATE::SLEEP: + break; + + case Client::CReparoObject::REPARO_OBJECT_STATE::BEFORE: + m_pInfoInstance->Regist_PlayerAlly(this); + break; + + case Client::CReparoObject::REPARO_OBJECT_STATE::PLAYANIM: + m_pModelCom->Set_AnimationIndex(0, false); + break; + + case Client::CReparoObject::REPARO_OBJECT_STATE::AFTER: + m_pModelCom->Set_AnimationIndex(1); + m_pInfoInstance->Deregist_PlayerAlly(this); + break; + + case Client::CReparoObject::REPARO_OBJECT_STATE::END: + default: + break; + } + m_ePreState = m_eCurState; + } +} + HRESULT CReparoObject::Ready_Components() { CTransform::TRANSFORM_DESC Desc = {}; @@ -118,21 +268,33 @@ HRESULT CReparoObject::Ready_Components() Desc.fRotationPerSec = XMConvertToRadians(180.0f); Desc.fRadius = 10.f; - __super::Ready_Components(&Desc); - - /* Com_Model */ - if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"), - reinterpret_cast(&m_pModelCom)))) { + if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, &Desc))) { return E_FAIL; } + if(0 == m_iModelID) + { + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"), + reinterpret_cast(&m_pModelCom)))) { + return E_FAIL; + } + } + else + { + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"), + reinterpret_cast(&m_pModelCom)))) { + return E_FAIL; + } + } + /* Com_Shader */ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH, reinterpret_cast(&m_pShaderCom)))) { return E_FAIL; } - return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Revelio.cpp b/Jusin154_Team3D/Client/Private/Revelio.cpp index 118d337b9..4863ab2c2 100644 --- a/Jusin154_Team3D/Client/Private/Revelio.cpp +++ b/Jusin154_Team3D/Client/Private/Revelio.cpp @@ -18,7 +18,6 @@ CRevelio::CRevelio(const CRevelio& rhs) HRESULT CRevelio::Initialize_Prototype() { - if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Revelio"))) return E_FAIL; @@ -41,10 +40,12 @@ HRESULT CRevelio::Initialize(void* pArg) m_pRevelioPT_Y = Get_PartObject("WandPT_Y"); m_pRevelioPT_B = Get_PartObject("WandPT_B"); m_pRevelioPT_R = Get_PartObject("WandPT_R"); + m_pWand_Light = Get_PartObject("Wand_Light"); SAFE_ADDREF(m_pRevelioPT_Y); SAFE_ADDREF(m_pRevelioPT_B); SAFE_ADDREF(m_pRevelioPT_R); + SAFE_ADDREF(m_pWand_Light); m_wstrEffectName = L"Revelio"; @@ -69,7 +70,7 @@ void CRevelio::Update(_float fTimeDelta) __super::Update(fTimeDelta); Update_Event(fTimeDelta); - + CPlayer* pPlayer = static_cast(m_pOwner); if (pPlayer == nullptr) @@ -82,6 +83,7 @@ void CRevelio::Update(_float fTimeDelta) m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld); + m_pWand_Light->Get_Component()->Set_WorldMatrix(WandWorld); } @@ -97,10 +99,9 @@ void CRevelio::Late_Update(_float fTimeDelta) HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg) { - if (FAILED(__super::Pre_Setting(pObject))) + if (FAILED(__super::Pre_Setting(pObject, nullptr))) return E_FAIL; - CPlayer* pPlayer = static_cast(m_pOwner); if (pPlayer == nullptr) @@ -113,15 +114,43 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg) m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld); + m_pWand_Light->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_Y->Set_Visible(true); m_pRevelioPT_R->Set_Visible(true); m_pRevelioPT_B->Set_Visible(true); + m_pWand_Light->Set_Visible(true); - Get_PartObject("Revelio_Ring")->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); - Get_PartObject("Revelio_Ring")->Set_Visible(true); + CEffectParts* pRevelio_ScreenFX = Get_PartObject("Revelio_ScreenFX"); + CEffectParts* pRevelio_ScreenFX_Reverse = Get_PartObject("Revelio_ScreenFX_Reverse"); + CEffectParts* pRevelio_Smoke = Get_PartObject("Revelio_Smoke"); + CEffectParts* pRevelio_Distortion = Get_PartObject("Revelio_Distortion"); + CEffectParts* pBottom_PT = Get_PartObject("Bottom_PT"); + pRevelio_ScreenFX->Set_Visible(true); + pRevelio_ScreenFX_Reverse->Set_Visible(true); + pRevelio_Smoke->Set_Visible(true); + pRevelio_Distortion->Set_Visible(true); + pBottom_PT->Set_Visible(true); + + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vFootPos = {}; + _vector vPos = {}; + + if (pCCT != nullptr) + { + vFootPos = pCCT->Get_FootPosition(); + vPos = pCCT->Get_Position(); + + pRevelio_Smoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pBottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pRevelio_Distortion->Get_Component()->Set_State(STATE::POSITION, vPos); + + + } return S_OK; } @@ -186,7 +215,7 @@ void CRevelio::Free() SAFE_RELEASE(m_pRevelioPT_Y); SAFE_RELEASE(m_pRevelioPT_B); SAFE_RELEASE(m_pRevelioPT_R); - + SAFE_RELEASE(m_pWand_Light); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp index 400a2ee64..75a9bf618 100644 --- a/Jusin154_Team3D/Client/Private/Stupefy.cpp +++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp @@ -94,9 +94,16 @@ void CStupefy::Late_Update(_float fTimeDelta) if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); - OnCollision(this, &CollisionInfo); + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + { + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); + OnCollision(this, &CollisionInfo); + } + } } } diff --git a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp index 251cb3500..7a595e639 100644 --- a/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp +++ b/Jusin154_Team3D/Client/Private/ThestralCarriage.cpp @@ -5,12 +5,12 @@ #include "InfoInstance.h" CThestralCarriage::CThestralCarriage(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - : CGameObject(pDevice, pContext) + : CUnit(pDevice, pContext) { } CThestralCarriage::CThestralCarriage(const CThestralCarriage& Prototype) - : CGameObject(Prototype), + : CUnit(Prototype), m_pInfoInstance(CInfoInstance::GetInstance()) { } @@ -31,8 +31,23 @@ HRESULT CThestralCarriage::Initialize(void* pArg) return E_FAIL; } - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-21.f, -5.759f, -14.f, 1.f)); +#ifdef _DEBUG + D3D11_RASTERIZER_DESC RSS_Desc = {}; + RSS_Desc.FillMode = D3D11_FILL_WIREFRAME; + RSS_Desc.CullMode = D3D11_CULL_BACK; + RSS_Desc.FrontCounterClockwise = FALSE; + RSS_Desc.DepthClipEnable = TRUE; + RSS_Desc.AntialiasedLineEnable = TRUE; + + m_pDevice->CreateRasterizerState(&RSS_Desc, &m_pRSS); + + +#endif // _DEBUG + + + m_iAnimationIndex = 2; + m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); //vector> chain = //{ // { 0, false }, @@ -42,7 +57,8 @@ HRESULT CThestralCarriage::Initialize(void* pArg) //for (auto& anim : chain) // m_pModelCom->Set_ChainAnimation(anim); - m_pModelCom->Set_AnimationIndex(0); + m_iAnimationIndex = 0; + m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); m_pModelCom->IsRootBone(false); // //m_pModelCom->Start_ChainAnimation(); @@ -58,38 +74,8 @@ void CThestralCarriage::Priority_Update(_float fTimeDelta) void CThestralCarriage::Update(_float fTimeDelta) { __super::Update(fTimeDelta); - - if (m_pGameInstance->Key_Up(DIK_U)) - { - m_pModelCom->Set_AnimationIndex(1); - m_pModelCom->IsRootBone(false); - } - m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); - //m_pModelCom->Update_ChainAnimation(); - - _float4 RootMomentum = m_pModelCom->Get_RootBoneMomentum(); - _vector RootDelta = XMLoadFloat4(&RootMomentum); - - _vector vRight = m_pTransformCom->Get_State(STATE::RIGHT); - _vector vUp = m_pTransformCom->Get_State(STATE::UP); - _vector vLook = m_pTransformCom->Get_State(STATE::LOOK); - - - _float dx = XMVectorGetX(RootDelta); - _float dy = XMVectorGetY(RootDelta); - _float dz = XMVectorGetZ(RootDelta); - - _vector vWorldDelta = - vRight * dx + - vUp * dy + - vLook * dz; - - _vector vPos = m_pTransformCom->Get_State(STATE::POSITION); - m_pTransformCom->Set_State(STATE::POSITION, vPos + vWorldDelta); - - #ifdef _DEBUG Describe_Entity(); #endif // _DEBUG @@ -101,7 +87,7 @@ void CThestralCarriage::Late_Update(_float fTimeDelta) __super::Late_Update(fTimeDelta); m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); - + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); } HRESULT CThestralCarriage::Render() @@ -113,37 +99,176 @@ HRESULT CThestralCarriage::Render() if (FAILED(Bind_ShaderResources())) { return E_FAIL; } +#ifdef _DEBUG + ID3D11RasterizerState* pOriginalRSS = { nullptr }; + if (m_bRender_WireFrame) { + m_pContext->RSGetState(&pOriginalRSS); + } +#endif // _DEBUG + RENDER ePass = m_pGameInstance->Get_CurrentRenderPass(); _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + if (RENDER::NONBLEND == ePass) { + for (_uint i = 0; i < iNumMeshes; i++) + { + if (i == ENUM_CLASS(CARRIAGE_MESH_ORDER::WINDOWS)) { + continue; + } + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } - for (_uint i = 0; i < iNumMeshes; i++) - { - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + if (FAILED(m_pShaderCom->Bind_Matrices( + "g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size() + ))) + { + return E_FAIL; + } + if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { + return E_FAIL; + } +#ifdef _DEBUG + if (m_bRender_WireFrame) { + m_pContext->RSSetState(m_pRSS); + } +#endif // _DEBUG + m_pModelCom->Bind_OutPut_SRV_VS(26, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + } + else if (RENDER::BLEND == ePass) { + if (FAILED(m_pModelCom->Bind_Material(1, m_pShaderCom))) { return E_FAIL; } if (FAILED(m_pShaderCom->Bind_Matrices( "g_OffsetMatrix", - m_pModelCom->Get_OffsetMatrix(i).data(), - (_int)m_pModelCom->Get_OffsetMatrix(i).size() + m_pModelCom->Get_OffsetMatrix(1).data(), + (_int)m_pModelCom->Get_OffsetMatrix(1).size() ))) { return E_FAIL; } - if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) { + if (FAILED(m_pModelCom->Begin(1, m_pShaderCom))) { return E_FAIL; } - +#ifdef _DEBUG + if (m_bRender_WireFrame) { + m_pContext->RSSetState(m_pRSS); + } +#endif // _DEBUG m_pModelCom->Bind_OutPut_SRV_VS(26, 0); - if (FAILED(m_pModelCom->Render(i))) { + if (FAILED(m_pModelCom->Render(1))) { return E_FAIL; } } +#ifdef _DEBUG + if (m_bRender_WireFrame) { + m_pContext->RSSetState(pOriginalRSS); + SAFE_RELEASE(pOriginalRSS); + } +#endif // _DEBUG + return S_OK; } +void CThestralCarriage::Trigger(CTimeSocket& Socket) +{ + SOCKETCONTENTS* pContents = &Socket.m_Contents; + switch (pContents->eTypeFunc) + { + case TIMESOCKET_FUNC::TELEPORTATION: + { + m_pTransformCom->Set_WorldMatrix(pContents->pxTransform); + } break; + case TIMESOCKET_FUNC::TRANSLATION: + { + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f)); + } break; + case TIMESOCKET_FUNC::TRANSLATION_LERP: + { + + } break; + case TIMESOCKET_FUNC::SET_ANIMSTATE: + { + + } break; + case TIMESOCKET_FUNC::SET_FSMSTATE: + { + // if (pContents->vFlags.b[0]) { + // m_iAnimationIndex = 0; + // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); + // m_pModelCom->IsRootBone(false); + // } + // else if (pContents->vFlags.b[1]) { + // m_iAnimationIndex = 1; + // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); + // m_pModelCom->IsRootBone(false); + // } + // else if (pContents->vFlags.b[2]) { + // m_iAnimationIndex = 2; + // m_pModelCom->Set_AnimationIndex(m_iAnimationIndex); + // m_pModelCom->IsRootBone(false); + // } + } break; + case TIMESOCKET_FUNC::BIND_SOCKET_MATRIX: + { + + } break; + case TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX: + { + + } break; + default: + break; + } +} + +_vector CThestralCarriage::Get_WorldPostion() +{ + return (XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_left")) * m_pTransformCom->Get_XMWorldMatrix()).r[3]; +} + +_matrix CThestralCarriage::Get_SeatMatrix() +{ + return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_left")) * m_pTransformCom->Get_XMWorldMatrix(); +} + +_matrix CThestralCarriage::Get_SocketWorldMatrix(CARRIAGE_SOCKET eSocket) +{ + switch (eSocket) + { + case CThestralCarriage::CARRIAGE_SOCKET::BACK: + return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("backSeat")) * m_pTransformCom->Get_XMWorldMatrix(); + break; + case CThestralCarriage::CARRIAGE_SOCKET::BACK_LEFT: + return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_back_left")) * m_pTransformCom->Get_XMWorldMatrix(); + break; + case CThestralCarriage::CARRIAGE_SOCKET::BACK_RIGHT: + return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_back_right")) * m_pTransformCom->Get_XMWorldMatrix(); + break; + case CThestralCarriage::CARRIAGE_SOCKET::FRONT: + return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("frontSeat")) * m_pTransformCom->Get_XMWorldMatrix(); + break; + case CThestralCarriage::CARRIAGE_SOCKET::FRONT_LEFT: + return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_left")) * m_pTransformCom->Get_XMWorldMatrix(); + break; + case CThestralCarriage::CARRIAGE_SOCKET::FRONT_RIGHT: + return XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("seatSocket_front_right")) * m_pTransformCom->Get_XMWorldMatrix(); + break; + default: + return XMMatrixIdentity(); + break; + } +} + HRESULT CThestralCarriage::Ready_Components() { CTransform::TRANSFORM_DESC Desc = {}; @@ -192,7 +317,6 @@ HRESULT CThestralCarriage::Bind_ShaderResources() if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { return E_FAIL; } @@ -230,6 +354,9 @@ void CThestralCarriage::Free() { __super::Free(); +#ifdef _DEBUG + SAFE_RELEASE(m_pRSS); +#endif // _DEBUG SAFE_RELEASE(m_pModelCom); SAFE_RELEASE(m_pShaderCom); } @@ -239,6 +366,8 @@ void CThestralCarriage::Describe_Entity() { GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG); if (GUI::CollapsingHeader("Carriage")) { + m_pTransformCom->Describe_Entity(); + m_pShaderCom->Describe_Entity(); string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex()); GUI::Text(AnimList.c_str()); GUI::Text("AnimIndex %d", m_pModelCom->Get_AnimIndex()); @@ -251,6 +380,7 @@ void CThestralCarriage::Describe_Entity() float Pos3[3] = { Pos.x, Pos.y, Pos.z }; GUI::DragFloat3("Pos", Pos3); + GUI::Checkbox("WireFrame", &m_bRender_WireFrame); _float RotR, RotU, RotL; RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT)); @@ -264,6 +394,7 @@ void CThestralCarriage::Describe_Entity() { m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z, 1.f)); } + m_pModelCom->Describe_Entity(); } GUI::End(); } diff --git a/Jusin154_Team3D/Client/Private/Transformation.cpp b/Jusin154_Team3D/Client/Private/Transformation.cpp index 5f91c5a19..38e694493 100644 --- a/Jusin154_Team3D/Client/Private/Transformation.cpp +++ b/Jusin154_Team3D/Client/Private/Transformation.cpp @@ -44,7 +44,10 @@ HRESULT CTransformation::Initialize(void* pArg) m_wstrEffectName = L"Transformation"; m_pTransformation_PJ = Get_PartObject("Transformation_PJ"); + m_pTransformation_PJ_PT = Get_PartObject("Transformation_PJ_PT"); + SAFE_ADDREF(m_pTransformation_PJ); + SAFE_ADDREF(m_pTransformation_PJ_PT); m_fDuration = 3.5f; @@ -70,7 +73,7 @@ void CTransformation::Update(_float fTimeDelta) CTransform* pPJTransform = m_pTransformation_PJ->Get_Component(); pPJTransform->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - + m_pTransformation_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -89,9 +92,16 @@ void CTransformation::Late_Update(_float fTimeDelta) if (false == m_bHit) { _vector vStartPos = XMLoadFloat4(&m_vStartPos); _vector vEndPos = XMLoadFloat4(&m_vEndPos); - ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.002f); - OnCollision(this, &CollisionInfo); + if (false == m_bHit) { + _vector vStartPos = XMLoadFloat4(&m_vStartPos); + _vector vEndPos = XMLoadFloat4(&m_vEndPos); + if (false == XMVector3NearEqual(vEndPos, XMVectorZero(), XMVectorReplicate(FLT_EPSILON5))) + { + ON_COLLISION_INFO CollisionInfo = SweepTarget(vStartPos, vEndPos, 0.02f); + OnCollision(this, &CollisionInfo); + } + } } } @@ -108,6 +118,7 @@ HRESULT CTransformation::Pre_Setting(CGameObject* pObject, void* pArg) m_pTransformation_PJ->Get_Effect_Info()->isDissolve = false; m_pTransformation_PJ->Set_Visible(true); + m_pTransformation_PJ_PT->Set_Visible(true); CEffectParts* pWand_Distortion = Get_PartObject("Wand_Distortion"); CEffectParts* pWand_Light = Get_PartObject("Wand_Light"); @@ -120,6 +131,7 @@ HRESULT CTransformation::Pre_Setting(CGameObject* pObject, void* pArg) pWand_Distortion->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pWand_Light->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pWand_PT->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + m_pTransformation_PJ_PT->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); XMStoreFloat3(&m_vCameraLook, vDirection); @@ -257,6 +269,7 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc) pHit_Light->Get_Component()->Set_State(STATE::POSITION, vHitPos); pHit_PT->Get_Component()->Set_State(STATE::POSITION, vHitPos); + m_pGameInstance->BillBoard(pHit_PT->Get_Component()); pHit_Light->Set_Visible(true); pHit_PT->Set_Visible(true); @@ -282,7 +295,7 @@ void CTransformation::Free() __super::Free(); Safe_Release(m_pTransformation_PJ); - + Safe_Release(m_pTransformation_PJ_PT); } #ifdef _DEBUG void CTransformation::Describe_Entity() diff --git a/Jusin154_Team3D/Client/Private/TransformationSide.cpp b/Jusin154_Team3D/Client/Private/TransformationSide.cpp index abd658bd0..b4d6210ac 100644 --- a/Jusin154_Team3D/Client/Private/TransformationSide.cpp +++ b/Jusin154_Team3D/Client/Private/TransformationSide.cpp @@ -43,6 +43,7 @@ HRESULT CTransformationSide::Initialize(void* pArg) //m_pWandParticle = Get_PartObject("Wand_PT"); + m_pWandLight = Get_PartObject("Wand_Light_B"); m_pWandTrail = Get_PartObject(); @@ -52,18 +53,9 @@ HRESULT CTransformationSide::Initialize(void* pArg) m_fDuration = 2.f; - m_Events.emplace(0.6f, [&]() { + m_Events.emplace(0.8f, [&]() { m_isParticleEnd = true; - //m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f)); - - CWand* pWand = static_cast(m_pOwner); - - if (pWand == nullptr) - return; - - m_isTrailEnd = true; - - XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + m_pWandTrail->SetDissolve(true); }); return S_OK; @@ -99,7 +91,7 @@ void CTransformationSide::Update(_float fTimeDelta) // 트레일이 종료되면 위치를 고정함 _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); - m_pWandTrail->Trail_Update(TrailMat, fTimeDelta); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); } diff --git a/Jusin154_Team3D/Client/Private/TriggerBox.cpp b/Jusin154_Team3D/Client/Private/TriggerBox.cpp index 265b815b9..eb45ffbf4 100644 --- a/Jusin154_Team3D/Client/Private/TriggerBox.cpp +++ b/Jusin154_Team3D/Client/Private/TriggerBox.cpp @@ -1,86 +1,160 @@ #include "pch.h" #include "TriggerBox.h" +#include "Layer.h" +#include "Player.h" -CTriggerBox::CTriggerBox(): - m_pGameInstance(CGameInstance::GetInstance()) +CTriggerBox::CTriggerBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject(pDevice, pContext) +{ +} + +CTriggerBox::CTriggerBox(const CTriggerBox& rhs) + : CGameObject(rhs) { - SAFE_ADDREF(m_pGameInstance); } HRESULT CTriggerBox::TryScanArea(_float fTimeDelta) { +#ifdef _DEBUG + if (false == m_bRender) { + m_bRender = true; + m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this); + } +#endif // _DEBUG m_vScanTimer.x += fTimeDelta; if (m_vScanTimer.x > m_vScanTimer.y) { - m_vScanTimer.x = m_vScanTimer.y; + m_vScanTimer.x = 0.f; return Scan(); } return E_FAIL; } +HRESULT CTriggerBox::Render() +{ +#ifdef _DEBUG + m_Batch->Begin(); + + _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW); + _matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ); + _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0xff0f0f, CMyTools::Saturate(m_vScanTimer.x / m_vScanTimer.y + 0.1f)); + m_pSubShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true); + + m_Batch->End(); + m_bRender = false; +#endif // _DEBUG + + return S_OK; +} + HRESULT CTriggerBox::Initialize(TRIGGERBOX_DESC* pDesc) { - m_fRadius = pDesc->vPosition_Radius.w; - m_vPosition = { pDesc->vPosition_Radius.x, pDesc->vPosition_Radius.y, pDesc->vPosition_Radius.z, 1.f }; + CTransform::TRANSFORM_DESC Desc{}; + Desc.fRadius = pDesc->vPosition_Radius.w; + Desc.fRotationPerSec = 0; + Desc.fSpeedPerSec = 0; + if (FAILED(__super::Ready_Components(&Desc))) { + return E_FAIL; + } + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat4(&pDesc->vPosition_Radius), 1.f)); + + m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, m_pTransformCom->Get_Radius() * 2.f, 12, false, false)); + m_Batch = make_unique>(m_pContext); + + m_vScanTimer.y += m_pGameInstance->Real_Random_Float(0.f, 0.2f); + return S_OK; } HRESULT CTriggerBox::Scan() { - PSX::PxSweepBuffer pxBuffer = {}; - _bool bHit = m_pGameInstance->SphereCast(m_fRadius, XMLoadFloat4(&m_vPosition), XMVectorSet(0.f, 1.f, 0.f, 0.f), 0.1f, - PSX::PxHitFlag::ePOSITION, PSX::PxQueryFlag::eDYNAMIC, pxBuffer); + _float fRadius = m_pTransformCom->Get_Radius(); + + PSX::PxSweepHit hitBuffer[32]; + PSX::PxSweepBuffer pxBuffer(hitBuffer, 32); + _bool bHit = m_pGameInstance->SphereCast(fRadius, m_pTransformCom->Get_State(STATE::POSITION), XMVectorSet(0.f, 1.f, 0.f, 0.f), 0.1f, + PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, pxBuffer); const PSX::PxSweepHit & hit = pxBuffer.block; PSX::PxRigidActor* pActor = hit.actor; + _uint iHitCount = pxBuffer.getNbAnyHits(); + HRESULT hr = E_FAIL; if (bHit) { - if (nullptr != pActor && nullptr != pActor->userData) - { - PHYSX_USERDATA* pUserData = static_cast(pActor->userData); - switch (pUserData->eKind) - { - case PHYSX_KIND::BODY_DYNAMIC: - { - switch (PXOBJECT(pUserData->iSubKind)) - { - case PXOBJECT::PLAYER: - { - return S_OK; - }break; - default: - break; - } - }break; - case PHYSX_KIND::CCTActor: - { - switch (PXOBJECT(pUserData->iSubKind)) - { - case PXOBJECT::PLAYER: { - return S_OK; - } break; - default: + hr = CheckPlayerHit(pActor); + if (FAILED(hr)) { + for (_uint i = 0; i < iHitCount; ++i) { + PSX::PxSweepHit* pHit = &pxBuffer.touches[i]; + hr = CheckPlayerHit(pHit->actor); + if (SUCCEEDED(hr)) { break; } + } + } + } + return hr; +} + +HRESULT CTriggerBox::CheckPlayerHit(PSX::PxActor* pActor) +{ + if (nullptr != pActor && nullptr != pActor->userData) + { + PHYSX_USERDATA* pUserData = static_cast(pActor->userData); + switch (pUserData->eKind) + { + case PHYSX_KIND::BODY_DYNAMIC: + { + switch (PXOBJECT(pUserData->iSubKind)) + { + case PXOBJECT::PLAYER: + { + return S_OK; + }break; + default: + break; + } + }break; + case PHYSX_KIND::CCTActor: + { + switch (PXOBJECT(pUserData->iSubKind)) + { + case PXOBJECT::PLAYER: { + return S_OK; } break; default: break; } + } break; + default: + break; } } - return E_FAIL; + return E_FAIL; } -CTriggerBox* CTriggerBox::Create(TRIGGERBOX_DESC* Desc) +CTriggerBox* CTriggerBox::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, TRIGGERBOX_DESC* Desc) { - CTriggerBox* pInstance = new CTriggerBox(); - - if (FAILED(pInstance->Initialize(Desc))) { - SAFE_RELEASE(pInstance); - } - return pInstance; + CTriggerBox* pInstance = new CTriggerBox(pDevice, pContext); + + if (FAILED(pInstance->Initialize(Desc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; } void CTriggerBox::Free() { __super::Free(); - SAFE_RELEASE(m_pGameInstance); +} + +HRESULT CTriggerBox::Bind_ShaderResources() +{ + return E_NOTIMPL; +} + +CGameObject* CTriggerBox::Clone(void* pArg, CGameObject* pOwner) +{ + return nullptr; +} + +void CTriggerBox::Describe_Entity() +{ } diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp index e74b0e6d4..6ac12d93a 100644 --- a/Jusin154_Team3D/Client/Private/Troll.cpp +++ b/Jusin154_Team3D/Client/Private/Troll.cpp @@ -581,6 +581,14 @@ HRESULT CTroll::Ready_Parts() m_pLeft_Smoke->FollowParents(m_pModelCom->Get_BoneMatrixPtr("LeftArm")); + if (FAILED(Add_PartObject("Troll_Dead_Smoke", g_iStaticLevel, &m_pDead_Smoke, &PartsDesc))) + { + return E_FAIL; + } + m_pDead_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollDead/TrollDead", static_cast(g_iStaticLevel)); + + + if (FAILED(Add_PartObject("Left_Trail", g_iStaticLevel, &m_pLeftTrail, &PartsDesc))) { return E_FAIL; } @@ -691,12 +699,15 @@ void CTroll::Free() SAFE_RELEASE(m_pLeftTrail); SAFE_RELEASE(m_pRightTrail); SAFE_RELEASE(m_pWeaponTrail); + SAFE_RELEASE(m_pRushEffect); + SAFE_RELEASE(m_pDead_Smoke); } #ifdef _DEBUG void CTroll::Describe_Entity() { GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG); + if (GUI::CollapsingHeader("Troll")) { __super::Describe_Entity(); @@ -714,8 +725,6 @@ void CTroll::Describe_Entity() } } - - m_pTransformCom->Describe_Entity(); } GUI::End(); diff --git a/Jusin154_Team3D/Client/Private/TrollSwing.cpp b/Jusin154_Team3D/Client/Private/TrollSwing.cpp index 1be9ce040..120c708b7 100644 --- a/Jusin154_Team3D/Client/Private/TrollSwing.cpp +++ b/Jusin154_Team3D/Client/Private/TrollSwing.cpp @@ -83,19 +83,29 @@ HRESULT CTrollSwing::Pre_Setting(CGameObject* pObject, void* pArg) if (FAILED(__super::Pre_Setting(pObject, nullptr))) return E_FAIL; + _vector vPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); - vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 4.f; CEffectParts* pRockPT = Get_PartObject("Rock_PT_25"); + CEffectParts* pRock_PT_Brown = Get_PartObject("Rock_PT_Brown"); + CEffectParts* pRock_PT_Large = Get_PartObject("Rock_PT_Large"); + CEffectParts* pCrack_Decal = Get_PartObject("Crack_Decal"); CEffectParts* pSmoke = Get_PartObject("Smoke"); pRockPT->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.5f, 0.f, 0.f)); - pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.2f, 0.f, 0.f)); + pRock_PT_Large->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.5f, 0.f, 0.f)); + pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 1.5f, 0.f, 0.f)); + pCrack_Decal->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.2f, 0.f, 0.f)); pRockPT->Set_Visible(true); + pRock_PT_Large->Set_Visible(true); + pSmoke->Set_Visible(true); + //pRock_PT_Brown->Set_Visible(true); + pCrack_Decal->Set_Visible(true); CPlayer* pPlayer = static_cast(m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first); @@ -155,25 +165,6 @@ CGameObject* CTrollSwing::Clone(void* pArg, CGameObject* pOwner) void CTrollSwing::OnCollision(CGameObject* pOther, void* pDesc) { - _int iIndex = CollisionCheck(); - - if (iIndex < 0) - return; - - if (m_isCollisionEnter == true) - return; - - m_isCollisionEnter = true; - - _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); - - - for (auto& pPair : m_PartObjects) - { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); - } - } diff --git a/Jusin154_Team3D/Client/Private/Troll_Rock.cpp b/Jusin154_Team3D/Client/Private/Troll_Rock.cpp index d226aee9d..1521ee601 100644 --- a/Jusin154_Team3D/Client/Private/Troll_Rock.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_Rock.cpp @@ -3,6 +3,8 @@ #include "GameInstance.h" #include "Troll.h" +#include "EffectPool.h" +#include "Layer.h" CTroll_Rock::CTroll_Rock(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CPartObject(pDevice, pContext) @@ -33,11 +35,17 @@ HRESULT CTroll_Rock::Initialize(void* pArg) return E_FAIL; } + + m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + SAFE_ADDREF(m_pEffectPool); + + return S_OK; } void CTroll_Rock::Priority_Update(_float fTimeDelta) { + XMStoreFloat4(&m_vStartPos, m_pTransformCom->Get_State(STATE::POSITION)); m_pModelCom->Combined_BoneMatrix(); if (m_bAttach) @@ -152,6 +160,9 @@ void CTroll_Rock::RockHit() break; } m_bVisible = false; + + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, m_pOwner , &tagCollInfo.vWorldPos); pUserData->pOwner->OnCollision(this, &tagCollInfo); } break; @@ -287,7 +298,7 @@ void CTroll_Rock::Free() SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pModelCom); - + SAFE_RELEASE(m_pEffectPool); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Troll_Rush.cpp b/Jusin154_Team3D/Client/Private/Troll_Rush.cpp new file mode 100644 index 000000000..737399d17 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Troll_Rush.cpp @@ -0,0 +1,190 @@ +#include "pch.h" +#include "Troll_Rush.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" + +CTroll_Rush::CTroll_Rush(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CTroll_Rush::CTroll_Rush(const CTroll_Rush& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CTroll_Rush::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollRushBlur"))) + return E_FAIL; + + + return S_OK; + +} + +HRESULT CTroll_Rush::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + + if (FAILED(Create_Effect())) + return E_FAIL; + + + m_wstrEffectName = L"TrollRushBlur"; + + + m_pRush_Blur = Get_PartObject("Rush_Blur"); + + SAFE_ADDREF(m_pRush_Blur); + + m_fDuration = 2.5f; + + return S_OK; +} + +void CTroll_Rush::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CTroll_Rush::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = pCCT->Get_Position(); + + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + + m_pRush_Blur->Set_Visible(true); + + _vector vRight = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vLook = XMVector3Normalize(XMVector3Cross(vRight , XMVectorSet(0.f, 1.f, 0.f, 0.f))); + _vector vUp = XMVector3Normalize(XMVector3Cross(vLook ,vRight)); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pRush_Blur->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + +} + +void CTroll_Rush::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CTroll_Rush::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + m_pRush_Blur->Get_Component()->Set_Loop(true); + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = pCCT->Get_Position(); + + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + + m_pRush_Blur->Set_Visible(true); + + _vector vRight = XMVector3Normalize( m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook)); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pRush_Blur->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + + return S_OK; +} + +HRESULT CTroll_Rush::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTroll_Rush::Ready_Child() +{ + return S_OK; +} + +CTroll_Rush* CTroll_Rush::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTroll_Rush* pInstance = new CTroll_Rush(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTroll_Rush"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CTroll_Rush::Clone(void* pArg, CGameObject* pOwner) +{ + CTroll_Rush* pInstance = new CTroll_Rush(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTroll_Rush"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTroll_Rush::OnCollision(CGameObject* pOther, void* pDesc) +{ + + +} + +void CTroll_Rush::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pRush_Blur); +} +#ifdef _DEBUG +void CTroll_Rush::Describe_Entity() +{ + +} +#endif + +HRESULT CTroll_Rush::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Troll_Self_Hit.cpp b/Jusin154_Team3D/Client/Private/Troll_Self_Hit.cpp new file mode 100644 index 000000000..0d94efcfd --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Troll_Self_Hit.cpp @@ -0,0 +1,185 @@ +#include "pch.h" +#include "Troll_Self_Hit.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CTroll_Self_Hit::CTroll_Self_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CTroll_Self_Hit::CTroll_Self_Hit(const CTroll_Self_Hit& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CTroll_Self_Hit::Initialize_Prototype() +{ + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollSelfHit"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CTroll_Self_Hit::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Create_Effect())) + return E_FAIL; + + m_wstrEffectName = L"TrollSelfHit"; + + + m_fDuration = 3.5f; + + return S_OK; +} + +void CTroll_Self_Hit::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CTroll_Self_Hit::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + +} + +void CTroll_Self_Hit::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CTroll_Self_Hit::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + _vector vPos = m_pOwner->Get_Component()->Get_HeadPosition(); + + CEffectParts* pHit0 = Get_PartObject("Hit0"); + CEffectParts* pHit1 = Get_PartObject("Hit1"); + + + pHit0->Get_Component()->Set_State(STATE::POSITION, vPos); + pHit1->Get_Component()->Set_State(STATE::POSITION, vPos); + + pHit0->Set_Visible(true); + pHit1->Set_Visible(true); + + + return S_OK; +} + +HRESULT CTroll_Self_Hit::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTroll_Self_Hit::Ready_Child() +{ + return S_OK; +} + +CTroll_Self_Hit* CTroll_Self_Hit::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTroll_Self_Hit* pInstance = new CTroll_Self_Hit(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTroll_Self_Hit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CTroll_Self_Hit::Clone(void* pArg, CGameObject* pOwner) +{ + CTroll_Self_Hit* pInstance = new CTroll_Self_Hit(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTroll_Self_Hit"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTroll_Self_Hit::OnCollision(CGameObject* pOther, void* pDesc) +{ + _int iIndex = CollisionCheck(); + + if (iIndex < 0) + return; + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + + _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + +} + +void CTroll_Self_Hit::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); +} +#ifdef _DEBUG +void CTroll_Self_Hit::Describe_Entity() +{ + +} +#endif + +HRESULT CTroll_Self_Hit::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Troll_Shout.cpp b/Jusin154_Team3D/Client/Private/Troll_Shout.cpp new file mode 100644 index 000000000..710ecf9e7 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Troll_Shout.cpp @@ -0,0 +1,191 @@ +#include "pch.h" +#include "Troll_Shout.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "Wand.h" +#include "Player.h" + +CTroll_Shout::CTroll_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CTroll_Shout::CTroll_Shout(const CTroll_Shout& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CTroll_Shout::Initialize_Prototype() +{ + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollShout"))) + return E_FAIL; + + return S_OK; + +} + +HRESULT CTroll_Shout::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Create_Effect())) + return E_FAIL; + + m_wstrEffectName = L"TrollShout"; + + + m_fDuration = 3.f; + + return S_OK; +} + +void CTroll_Shout::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CTroll_Shout::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + +} + +void CTroll_Shout::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CTroll_Shout::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = XMLoadFloat4(static_cast<_float4*>(pArg)); + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + + _vector vFootPos = {}; + + if (pCCT != nullptr) + { + vFootPos = pCCT->Get_FootPosition(); + + CEffectParts* pShout_Blur = Get_PartObject("Shout_Blur"); + CEffectParts* pSmoke = Get_PartObject("Shout_Smoke"); + + + pShout_Blur->Get_Component()->Set_State(STATE::POSITION, vPos); + pShout_Blur->Set_Visible(true); + + pSmoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pSmoke->Set_Visible(true); + } + + + + return S_OK; +} + +HRESULT CTroll_Shout::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTroll_Shout::Ready_Child() +{ + return S_OK; +} + +CTroll_Shout* CTroll_Shout::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTroll_Shout* pInstance = new CTroll_Shout(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTroll_Shout"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CTroll_Shout::Clone(void* pArg, CGameObject* pOwner) +{ + CTroll_Shout* pInstance = new CTroll_Shout(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTroll_Shout"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTroll_Shout::OnCollision(CGameObject* pOther, void* pDesc) +{ + _int iIndex = CollisionCheck(); + + if (iIndex < 0) + return; + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + + _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + +} + +void CTroll_Shout::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG +void CTroll_Shout::Describe_Entity() +{ + +} +#endif + +HRESULT CTroll_Shout::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Troll_States.cpp b/Jusin154_Team3D/Client/Private/Troll_States.cpp index cad16ffc3..6a1e99492 100644 --- a/Jusin154_Team3D/Client/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Client/Private/Troll_States.cpp @@ -8,6 +8,10 @@ #include "Layer.h" #include "EffectPool.h" #include "TrailObject.h" +#include "Troll_Weapon.h" +#include "Effect_Container.h" +#include "EffectParts.h" +#include "ReparoObject.h" #pragma region STATE #include "State_Idle.h" @@ -87,6 +91,17 @@ void CTroll::Behavior_IdleBreakEnter() break; case 1:// 방망이 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK2]; + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix WeaponMat = XMLoadFloat4x4(m_pWeapon_BoneMat) * Get_PartObject()->Get_Component()->Get_XMWorldMatrix();; + + _float4 vPosition = {}; + XMStoreFloat4(&vPosition, WeaponMat.r[3]); + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, this, &vPosition); + }, 0.7f); + break; case 2: // 발구르기 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK3]; @@ -104,9 +119,22 @@ void CTroll::Behavior_IdleBreakEnter() break; case 3: //소리지르기 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK4]; - Add_Event(pairAnimInfo.first, - [this]() {CameraShake(5.f, 1.f, 2.f, 0.5f);}, - 0.3f); + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix HandMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("mouth_bag")) * m_pTransformCom->Get_XMWorldMatrix(); + + _float4 vPosition = {}; + + XMStoreFloat4(&vPosition, HandMat.r[3]); + + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_SHOUT, this, &vPosition); + + CameraShake(5.f, 1.f, 2.f, 0.5f); + + }, 0.2f); + break; } m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); @@ -316,6 +344,22 @@ void CTroll::Behavior_RushEnter() pairAnimInfo = m_Animation[STATEANIM::RUSH_START]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix HandMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("IK_LeftFoot")) * m_pTransformCom->Get_XMWorldMatrix(); + + _float4 vPosition = {}; + XMStoreFloat4(&vPosition, HandMat.r[3]); + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, this, &vPosition); + }, 0.45f); + + Add_Event(m_Animation[STATEANIM::RUSH_LOOP].first, [this]() { + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_RUSH, this, nullptr, &m_pRushEffect); + + }, 0.f); } HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta) @@ -336,6 +380,14 @@ HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta) } else { m_fRushTime += fTimeDelta; + + + if (m_fRushTime >= 1.f && m_pRushEffect != nullptr) + { + m_pRushEffect->Get_PartObject()->Get_Component()->Set_Loop(false); + SAFE_RELEASE(m_pRushEffect); + } + if (m_fRushTime >= 1.5f) { m_fRushTime = 0.f; @@ -387,7 +439,10 @@ void CTroll::Behavior_ThrowEnter() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, - [this]() {Get_PartObject()->Set_Visible(true); }, + [this]() { + Get_PartObject()->Set_Visible(true); + + }, 0.95f); Set_Easing(m_Animation[STATEANIM::THROW_ROCK].first, 0.1f, 0.47f, 1.5f); @@ -447,6 +502,7 @@ void CTroll::Behavior_ThrowExit() m_pFSM->Disable_State(FSMSTATE::THROW_ROCK); Get_PartObject()->Set_Attach(true); Get_PartObject()->Set_Visible(false); + } void CTroll::Behavior_SwingEnter() @@ -513,17 +569,12 @@ void CTroll::Behavior_SlamEnter() m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)]; - Troll_Trail_Visible(true); - m_pWeaponTrail->Set_Visible(true); - m_pWeaponTrail->Get_Component()->Reset_Trail(); - Add_Event(pairAnimInfo.first, [this]() { - Troll_Trail_Visible(false); - m_pWeaponTrail->Set_Visible(false); - }, - 0.7f); - + Troll_Trail_Visible(true); + m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); }, + 0.15f); Add_Event(m_Animation[STATEANIM::SLAM].first, [this]() { m_bLookAt = false; }, @@ -531,6 +582,8 @@ void CTroll::Behavior_SlamEnter() Add_Event(m_Animation[STATEANIM::SLAM].first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_ATTACK, this); + Troll_Trail_Visible(false); + m_pWeaponTrail->Set_Visible(false); }, 0.3f); Set_Easing(pairAnimInfo.first, 0.2f, 0.42f, 1.5f); @@ -571,20 +624,25 @@ void CTroll::Behavior_BackHandSwingEnter() m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)] = m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::BACKHAND_SWING)]; + Add_Event(m_Animation[STATEANIM::BACKHAND_SWING_JOG].first, [this]() { m_bLookAt = false; }, 0.2f); - Troll_Trail_Visible(true); - m_pWeaponTrail->Set_Visible(true); - m_pWeaponTrail->Get_Component()->Reset_Trail(); + + Add_Event(pairAnimInfo.first, + [this]() { + Troll_Trail_Visible(true); + m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); }, + 0.4f); Add_Event(pairAnimInfo.first, [this]() { Troll_Trail_Visible(false); m_pWeaponTrail->Set_Visible(false); }, - 0.9f); + 0.66f); Set_Easing(pairAnimInfo.first, 0.1f, 0.45f, 1.8f); Set_Easing(pairAnimInfo.first, 0.65f, 0.7f, 0.5f); @@ -626,12 +684,20 @@ void CTroll::Behavior_StunEnter() m_pEffectPool->Use_Skill(SKILL_TYPE::STUN, this, &strBoneName); } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, [this]() { m_bLookAt = true; }, 0.6f); + + if (m_pRushEffect != nullptr) + { + m_pRushEffect->Get_PartObject()->Get_Component()->Set_Loop(false); + SAFE_RELEASE(m_pRushEffect); + } + } HRESULT CTroll::Behavior_StunExitCheck(_float fTimeDelta) @@ -662,8 +728,11 @@ void CTroll::Behavior_HitEnter() if (fRatio <= 0.75f) { pairAnimInfo = m_Animation[STATEANIM::HIT_FACE]; Add_Event(pairAnimInfo.first, - [this]() {CameraShake(10.f, 2.f, 3.f, 0.3f); }, - 0.1f); + [this]() { + CameraShake(10.f, 2.f, 3.f, 0.3f); + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_SELF_HIT, this); + },0.1f); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } } @@ -727,6 +796,14 @@ void CTroll::Behavior_DeadEnter() m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p)); m_pRigidBody->SetActive(false); m_pCharacter_Controller->SetActive(false); + + + Add_Event(pairAnimInfo.first, + [this]() { + m_pDead_Smoke->Set_Visible(true); + m_pDead_Smoke->Get_Component()->Set_State(STATE::POSITION, m_pTransformCom->Get_State(STATE::POSITION)); + }, 0.55f); + } HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta) @@ -741,6 +818,7 @@ HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta) void CTroll::Behavior_DeadExit() { m_bDead = true; + m_pDead_Smoke->Set_Visible(false); } _bool CTroll::IsHitSpellDisabled() @@ -889,6 +967,19 @@ void CTroll::Add_FSM() Desc.funcLateUpdate = [this](_float fDeadRatio) { m_fDeadRatio = fDeadRatio; if (m_fDeadRatio > 1.f) { + CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_REPARO); + + if (nullptr != pLayer) + { + const list* pReparoObjects = pLayer->Get_Objects(); + + for (auto& pObject : *pReparoObjects) + { + CReparoObject* pReparoObject = dynamic_cast(pObject); + if (nullptr != pReparoObject) + pReparoObject->IsRepairable(true); + } + } m_bDead = true; } }; diff --git a/Jusin154_Team3D/Client/Private/UI_Manager.cpp b/Jusin154_Team3D/Client/Private/UI_Manager.cpp index 9cde886a1..06dad9149 100644 --- a/Jusin154_Team3D/Client/Private/UI_Manager.cpp +++ b/Jusin154_Team3D/Client/Private/UI_Manager.cpp @@ -86,7 +86,10 @@ void CUI_Manager::Canvas_Change(UI_STATE eType) static_cast(m_pDialogue_Canvas)->Visible(false); static_cast(m_pInteraction_Key)->Set_Visible(true); static_cast(m_pNPCInteraction)->Set_Visible(true); +#ifndef 기무리 static_cast(m_pBroom_TargetGate)->Set_Visible(false); +#endif // 기무리 + break; case UI_STATE::SPELL: diff --git a/Jusin154_Team3D/Client/Private/Wand.cpp b/Jusin154_Team3D/Client/Private/Wand.cpp index 8678ec167..86ac3c640 100644 --- a/Jusin154_Team3D/Client/Private/Wand.cpp +++ b/Jusin154_Team3D/Client/Private/Wand.cpp @@ -44,7 +44,7 @@ HRESULT CWand::Initialize(void* pArg) void CWand::Priority_Update(_float fTimeDelta) { - + m_pModelCom->Combined_BoneMatrix(); #ifdef _DEBUG Describe_Entity(); @@ -59,7 +59,7 @@ void CWand::Update(_float fTimeDelta) void CWand::Late_Update(_float fTimeDelta) { - m_pModelCom->Combined_BoneMatrix(); + _matrix socketMatrix = {}; socketMatrix = XMLoadFloat4x4(m_pSocketMatrices); diff --git a/Jusin154_Team3D/Client/Public/AccioSide.h b/Jusin154_Team3D/Client/Public/AccioSide.h new file mode 100644 index 000000000..72b5784c0 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/AccioSide.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CAccioSide final : public CEffect_Container +{ +private: + CAccioSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CAccioSide(const CAccioSide& rhs); + virtual ~CAccioSide() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + + _bool m_isParticleEnd = {}; + _bool m_isTrailEnd = {}; + _float4x4 m_TrailStopMat = {}; + + class CEffectParts* m_pWandLight = { nullptr }; + class CTrailObject* m_pWandTrail = { nullptr }; + //class CEffectParts* m_pWandParticle = { nullptr }; + +public: + static CAccioSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Target.h b/Jusin154_Team3D/Client/Public/CamPosition_Target.h index 4a9c25aa9..39de6c30f 100644 --- a/Jusin154_Team3D/Client/Public/CamPosition_Target.h +++ b/Jusin154_Team3D/Client/Public/CamPosition_Target.h @@ -29,6 +29,8 @@ class CCamPosition_Target final : public CCamPosition virtual void Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix); virtual void Stop_Stalking(); + _matrix Get_XMWorldMatrix(); + private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h index 629a5217f..0366b791a 100644 --- a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h +++ b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h @@ -66,6 +66,8 @@ class CCamera_Cinematic final : public CCamera CCamPosition_Target* m_pLookTargetPart = { nullptr }; CCamPosition_Target* m_pFollowTargetPart = { nullptr }; + + _bool m_bLerpTranslation = { false }; _float2 m_vLerpTranslationTimer = {}; @@ -80,6 +82,12 @@ class CCamera_Cinematic final : public CCamera _bool m_bLerpFovY = { false }; _float2 m_vFovYLerp = { 60.f, 60.f }; _float2 m_vLerpFovYTimer = { }; +#ifdef _DEBUG + unique_ptr m_pSubShape = { nullptr }; + unique_ptr> m_Batch; + class CModel* m_pModelCom = { nullptr }; + class CShader* m_pShaderCom = { nullptr }; +#endif // _DEBUG public: static CCamera_Cinematic* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index fcdb59931..0169ed767 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -3,7 +3,7 @@ namespace Client { enum class LEVEL { STATIC, LOADING, LOGO, INTRO, GAMEPLAY, FIELD, RESTART, END }; - enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_COLLIDER }; + enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT, ELEMENT_COLLIDER, ELEMENT_CAVE }; enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS }; enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, SPECTOR, END }; @@ -72,16 +72,16 @@ namespace Client PROTEGO_HIT, DUELIST_PROTEGO_HIT , GOBLIN_PROTEGO_HIT, /*사이드*/ - JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, STUPEFY_SIDE, + JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE, AVADAKEDAVRA_SIDE, STUPEFY_SIDE, ACCIO_SIDE, /*트롤*/ - TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO, + TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, TROLL_SHOUT , TROLL_RUSH, TROLL_SELF_HIT, /*고블린*/ GOBLIN_ATTACK, GOBILN_TELEPORT, /*고블린 메이지*/ - GOBLIN_MAGE_ATTACK, GOBLIN_MAGE_DOWN, GOBLIN_MAGE_SIDE, + GOBLIN_MAGE_ATTACK, GOBLIN_MAGE_DOWN, GOBLIN_MAGE_SIDE, GOBLIN_PROTEGO, /*란록*/ diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h index d911d4b87..67e1f979a 100644 --- a/Jusin154_Team3D/Client/Public/Client_Macro.h +++ b/Jusin154_Team3D/Client/Public/Client_Macro.h @@ -71,6 +71,7 @@ namespace Client { #define LAYER_DADA_INT TEXT("Layer_DADA_INT") #define LAYER_DUELIST TEXT("Layer_Duelist") #define LAYER_NPC TEXT("Layer_Npc") +#define LAYER_REPARO TEXT("Layer_Reparo") #define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager") diff --git a/Jusin154_Team3D/Client/Public/CutSceneInfo.h b/Jusin154_Team3D/Client/Public/CutSceneInfo.h index f1fce59bd..59324c1b3 100644 --- a/Jusin154_Team3D/Client/Public/CutSceneInfo.h +++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h @@ -19,7 +19,7 @@ class CCutSceneInfo final : public CBase public: void Update(_float fTimeDelta); - void Change_Level(); + void Load_CutScenes(); public: void Active_Event(_string& strKey); diff --git a/Jusin154_Team3D/Client/Public/DecendoSide.h b/Jusin154_Team3D/Client/Public/DecendoSide.h index 8901151b6..b1ddc9ce8 100644 --- a/Jusin154_Team3D/Client/Public/DecendoSide.h +++ b/Jusin154_Team3D/Client/Public/DecendoSide.h @@ -35,10 +35,11 @@ class CDecendoSide final : public CEffect_Container _bool m_isTrailEnd = {}; _float4x4 m_TrailStopMat = {}; + _bool m_isParticleEnd = {}; class CEffectParts* m_pWandLight = { nullptr }; class CTrailObject* m_pWandTrail = { nullptr }; - + class CEffectParts* m_pWand_Fire = { nullptr }; public: static CDecendoSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual void Free() override; diff --git a/Jusin154_Team3D/Client/Public/Duelist_Protego.h b/Jusin154_Team3D/Client/Public/Duelist_Protego.h index 6b0d78be1..6e33f77e9 100644 --- a/Jusin154_Team3D/Client/Public/Duelist_Protego.h +++ b/Jusin154_Team3D/Client/Public/Duelist_Protego.h @@ -16,6 +16,7 @@ class CDuelist_Protego final : public CEffect_Container virtual void Priority_Update(_float fTimeDelta) override; virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; + virtual void Set_Visible(_bool bVisible)override; public: virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; diff --git a/Jusin154_Team3D/Client/Public/Elf.h b/Jusin154_Team3D/Client/Public/Elf.h new file mode 100644 index 000000000..d5c70750f --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Elf.h @@ -0,0 +1,114 @@ +#pragma once + +#include "Client_Define.h" +#include "Unit.h" + +NS_BEGIN(Client) + +class CElf final : public CUnit +{ +public: + typedef struct tagNpcInitDesc { + _float4 vPos; + _float4 vRotQ; + }ELFDESC; + + + enum class FLOW_TRIGGER + { + NONE, // Idle 대기 + ANIM_END, // 애니메이션 끝나면 Flow++ + DIALOGUE_END, // 대화 끝나면 Flow++ + ARRIVE_POS, // 위치 도착하면 Flow++ + END + }; + + struct DialogueAnim + { + _uint AnimIndex = {}; + _bool Loop = {}; + + _int Trigger = {}; + }; + + enum class ELF_STATE + { + IDLE, + MOVE, + OBSERVE, + END + }; + +private: + CElf(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CElf(const CElf& Prototype); + virtual ~CElf() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + virtual HRESULT Render_Shadow(SHADOW eType) override; + virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override; + + virtual _wstring Get_Name() override; + virtual _wstring Get_NpcName() override; + void Set_NpcState(_int iState) { m_eNpcState = iState; } + void Set_Target(CUnit& pTarget, CTransform& pTransform); +protected: + CInfoInstance* m_pInfoInstance = { nullptr }; + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + class CCallBack_NonPlayable_Behavior* m_pCallBack_Behavior = { nullptr }; + class CCallBack_NonPlayable_HitReport* m_pCallBack_HitReport = { nullptr }; + CUnit* m_pPlayerAllyUnit = { nullptr }; + + CUnit* m_pTarget = { nullptr }; + _float4 m_vTargetPos = { }; + _float3 m_vToTargetDir = { }; + _float m_fTargetDistance = { FLT_MAX }; + + CNPCStat* m_pNpcStat = { nullptr }; + _int m_iEntered = { 0 }; + _float2 m_vEnteringTimer = { 0.f, 1.f }; + _float m_fEncounterDistance = { 8.f }; + + + _bool m_bInteract = { false }; + _bool m_bPreviousInteract = { false }; + _float m_fInteractTime{}; + _int m_eNpcState = ENUM_CLASS(ELF_STATE::END); + + unordered_map<_int, _float4> m_Points; + + + unordered_map<_int, DialogueAnim> m_Anims; + + _int m_iCurrentFlow = 0; + + DialogueAnim m_pairAnimInfo; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources() override; + HRESULT Bind_ShaderParameters(_uint iMeshOrder); + void MoveTo(_float fTimeDelta); + void Set_Anim(); + virtual void Load_AnimXML(const string& path) override; + HRESULT Load_ElfPos(const _char* pFilePath); + + +public: + static CElf* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr); + virtual void Free() override; +#ifdef _DEBUG + virtual void Describe_Entity() override; + +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Goblin_Protego.h b/Jusin154_Team3D/Client/Public/Goblin_Protego.h index 516b45285..b9825ec02 100644 --- a/Jusin154_Team3D/Client/Public/Goblin_Protego.h +++ b/Jusin154_Team3D/Client/Public/Goblin_Protego.h @@ -19,6 +19,7 @@ class CGoblin_Protego final : public CEffect_Container virtual void Priority_Update(_float fTimeDelta) override; virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; + virtual void Set_Visible(_bool bVisible)override; public: virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; diff --git a/Jusin154_Team3D/Client/Public/Human_Duelist.h b/Jusin154_Team3D/Client/Public/Human_Duelist.h index 5629f187f..f436358ba 100644 --- a/Jusin154_Team3D/Client/Public/Human_Duelist.h +++ b/Jusin154_Team3D/Client/Public/Human_Duelist.h @@ -2,7 +2,6 @@ #include "Client_Define.h" #include "Monster.h" -#include "Player_ENUM.h" NS_BEGIN(Client) @@ -55,6 +54,7 @@ class CHuman_Duelist final : public CMonster HRESULT Ready_Parts(); HRESULT Bind_ShaderResources(); HRESULT Bind_ShaderParameters(_uint iMeshOrder); + void Check_BattleLose(); public: static CHuman_Duelist* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -78,6 +78,8 @@ class CHuman_Duelist final : public CMonster _float m_fHitTimer = {}; _bool m_bHitJap = {}; _bool m_bBattle = {}; + _bool m_bCameraShake = { }; + _float4 m_OriginPos = { }; _float m_fSkillCoolTime[ENUM_CLASS(SKILL::END)] = {}; diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h index ccb5cbbad..f1103d175 100644 --- a/Jusin154_Team3D/Client/Public/InfoInstance.h +++ b/Jusin154_Team3D/Client/Public/InfoInstance.h @@ -24,6 +24,8 @@ DECLARE_SINGLETON(CInfoInstance) public: HRESULT Initialize_Information(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); HRESULT Late_Initialize(); // GamePlay Initialize 할 때 + + void Load_CutScenes(); void Release_Information(); LEVEL Get_RestartLevel(); _bool Get_SearchLockonFloag() { return m_bSearchLockOnTarget; } @@ -61,7 +63,9 @@ DECLARE_SINGLETON(CInfoInstance) HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag); HRESULT Load_PointLights(const _char* pFileName, const _wchar* pLayerTag); HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath); + HRESULT Load_ReparoObjects(const _char* pFileName); HRESULT Load_DADA_INT(); + HRESULT Load_Npc(); #pragma endregion #pragma region Spell_INFO HRESULT Load_SpellInfo(const _char* pFilePath); diff --git a/Jusin154_Team3D/Client/Public/Land.h b/Jusin154_Team3D/Client/Public/Land.h index 3f55faf5b..d36eeb7c9 100644 --- a/Jusin154_Team3D/Client/Public/Land.h +++ b/Jusin154_Team3D/Client/Public/Land.h @@ -34,24 +34,29 @@ class CLand final : public CGameObject void Add_InstanceProp(CInstancedProp* pIntanceProp); private: - _float m_fRaduis = {}; - _float m_fUsingSurfaceParams = {}; + _float m_fRaduis = {}; + _float m_fUsingSurfaceParams = {}; - CShader* m_pShaderCom = { nullptr }; - CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; - CTexture* m_pDiffuseTextureCom = { nullptr }; - CTexture* m_pNormalTextureCom = { nullptr }; - CTexture* m_pMROTextureCom = { nullptr }; - CTexture* m_pMaskTextureCom = { nullptr }; + CTexture* m_pDiffuseTextureCom = { nullptr }; + CTexture* m_pNormalTextureCom = { nullptr }; + CTexture* m_pMROTextureCom = { nullptr }; + CTexture* m_pMaskTextureCom = { nullptr }; + + list m_InstanceProps = {}; + CRigidBody_Static* m_RigidBody = { nullptr }; - list m_InstanceProps = {}; 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(const _char* pName); + void ConvertToPhysX(const _char* pName); + public: static CLand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Client/Public/Level_Field.h b/Jusin154_Team3D/Client/Public/Level_Field.h index e2da71716..ee55be50f 100644 --- a/Jusin154_Team3D/Client/Public/Level_Field.h +++ b/Jusin154_Team3D/Client/Public/Level_Field.h @@ -22,7 +22,7 @@ class CLevel_Field final : public CLevel _bool m_isDay = { true }; private: class CInfoInstance* m_pInfoInstance = { nullptr }; - + class CLight_Main* m_pLight = { nullptr }; _bool m_bLevel = { false }; _bool m_bCurrentLevel = { false }; @@ -42,6 +42,7 @@ class CLevel_Field final : public CLevel HRESULT Ready_Layer_Effect(const _wstring& strLayerTag); HRESULT Ready_Layer_Monster(); HRESULT Reday_Layer_EffectPool(); + void ResetLevel_Environment(); public: static pair> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg); diff --git a/Jusin154_Team3D/Client/Public/Level_GamePlay.h b/Jusin154_Team3D/Client/Public/Level_GamePlay.h index 89188103b..d0148d6a7 100644 --- a/Jusin154_Team3D/Client/Public/Level_GamePlay.h +++ b/Jusin154_Team3D/Client/Public/Level_GamePlay.h @@ -15,10 +15,10 @@ class CLevel_GamePlay final : public CLevel virtual void Update(_float fTimeDelta) override; virtual HRESULT Render() override; - private: class CInfoInstance* m_pInfoInstance = { nullptr }; class CBroomRaceManager* m_pBroomRaceManager = { nullptr }; + class CLight_Main* m_pLight = { nullptr }; _bool m_isDay = { true }; @@ -49,6 +49,7 @@ class CLevel_GamePlay final : public CLevel HRESULT Reday_Layer_EffectPool(); HRESULT Ready_Layer_Duelist(); HRESULT Ready_Layer_Npc(); + void ResetLevel_Environment(); HRESULT Bind_InstanceProp(map<_string, class CLand*>* Lands, class CInstancedProp* pInstnace, const _char* LandTag); public: diff --git a/Jusin154_Team3D/Client/Public/Level_Loading.h b/Jusin154_Team3D/Client/Public/Level_Loading.h index e56a4945d..dbd418e20 100644 --- a/Jusin154_Team3D/Client/Public/Level_Loading.h +++ b/Jusin154_Team3D/Client/Public/Level_Loading.h @@ -29,6 +29,7 @@ class CLevel_Loading final : public CLevel virtual HRESULT Initialize(LEVEL eNextLevelID); HRESULT Initialize() override; HRESULT Ready_Layer_BackGround(const _wstring& strLayerTag); + void ResetLevel_Environment() {}; public: static CLevel_Loading* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, LEVEL eNextLevelID); diff --git a/Jusin154_Team3D/Client/Public/Level_Logo.h b/Jusin154_Team3D/Client/Public/Level_Logo.h index 7ace4888a..be4931f48 100644 --- a/Jusin154_Team3D/Client/Public/Level_Logo.h +++ b/Jusin154_Team3D/Client/Public/Level_Logo.h @@ -21,6 +21,8 @@ class CLevel_Logo final : public CLevel private: virtual HRESULT Initialize() override; HRESULT Ready_Layer_UI(const _wstring& strLayerTag); + void ResetLevel_Environment() {}; + public: diff --git a/Jusin154_Team3D/Client/Public/Level_Restart.h b/Jusin154_Team3D/Client/Public/Level_Restart.h index 793136e29..32cc6a945 100644 --- a/Jusin154_Team3D/Client/Public/Level_Restart.h +++ b/Jusin154_Team3D/Client/Public/Level_Restart.h @@ -21,6 +21,7 @@ class CLevel_Restart final : public CLevel private: virtual HRESULT Initialize() override; + void ResetLevel_Environment() {}; private: LEVEL m_eNextLevel = {}; diff --git a/Jusin154_Team3D/Client/Public/MapElement_Cave.h b/Jusin154_Team3D/Client/Public/MapElement_Cave.h new file mode 100644 index 000000000..f83fe0cc7 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/MapElement_Cave.h @@ -0,0 +1,52 @@ +#pragma once + +#include "Client_Define.h" +#include "MapElement.h" + +NS_BEGIN(Client) + +class CMapElement_Cave : public CMapElement +{ +private: + CMapElement_Cave(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CMapElement_Cave(const CMapElement_Cave& rhs); + virtual ~CMapElement_Cave() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + _bool m_bReadyToCreatePhysX = { false }; + _bool m_bConverted = { false }; + _float m_fRadius = {}; + _float3 m_vWorldCenterPosition = {}; + + class CTriggerBox* m_pTriggerBox = { nullptr }; + + vector 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; + + HRESULT Ready_TriggerBox(); + void ReadyForPhysX(); + void ConvertToPhysX(); + + void Enter_Cave(); +public: + static CMapElement_Cave* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END + diff --git a/Jusin154_Team3D/Client/Public/MapInfo.h b/Jusin154_Team3D/Client/Public/MapInfo.h index 781163186..233b5c89a 100644 --- a/Jusin154_Team3D/Client/Public/MapInfo.h +++ b/Jusin154_Team3D/Client/Public/MapInfo.h @@ -30,8 +30,10 @@ class CMapInfo final : public CBase HRESULT Load_WorldDecal(const _char* pFileName, const _wchar* pLayerTag); HRESULT Load_PointLights(const _char* pFilePath, const _wchar* pLayerTag); HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath); + HRESULT Load_ReparoObjects(const _char* pFileName); HRESULT Load_DADA_INT(); + HRESULT Load_Npc(); private: CGameInstance* m_pGameInstance = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index a7ffe0f57..2a9d517f7 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -2,13 +2,25 @@ #include "Client_Define.h" #include "Unit.h" -#include "Player_ENUM.h" NS_BEGIN(Client) class CPlayer final : public CUnit { public: + enum PLAYER_MESH_ORDER { + CLOTH_SIM + , HAIR_MAIN + , CLOTH + , EYELASH + , TEETH + , BODY + , HEAD_EYE_OCC + , HEAD_EYES + , FLOWERS + , END + }; + typedef struct tagPlayerInitDesc { _float4 vPos; _float4 vRotQ; @@ -45,6 +57,8 @@ class CPlayer final : public CUnit HRESULT Update_RaycastElements(); void Set_Battle(_bool bBattle) { m_bDuel_ZOnlyMove = bBattle; } void Set_Interaction(_bool bInteraction); + void ExitBattle(); + void Set_OriginPos(_vector vPos) { XMStoreFloat4(&m_OriginPos, vPos); } #ifdef _DEBUG void Render_CameraCoordinateSystem(); #endif // _DEBUG @@ -90,7 +104,7 @@ class CPlayer final : public CUnit class CTransform* m_pBroomTransform = { nullptr }; class CBroom* m_pBroom = { nullptr }; CStat* m_pStat = { nullptr }; - class CPlayerRobe* m_pRobePart = { nullptr }; + //class CPlayerRobe* m_pRobePart = { nullptr }; class CBroomRaceManager* m_pBroomRaceManager = { nullptr }; @@ -110,6 +124,7 @@ class CPlayer final : public CUnit void Play_SpellHitAnim(); void Player_PixRot(); void Find_HiddenObjects(); + void Check_Reparoobejcts(); void Update_CameraCoordinateSystem(_float fTimeDelta); #ifdef _DEBUG @@ -143,6 +158,7 @@ class CPlayer final : public CUnit function m_InputAction = nullptr; _int m_eUIState = { }; + const _float4x4* m_pCinematicSocketMatrix = { nullptr }; _float3 m_OffsetPos = {}; _float m_fAmount = { 1.f }; _float m_fInputTime = {}; @@ -177,6 +193,8 @@ class CPlayer final : public CUnit _float m_fDegree = {}; _bool m_bGuarding = {}; _float m_fParryTimer = {}; + _bool m_bStartSpellAnim = {}; + _float4 m_OriginPos = {}; /* 무적 불 변수*/ diff --git a/Jusin154_Team3D/Client/Public/Player_ENUM.h b/Jusin154_Team3D/Client/Public/Player_ENUM.h deleted file mode 100644 index 73fa76841..000000000 --- a/Jusin154_Team3D/Client/Public/Player_ENUM.h +++ /dev/null @@ -1,194 +0,0 @@ -#pragma once -#include "Client_Define.h" - -NS_BEGIN(Client) - -enum class PLAYER_MESH_ORDER { - HEAD_EYE_OCC, - HEAD_FACE, - HEAD_TEETH, - HEAD_EYELASH, - HEAD_EYES, - BODY_ARMS, - HAIR_MAIN, - HAIR_MAIN_CLOTH, - LOWER, - SHOES, - UPPER, - HAIR_SUB, - HAIR_SUB_CLOTH, - ROBE_SKIRT, - ROBE_FUR, - ROBE_CLOTH, - END -}; - -static const _char* PLAYER_JOINT_BONE_NAMES[16] = { - "RightUpLeg_Cloth" - , "RightLeg_Cloth" - , "RightDownLeg_Cloth" - - , "LeftUpLeg_Cloth" - , "LeftLeg_Cloth" - , "LeftDownLeg_Cloth" - - , "TailUp_Cloth" - , "Tail_Cloth" - , "TailLeftDown_Cloth" - , "TailRightDown_Cloth" - - , "RightSideUpLeg_Cloth" - , "RightSideLeg_Cloth" - , "RightDownSideLeg_Cloth" - - , "LeftSideUpLeg_Cloth" - , "LeftSideLeg_Cloth" - , "LeftDownSideLeg_Cloth" -}; - -enum class PLAYER_JOINT_BONE_ORDER { - RIGHTUP - , RIGHT - , RIGHTDOWN - - , LEFTUP - , LEFT - , LEFTDOWN - - , TAILUP - , TAIL - , TAILLEFTDOWN - , TAILRIGHTDOWN - - , RIGHTSIDEUP - , RIGHTSIDE - , RIGHTDOWNSIDE - - , LEFTSIDEUP - , LEFTSIDE - , LEFTDOWNSIDE - - , END -}; - -enum class PLAYER_JOINT_HORIZONTAL_ORDER { - -#pragma region UP_HORIZONTAL - UP_R_RS_START - , UP_R_RS_END - , UP_RS_T_START - , UP_RS_T_END - , UP_T_LS_START - , UP_T_LS_END - , UP_LS_L_START - , UP_LS_L_END -#pragma endregion -#pragma region MIDDLE_HORIZONTAL - , MIDDLE_R_RS_START - , MIDDLE_R_RS_END - , MIDDLE_RS_T_START - , MIDDLE_RS_T_END - , MIDDLE_T_LS_START - , MIDDLE_T_LS_END - , MIDDLE_LS_L_START - , MIDDLE_LS_L_END -#pragma endregion -#pragma region DOWN_HORIZONTAL - , DOWN_R_RS_START - , DOWN_R_RS_END - , DOWN_RS_T_START - , DOWN_RS_T_END - , DOWN_T_LS_START - , DOWN_T_LS_END - , DOWN_LS_L_START - , DOWN_LS_L_END -#pragma endregion - , END -}; -enum class PLAYER_JOINT_ORDER { -#pragma region ORIGIN_TO_UP - ORIGIN_TO_RUP_START - , ORIGIN_TO_RUP_END - - , ORIGIN_TO_TUP_START - , ORIGIN_TO_TUP_END - - , ORIGIN_TO_LUP_START - , ORIGIN_TO_LUP_END - - , ORIGIN_TO_RSIDEUP_START - , ORIGIN_TO_RSIDEUP_END - - , ORIGIN_TO_LSIDEUP_START - , ORIGIN_TO_LSIDEUP_END -#pragma endregion -#pragma region UP_TO_MIDDLE - , RUP_TO_RMIDDLE_START - , RUP_TO_RMIDDLE_END - - , TUP_TO_TMIDDLE_START - , TUP_TO_TMIDDLE_END - - , LUP_TO_LMIDDLE_START - , LUP_TO_LMIDDLE_END - - , RSIDEUP_TO_RSIDE_START - , RSIDEUP_TO_RSIDE_END - - , LSIDEUP_TO_LSIDE_START - , LSIDEUP_TO_LSIDE_END -#pragma endregion -#pragma region MIDDLE_TO_BOTTOM - , RMIDDLE_TO_RR_START - , RMIDDLE_TO_RR_END - - , TMIDDLE_TO_TR_START - , TMIDDLE_TO_TR_END - - , TMIDDLE_TO_TL_START - , TMIDDLE_TO_TL_END - - , LMIDDLE_TO_LL_START - , LMIDDLE_TO_LL_END - - , RSIDE_TO_R_START - , RSIDE_TO_R_END - - , LSIDE_TO_L_START - , LSIDE_TO_L_END -#pragma endregion - , END -}; - -enum class PLAYER_ROUTE_HORIZONTAL_ORDER { - da, - END -}; - -enum class PLAYER_ROUTE_VERTICAL_ORDER { - ORIGIN_TO_RUP - , ORIGIN_TO_TUP - , ORIGIN_TO_LUP - , ORIGIN_TO_RSIDEUP - , ORIGIN_TO_LSIDEUP - - , RUP_TO_RMIDDLE - , TUP_TO_TMIDDLE - , LUP_TO_LMIDDLE - - , RSIDEUP_TO_RSIDE - , LSIDEUP_TO_LSIDE - - , RMIDDLE_TO_RR - , TMIDDLE_TO_TR - , TMIDDLE_TO_TL - , LMIDDLE_TO_LL - - , RSIDE_TO_R - , LSIDE_TO_L - - , END -}; - - -NS_END diff --git a/Jusin154_Team3D/Client/Public/Protego.h b/Jusin154_Team3D/Client/Public/Protego.h index cc5c8d79d..1fc7646cf 100644 --- a/Jusin154_Team3D/Client/Public/Protego.h +++ b/Jusin154_Team3D/Client/Public/Protego.h @@ -19,6 +19,7 @@ class CProtego final : public CEffect_Container public: virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + virtual void Set_Visible(_bool bVisible)override; private: virtual HRESULT Initialize_Prototype() override; diff --git a/Jusin154_Team3D/Client/Public/RandomNpc.h b/Jusin154_Team3D/Client/Public/RandomNpc.h index 0cca76157..a091619b2 100644 --- a/Jusin154_Team3D/Client/Public/RandomNpc.h +++ b/Jusin154_Team3D/Client/Public/RandomNpc.h @@ -71,6 +71,8 @@ class CRandomNpc final : public CUnit _bool m_bBattleObserve_Npc = {}; _bool m_bBattle = {}; _int m_eNpcState = ENUM_CLASS(NPC_STATE::END); + _bool m_bBroomRacer = {}; + vector<_int> m_Anims; protected: virtual HRESULT Initialize_Prototype() override; @@ -83,6 +85,8 @@ class CRandomNpc final : public CUnit void BattleObserve_Anim(); + void Load_AnimXML(const _char* pFilePath); + public: static CRandomNpc* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr); diff --git a/Jusin154_Team3D/Client/Public/ReparoObject.h b/Jusin154_Team3D/Client/Public/ReparoObject.h index 239045e52..6a379bdb0 100644 --- a/Jusin154_Team3D/Client/Public/ReparoObject.h +++ b/Jusin154_Team3D/Client/Public/ReparoObject.h @@ -1,12 +1,23 @@ #pragma once #include "Client_Define.h" -#include "Unit.h" +#include "Monster.h" NS_BEGIN(Client) -class CReparoObject final : public CUnit +class CReparoObject final : public CMonster { + // 되돌리기 전 Before + enum class REPARO_OBJECT_STATE { SLEEP, BEFORE, PLAYANIM, AFTER, END }; +public: + typedef struct tagReparoObjectDesc + { + _uint iModelID = {}; + _float fRadius = {}; + _float3 vPosition = {}; + _float3 vRotation = {}; + }REPARO_OBJECT_DESC; + private: CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CReparoObject(const CReparoObject& Prototype); @@ -20,12 +31,20 @@ class CReparoObject final : public CUnit virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; + _bool IsRepairable(_bool isAwake); private: - CInfoInstance* m_pInfoInstance = { nullptr }; + REPARO_OBJECT_STATE m_ePreState = { REPARO_OBJECT_STATE::END }; + REPARO_OBJECT_STATE m_eCurState = { REPARO_OBJECT_STATE::END }; + + _uint m_iModelID = {}; + _float m_fRadius = {}; private: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); + HRESULT Render_OutLine(); + + void Change_State(); public: static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Client/Public/Revelio.h b/Jusin154_Team3D/Client/Public/Revelio.h index 32f224ab0..3e48f48d0 100644 --- a/Jusin154_Team3D/Client/Public/Revelio.h +++ b/Jusin154_Team3D/Client/Public/Revelio.h @@ -32,11 +32,11 @@ class CRevelio final : public CEffect_Container virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; private: _wstring m_wstrEffectName = {}; - class CPlayer* m_pPlayer = {}; + class CPlayer* m_pPlayer = {}; class CEffectParts* m_pRevelioPT_Y = { nullptr }; class CEffectParts* m_pRevelioPT_B = { nullptr }; class CEffectParts* m_pRevelioPT_R = { nullptr }; - + class CEffectParts* m_pWand_Light = { nullptr }; public: static CRevelio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual void Free() override; diff --git a/Jusin154_Team3D/Client/Public/ThestralCarriage.h b/Jusin154_Team3D/Client/Public/ThestralCarriage.h index 80c714a99..3af332df3 100644 --- a/Jusin154_Team3D/Client/Public/ThestralCarriage.h +++ b/Jusin154_Team3D/Client/Public/ThestralCarriage.h @@ -2,6 +2,7 @@ #include "Client_Define.h" #include "Unit.h" +#include "TimeSocket.h" NS_BEGIN(Engine) class CModel; class CShader; @@ -9,8 +10,23 @@ NS_END NS_BEGIN(Client) -class CThestralCarriage final : public CGameObject -{ +class CThestralCarriage final : public CUnit +{ +public: + enum class CARRIAGE_MESH_ORDER { + CARRIAGE + , WINDOWS + }; + + enum class CARRIAGE_SOCKET { + BACK, + BACK_LEFT, + BACK_RIGHT, + FRONT, + FRONT_LEFT, + FRONT_RIGHT, + END + }; private: CThestralCarriage(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CThestralCarriage(const CThestralCarriage& Prototype); @@ -23,11 +39,19 @@ class CThestralCarriage final : public CGameObject virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; + virtual void Trigger(CTimeSocket& Socket)override; + virtual _vector Get_WorldPostion()override; + _matrix Get_SeatMatrix(); + _matrix Get_SocketWorldMatrix(CARRIAGE_SOCKET eSocket); private: - CModel* m_pModelCom = { nullptr }; - CShader* m_pShaderCom = { nullptr }; CInfoInstance* m_pInfoInstance = { nullptr }; + _uint m_iAnimationIndex = 0; +#ifdef _DEBUG + _bool m_bRender_WireFrame = { false }; + ID3D11RasterizerState* m_pRSS = { nullptr }; +#endif // _DEBUG + private: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); diff --git a/Jusin154_Team3D/Client/Public/Transformation.h b/Jusin154_Team3D/Client/Public/Transformation.h index f543872be..1a018bcb8 100644 --- a/Jusin154_Team3D/Client/Public/Transformation.h +++ b/Jusin154_Team3D/Client/Public/Transformation.h @@ -36,6 +36,7 @@ class CTransformation final : public CEffect_Container private: _wstring m_wstrEffectName = {}; class CEffectParts* m_pTransformation_PJ = { nullptr }; + class CEffectParts* m_pTransformation_PJ_PT = { nullptr }; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 diff --git a/Jusin154_Team3D/Client/Public/TriggerBox.h b/Jusin154_Team3D/Client/Public/TriggerBox.h index da243b7c4..e058df699 100644 --- a/Jusin154_Team3D/Client/Public/TriggerBox.h +++ b/Jusin154_Team3D/Client/Public/TriggerBox.h @@ -9,32 +9,42 @@ NS_END NS_BEGIN(Client) -class CTriggerBox final : public CBase +class CTriggerBox final : public CGameObject { public: typedef struct tagTriggerDesc { _float4 vPosition_Radius = { 0.f, 0.f, 0.f, 1.f }; }TRIGGERBOX_DESC; private: - CTriggerBox(); + CTriggerBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTriggerBox(const CTriggerBox& rhs); virtual ~CTriggerBox() = default; public: HRESULT TryScanArea(_float fTimeDelta); - + virtual HRESULT Render()override; + HRESULT Bind_ShaderResources() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; private: HRESULT Initialize(TRIGGERBOX_DESC*); HRESULT Scan(); + HRESULT CheckPlayerHit(PSX::PxActor* pActor); + + private: - CGameInstance* m_pGameInstance = { nullptr }; - _float4 m_vPosition = { }; - _float m_fRadius = {}; - _float2 m_vScanTimer = { 0.f, 0.5f }; + _float2 m_vScanTimer = { 0.f, 0.8f }; +#ifdef _DEBUG + _bool m_bRender = false; + unique_ptr m_pSubShape = { nullptr }; + unique_ptr> m_Batch; +#endif // _DEBUG public: - static CTriggerBox* Create(TRIGGERBOX_DESC* Desc); + static CTriggerBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, TRIGGERBOX_DESC* Desc); virtual void Free() override; + }; NS_END diff --git a/Jusin154_Team3D/Client/Public/Troll.h b/Jusin154_Team3D/Client/Public/Troll.h index 46643f796..cbf8a6a45 100644 --- a/Jusin154_Team3D/Client/Public/Troll.h +++ b/Jusin154_Team3D/Client/Public/Troll.h @@ -59,10 +59,14 @@ class CTroll final : public CMonster class CEffectParts* m_pTroll_Particle = { nullptr }; class CEffectParts* m_pTroll_Particle2 = { nullptr }; + class CEffectParts* m_pDead_Smoke = { nullptr }; + + class CTrailObject* m_pLeftTrail = { nullptr }; class CTrailObject* m_pRightTrail = { nullptr }; class CTrailObject* m_pWeaponTrail = { nullptr }; + const _float4x4* m_pLeftHand_BoneMat = { nullptr }; const _float4x4* m_pRightHand_BoneMat = { nullptr }; const _float4x4* m_pWeapon_BoneMat = { nullptr }; @@ -96,6 +100,7 @@ class CTroll final : public CMonster _float m_fRushTime = {}; _float m_fAttackDelay = {}; + class CEffect_Container* m_pRushEffect = nullptr; void Behavior_IdleEnter(); HRESULT Behavior_IdleExitCheck(); diff --git a/Jusin154_Team3D/Client/Public/Troll_Rock.h b/Jusin154_Team3D/Client/Public/Troll_Rock.h index 2b0e8fd4e..5c4b2b55b 100644 --- a/Jusin154_Team3D/Client/Public/Troll_Rock.h +++ b/Jusin154_Team3D/Client/Public/Troll_Rock.h @@ -34,6 +34,8 @@ class CTroll_Rock final : public CPartObject CModel* m_pModelCom = { nullptr }; _bool m_bAttach = { true }; + class CEffectPool* m_pEffectPool = { nullptr }; + private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Client/Public/Troll_Rush.h b/Jusin154_Team3D/Client/Public/Troll_Rush.h new file mode 100644 index 000000000..1c5c21ed8 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Troll_Rush.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + + +NS_BEGIN(Client) + +class CTroll_Rush final : public CEffect_Container +{ +private: + CTroll_Rush(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTroll_Rush(const CTroll_Rush& rhs); + virtual ~CTroll_Rush() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + + class CEffectParts* m_pRush_Blur = { nullptr }; + +public: + static CTroll_Rush* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Troll_Self_Hit.h b/Jusin154_Team3D/Client/Public/Troll_Self_Hit.h new file mode 100644 index 000000000..36e2b4b1f --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Troll_Self_Hit.h @@ -0,0 +1,48 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CTroll_Self_Hit final : public CEffect_Container +{ +private: + CTroll_Self_Hit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTroll_Self_Hit(const CTroll_Self_Hit& rhs); + virtual ~CTroll_Self_Hit() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +public: + static CTroll_Self_Hit* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG + void Describe_Entity() override; + +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Troll_Shout.h b/Jusin154_Team3D/Client/Public/Troll_Shout.h new file mode 100644 index 000000000..e19b766ee --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Troll_Shout.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CTroll_Shout final : public CEffect_Container +{ +private: + CTroll_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTroll_Shout(const CTroll_Shout& rhs); + virtual ~CTroll_Shout() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + +public: + static CTroll_Shout* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml new file mode 100644 index 000000000..64257f128 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Elf.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml index 109c05c93..2231ff266 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/Player.xml @@ -58,11 +58,11 @@ - - - - - + + + + + @@ -121,27 +121,27 @@ - - - - - - + + + + + + - - - - + + + + - - - - + + + + - - + + @@ -180,15 +180,13 @@ - - - - - + + + + + - + - - diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/RandomNpc.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/RandomNpc.xml new file mode 100644 index 000000000..d27563c11 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/AnimList/RandomNpc.xml @@ -0,0 +1,39 @@ + + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + + + + + + 76 + 77 + 78 + 79 + 80 + 81 + 82 + 83 + 84 + 85 + 86 + 87 + 88 + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml new file mode 100644 index 000000000..b04416f77 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml @@ -0,0 +1,743 @@ + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + true + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml index 1cf13754e..54e57e647 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml @@ -1,4 +1,152 @@ - + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + @@ -37,12 +185,12 @@ - + - - + + @@ -67,19 +215,19 @@ - + - + - - + + @@ -104,16 +252,164 @@ - + - + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + + + + + + + + + + + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + false + + + + + + + + + + + + - + @@ -147,7 +443,7 @@ - + @@ -184,7 +480,7 @@ - + @@ -221,7 +517,7 @@ - + @@ -258,7 +554,7 @@ - + @@ -295,7 +591,7 @@ - + @@ -332,7 +628,7 @@ - + @@ -369,7 +665,7 @@ - + @@ -406,7 +702,7 @@ - + @@ -443,7 +739,7 @@ - + @@ -480,7 +776,7 @@ - + @@ -517,7 +813,7 @@ - + @@ -554,7 +850,7 @@ - + @@ -591,7 +887,7 @@ - + @@ -628,7 +924,7 @@ - + @@ -665,7 +961,7 @@ - + @@ -702,5 +998,5 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin index 27eb22b7a..4e97dd107 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e9794013a035a76fdf79fcd30a2613587e5070faa3f20b2d8ff1b4f47d424a4b -size 1213 +oid sha256:9b99b36de0de4eef400ed778a5b4e6200a1660097afded0b0ebe8999707b18b9 +size 1253 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit0.bin index dbdb78591..4b9130996 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Hit0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:176329508cfbef669f65fae151f6392051a746667799ccd07faaedcb2f5e8f64 +oid sha256:f966b2d82171e30a472c8b8253c15930a0d0b5b194a2dee9ba9083e660affbb9 size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_PT.bin index c27ee694a..151a49755 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c4a57f446eda69fbd34f391fa68a82a46ea5dd296e73fac4927387d19454cc91 -size 1149 +oid sha256:3fbf2e05a5edbe032062221c076dd6d9104e615acbf8e166755ecd6855ae11d2 +size 1207 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin index 9b67aa64f..7fa901f2a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Wand_Light.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d814ab9201bdef7ae4b9058e392da7bf389903f7f0eab11a16c78d11041415e3 -size 1187 +oid sha256:881daecc8e50c07fed54580556949fbb8f0dbc6927e902f792c93cb750d8cfc7 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Trail_Y.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Trail_Y.trail new file mode 100644 index 000000000..43f85df93 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Trail_Y.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Wand_Light_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Wand_Light_B.bin new file mode 100644 index 000000000..f1532176e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AccioSide/Wand_Light_B.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98e9c7f5ee1a647aad6e4c5ad77f78e9cb939c7a5dfa58771725b7da4933cc8b +size 1153 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin index c4cc976e1..0f9049321 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:13b514d4a7314f32775fbad8ac581294b69142834502a3c86b98b8fae7159ac5 -size 1209 +oid sha256:5187dcaa92ed304e2f1787ce23dbbad34d016fd0b239f357082dfe3016e66016 +size 1253 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin index e6d7a24b9..e0e908774 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:95bd3e54e07320b30e06faf79376c22599633019e5c6283abcac56623c483baa -size 1216 +oid sha256:174298b179b4a064bde526017f4df8d4bbc6af02b7d38c58e5a1cd43b075fb3d +size 1261 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin deleted file mode 100644 index 28a7edfb4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:42804e44173b841e0dac548498a6b766808931d5534583a8586c7726c3793e75 -size 1174 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Red_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Red_Blur.bin new file mode 100644 index 000000000..7865a99df --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Red_Blur.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:307f75f7972b3c8918f413a4523fad79c31a5b2f7838d4bb4cfc63449ff4c64b +size 1158 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin index 0af7227d1..c8bb68cf5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9c51a3ba982b380a228c9117e0fb9cae1494d635d8745b3c95928785c8888279 -size 1156 +oid sha256:86063c7ad44d14b6bfe9040464f77bff0a26f1ec66bf36ac5e853cdbe33dbe0a +size 1153 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Rock_PT.bin new file mode 100644 index 000000000..476db78d9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Rock_PT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:840afb67b113e8c846db2146215e3489d5401a83bc59fab8ad0facc9a272ceb7 +size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin index 976f2a00d..f98ec0fb3 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:da2e17868dbe73e7e5af16e6582751ae3d44dcc97dd62c21a80e67656520d941 -size 1162 +oid sha256:2d86bd61de414c07e7aa60cb8219759a7da5598df66a8d7141a9540203251b3b +size 1196 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin index bf27051ca..71f07db0e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f0296fdc4aa15e1920d0e4e1150b596d3c59bf1e3a5ee12cf00b2a590734b47a -size 1299 +oid sha256:b3766c2e69ab5feae1eb65fbb95b3bcbfedaecea9d06b43e5ed53aaf1a05f3c2 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Line.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Line.bin new file mode 100644 index 000000000..c587bbf5f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Line.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d8bf87228d1c9977b2116ba884061c04973b5696f338210350e1c0300f9bc41 +size 1192 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail index 91ae91941..a40564b18 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail index 91892cc7f..7416a36a9 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Fire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Fire.bin new file mode 100644 index 000000000..ba4288955 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Fire.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcf53db5f6ae66aa1c1c53570c4c29b0461b5fc93ba88eb0682199128a6af789 +size 1202 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin index 9605e9512..8f6538dc5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Wand_Light_R.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a112ccc0f90259222c3723f490f47f7753afda0683ff68332a2ca2c020ec4adb -size 1200 +oid sha256:4861ad8ee602d6d85983874b99a14e2fbf534426fe5f8867fa1a35e52b064be7 +size 1198 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin index c93c69a1a..4213fca60 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoLay.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d35e96ef4cec61733caa7b90101eed6fa320f144d5b8f4141521658e6c401c9f -size 1238 +oid sha256:028981d804f9832afe880942dcf3d24bb069e8bd928c7e09265810c9adfef0ba +size 1202 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin index 3d55bfec7..aee30218b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Goblin/GoblinProtego/ProtegoSphere.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:51b9af9d2826a82ab2784cd6b72221ddc3f9a196fbc36962dc4729478c7557d5 -size 1160 +oid sha256:31508b23f35c1ec71bcfbeb87ef87b8e067391ec24efd8a9495025ea55d14337 +size 1152 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin index 6c67757e0..e4cb914b3 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:468db2885ece2f11f06e935d188c478bc18cadc622e31f4e640f259270ada3a3 +oid sha256:37ce7078b86063681b8538ae5e128efe6c84ab723d98aa29cff74f0e8af167d4 size 1195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/BottomLightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/BottomLightning.bin index e1acabd7a..7f0d2568d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/BottomLightning.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/BottomLightning.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:853b2d298e52877fe66c5ecfb54fedfafe29f2541ae623d2592ff20da6a34f60 -size 1185 +oid sha256:4e85d9b3ac4015fa2587ef626587c8b16d8f8a1c841dbf40cfbe01cb02767dfd +size 1211 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning0.bin index 181e7d79c..0ec0ec564 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ab6d0d2876e2822e49f66453ff497db192e3d18d233cb124301527d676884fe1 -size 1141 +oid sha256:6c53b1e675d7a063539db06dab42bb209c1d95cf30daf2e02dfd72e47642f0c9 +size 1154 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning1.bin new file mode 100644 index 000000000..e3a24e320 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f800b1b83b7b6d16682b41d6d2ee8392a250716766e641a5e59f59e5397ed6f5 +size 1154 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/LightningTrail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/LightningTrail.trail deleted file mode 100644 index 5e6684844..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/LightningTrail.trail and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Rock_PT.bin index 42b41e352..16f014796 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Rock_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lightning/Lightning_Rock_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:23080611a023b28998cb400c8015bff849ab06bcee7f090f59fe1a10726ee2d5 -size 1151 +oid sha256:1d7bc94928e99caf2e9ca575b1f7eb1651eca26476b6104555ce3d492779d8cb +size 1188 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin index ffaab5e39..3732ffe7a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ff1990b32cd770dac906aa742fb4dff9b510ec3eba0841d6e0d29b4ce0f28fbf -size 1200 +oid sha256:8100d7b5b4119c04eeecfd020d17a34135019b25fa2a5496189f61d039b8f380 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollRushBlur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollRushBlur.bin new file mode 100644 index 000000000..b6b96ca31 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollRushBlur.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c50e0316a296a54b3f8919a87345b9af30ea0e61108e2e90d3db1dc6c258ecf +size 75 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSelfHit.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSelfHit.bin new file mode 100644 index 000000000..589be07a0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSelfHit.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d92226b9d8fa2a0ca120adc413b43e8df0d13a6e1caf340d2009b9c90605219 +size 134 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollShout.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollShout.bin new file mode 100644 index 000000000..cfe283507 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollShout.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1226fba477ccdcdab9daaf6a53cc4be8e2d762baea2a1ee2ed0a7e6e169b0ba +size 143 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSwing.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSwing.bin index d75706c04..56a8473ed 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSwing.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/TrollSwing.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a63cdeb3c40d3f7a719be9698dab4e1692883cbffa52f690d98bbff336fa7c57 -size 137 +oid sha256:6cc8a77238dacba29d611f3041e63d0651e27b5c1917a908e4435f7a1317a172 +size 351 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin index 77f8b9600..cd2918fa4 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c4bb4bdc7c5c1da4a80c7bbe54e810b647b582cc5b52dc4f4216c7c1459993ca +oid sha256:56c53c3a4151c718df3b7f4e36d75c2fb6a8b6b3bd746378235b7c21c04fb689 size 1195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin index 869955ca3..b470b4188 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoLay.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:834f86a71e3e16529a70114b7fafd4b891502f550a091bfc230f72a47d4256f7 -size 1238 +oid sha256:f29e7cec579177962fda34974b3b56d4454be4de80e3979553fb81838af99585 +size 1202 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin index e0e81d640..ee28b1d82 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCProtego/ProtegoSphere.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:473ce1eeaa239aef55be2dfb73aaaeff61c6c3b566c152bed0c3e2b0a6a8588c -size 1160 +oid sha256:c23f4b98e7e0c473754733ec9f37f8d5d620e7c5ef5fdfaed19fa4c0f207efcc +size 1152 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/AccioSide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/AccioSide.bin new file mode 100644 index 000000000..af95a657e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/AccioSide.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a03213a7d590f0eed660ae00c4fe7cd5555235be68b4c34165c8f8cca1d35d1 +size 129 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin index b6ebfcd4a..2fbeeaa5f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Decendo.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8829fbed6a4a80327c0d69dc2f8e8b7ebdab3bd5160e5e99cbc4a6e5881b8958 -size 577 +oid sha256:dcad37c05da7c2bda722a74a9ec3ad4ab559861b556da4b181440fa3c165ef38 +size 714 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/DecendoSide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/DecendoSide.bin index 4876af65f..fa8eee62b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/DecendoSide.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/DecendoSide.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:35e40c07675c79a0e8b21779d8401a335631589ebb4cc86ee04552bc2386e12b -size 133 +oid sha256:89f8674e0a15e6b7c7866f9666076f5349b15e202a79e0ae47ea7dc93872063f +size 196 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Lightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Lightning.bin index ba832cd89..01be9eb8d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Lightning.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Lightning.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:21bcfe9b297b0aa4f00976963839e2ad0ea29c4a16b0259720b988c7ac44c647 -size 586 +oid sha256:3085b9f245739d5fdc8caa1c20d89120addbb918fc3e946340c670cfe8e19de0 +size 580 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin index 4c8852970..9779d8a20 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Revelio.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:361c1b52fd37940363fcd6713e1d77401a655af5c27d3b9f4f47ea116cb5379d -size 240 +oid sha256:b43fff3a5f758adbb0fd8bb2f7ddeefe805cb5ddb1ed61e0def98e314e3664ef +size 568 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Transformation.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Transformation.bin index 3c4af65dd..d8bef51ff 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Transformation.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Transformation.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:52536d034b3795f665a0ba839cc3b517ea1b15a41e740c0c3d22a0b410c7f62c -size 676 +oid sha256:1911312baa29ce9e67c94c3210f561dfbc870a39785b891693a420e49d2c36b3 +size 753 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Bottom_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Bottom_PT.bin new file mode 100644 index 000000000..f79b63444 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Bottom_PT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2332439c61a824dec1973def42ab2e99b49c2509251e6f7a8a0e65d54de772a4 +size 1209 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Distortion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Distortion.bin new file mode 100644 index 000000000..3bb16a0e6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Distortion.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a18e95f30ac96930888cd8c14cc2ca64519c66f8316bb6d382b640ce6932d0f +size 1244 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Ring.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Ring.bin deleted file mode 100644 index 6c51e6997..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Ring.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2896c514480d951e5bc37b6344b283581d641850289dd797695b8d93676ecf15 -size 1233 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX.bin new file mode 100644 index 000000000..87782589c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d0457c7ae01b3e01651da8a09c564e366ff6ba2ed20557fad0794f89617e7c6 +size 1111 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX_Reverse.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX_Reverse.bin new file mode 100644 index 000000000..436d643f8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_ScreenFX_Reverse.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc5728c2f4120da79b34554b4c08999485481dad9f67be2f2fb4cb072c1c8367 +size 1111 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Smoke.bin new file mode 100644 index 000000000..2a1f9d141 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Revelio_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1975b4673bdcd7d49336d478bbc2086346c938b4ad1f11790f73418f21ed88ba +size 1236 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin index 22f00a9e0..9c64d4de4 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_B.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c45f0d5f0b8f60679739d2cecad037407c9d7b1f0cd29dc6daed268ba57cf09f +oid sha256:ca31efeaf41e65eed23af11852b4cbaf1d05785b69f38faa40fe3a07de0ba8d5 size 1179 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin index 4a0eefa7e..158b437a9 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_R.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7084eb7f0ec12ce9f2729410bedb2731208aaf70decded64c26321e582a01782 +oid sha256:1b35aa4f62b27b2c8ecc56089616d80eb404f7ff27a1238a3df2badff40242a6 size 1179 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin index 6adfb0ecc..b1047309c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/WandPT_Y.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c9afef12d8f577cbb68fcc55b589193ff4eaaabc6fc62f1ece038c58531ef551 +oid sha256:f01cda8b225aaeb963742461b8020845b354cfa94f855726aee73581d64775f1 size 1179 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Wand_Light.bin new file mode 100644 index 000000000..f57040a53 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Revelio/Wand_Light.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98b317b192cf09fbc75360aa394f9a99f865fceb1cc8f17c7b63c2411a057c48 +size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin index b66edb0ea..0693b7c22 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:264978b7dcde1ac9015818f70f0e500fc72df11a5837a6ee51b01b5df447d601 +oid sha256:eaa5ee083d0e81617f3f0b8e0866ea34c8eb45cdd3c6320204e7fe75bdd4ad10 size 1239 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Hit_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Hit_PT.bin index 87c925ef0..d86586d84 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Hit_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Hit_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:816b423153d5f8f7f920cc51d2d9ad207425ffe66b8318c81b552644d2477ba7 +oid sha256:b8744461c1310c73b8e1c7ef7007fd25bc23293e4a9372533834348cecf61e0e size 1214 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Transformation_PJ_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Transformation_PJ_PT.bin new file mode 100644 index 000000000..4b04ead8a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Transformation/Transformation_PJ_PT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5fbf0247cd5de10c64c7050172e285c48ec9f35f670157d83c3ad2f3a6b0932 +size 1244 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail index 17458e0ca..43f85df93 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollDead/TrollDead.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollDead/TrollDead.bin new file mode 100644 index 000000000..99dc12f21 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollDead/TrollDead.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d547eb4d21b3f246e63b76ac5c6ac86a32a7ea6298b24576d26048c4e68c20b +size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/NomalSmoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/NomalSmoke.bin index b80eb90c4..92910bcfa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/NomalSmoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/NomalSmoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:259b93fc9867619543b6d7b92109e4e5dd61b8c67eaa066476bd82652f81977f -size 1201 +oid sha256:f150ddf3444e93fecd9d72ea6656397ea422473f827116a2fbc2967cfc0c1c34 +size 1196 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/Rock_PT_15.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/Rock_PT_15.bin index ab56aa90d..5881a23e7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/Rock_PT_15.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollNomalSmoke/Rock_PT_15.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8b11d6d5fb18e8afb4461fe3f1e67c1122e919285294f51f04f8df5c3060d570 -size 1143 +oid sha256:b5dcbc0891449dbc541c425d8a942b4cbaaaece2b1bb7fc8ab3b35e198f970bd +size 1188 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin index 66f6ce370..7265dba36 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/HitSmoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87002479b510aebdde94bc9fb79475baab3955f076d51d8cd8faef5a3b33a49c -size 1244 +oid sha256:334ef5e2082733fc639bbd2c8429553e43bddda0b974f9096acf5c578f84bad7 +size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/Rock_PT_35.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/Rock_PT_35.bin index 6f9933c22..577b13ded 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/Rock_PT_35.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRush/Rock_PT_35.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ffcc5d4d74f9d05d6ec08f400a683c478710fcc78fb50a5b3ff4b88d7760121c -size 1143 +oid sha256:6364f71757d700a695c73e25fa7b0239d337ece4d85fc6c92319f29f9d7f63aa +size 1191 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRushBlur/Rush_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRushBlur/Rush_Blur.bin new file mode 100644 index 000000000..629961887 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollRushBlur/Rush_Blur.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e81e7cfb0d0ed25804368cf67276c3d550020bc50637d719bc45755df6097a2 +size 1150 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit0.bin new file mode 100644 index 000000000..41ce91056 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d352e1934fa5d81e64438d451e4866e0197cd9580790bde16d9a8d233ccec7fc +size 1252 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit1.bin new file mode 100644 index 000000000..074110aae --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSelfHit/Hit1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a6df4f9fde0be2cacf9b6795e5c9d2415a24b7e0c2e561fc7f80d423edf16c7 +size 1186 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Blur.bin new file mode 100644 index 000000000..6e691eaff --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Blur.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88482367874a0357a62c27a8208e13f0ed8868af125b0b87f6d4fdbca634abb2 +size 1210 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Smoke.bin new file mode 100644 index 000000000..418450ff4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollShout/Shout_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0d87e059fcc714a840a77daf70e174676170276f7ebd196a474f30fd3f07e67 +size 1199 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle.bin index 2da9007c7..83105ac3d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Particle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d581c32024750c72041a939262f581e3a13231b018d66a9446faea73616fe24c -size 1361 +oid sha256:90e253c2d54928458395f295664743c3e7352bf00313d39befd6080f0a76f5a4 +size 1294 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Crack_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Crack_Decal.bin new file mode 100644 index 000000000..19dec8c68 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Crack_Decal.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a754f98a8c175c93c2a884cdfec1c8c1ae1d18d6a3d9fa24eedcb4ff3d360262 +size 1212 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin index dbbf1a768..36512fce6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_25.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7ea9d6052854ea02a97baa4aba669222c1f8fed13edf4b25d02f6ea7d95b42d0 -size 1151 +oid sha256:fe3ecad6248a434e164d118e7e643eebaa457f56accaf18bf849870ba2fb4c58 +size 1191 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Brown.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Brown.bin new file mode 100644 index 000000000..b241a9b43 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Brown.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9ea9791ba2b577f8558bdd188c557afc0c1cf71e6fe2988764ac7b5f804fa20 +size 1188 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Large.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Large.bin new file mode 100644 index 000000000..14b9589d4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Rock_PT_Large.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4e8a9d64ebd58503479682248e640bacff06846835c2402323b760a3a94d455 +size 1190 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Smoke.bin index 85a42d916..ec7640727 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Smoke.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollSwing/Smoke.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a259f8f5d1dff411a4a1c0ac515e411f50058e9f4863cf8ab47b19ce56f18492 +oid sha256:089cb0129df13704d759581185f19416a7b04902d42057cfed34b3d75bb010d0 size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollThrow/Black_Fire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollThrow/Black_Fire.bin new file mode 100644 index 000000000..018fb39f0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Troll/TrollThrow/Black_Fire.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8f29601c6ee80f589c25caf8636d9dce6c146b255948cc16ea66475a9e867a6 +size 1197 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/ElfPos/ElfPos.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/ElfPos/ElfPos.xml new file mode 100644 index 000000000..209d22039 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/ElfPos/ElfPos.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/CaveData.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/CaveData.xml new file mode 100644 index 000000000..5c261c103 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/CaveData.xml @@ -0,0 +1,12 @@ + + + + Prototype_GameObject_SM_LLA_Cave + Prototype_GameObject_SM_LLA_Cave_Lod1 + Prototype_GameObject_SM_LLA_Cave_Lod2 + Prototype_GameObject_SM_LLA_Cave_Lod3 + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hiden/Element_Chest_Info.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hiden/Element_Chest_Info.xml index 2c8094a41..efd1cf784 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hiden/Element_Chest_Info.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hiden/Element_Chest_Info.xml @@ -16,7 +16,7 @@ Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod1 Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod2 - + @@ -35,7 +35,7 @@ Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod1 Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod2 - + @@ -54,7 +54,7 @@ Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod1 Prototype_GameObject_SM_Chest_RewardContainer_C_Lid_Lod2 - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml new file mode 100644 index 000000000..ec37e8f45 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/NPC/DummyNPC_Data.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Reparo/Reparo_Data.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Reparo/Reparo_Data.xml new file mode 100644 index 000000000..1fe3abf1f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Reparo/Reparo_Data.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.bin index a1a1073ca..76f4be2ad 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1db07c9f76accbd123a54079fada22e054faeb39de5d139a0e118a217c473256 +oid sha256:60418f73bd70edfc1b1fe1eb83e586a92eb7c640942838cb1518069509afb1f0 size 67108864 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds index 917cf4f16..df19cee74 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_HeightMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_HeightMap.bin index c7b23053b..a7cccdc60 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_HeightMap.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Terrain/Hogsmeade_HeightMap.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bf3f9ae0a13102dda45fda801e0bfd162db42eca532822d996f5a9a1707f1949 +oid sha256:85c57a64abb162ca99cb60df9d0ca9bdb54033edc1caa0aaa523c08af3c016be size 1052676 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml index 51f3f40ac..bfba64e1b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Stat/NpcStat.xml @@ -13,4 +13,6 @@ + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin index 4c4cd33c2..f04f5c067 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b4537af094f35c37594e1728cfaf4c83b99154a2e0eadc47a3cdf3fc0ed18571 -size 5470363 +oid sha256:f9fabdae646dc31263cad264ec709dda4dd344cbd1c6e0f9a6728c25874301f4 +size 5470349 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml index ebf93bda8..47fb3853d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/BaiHowin.xml @@ -90,7 +90,7 @@ - + @@ -98,7 +98,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/BaiHowin/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.bin similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.bin rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.bin diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Anim.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Broom.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.bin new file mode 100644 index 000000000..372b02834 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d12d8e93f6842c8c1c573a2fc781bb2e5cbb6f1e77539740b45c2a9d38c43c2c +size 23945046 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.fbx new file mode 100644 index 000000000..2991584c1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa_Idle.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0660c3e9a532f2ec6ffea5471afb220ce92c0e344a773edc15afebe3a0cafa2c +size 18829884 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/ChiyoKogawa/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin index 0d25ab517..55c9981d9 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:623c97a3f54a1654a0ea8de829aae7e89a6e97a16885c2dbd1845e40c1ba8aee -size 5245096 +oid sha256:3f04e901fbb454cae82029c574caa0e4e2695f616229c32184061f63b8319738 +size 5245076 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml index f26ec6f27..6a5575e2c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/DinahHecat.xml @@ -32,7 +32,7 @@ - + @@ -40,7 +40,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/DinahHecat/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.bin index b8eb32a35..7759156dc 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0b168ac5991ac9c38501245fa2a85b11b142fa3f6551f6c965da140c4a43a1c2 -size 2941521 +oid sha256:6604b5124987e2c5141ea72c55a47c43345a12898925d294f589887270d68a58 +size 2941528 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml index 9818428f0..2afcad975 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf.xml @@ -124,7 +124,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.bin new file mode 100644 index 000000000..e06511082 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fff452d336e6a414428faf1d4fe59d76f344b642d606483fdde4de53e5ae6fd +size 3654110 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.fbx new file mode 100644 index 000000000..0eba4d16c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Elf_Browse.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1941bc7345a60f3a79397b24fa9a31b7759f59f4d2483c16782be345d204d639 +size 2925276 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin index 07752bfbe..77de22ac0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:393283aa17ffe0bdc2d027a4450fd01cc9c110233e2d64744bcc5a650fac4d4b -size 3539229 +oid sha256:7dcf7af2b05e77d79fa11b77a2975cf437e1ef8a71deba21dc78a988f37eee89 +size 3539236 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.xml index dc3e0656f..ddc59f7e7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.xml @@ -32,7 +32,7 @@ - + @@ -155,7 +155,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Elf/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/F_Student/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin index 585a7a3f5..1f96872a4 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b6971e29e39aea90c3854034ffdc3d0fce25a76315de1f0b442b19291330b1a3 -size 11118807 +oid sha256:1c0559c473cd3edae1fc77c5e393066e87c43567e106bded0199f82efe76807f +size 11118814 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml index 1c5a26e8b..1d7bfcb15 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/Garlick.xml @@ -209,7 +209,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Garlick/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin index 15462d0e6..b25c1495d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a4eec1f603dd420163bc9ce268fccbdb0998ea28b9bfa395cf870d097c5712ff -size 6700660 +oid sha256:1d802a78f2f3035cd0b362347c2a1b3284eaf3b7fdbff235f3fc6ef1b0b13bf9 +size 6700652 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml index 20b532718..59bb9bcf4 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/GeorgeOsric.xml @@ -34,7 +34,7 @@ - + @@ -42,7 +42,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GeorgeOsric/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin index 704035228..31e8d0475 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:93816fc5a683892c7619312ac2ea43b255efd70cbf30141fa615eb5480f3397e +oid sha256:173c873842d70950bf3a07092ec151f6c9b21c4581604b0f1d40ffe9823a8756 size 6556632 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml index 41dace815..4c793831b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.xml @@ -59,7 +59,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/GerboldOllivander/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin index c2ed6fdf9..6e2417873 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:67ff0dfb4171ae863c571cf232259562042bb1af80b5ee412d34c4727d4bf1e1 -size 6592747 +oid sha256:3f1f4918c0992c7951d6b7d7702feb7d2b09024749ddd89f4ea4da4d1b5603f4 +size 6592740 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml index 7e0ac1d9e..198bac320 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.xml @@ -206,7 +206,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds index 6886922fb..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Ghost_Peeves/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/M_Student/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_Decay2_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_Decay2_D.dds new file mode 100644 index 000000000..602735444 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_Decay2_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_N.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_N.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_N.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_SRXO.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_SRXO.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_HUM_Head_Teeth_SRXO.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MudiwaOnai/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/PhineasBlack/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/SatyavatiShah/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..e41e49596 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin index 815ffe2ce..34b5b3d85 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6b0f967bd7e9d56641cede84d6987d9dcf7db01959fe2c0d75c1320e008d0741 -size 18597563 +oid sha256:ae2d080773cb11733b1d6e4f39d24be6d3bfcb64151ecc158c9cbf7ccaea022c +size 5375761 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx index a07942f86..344c15789 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4390d66420dfc1d0a879c34c353f5f8b9bbc0fd21410b0feffbe3af042ebedff -size 59379612 +oid sha256:f93df0eaf0e1e666222763579ab1a8a76b0156163fcb60ff015917d6b87c1ec6 +size 2346732 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.bin new file mode 100644 index 000000000..f8566ee4d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09167faeffc4ce2aaca9bd535d0037fb23a886ef86100327e3744cdfa690fee7 +size 18595333 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.fbx new file mode 100644 index 000000000..ad46e614a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Broom.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1fdbed43c0f548645a6cee610839a58cd113dff238a54c288046600d04bc2c3b +size 59382940 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.bin new file mode 100644 index 000000000..b23f894ac --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6bb38c87bcecffb91edce5fe3f291dc585c96ad50a822618c4ec54f7ca440816 +size 23283166 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.fbx new file mode 100644 index 000000000..8f4272649 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood_Idle.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d26c4d2d1e40d20438e21e0cb0b0ec8e6a4e797f7cca5e995c9929e8cd091704 +size 18785180 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png deleted file mode 100644 index d8e1fd944..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/BaseFlattenNormalMap.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml deleted file mode 100644 index 40219b073..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Garlick.xml +++ /dev/null @@ -1,269 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx deleted file mode 100644 index 1cbbfcf54..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d24d145654626e331561cf6c6e4c7fab915e4fe6090772d6e19eb3cc42792dd4 -size 5151308 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx deleted file mode 100644 index 029022ca5..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_AvadaKedavra.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d782323b6137402401929e733f1a0a629cd014735ad6499dd9cfa02f554692af -size 6018332 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx deleted file mode 100644 index cf80a9c65..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Bm.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c9a4ec2aa1cd1a7c20fd712c6a9a4ea4e2995d2a98fabec55f50f26d312665b -size 544959468 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx deleted file mode 100644 index 500acecd4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Broom.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:455c61941119a4bb6ee17556b90a03eddbb69f92d93b7eb4633f9d5105cfc02a -size 263553308 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx deleted file mode 100644 index 26c354f6f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Cmbt.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4faa5b5e258bd49ab1ac863834148d0438c37d90c6c526e26bec2af2defa4568 -size 205155228 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx deleted file mode 100644 index 52bdb410f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Lightning.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5749bbf9655647b055f5510e0671b9b0cd6c164b12e820078e4ada1fb3a4e484 -size 6061772 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx deleted file mode 100644 index be47c045e..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_OpenDoor.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:774826245ec2bb5d6fbd5a61e3ccab4e5819f246e7630fd51ec6abb3529f29d9 -size 7446620 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx deleted file mode 100644 index abb775b2b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Protego.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c1806d30cd95dfd51a6438842a911bf028663cad71b8ff77b591a89e20e90350 -size 11262300 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx deleted file mode 100644 index 794174dd5..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Rct.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:953f8acd1848aa105b34ae2cf37866073238d13f9e3f7cb0a7ab08f67b0d8562 -size 177046556 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx deleted file mode 100644 index 341033f4d..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Sneak.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bfcc6d4630c85c8ce147f3d008e1d0b7c1e791a9bf624a39e168446f3094c2c4 -size 45475004 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx deleted file mode 100644 index 1a87a2bd3..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spawn.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3de5a415eceb50826dae12de16dca671e12253dba50edfdb96594d246c2f471 -size 13704236 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx deleted file mode 100644 index 5fbd59379..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_Spell_Learning.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ff98efacb24e1d672c677e333dd4fa5cfe67c81432eb4276030ef239a6bba6a3 -size 9410716 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx deleted file mode 100644 index 9355fdb26..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/Playable_TrollIntro.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:85fff4ac811ede1d50d66f9f551ea9a72ac5fda80b19d57558c6be7f914b2b71 -size 13735708 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png deleted file mode 100644 index b414d5691..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_DefaultGrey_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png deleted file mode 100644 index 4bf9d62f9..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Iris_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png deleted file mode 100644 index 6e082532d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Eye_Sclera_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds deleted file mode 100644 index 24effbef3..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_HUM_Head_Teeth_D.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin index a4c4758f5..bec0b07ee 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87c758a2826671b83278e10f317fa5da1f6d9e5f95d18a354e0462b434dd003c -size 10396801 +oid sha256:70cf4364fe136ed6abf6d385d0e90270b36a5087046606d634c7b2ed1adcd727 +size 11099434 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx index 88b0a2068..f679e8ae1 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0c60471f86afa6082edad8e88d7fce13458fd0531c7b9edec2e34a8eaf8ce028 -size 5782684 +oid sha256:c06e56becb5cef0fb979bfd924f953b85dd524647ad7f628d3ed3a9f15944351 +size 5428780 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml index 9bf7fcb9c..460280668 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable.xml @@ -1,210 +1,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -231,110 +28,24 @@ - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - + @@ -346,10 +57,159 @@ - - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -375,5 +235,35 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin index 145551226..a9d210e4b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cef9657058c92da3fc1f2c7412d9af109e96010656df8cbf0349f3b6cbca0266 -size 10764837 +oid sha256:4800a4b86ccd46b3e775304c7eb8d466c1ee86d240654b454b9d833f3db81cf7 +size 11476055 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx index 4f05ed3fb..4d643b85c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ae6a589175d1caf8e7af70da9770df080bf35b0a5e7bd708cfc13a86b1fa8c2d -size 6579564 +oid sha256:f1d96efae5490a8c6b2c3515ce8a476537e6fa7506d8c21254ad1f616aa321b4 +size 6295836 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin index c8a0c23da..1945ac29e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f59cee6bc84723fa5f30927fee1d2862bacd47f6151f540189d9efa11c9b88fb -size 172123989 +oid sha256:5fdfefc88607a7aa4cf411a7c0e1281e3573d85e4cfab2e1d45be1d0876735bd +size 175364307 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx index 43cca3160..842b9cf86 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Bm.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9d7dce07f39d918046f053943ac20a7b8417ee2d8434aca79ce4aedb76ff238f -size 496494956 +oid sha256:99e08bf4dac172d613ce77c59a100ede038d2915816a89afb8be855ad13e8233 +size 545293484 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin index 6313624b7..3c92971a8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:aa216c1dda899129e21beba4f22b48d5ae83f26dc9ce26948788720214f55c89 -size 23181890 +oid sha256:2f4164eb3ae3cd019264267233333f34d100938f8805bb5b4b27a47749294186 +size 24388626 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx index 56fd36b23..0a0856337 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Broom.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c39f3648a774fde3a3ca0374048cf98c2585ea1c6ce575200791122be7882316 -size 58614012 +oid sha256:7705c6ae161ee2cf8820afd83e851d5e4a975ad71ed54b45df44c257c5341b32 +size 63939356 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin index 05f9d2a95..3d1c22ecd 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5736c3c8c007604120bfbc582d88c03831331ae24f3af892d58640d802024335 -size 69519408 +oid sha256:f821ca53633652768ed20ef4bfc27e27601264da330a7e7e37ec97a959456254 +size 71148916 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx index 78f8de90b..c4027ddfe 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2b05741a3bd8e858c9e2bcbfaf18602a31c5dcdd81697db2810469e35fe7b37c -size 187635116 +oid sha256:d48330316764ad8ff7e7ca5723d0a74214f1f32f235b810fd24512bc326a26fe +size 205459948 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin index 068e0e499..f0351365f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:82113f663532392550e084df2e2a64136cfb2e44c20eadc2052c323a280e94e4 -size 10845926 +oid sha256:b6d22175f6544a52eda70682a727dccf2f1361b7011ff46fddc87ecdc293ede3 +size 11551488 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx index 0dd59d3e3..0cf7a5683 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Lightning.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5de6f2efcdc609dbdbec795746d336e4809a3e211ddc92e8d6ffeb3e25d61129 -size 6623820 +oid sha256:894b0993b69ebd1cafc09023b27211f1b05740a082cf9ca80e47db74d13b9034 +size 6339964 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin index 864a8893d..2f30a9a3f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4d05b034196df340038c767a70317f3a4391c913a9f5c10518c1da3963f1ceb6 -size 10837383 +oid sha256:f1db772c9e548bb4febe7393c9d6fc13c09e4aa09a7edf969d892895bff32f68 +size 11546673 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx index d414a061a..0508e8013 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpenDoor.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b98ecbd4e8441c101dc28c59c1926f4f4ba288331bde0138b0b07490bd802dc7 -size 7862876 +oid sha256:b54584364e98b55a9a59d34d71e93f5f36daa31311a184fe3be207702f3f87be +size 7723468 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.bin index 09b9ad9cd..8df802a3f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7e623f16ede3e52cf8c666e1868c2e8fd7a877f7d17c26884cfe2563f531d539 -size 12062732 +oid sha256:98c7435971d33a369133691e09deff33deaf4944992fc6bc7f69caa7496a057b +size 12207094 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.fbx index 16b5c6422..ef10d899d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ae5d4a53b0ceca05f477bd3603903b7bc2c7d5a0edc7fa8b89d627a14c4fc7ff -size 8118684 +oid sha256:2403e0e808dcfeb8954ba614733b3ea26c057b0d330bdf0d0b65f491e08af740 +size 6553084 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin index 77204598d..6e2a8414d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4f63a9b11fff81794e700c2ffbce3ba5de77043bdfd9ef147bd95ff32c2ddda5 -size 11605392 +oid sha256:9a9e90b902d4da9e360216b4c96513555e12f4dadb99d4389878089efafd70f8 +size 12323872 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx index daee529ae..559f366ef 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Protego.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:93cad5fc47ba8715e94c226fbf5209b69948b99131a8e2d86e2348fa1ceab614 -size 11317884 +oid sha256:938483f504331e0b5ca0e9ce29fa9e395d59dff8abec407aa93a334853747ab9 +size 11539404 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin index 45a33f247..5d04a040d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:697745c7628aff20a58c7889620cad2ad044d0327963fe52ba21cab05eea8c93 -size 60877918 +oid sha256:a7308edf5d56b9ac91ce7403d6f6f98ea62cd4c319c3835e52aae1067cda7dfb +size 62592578 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx index a3bfcc9e0..4220d1739 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Rct.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d98f52f20ecd4445c3e11cdcc0225d5f9c9bef744b80371a79d4da45029d75af -size 162110172 +oid sha256:001d8a1d5be729122c757a16315b8193c1ab47685fb7fa2d40faad1e6cb4d715 +size 177441692 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin index 6973b43df..6ded131bb 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:eeabb9187a67e6cb52b0ab83c0373a3aabae3087cfcac6ba7615235c4b800ee0 -size 19558977 +oid sha256:53dfee0b7195c0869d932455b16f352fc61f72b90d56db67f670cd5a7747d7bf +size 20519009 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx index 592a12504..108b3d42d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Sneak.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1365b28033d92c5b89d0bc349f9ed6e37f76f9251a38baa8f3bc3df58c6c4784 -size 42318124 +oid sha256:897b61454db9071830bee04c7f8210c23bacb9fb63c574917a6ac727701e5a37 +size 45753868 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin index 43f5406c5..844767a1e 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:deaf609ed71e00e5d72ace1d0f3b9a6f64e459aabc10c5a4c9129d9787c354e2 -size 15538505 +oid sha256:9576acdcb743233d97ed831dc74096967077ae28bb19b4eb2223a0646c63839c +size 16364903 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx index 47e449856..bb729b88a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spawn.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b46e87261c87183d1d732217560577eb05283a6444ac07db6fefb4aec9693ef2 -size 13645916 +oid sha256:4de90d200508da6673585231d01b06f800c10dad3b7ea808bbedc0ab64a75e4a +size 13980236 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin index 0bab1f105..fd5029a68 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6f6947410dfd4b5db8d9790eacd4e065bf71a539da23a6fb4231dd4da76f56cf -size 12250323 +oid sha256:e3ca34547838ec9e3e8f0cef1a3817de282c0da75768ed389de4c6aa0219a8b4 +size 12963289 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx index b50257389..5b1e71bfa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_Spell_Learning.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:17e4c94bcc64d1d3b52bb061a57f6bf00e2b21cf1ecdd009b504f14787919ca9 -size 9683740 +oid sha256:ab0ecb2ae4fe28e94b5af27f5c46c7758b29259ff34d0cffa7d9c3b86d6d7026 +size 9688732 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin index a9107932e..18b29bd66 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b84350fba6f577232280266810e71ec6d642e71976d5535e2ab83a268bbada15 -size 10529725 +oid sha256:2a2da149003960e5b6a0e4a1d5efa0d67b4ae89a8988ad7aae7353130eb5f6a7 +size 14701126 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx index ad0b3270a..391766576 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/Playable_TrollIntro.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f0a58fd18e9d37dfa15675a867aac05b5eab0d300afe8c361efbf5628c7aba20 -size 6321564 +oid sha256:0a9758a48bbed331345770dc11fc511e8b84082bc45321f47d730e9605b12c06 +size 14012572 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_D.png deleted file mode 100644 index 0d51ee046..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_N.dds deleted file mode 100644 index 3163e2e02..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory02_N.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory_SRXO.dds deleted file mode 100644 index 096e38ffc..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Arms_Ivory_SRXO.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MIrabelGarlick_N.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MirabelGarlick_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MirabelGarlick_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Adult_F_Head_MirabelGarlick_SRXO.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank2_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Blank2_MSK.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank2_MSK.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Blank2_MSK.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Blank_N.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Blank_N.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Blank_N.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Cav_Spid_ThickWeb_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Cav_Spid_ThickWeb_N.dds deleted file mode 100644 index 4a77ba948..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Cav_Spid_ThickWeb_N.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eye_IrisTint_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eye_IrisTint_MSK.dds deleted file mode 100644 index ab2620bf1..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eye_IrisTint_MSK.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Eye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eye_Iris_D.png similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/MatildaWeasely/T_Eye_Iris_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eye_Iris_D.png diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eyelash_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eyelash_A.dds deleted file mode 100644 index f138faf0d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Eyelash_A.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Garlick_Hair_DAO_MSK.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_DAO_MSK.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Garlick_Hair_DAO_MSK.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Garlick_Hair_THV_MSK.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_Garlick_Hair_THV_MSK.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Garlick_Hair_THV_MSK.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_D.dds deleted file mode 100644 index 4e9bdabae..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_D.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_DAO_MSK.dds deleted file mode 100644 index 4de9830a5..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_DAO_MSK.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_Rainbow_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_Rainbow_D.dds deleted file mode 100644 index f3ab80d81..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_Rainbow_D.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_THV_MSK.dds deleted file mode 100644 index 8a210875e..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_THV_MSK.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_TVOA_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_TVOA_MSK.dds deleted file mode 100644 index aa9cfad79..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Hair_STUHair18_PrincessLong_TVOA_MSK.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_D.dds deleted file mode 100644 index 830c0922b..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_D.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_N.dds deleted file mode 100644 index 4bf3e4537..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_N.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_SRO.dds deleted file mode 100644 index a0d2e0b54..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Low_ArcanePants01_Long_RonanAvatar2_SRO.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_D.dds deleted file mode 100644 index 68e3b3514..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_D.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_N.dds deleted file mode 100644 index d30473e87..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_N.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_SRO.dds deleted file mode 100644 index 7fe6c2d27..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Shoes_DarkArts01_Short_RonanAvatar_SRO.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_D.dds deleted file mode 100644 index 0f81f12af..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_D.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_N.dds deleted file mode 100644 index 6395c9cc8..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_N.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_SRO.dds deleted file mode 100644 index 3bb71ecde..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_F_Upp_StuUni01_SRO.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_Head_EyeShadow_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_Head_EyeShadow_A.dds deleted file mode 100644 index 0aaa725e1..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_Head_EyeShadow_A.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_D.dds deleted file mode 100644 index 6e3639535..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_D.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Fur_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Fur_D.png deleted file mode 100644 index fb2900230..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Fur_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Glow_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Glow_MSK.dds deleted file mode 100644 index cec891d0c..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_Glow_MSK.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_MRO.dds deleted file mode 100644 index 371a6bda7..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_MRO.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_N.dds deleted file mode 100644 index f1271ca8c..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_HUM_M_Robe_RelicRobeGry_N.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_D.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_D.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_D.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_MRO.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_MRO.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_MRO.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_N.dds similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Pl2ableCharacter/T_MirabelGarlick_N.dds rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_MirabelGarlick_N.dds diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_D.dds deleted file mode 100644 index 9cefbede6..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_D.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds index 6886922fb..e41e49596 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_MRO.dds deleted file mode 100644 index 8dd44d423..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Poltergeist_Eye_MRO.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_YF_HeadBase02_Ivory_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_YF_HeadBase02_Ivory_SRXO.dds deleted file mode 100644 index 324f72cc5..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_YF_HeadBase02_Ivory_SRXO.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Generic00_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Generic00_N.dds deleted file mode 100644 index 2c9251211..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Generic00_N.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Ivory_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Ivory_D.png deleted file mode 100644 index 588f23307..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/T_Young_F_Head_Ivory_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/VFX_T_SkinBurn_Emiss_BPF_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/VFX_T_SkinBurn_Emiss_BPF_D.dds deleted file mode 100644 index 4136a9832..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/PlayableCharacter/VFX_T_SkinBurn_Emiss_BPF_D.dds and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave.bin new file mode 100644 index 000000000..3cab3a8c7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b864d800c1cfca56f25eae637214e168a740eb3b5142620e0985d38d462e555 +size 1236201 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod1.bin new file mode 100644 index 000000000..6f9c56d18 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9ed01a45bf585d49e4999cac784b72972e5c7c45b79280cbce943dc3e27ab8d +size 516245 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod2.bin new file mode 100644 index 000000000..6628b97ae --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05d5340eb73490b4e2be659e66e0cf7b86c6e9a4e281136b8881a8e613647ab5 +size 221957 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod3.bin new file mode 100644 index 000000000..f6ad1aa6e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes/SM_LLA_Cave_Lod3.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49b3cd6a668b5f849ea0c0ecb653b0e4506138d610643988b46364802ab33f49 +size 29081 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin index 8c5a78cca..1c2b00445 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1d0ce3e6476d9637d26dbff6df00873b28d976705f6cb4e29b2f02a8314f768b -size 91768265 +oid sha256:aa3e95035ff4c49f22edc7e9b59c06f7aadf9e20f739e6f725b14a76a8724da0 +size 91768272 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.xml index e1905d26d..f372ca06d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.xml @@ -30,7 +30,7 @@ - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/T_Poltergeist_Eye_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/T_Poltergeist_Eye_E.dds new file mode 100644 index 000000000..798944162 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin_Assassin/T_Poltergeist_Eye_E.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin index db6d0011c..d8517eaf0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a1096c9b3670edcac0ab9a9dab03ba62e56409260a5dd35ddfb64eeb0f63e62d -size 3104615 +oid sha256:5d53a8ca1dda4cfe6fc341f2e15ded05e5f26663525f572614c7e64458698510 +size 3320395 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin index 62040dc7f..abaf01430 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e0f3bb296fa75aae17191189774440990f98687ea28e3a20cefaca3ec5efcfd0 -size 3845100 +oid sha256:93136ab26d5b2139f8e5b9ec10eb65ef89d66c42acefc3eacf6a80edcd054329 +size 4088859 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin index c2fa679c5..85653bdc6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8ee8d4bdde7a13a58a5c12a968be689bd37e8f7ddacd47a7d4c3b570730653e7 -size 6914714 +oid sha256:0be67eadf211e8afc7bd556edf6dccea40fc46f46d84c931e61cd8a396a965b5 +size 6914734 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.fbx index ba38f5695..4de7894d7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:943e19a56f9fc364fdf15d94ef8676ed56eeb95c5256c8b56a9bee3f58735faf -size 2720396 +oid sha256:58d057893050d6542ac8ae2aea1448108ab3acb1ae17ca8ed019a870a3361d2e +size 2781292 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.xml index efb16c354..972c717df 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage.xml @@ -30,15 +30,15 @@ - - + + - + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage_Anim.fbx index 6e90af9e6..aacbf45db 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage_Anim.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/ThestralCarriage/ThestralCarriage_Anim.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7816274846a7d905a5d01fbad48d186f07e1b855dfdc141d04338378205f322d -size 4961324 +oid sha256:7ac89955d09f6637f2f14a4ab0d65a8c872da6044c71f057f3bf5b8f3fccc6c2 +size 3823948 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx index 4855fb9cd..625ac5e89 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4d7813f0c76d9c94ab480f6583a3d94f8ce20cc903d4eaedeb104b055f555b98 -size 45100 +oid sha256:34c2a8fea0adb88622742c6c840879d36ca6a09dc66d1099c22fdf661544622c +size 44988 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl index ad6342569..2e08ae843 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl @@ -829,7 +829,7 @@ PS_OUT PS_UPPER_DMRON_ToMRO(PS_IN In) return Out; } -PS_OUT PS_GLASSES_DMRON_ToMRO(PS_IN In) +PS_OUT PS_GLASSES_DSRON_ToSRO(PS_IN In) { PS_OUT Out = (PS_OUT) 0; @@ -840,22 +840,22 @@ PS_OUT PS_GLASSES_DMRON_ToMRO(PS_IN In) vDiffuse = ApplyDissolve(g_DeadDisolveTexture, g_fDisolveRatio, g_fDisolveAmount, g_fDisolveEdgeWidth, vBurnColor, vDiffuse, In.vTexcoord); } - clip(vDiffuse.a - 0.2f); - float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); - float4 vMRO_Mask = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord); + float4 vSRO_Mask = g_SpecularTexture.Sample(DefaultSampler, In.vTexcoord); + float fAlpha = 1.f - vSRO_Mask.b - 0.3f; - Out.vAlbedo = vDiffuse; + Out.vAlbedo = vDiffuse.rgba; + Out.vAlbedo.a = vSRO_Mask.b; Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); - Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1) - (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z - (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣 + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), + (In.vProjPos.w / g_fFar), + (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, 1.f); Out.vColor = float4(0.f, 0.f, 0.f, 1.f); - Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f); + Out.vSurface = float4(vSRO_Mask.r, vSRO_Mask.g, vSRO_Mask.b, 0.f); Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity); // SRO return Out; @@ -1474,10 +1474,10 @@ technique11 DefaultTechnique { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); VertexShader = compile vs_5_0 VS_MAIN(); - PixelShader = compile ps_5_0 PS_GLASSES_DMRON_ToMRO(); + PixelShader = compile ps_5_0 PS_GLASSES_DSRON_ToSRO(); } pass EmissiveMetalness_DENMRO_ToMRO // 10 { diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 531f2180e..1f280176e 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -193,6 +193,7 @@ call Update_Shaders.bat + @@ -233,6 +234,7 @@ call Update_Shaders.bat + @@ -276,6 +278,8 @@ call Update_Shaders.bat + + @@ -480,6 +484,7 @@ call Update_Shaders.bat + @@ -522,6 +527,7 @@ call Update_Shaders.bat + @@ -565,6 +571,8 @@ call Update_Shaders.bat + + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index df0e69f18..6ceddf134 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -792,10 +792,22 @@ {d84324ea-6303-442d-8f00-ed6555e6b02b} - + {bde6e952-c6ee-4136-8559-99392c01645e} + + {9ff77639-f62d-4cdd-a3f1-21d58323f5d3} + + + {9b246a74-cf6e-4f02-86fb-0a499cb39d4e} + + + {aa6ef154-b82d-42eb-82a7-f8b7f6631a1e} + + + {29bd6d08-5bfd-48ca-bd32-40824c276032} + @@ -1607,10 +1619,22 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy - + 50.UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Shout + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Rush + + + 02.GameObjects\Dummys\DummyNPC + + + 02.GameObjects\ReparoObject + @@ -2430,10 +2454,22 @@ 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Magic\11.Stupefy - + 50.UI\GamePlay_Canvas\Broom_Panel\Broom_TargetGate2D + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Shout + + + 02.GameObjects\Layer_Effect\Effect_Editor\Effect\Monster_Effect\Troll_Rush + + + 02.GameObjects\Dummys\DummyNPC + + + 02.GameObjects\ReparoObject + diff --git a/Jusin154_Team3D/Editor/Private/AlphaMap.cpp b/Jusin154_Team3D/Editor/Private/AlphaMap.cpp index 8cbaf5acc..c2647ebca 100644 --- a/Jusin154_Team3D/Editor/Private/AlphaMap.cpp +++ b/Jusin154_Team3D/Editor/Private/AlphaMap.cpp @@ -162,7 +162,6 @@ void CAlphaMap::Load_ToFile(const _char* pFilePath) in.read(reinterpret_cast<_char*>(&m_pPixels[i]), sizeof(_float4)); } - in.close(); D3D11_MAPPED_SUBRESOURCE SubResource{}; @@ -175,8 +174,8 @@ void CAlphaMap::Load_ToFile(const _char* pFilePath) m_pContext->Unmap(m_pTexture2D, 0); - /*if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds"))) - return;*/ + if (FAILED(SaveDDSTextureToFile(m_pContext, m_pTexture2D, L"../Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds"))) + return; } void CAlphaMap::Save_DDS(const _char* pFilePath) diff --git a/Jusin154_Team3D/Editor/Private/Decendo.cpp b/Jusin154_Team3D/Editor/Private/Decendo.cpp index 910a278d6..cc40ef351 100644 --- a/Jusin154_Team3D/Editor/Private/Decendo.cpp +++ b/Jusin154_Team3D/Editor/Private/Decendo.cpp @@ -48,7 +48,7 @@ HRESULT CDecendo::Initialize(void* pArg) SAFE_ADDREF(m_pProjectile_Blur); SAFE_ADDREF(m_pProjectile); - + \ m_fDuration = 3.5f; return S_OK; @@ -75,7 +75,6 @@ void CDecendo::Update(_float fTimeDelta) // 선속도 m_pProjectile_Blur->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); m_pProjectile->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); - //Up벡터 방향으로 파이만큼 이동 if (m_fRotateAccTime > XM_2PI) @@ -86,7 +85,6 @@ void CDecendo::Update(_float fTimeDelta) m_pProjectile_Blur->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f); m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fRotateAccTime) * 0.1f); - } void CDecendo::Late_Update(_float fTimeDelta) @@ -94,7 +92,7 @@ void CDecendo::Late_Update(_float fTimeDelta) if (m_bVisible == false) return; - Get_PartObject()->Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); + Get_PartObject()->Oneside_Rope_Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion()); @@ -124,12 +122,15 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg) CPartObject* pCircle0 = Get_PartObject(); CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); + CPartObject* pDecendo_Wand_Line = Get_PartObject("Decendo_Wand_Line"); pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); + pDecendo_Wand_Line->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); pCircle0->Set_Visible(true); pWandLight->Set_Visible(true); + pDecendo_Wand_Line->Set_Visible(true); /* 초기 위치 저장 */ _vector vStartPos = m_pOwner->Get_WorldPostion(); @@ -143,6 +144,7 @@ HRESULT CDecendo::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 비지블 */ m_pProjectile->Set_Visible(true); m_pProjectile_Blur->Set_Visible(true); + //m_pProjectile_Fire->Set_Visible(true); /*트레일 초기화 */ Get_PartObject()->Set_Visible(true); @@ -250,39 +252,48 @@ void CDecendo::OnCollision(CGameObject* pOther, void* pDesc) ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); - _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + _vector vHitPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + CCharacter_Controller* pCCT = CollisionDesc.pObject->Get_Component(); + _vector vFootPos = {}; + _vector vPlayerPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); - for (auto& pPair : m_PartObjects) + if (pCCT != nullptr) { - pPair.second->Set_Visible(true); - pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + vFootPos = pCCT->Get_FootPosition(); } + + CPartObject* pDecendo_Rock_PT = Get_PartObject("Decendo_Rock_PT"); + CPartObject* pDecendo_Red_Blur = Get_PartObject("Decendo_Red_Blur"); + CPartObject* pDecendo_Down = Get_PartObject("Decendo_Down"); + CPartObject* pDecendo_Ring = Get_PartObject("Decendo_Ring"); + CPartObject* pDecendo_Smoke = Get_PartObject("Decendo_Smoke"); + + pDecendo_Rock_PT->Set_Visible(true); + pDecendo_Rock_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + pDecendo_Red_Blur->Set_Visible(true); + pDecendo_Red_Blur->Get_Component()->Set_State(STATE::POSITION, vPlayerPos); + + pDecendo_Down->Set_Visible(true); + pDecendo_Down->Get_Component()->Set_State(STATE::POSITION, vPlayerPos); + + pDecendo_Ring->Set_Visible(true); + pDecendo_Ring->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + pDecendo_Smoke->Set_Visible(true); + pDecendo_Smoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + + + + m_pProjectile_Blur->Set_Visible(false); m_pProjectile->Set_Visible(false); - CWand* pWand = static_cast(m_pOwner); - - if (pWand == nullptr) - return; - - CPartObject* pCircle0 = Get_PartObject(); - CPartObject* pWandLight = Get_PartObject("Decendo_Wand_Light"); - - - pCircle0->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); - - _vector vPlayerPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); - - - Get_PartObject("Decendo_Down")->Get_Component()->LookAt(vPlayerPos); - Get_PartObject("Decendo_Smoke")->Get_Component()->LookAt(vPlayerPos); - Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); @@ -296,7 +307,6 @@ void CDecendo::Free() SAFE_RELEASE(m_pProjectile_Blur); SAFE_RELEASE(m_pProjectile); - } #ifdef _DEBUG void CDecendo::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/DecendoSide.cpp b/Jusin154_Team3D/Editor/Private/DecendoSide.cpp index 790d32939..f2f1f9c4b 100644 --- a/Jusin154_Team3D/Editor/Private/DecendoSide.cpp +++ b/Jusin154_Team3D/Editor/Private/DecendoSide.cpp @@ -40,22 +40,21 @@ HRESULT CDecendoSide::Initialize(void* pArg) m_wstrEffectName = L"DecendoSide"; m_pWandLight = Get_PartObject("Wand_Light_R"); + m_pWand_Fire = Get_PartObject("Wand_Fire"); + m_pWandTrail = Get_PartObject(); + SAFE_ADDREF(m_pWandLight); SAFE_ADDREF(m_pWandTrail); + SAFE_ADDREF(m_pWand_Fire); m_fDuration = 2.f; - m_Events.emplace(0.6f, [&]() { - CWand* pWand = static_cast(m_pOwner); + m_Events.emplace(0.8f, [&]() { - if (pWand == nullptr) - return; - - m_isTrailEnd = true; - - XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix()); + m_pWandTrail->SetDissolve(true); + m_pWand_Fire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); }); return S_OK; @@ -85,7 +84,7 @@ void CDecendoSide::Update(_float fTimeDelta) m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion()); _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix(); - m_pWandTrail->Trail_Update(TrailMat, fTimeDelta); + m_pWandTrail->Oneside_Rope_Trail_Update(TrailMat, fTimeDelta); } @@ -179,6 +178,7 @@ void CDecendoSide::Free() Safe_Release(m_pWandLight); Safe_Release(m_pWandTrail); + Safe_Release(m_pWand_Fire); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/DummyNPC.cpp b/Jusin154_Team3D/Editor/Private/DummyNPC.cpp new file mode 100644 index 000000000..682ca5ea7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/DummyNPC.cpp @@ -0,0 +1,236 @@ +#include "pch.h" +#include "DummyNPC.h" + +#include "GameInstance.h" + + +CDummyNPC::CDummyNPC(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject{ pDevice, pContext } +{ +} + +CDummyNPC::CDummyNPC(const CDummyNPC& rhs) + : CGameObject(rhs) +{ +} + +HRESULT CDummyNPC::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CDummyNPC::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + m_fUsingSurfaceParams = PBR_MRO; + + _float fMaxScale = 1.f; + m_iID = 0; + + if (nullptr != pArg) + { + DUMMY_NPC_DESC* pDesc = static_cast(pArg); + m_iID = pDesc->iID; + m_pTransformCom->Set_Scale(pDesc->vScale); + m_pTransformCom->Set_Rotation(pDesc->vRotation); + m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z)); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f)); + } + + return S_OK; +} + +void CDummyNPC::Priority_Update(_float fTimeDelta) +{ + +} + +void CDummyNPC::Update(_float fTimeDelta) +{ +} + +void CDummyNPC::Late_Update(_float fTimeDelta) +{ + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +} + +HRESULT CDummyNPC::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMesh = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMesh; i++) + { + if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pDiffuseTextureCom->Get_SRV(0)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_SRV("g_NormalTexture", m_pNormalTextureCom->Get_SRV(0)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_SRV("g_SurfaceParamsTexture", m_pSurfaceTextureCom->Get_SRV(0)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +HRESULT CDummyNPC::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + /* Com_Texture */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("DUMMY_NPC_Diffuse"), + reinterpret_cast(&m_pDiffuseTextureCom)))) + return E_FAIL; + /* Com_Texture */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("DUMMY_NPC_Normal"), + reinterpret_cast(&m_pNormalTextureCom)))) + return E_FAIL; + /* Com_Texture */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Base_MRO"), + reinterpret_cast(&m_pSurfaceTextureCom)))) + return E_FAIL; + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Model_DummyNpc"), + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CDummyNPC::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + +CDummyNPC* CDummyNPC::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDummyNPC* pInstance = new CDummyNPC(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDummyNPC"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CDummyNPC::Clone(void* pArg, CGameObject* pOwner) +{ + CDummyNPC* pInstance = new CDummyNPC(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDummyNPC"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDummyNPC::Free() +{ + __super::Free(); + + + SAFE_RELEASE(m_pDiffuseTextureCom); + SAFE_RELEASE(m_pNormalTextureCom); + SAFE_RELEASE(m_pSurfaceTextureCom); + SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pShaderCom); +} + +void CDummyNPC::Describe_Entity() +{ + GUI::InputInt("ID", (_int*)(&m_iID)); + m_pTransformCom->Describe_Entity(); + + if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)) + { + _float3 vPosition = {}; + if (m_pGameInstance->isPicking(&vPosition)) + { + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f)); + } + } + +} + +HRESULT CDummyNPC::Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root) +{ + tinyxml2::XMLElement* object = doc.NewElement("Object"); + object->SetAttribute("ID", m_iID); + root->InsertEndChild(object); + + +#pragma region TRANSFORM + _float3 vPosition = {}; + XMStoreFloat3(&vPosition, m_pTransformCom->Get_State(STATE::POSITION)); + + _float3 vScale = m_pTransformCom->Get_Scale(); + + _float3 vRotation = m_pTransformCom->Get_Rotation(); + + tinyxml2::XMLElement* Position = doc.NewElement("Position"); + Position->SetAttribute("x", vPosition.x); + Position->SetAttribute("y", vPosition.y); + Position->SetAttribute("z", vPosition.z); + object->InsertEndChild(Position); + + tinyxml2::XMLElement* Scale = doc.NewElement("Scale"); + Scale->SetAttribute("x", vScale.x); + Scale->SetAttribute("y", vScale.y); + Scale->SetAttribute("z", vScale.z); + object->InsertEndChild(Scale); + + tinyxml2::XMLElement* Rotation = doc.NewElement("Rotation"); + Rotation->SetAttribute("x", vRotation.x); + Rotation->SetAttribute("y", vRotation.y); + Rotation->SetAttribute("z", vRotation.z); + object->InsertEndChild(Rotation); + +#pragma endregion + + return S_OK; +} diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index 1b9428398..97d719961 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -23,6 +23,8 @@ #include "Troll_Rush_Hit.h" #include "Troll_Nomal_Smoke.h" #include "TrollSwing.h" +#include "Troll_Shout.h" +#include "Troll_Rush.h" #include "StunEffect.h" #include "Blink.h" #include "Ranrok_FireBall.h" @@ -492,15 +494,33 @@ HRESULT CEffectPool::Ready_MonsterEffect() return pEffect; } ))) return E_FAIL; - //if (FAILED(Create_Effect(SKILL_TYPE::RANROK_PROP, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + if (FAILED(Create_Effect(SKILL_TYPE::TROLL_SHOUT, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { - // CRanrok_Prop* pEffect = nullptr; + CTroll_Shout* pEffect = nullptr; - // pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); - // return pEffect; } - //))) return E_FAIL; - // + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::TROLL_RUSH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CTroll_Rush* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_PROP, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CRanrok_Prop* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 4105053ce..f6ef9bde9 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -51,22 +51,8 @@ HRESULT CLevel_EffectViewer::Initialize() return E_FAIL; } - //CTerrain::TERRAIN_DESC Desc = {}; - ///* Hogsmeade */ - - //Desc.isEdit = false; - //Desc.iAlphaSizeX = 2048; - //Desc.iAlphaSizeY = 2048; - //Desc.vPosition = _float3(-194, 18.5f, -153.f); - //Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin"; - //Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin"; - //Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"); - - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Terrain"), &Desc))) - // return E_FAIL; - /* 논 블랜드 중에서도 최 하단으로 들어가야함 */ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Z_Layer_EffectPool")))) //플레이어보다 먼저 생성해야함! { return E_FAIL; @@ -91,12 +77,12 @@ HRESULT CLevel_EffectViewer::Initialize() /* if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) return E_FAIL;*/ - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) - // return E_FAIL; - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) return E_FAIL; + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Monster")))) + // return E_FAIL; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Sky")))){ return E_FAIL; } @@ -108,8 +94,17 @@ HRESULT CLevel_EffectViewer::Initialize() //m_pGameInstance->Add_Editor_Plane(m_PlaneData); +/* 호그 스미드 */ + + m_pGameInstance->Setting_Volumetirc( + 1.251f, // 밀도 + 0.0253f, // 빛 강도 + 0.9f, // 산란 계수 + 1.78f, // 깊이 분포 계수 + 0.f); - m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); +/* 란록 맵*/ + //m_pGameInstance->Setting_Volumetirc(1.812f, 0.003f, 0.56f, 1.f, 0.031f); return S_OK; @@ -168,10 +163,18 @@ HRESULT CLevel_EffectViewer::Ready_Layer_Light() //_float4 vDiffuse = _float4(0.607f, 0.658f, 0.698f, 0.f); //_float4 vAmbient = _float4(0.1f, 0.13f, 0.13f, 0.f); //_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); + + /* 란록맵 */ + //_float4 vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f); + //_float4 vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f); + //_float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); + + /* 호그스미드 */ + _float4 vDiffuse = _float4(0.6529f, 0.6157f, 0.7843f, 1.0f); + _float4 vAmbient = _float4(0.6275f, 0.6275f, 0.6275f, 0.0314f); + _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.05f); + - _float4 vDiffuse = _float4(0.361f, 0.451f, 0.451f, 0.204f); - _float4 vAmbient = _float4(0.161f, 0.161f, 0.161f, 0.0f); - _float4 vSpecular = _float4(0.05f, 0.05f, 0.05f, 0.f); pLight->Get_Component()->Set_Color(vDiffuse, vAmbient, vSpecular); @@ -228,12 +231,28 @@ HRESULT CLevel_EffectViewer::Ready_Layer_PhysX(const _wstring& strLayerTag) HRESULT CLevel_EffectViewer::Ready_Layer_BackGround(const _wstring& strLayerTag) { - _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"); + + CTerrain::TERRAIN_DESC Desc = {}; + /* Hogsmeade */ + + Desc.isEdit = false; + Desc.iAlphaSizeX = 2048; + Desc.iAlphaSizeY = 2048; + Desc.vPosition = _float3(-194, 18.5f, -153.f); + Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin"; + Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin"; + Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade"); + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(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"); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp index ce750c002..08d4721c6 100644 --- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp @@ -20,6 +20,7 @@ #include "DummyDecal.h" #include "EffectPool.h" #include "InstancedProp_Light.h" +#include "ReparoObject.h" CLevel_MapViewer::CLevel_MapViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } @@ -138,7 +139,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_Background(const _wstring& strLayerTag) if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) return E_FAIL; - + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) + return E_FAIL; return S_OK; } @@ -634,7 +636,7 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag) if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) return E_FAIL; - Desc.bEditMode = true; + Desc.bEditMode = false; Desc.isShake = false; Desc.iShaderPassIndex = 4; Desc.vRadius = _float2(0.f, 0.f); diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index 05ea5f8be..a31c75cdd 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -19,6 +19,7 @@ #include "Player.h" #include "Goblin.h" #include "Broom.h" +#include "ReparoObject.h" CLevel_ObjectViewer::CLevel_ObjectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } { @@ -777,6 +778,9 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag) if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE))) return E_FAIL; + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) + // return E_FAIL; + /*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 5ca57d768..3bd6f06d4 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -184,6 +184,7 @@ #include "LightSpawner.h" #include "RaceRing.h" #include "MapElement_Balloon.h" +#include "DummyNPC.h" #pragma endregion @@ -214,6 +215,9 @@ #include "TrollSwing.h" #include "Troll_Nomal_Smoke.h" #include "Troll_Rush_Hit.h" +#include "Troll_Shout.h" +#include "Troll_Rush.h" + #include "Goblin_Protego.h" #include "Troll.h" @@ -238,6 +242,7 @@ #include "Ranrok_DeadSplash.h" #include "Ranrok_DeadImpact.h" #include "Ranrok_Prop.h" +#include "ReparoObject.h" #pragma endregion @@ -1714,8 +1719,13 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; } + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"), + // CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + // return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Weapon_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/SubTroll_Weapon/SK_WPN_Troll_Club07.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity())))) return E_FAIL; if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Rock_Big_Model"), @@ -1961,6 +1971,16 @@ HRESULT CLoader::Loading_For_Effect() if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTroll_Rush_Hit::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTroll_Shout::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTroll_Rush::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CGoblin_Protego::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -2850,6 +2870,15 @@ HRESULT CLoader::Loading_For_MapViewer() CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationX(XMConvertToRadians(-90.f)) * XMMatrixIdentity())))) return E_FAIL; + /* For. Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model*/ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerA.bin", XMMatrixIdentity())))) + return E_FAIL; + /* For. Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model*/ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Reparo_Object/VFX_SK_OLI_TrollFight_BlockerB.bin", XMMatrixIdentity())))) + return E_FAIL; + /* For.Prototype_GameObject_Camera_Gaze */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamera_Gaze::Create(m_pDevice, m_pContext)))) return E_FAIL; @@ -2868,6 +2897,9 @@ HRESULT CLoader::Loading_For_MapViewer() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CReparoObject::Create(m_pDevice, m_pContext)))) + return E_FAIL; #pragma endregion @@ -3038,6 +3070,24 @@ HRESULT CLoader::Loading_For_MapViewer() CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/Decal/DecalBox.fbx", XMMatrixIdentity())))) return E_FAIL; +#pragma region DUMMY_NPC + /* DUMMY_NPC_Diffuse */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("DUMMY_NPC_Diffuse"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment/Sanctum_Dungeon/Textures/Props/T_AgedTombProtector_Grunt_A_D.dds"), 0)))) { + return E_FAIL; + } + /* DUMMY_NPC_Normal */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("DUMMY_NPC_Normal"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("C:/MeshTable/Game/Environment/Sanctum_Dungeon/Textures/Props/T_AgedTombProtector_Grunt_A_N.dds"), 0)))) { + return E_FAIL; + } + + /* For.Prototype_Component_Model_DummyNpc */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Model_DummyNpc"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "C:/MeshTable/Game/Environment/DummyNpc.fbx", XMMatrixRotationY(XMConvertToRadians(180.f)))))) + return E_FAIL; +#pragma endregion + #pragma region MAP_LANDS /* For.Prototype_Component_Hogsmead_Land */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_Land"), @@ -3117,7 +3167,7 @@ HRESULT CLoader::Loading_For_MapViewer() /* For.Prototype_Component_FloatingBalloon */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_FloatingBalloon"), - CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.fbx")))) + CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, "C:/MeshTable/Game/RiggedObjects/Props/FloatingBalloonTarget/SK_FloatingBalloonTarget_.bin")))) return E_FAIL; /* For.Prototype_Component_Hogwart_Lake */ @@ -3424,7 +3474,7 @@ _bool bLoadHogsmeade = true; } #pragma region HOGWART -_bool bHogwartLoad = { true }; +_bool bHogwartLoad = { false }; /* Hogwart LOD */ if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Hogwarts/HogwartsLOD", @@ -3751,6 +3801,13 @@ if (bLoad_DADATower_INT) #pragma endregion +#pragma region CAVE +if (FAILED(MapFolderLoad("../Bin/Resources/Models/MapMesh/Game/Environment/Overland_Common/Meshes", + ".bin", true, ModelPrototypeTags, ModelPrototypePath))) + return E_FAIL; +#pragma endregion + + #ifdef gimch @@ -3760,7 +3817,7 @@ vector> jobFutures; _uint iLoadCount = 44; vector*> Contents(iLoadCount); -_bool isLoad_Map = { false }; +_bool isLoad_Map = { true }; if(isLoad_Map) { { /* Terrain */ @@ -4393,6 +4450,9 @@ if(isLoad_Map) /* For.Prototype_GameObject_RaceRing */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRaceRing::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_DummyNPC */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummyNPC::Create(m_pDevice, m_pContext)))) + return E_FAIL; /* For.Prototype_GameObject_MapObject_Manager */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_Manager::Create(m_pDevice, m_pContext, ModelPrototypeTags, ModelPrototypePath)))) diff --git a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp index 925132d1d..ed8ba357e 100644 --- a/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader_ObjectViewer.cpp @@ -25,6 +25,7 @@ #include "CamPosition_Shoulder.h" #include "CamPosition_Arm.h" #include "Wand.h" +#include "ReparoObject.h" #pragma endregion @@ -70,6 +71,19 @@ HRESULT CLoader::Loading_For_ObjectViewer() vector*>> futures = {}; #pragma region MONSTER +#ifndef 기무리 + /* For.Prototype_Component_Hogsmead_NorthLakeShallow */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\VFX\\Meshes\\Animated\\HM_Troll_OLI_Reparo\\VFX_SK_OLI_TrollFight_BlockerA\\VFX_SK_OLI_TrollFight_BlockerA.fbx", XMMatrixIdentity())))) + return E_FAIL; + + /* For.Prototype_Component_Hogsmead_NorthLakeShallow */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_Hogsmead_NorthLakeShallow"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM_LOCAL, "C:/MeshTable\\Game\\VFX\\Meshes\\Animated\\HM_Troll_OLI_Reparo\\VFX_SK_OLI_TrollFight_BlockerB\\VFX_SK_OLI_TrollFight_BlockerB.fbx", XMMatrixIdentity())))) + return E_FAIL; +#endif // 기무리 + + 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(), @@ -249,12 +263,22 @@ HRESULT CLoader::Loading_For_ObjectViewer() // TEXT("Prototype_Component_Playable_Model") //)); - 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; #pragma region NPC + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_VictorRookWood_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_ChiyoKogawa_Model") + )); + futures.emplace_back(Deferred_ModelLoad( MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), TEXT("Prototype_Component_Npc_Model") @@ -286,16 +310,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_PhineasBlack_Model") )); - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), - TEXT("Prototype_Component_VictorRookWood_Model") - )); - - futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/ChiyoKogawa/ChiyoKogawa.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - TEXT("Prototype_Component_ChiyoKogawa_Model") - )); - futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_Ghost_Peeves_Model") @@ -315,7 +329,6 @@ HRESULT CLoader::Loading_For_ObjectViewer() MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Elf.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_Elf_Model") )); - futures.emplace_back(Deferred_ModelLoad( MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Elf/Kitchen_Female/Kitchen_Female.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), @@ -347,6 +360,8 @@ HRESULT CLoader::Loading_For_ObjectViewer() TEXT("Prototype_Component_MudiwaOnai_Model") )); + /////////////////////////////// + //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_AvadaKedavra.fbx", XMMatrixIdentity(), @@ -364,10 +379,15 @@ HRESULT CLoader::Loading_For_ObjectViewer() //)); //futures.emplace_back(Deferred_ModelLoad( - // MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), - // TEXT("Prototype_Component_Playable_Model") + // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_OpeningIntro.fbx", XMMatrixIdentity(), + // TEXT("Prototype_Component_Student_Cmbt_Model") //)); + futures.emplace_back(Deferred_ModelLoad( + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Playable_Model") + )); + //futures.emplace_back(Deferred_ModelLoad( // MODEL::ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable_Cmbt.fbx", XMMatrixIdentity(), // TEXT("Prototype_Component_Student_Cmbt_Model") @@ -453,6 +473,10 @@ HRESULT CLoader::Loading_For_ObjectViewer() //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext)))) // return E_FAIL; + /* For.Prototype_Component_FSM */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CReparoObject::Create(m_pDevice, m_pContext)))) + return E_FAIL; + /* For.Prototype_Component_FSM */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext)))) return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp index 8749a3521..1643513f0 100644 --- a/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp +++ b/Jusin154_Team3D/Editor/Private/MapElement_Balloon.cpp @@ -47,8 +47,8 @@ HRESULT CMapElement_Balloon::Initialize(void* pArg) m_isFloating = false; m_iDiffuseIndex = 0; m_vPosition = _float3(0.f, 0.f, 0.f); - m_vScale = _float3(0.f, 0.f, 0.f); - m_vRotation = _float3(1.f, 1.f, 1.f); + m_vScale = _float3(1.f, 1.f, 1.f); + m_vRotation = _float3(0.f, 0.f, 0.f); } memcpy(&m_vOriginPosition, &m_vPosition, sizeof(_float3)); diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp index 4632a649f..0347ec447 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp @@ -19,6 +19,7 @@ #include "InstancedProp_Light.h" #include "EditEffect.h" #include "MapElement_Balloon.h" +#include "DummyNPC.h" CMapObject_Manager::CMapObject_Manager(ID3D11Device * pDevice, ID3D11DeviceContext * pContext) : CGameObject(pDevice, pContext), m_pInfoInstance{CInfoInstance::GetInstance()} @@ -87,8 +88,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) // 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 @@ -99,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 @@ -129,8 +130,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) if (FAILED(Load_RaceRing("RaceRing_Data"))) return E_FAIL; - if (FAILED(Load_Balloons("Ballon_Data"))) - return E_FAIL; + /*if (FAILED(Load_Balloons("Ballon_Data"))) + return E_FAIL;*/ #pragma endregion #pragma region EFFECT_PART @@ -159,10 +160,8 @@ HRESULT CMapObject_Manager::Initialize(void* pArg) //if (FAILED(Load_EffectParts("Rotate_Rock_Large2_Data", "../Bin/Resources/Data/Effect/MapEffect/Rotate_Rock_Large2"))) // return E_FAIL; - //if (FAILED(Load_EffectParts("Bon_Fire_Data", "../Bin/Resources/Data/Effect/MapEffect/Bon_Fire"))) // return E_FAIL; - #pragma endregion @@ -278,9 +277,9 @@ void CMapObject_Manager::Update(_float fTimeDelta) //Update_LightSpawer(); //Update_Decal(); //Update_RaceRing(); - //Update_Balloon(); //Update_EffectParts(); //Update_Balloon(); + Update_DummyNpc(); Update_Unified(); @@ -2102,7 +2101,6 @@ HRESULT CMapObject_Manager::Load_RaceRing(const _char* pFileName) return E_FAIL; } - return S_OK; } @@ -2114,14 +2112,14 @@ HRESULT CMapObject_Manager::Save_Balloons(const _char* pFileName) return S_OK; tinyxml2::XMLDocument doc; - string strPath = "../Bin/Resources/Data/Map/Balloon/" + string(pFileName) + ".xml"; + string strPath = "../Bin/Resources/Data/Map/NPC/" + string(pFileName) + ".xml"; tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str()); doc.Clear(); doc.InsertFirstChild(doc.NewDeclaration()); - tinyxml2::XMLElement* root = doc.NewElement("Balloon"); + tinyxml2::XMLElement* root = doc.NewElement("NPC"); doc.InsertEndChild(root); if (nullptr != pLayer) @@ -2330,6 +2328,51 @@ HRESULT CMapObject_Manager::Load_EffectParts(const _char* pFileName, const _char return S_OK; } +HRESULT CMapObject_Manager::Save_DummyNpc(const _char* pFileName) +{ + CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Npc")); + + if (nullptr == pLayer) + return S_OK; + + tinyxml2::XMLDocument doc; + string strPath = "../Bin/Resources/Data/Map/NPC/" + string(pFileName) + ".xml"; + + tinyxml2::XMLError loadResult = doc.LoadFile(strPath.c_str()); + + doc.Clear(); + doc.InsertFirstChild(doc.NewDeclaration()); + + tinyxml2::XMLElement* root = doc.NewElement("NPC"); + doc.InsertEndChild(root); + + if (nullptr != pLayer) + { + const list* pList = pLayer->Get_Objects(); + + for (auto pGamObject : *pList) + { + CDummyNPC* pNpc = dynamic_cast(pGamObject); + + if (nullptr == pNpc) + return E_FAIL; + + if (FAILED(pNpc->Save_XML(doc, root))) + return E_FAIL; + } + } + + if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) { + MSG_BOX("Failed to Save File"); + } + else + { + MSG_BOX("Succeed to Save CDummyNPC"); + } + + return S_OK; +} + void CMapObject_Manager::Update_PrototypeList() { GUI::Begin("Model Prototype List"); @@ -2750,11 +2793,11 @@ void CMapObject_Manager::Update_Balloon() GUI::Begin("Ballon Editor"); if (GUI::Button("Save Ballon")) { - Save_Balloons("Ballon_Data"); + Save_Balloons("DummyNPC_Data"); } if (GUI::Button("Load Ballon")) { - Load_Balloons("Ballon_Data"); + Load_Balloons("DummyNPC_Data"); } if (GUI::Button("Add Ballon")) { @@ -2781,6 +2824,43 @@ void CMapObject_Manager::Update_Balloon() GUI::End(); } +void CMapObject_Manager::Update_DummyNpc() +{ + GUI::Begin("DummyNpc Editor"); + if (GUI::Button("Save DummyNpc")) + { + Save_DummyNpc("DummyNPC_Data"); + } + if (GUI::Button("Load DummyNpc")) + { + //Load_Balloons("DummyNPC_Data"); + } + if (GUI::Button("Add DummyNpc")) + { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Npc")))) + { + } + } + + GUI::InputInt("Index : ", (_int*)&m_iSelectedIndex); + CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Npc")); + + if (nullptr != pLayer) + { + _uint iIndex = {}; + for (auto& pObject : *pLayer->Get_Objects()) + { + if (m_iSelectedIndex == iIndex) + pObject->Describe_Entity(); + + ++iIndex; + } + } + + GUI::End(); +} + + void CMapObject_Manager::Create_PartObject(_wstring& strPrototypeTag) { vector<_uint> LodModelIndices; diff --git a/Jusin154_Team3D/Editor/Private/ReparoObject.cpp b/Jusin154_Team3D/Editor/Private/ReparoObject.cpp new file mode 100644 index 000000000..50ef44e79 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/ReparoObject.cpp @@ -0,0 +1,341 @@ +#include "pch.h" +#include "ReparoObject.h" + +#include "GameInstance.h" +#include "InfoInstance.h" +#include "Unit.h" +#include "PartObject.h" + +CReparoObject::CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CMonster(pDevice, pContext) +{ +} + +CReparoObject::CReparoObject(const CReparoObject& Prototype) + : CMonster(Prototype) +{ +} + +HRESULT CReparoObject::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CReparoObject::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + + if (FAILED(Ready_Components())) { + return E_FAIL; + } + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); + + m_pModelCom->Set_AnimationIndex(0); + + + + return S_OK; +} + +void CReparoObject::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + + Describe_Entity(); +} + +void CReparoObject::Update(_float fTimeDelta) +{ + __super::Update(fTimeDelta); + + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); +} + +void CReparoObject::Late_Update(_float fTimeDelta) +{ + __super::Late_Update(fTimeDelta); + + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + +} + +HRESULT CReparoObject::Render() +{ + if (!m_pModelCom) { + return S_OK; + } + + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + _uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT); + if (true == m_bDrawOutLine) { + iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE); + } + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrices( + "g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size() + ))) + { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(31, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + if (m_bDrawOutLine) { + Render_OutLine(); + } + + return S_OK; +} + +HRESULT CReparoObject::Render_OutLine() +{ + m_bDrawOutLine = false; + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) { + return E_FAIL; + } + + Compute_Depth(); + _float fCamFar = *m_pGameInstance->Get_CurrentCameraFar(); + _float fRatio = CMyTools::Saturate((m_fCamDepth / (fCamFar * fCamFar))); + m_fOutLineThickness = CMyTools::Lerp_f1D(0.024f, 0.5f, fRatio); + if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) { + return E_FAIL; + } + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pShaderCom->Bind_Matrices( + "g_OffsetMatrix", + m_pModelCom->Get_OffsetMatrix(i).data(), + (_int)m_pModelCom->Get_OffsetMatrix(i).size() + ))) + { + return E_FAIL; + } + + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_READ)))) { + return E_FAIL; + } + + m_pModelCom->Bind_OutPut_SRV_VS(31, 0); + m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0); + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + return S_OK; +} + +HRESULT CReparoObject::Ready_Components() +{ + CTransform::TRANSFORM_DESC Desc = {}; + + Desc.fSpeedPerSec = 10.f; + Desc.fRotationPerSec = XMConvertToRadians(180.0f); + Desc.fRadius = 10.f; + + if (FAILED(Add_Component(g_iStaticLevel, &m_pTransformCom, &Desc))) { + return E_FAIL; + } + + ///* Com_Model */ + //if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerA_Model"), + // reinterpret_cast(&m_pModelCom)))) { + // return E_FAIL; + //} + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VFX_SK_OLI_TrollFight_BlockerB_Model"), + reinterpret_cast(&m_pModelCom)))) { + return E_FAIL; + } + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CReparoObject::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + +CReparoObject* CReparoObject::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CReparoObject* pInstance = new CReparoObject(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CReparoObject"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CReparoObject::Clone(void* pArg, CGameObject* pOwner) +{ + CReparoObject* pInstance = new CReparoObject(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CReparoObject"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CReparoObject::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG + +void CReparoObject::Describe_Entity() +{ + GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG); + + if (m_pModelCom->Get_AnimSize() <= 0) + return; + + m_pTransformCom->Describe_Entity(); + if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)) + { + _float3 vPosition = {}; + if (m_pGameInstance->isPicking(&vPosition)) + { + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&vPosition), 1.f)); + } + } + + if (GUI::BeginTabBar("Anim_List")) + { + if (GUI::BeginTabItem("ReparoObject")) + { + for (_uint i = 0; i < m_pModelCom->Get_AnimSize(); i++) + { + if (GUI::Button(m_pModelCom->Get_AnimList(i))) + { + m_pModelCom->Set_AnimationIndex(i); + } + } + + GUI::EndTabItem(); + } + GUI::EndTabBar(); + } + + _char label[24]; + + sprintf_s(label, "%s %d", "AnimIndex", m_pModelCom->Get_AnimIndex()); + + GUI::Text(label); + + _float AnimTrack = m_pModelCom->Get_CurrentTrackPosition(); + if (GUI::DragFloat("AnimTrack", &AnimTrack)) + { + if (AnimTrack >= 0.f) + m_pModelCom->Set_CurrentTrackPosition(AnimTrack); + } + + _float AnimRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + GUI::DragFloat("AnimRatio", &AnimRatio); + + _float AnimSpeed = m_pModelCom->Get_AnimSpeed(); + GUI::DragFloat("AnimSpeed", &AnimSpeed, 0.1f); + m_pModelCom->Set_AnimSpeed(AnimSpeed); + + _bool bPlayAnim = m_pModelCom->Get_PlayAnim(); + if (GUI::Checkbox("Play Anim", &bPlayAnim)) + { + m_pModelCom->Set_PlayAnim(bPlayAnim); + } + + GUI::End(); +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/Revelio.cpp b/Jusin154_Team3D/Editor/Private/Revelio.cpp index fa6f534e9..b2fe9f624 100644 --- a/Jusin154_Team3D/Editor/Private/Revelio.cpp +++ b/Jusin154_Team3D/Editor/Private/Revelio.cpp @@ -38,10 +38,12 @@ HRESULT CRevelio::Initialize(void* pArg) m_pRevelioPT_Y = Get_PartObject("WandPT_Y"); m_pRevelioPT_B = Get_PartObject("WandPT_B"); m_pRevelioPT_R = Get_PartObject("WandPT_R"); + m_pWand_Light = Get_PartObject("Wand_Light"); SAFE_ADDREF(m_pRevelioPT_Y); SAFE_ADDREF(m_pRevelioPT_B); SAFE_ADDREF(m_pRevelioPT_R); + SAFE_ADDREF(m_pWand_Light); m_wstrEffectName = L"Revelio"; @@ -79,6 +81,7 @@ void CRevelio::Update(_float fTimeDelta) m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld); + m_pWand_Light->Get_Component()->Set_WorldMatrix(WandWorld); } @@ -109,14 +112,43 @@ HRESULT CRevelio::Pre_Setting(CGameObject* pObject, void* pArg) m_pRevelioPT_Y->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_R->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_B->Get_Component()->Set_WorldMatrix(WandWorld); + m_pWand_Light->Get_Component()->Set_WorldMatrix(WandWorld); m_pRevelioPT_Y->Set_Visible(true); m_pRevelioPT_R->Set_Visible(true); m_pRevelioPT_B->Set_Visible(true); + m_pWand_Light->Set_Visible(true); - Get_PartObject("Revelio_Ring")->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); - Get_PartObject("Revelio_Ring")->Set_Visible(true); + CEditEffect* pRevelio_ScreenFX = Get_PartObject("Revelio_ScreenFX"); + CEditEffect* pRevelio_ScreenFX_Reverse = Get_PartObject("Revelio_ScreenFX_Reverse"); + CEditEffect* pRevelio_Smoke = Get_PartObject("Revelio_Smoke"); + CEditEffect* pRevelio_Distortion = Get_PartObject("Revelio_Distortion"); + CEditEffect* pBottom_PT = Get_PartObject("Bottom_PT"); + + pRevelio_ScreenFX->Set_Visible(true); + pRevelio_ScreenFX_Reverse->Set_Visible(true); + pRevelio_Smoke->Set_Visible(true); + pRevelio_Distortion->Set_Visible(true); + pBottom_PT->Set_Visible(true); + + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vFootPos = {}; + _vector vPos = {}; + + if (pCCT != nullptr) + { + vFootPos = pCCT->Get_FootPosition(); + vPos = pCCT->Get_Position(); + + pRevelio_Smoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pBottom_PT->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pRevelio_Distortion->Get_Component()->Set_State(STATE::POSITION, vPos); + + + } return S_OK; } @@ -181,7 +213,7 @@ void CRevelio::Free() SAFE_RELEASE(m_pRevelioPT_Y); SAFE_RELEASE(m_pRevelioPT_B); SAFE_RELEASE(m_pRevelioPT_R); - + SAFE_RELEASE(m_pWand_Light); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/Terrain.cpp b/Jusin154_Team3D/Editor/Private/Terrain.cpp index 479672b13..754c44c23 100644 --- a/Jusin154_Team3D/Editor/Private/Terrain.cpp +++ b/Jusin154_Team3D/Editor/Private/Terrain.cpp @@ -306,35 +306,35 @@ void CTerrain::Describe_Entity() GUI::Begin("Terrain"); #pragma region ALPHA_MAP - //GUI::InputInt("Color", &m_iColorIndex); - //m_iColorIndex = max(0, min(4, m_iColorIndex)); - + GUI::InputInt("Color", &m_iColorIndex); + m_iColorIndex = max(0, min(4, m_iColorIndex)); + //GUI::Checkbox("Flat", &m_isFlat); GUI::InputInt("Rnage", (_int*)(&m_iMaskRange)); - //GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f); - //if (GUI::Button("Save", ImVec2(100.f, 30.f))) - //{ - // m_pAlphaMap->Save_ToFile("Hogwart_AlphaMap.bin"); - //} - //if (GUI::Button("Load", ImVec2(100.f, 30.f))) - //{ - // m_pAlphaMap->Load_ToFile("Hogwart_AlphaMap.bin"); - //} + GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f); + if (GUI::Button("Save", ImVec2(100.f, 30.f))) + { + m_pAlphaMap->Save_ToFile("Hogsmeade_AlphaMap.bin"); + } + if (GUI::Button("Load", ImVec2(100.f, 30.f))) + { + m_pAlphaMap->Load_ToFile("Hogsmeade_AlphaMap.bin"); + } m_iMaskRange = max(0, m_iMaskRange); GUI::InputFloat("Up Value", &m_fUpValue, 0.001f, 0.1f); - + GUI::InputFloat3("Picking Pos", (_float*)(&m_vPickingPosition)); if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) { if (m_pGameInstance->isPicking(&m_vPickingPosition)) - { + {/* if (m_pGameInstance->Key_Pressing(DIK_PERIOD)) - m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue, m_vPickingPosition, m_iMaskRange); + m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue , m_vPickingPosition, m_iMaskRange, m_isFlat); if (m_pGameInstance->Key_Pressing(DIK_COMMA)) - m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue * -1.f, m_vPickingPosition, m_iMaskRange); + m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue, m_vPickingPosition, m_iMaskRange, m_isFlat);*/ - //XMStoreFloat3(&m_vPickingPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vPickingPosition), m_pTransformCom->Get_WorldMatrixInv())); - //if(m_pGameInstance->Key_Pressing(DIK_M)) - // m_pAlphaMap->Update(m_vPickingPosition, m_iColorIndex, m_fMaskValue, m_iMaskRange); + XMStoreFloat3(&m_vPickingPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vPickingPosition), m_pTransformCom->Get_WorldMatrixInv())); + if(m_pGameInstance->Key_Pressing(DIK_M)) + m_pAlphaMap->Update(m_vPickingPosition, m_iColorIndex, m_fMaskValue, m_iMaskRange); } } diff --git a/Jusin154_Team3D/Editor/Private/Troll.cpp b/Jusin154_Team3D/Editor/Private/Troll.cpp index 7119fd54f..d69312e2e 100644 --- a/Jusin154_Team3D/Editor/Private/Troll.cpp +++ b/Jusin154_Team3D/Editor/Private/Troll.cpp @@ -63,7 +63,7 @@ HRESULT CTroll::Initialize(void* pArg) - m_pCharacter_Controller->Set_Position(XMVectorSet(3.f, 5.f, -20.f, 1.f)); + m_pCharacter_Controller->Set_Position(XMVectorSet(110.f, 24.f, 135.f, 1.f)); m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Z_Layer_EffectPool"))->Get_Object(); SAFE_ADDREF(m_pEffectPool); @@ -116,6 +116,10 @@ void CTroll::Update(_float fTimeDelta) for (_uint i = 0; i < ENUM_CLASS(TROLL_SKILL::END); i++) m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta); + if (m_pRock_Smoke->Get_Visible() == true) + { + m_pRock_Smoke->Get_Component()->Set_State(STATE::POSITION, Get_PartObject()->Get_Component()->Get_State(STATE::POSITION)); + } #pragma region TRAIL_UPDATE @@ -398,11 +402,21 @@ HRESULT CTroll::Ready_Parts() m_pLeft_Smoke->FollowParants(m_pModelCom->Get_BoneMatrixPtr("LeftArm")); + + if (FAILED(Add_PartObject("Rock_Smoke", NEXT_LEVEL, &m_pRock_Smoke, &PartsDesc))) + { + return E_FAIL; + } + m_pRock_Smoke->Load("../Bin/Resources/Data/Effect/Troll/TrollThrow/Black_Fire", static_cast(NEXT_LEVEL)); + + + if (FAILED(Add_PartObject("Left_Trail", NEXT_LEVEL, &m_pLeftTrail, &PartsDesc))) { return E_FAIL; } ; + m_pLeftTrail->Load_Trail("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Trail", static_cast(NEXT_LEVEL)); m_pLeftTrail->Set_Visible(false); @@ -456,6 +470,9 @@ void CTroll::Troll_Trail_Visible(_bool isTrailVisible) { m_pLeftTrail->Set_Visible(isTrailVisible); m_pRightTrail->Set_Visible(isTrailVisible); + + m_pLeftTrail->Get_Component()->Reset_Trail(); + m_pRightTrail->Get_Component()->Reset_Trail(); } CTroll* CTroll::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -507,6 +524,8 @@ void CTroll::Free() SAFE_RELEASE(m_pRightTrail); SAFE_RELEASE(m_pWeaponTrail); SAFE_RELEASE(m_pStunEffect); + SAFE_RELEASE(m_pRushEffect); + SAFE_RELEASE(m_pRock_Smoke); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/TrollSwing.cpp b/Jusin154_Team3D/Editor/Private/TrollSwing.cpp index f669901ac..2ce6dee7a 100644 --- a/Jusin154_Team3D/Editor/Private/TrollSwing.cpp +++ b/Jusin154_Team3D/Editor/Private/TrollSwing.cpp @@ -80,17 +80,26 @@ HRESULT CTrollSwing::Pre_Setting(CGameObject* pObject, void* pArg) _vector vPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); - vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 4.f; CEditEffect* pRockPT = Get_PartObject("Rock_PT_25"); + CEditEffect* pRock_PT_Brown = Get_PartObject("Rock_PT_Brown"); + CEditEffect* pRock_PT_Large = Get_PartObject("Rock_PT_Large"); + CEditEffect* pCrack_Decal = Get_PartObject("Crack_Decal"); CEditEffect* pSmoke = Get_PartObject("Smoke"); pRockPT->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.5f, 0.f, 0.f)); - pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.2f, 0.f, 0.f)); + pRock_PT_Brown->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.5f, 0.f, 0.f)); + pRock_PT_Large->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.5f, 0.f, 0.f)); + pSmoke->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 1.5f, 0.f, 0.f)); + pCrack_Decal->Get_Component()->Set_State(STATE::POSITION, vPos + XMVectorSet(0.f, 0.2f, 0.f, 0.f)); pRockPT->Set_Visible(true); pSmoke->Set_Visible(true); + //pRock_PT_Brown->Set_Visible(true); + pRock_PT_Large->Set_Visible(true); + pCrack_Decal->Set_Visible(true); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Troll_Rush.cpp b/Jusin154_Team3D/Editor/Private/Troll_Rush.cpp new file mode 100644 index 000000000..b01846624 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Troll_Rush.cpp @@ -0,0 +1,186 @@ +#include "pch.h" +#include "Troll_Rush.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" + +CTroll_Rush::CTroll_Rush(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CTroll_Rush::CTroll_Rush(const CTroll_Rush& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CTroll_Rush::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CTroll_Rush::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollRushBlur"))) + return E_FAIL; + + + m_wstrEffectName = L"TrollRushBlur"; + + + m_pRush_Blur = Get_PartObject("Rush_Blur"); + + SAFE_ADDREF(m_pRush_Blur); + + m_fDuration = 2.5f; + + return S_OK; +} + +void CTroll_Rush::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CTroll_Rush::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = pCCT->Get_Position(); + + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + + m_pRush_Blur->Set_Visible(true); + + _vector vRight = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vLook = XMVector3Normalize(XMVector3Cross(vRight , XMVectorSet(0.f, 1.f, 0.f, 0.f))); + _vector vUp = XMVector3Normalize(XMVector3Cross(vLook ,vRight)); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pRush_Blur->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + +} + +void CTroll_Rush::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CTroll_Rush::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + m_pRush_Blur->Get_Component()->Set_Loop(true); + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = pCCT->Get_Position(); + + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + + m_pRush_Blur->Set_Visible(true); + + _vector vRight = XMVector3Normalize( m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight)); + _vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook)); + + _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; + + m_pRush_Blur->Get_Component()->Set_WorldMatrix(PJ_WorldMat); + + return S_OK; +} + +HRESULT CTroll_Rush::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTroll_Rush::Ready_Child() +{ + return S_OK; +} + +CTroll_Rush* CTroll_Rush::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTroll_Rush* pInstance = new CTroll_Rush(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTroll_Rush"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CTroll_Rush::Clone(void* pArg, CGameObject* pOwner) +{ + CTroll_Rush* pInstance = new CTroll_Rush(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTroll_Rush"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTroll_Rush::OnCollision(CGameObject* pOther, void* pDesc) +{ + + +} + +void CTroll_Rush::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pRush_Blur); +} +#ifdef _DEBUG +void CTroll_Rush::Describe_Entity() +{ + +} +#endif + +HRESULT CTroll_Rush::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Troll_Shout.cpp b/Jusin154_Team3D/Editor/Private/Troll_Shout.cpp new file mode 100644 index 000000000..8f02d0dda --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Troll_Shout.cpp @@ -0,0 +1,190 @@ +#include "pch.h" +#include "Troll_Shout.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" + +CTroll_Shout::CTroll_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CTroll_Shout::CTroll_Shout(const CTroll_Shout& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CTroll_Shout::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CTroll_Shout::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/TrollShout"))) + return E_FAIL; + + + m_wstrEffectName = L"TrollShout"; + + + m_fDuration = 3.f; + + return S_OK; +} + +void CTroll_Shout::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CTroll_Shout::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + +} + +void CTroll_Shout::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CTroll_Shout::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + CCharacter_Controller* pCCT = m_pOwner->Get_Component(); + + _vector vPos = XMLoadFloat4(static_cast<_float4*>(pArg)); + vPos += m_pOwner->Get_Component()->Get_State(STATE::LOOK) * 2.f; + + _vector vFootPos = {}; + + if (pCCT != nullptr) + { + vFootPos = pCCT->Get_FootPosition(); + + CEditEffect* pShout_Blur = Get_PartObject("Shout_Blur"); + CEditEffect* pSmoke = Get_PartObject("Shout_Smoke"); + + + pShout_Blur->Get_Component()->Set_State(STATE::POSITION, vPos); + pShout_Blur->Set_Visible(true); + + pSmoke->Get_Component()->Set_State(STATE::POSITION, vFootPos); + pSmoke->Set_Visible(true); + } + + + + return S_OK; +} + +HRESULT CTroll_Shout::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTroll_Shout::Ready_Child() +{ + return S_OK; +} + +CTroll_Shout* CTroll_Shout::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTroll_Shout* pInstance = new CTroll_Shout(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTroll_Shout"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CTroll_Shout::Clone(void* pArg, CGameObject* pOwner) +{ + CTroll_Shout* pInstance = new CTroll_Shout(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTroll_Shout"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTroll_Shout::OnCollision(CGameObject* pOther, void* pDesc) +{ + _int iIndex = CollisionCheck(); + + if (iIndex < 0) + return; + + if (m_isCollisionEnter == true) + return; + + m_isCollisionEnter = true; + + _vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, vPos); + } + + +} + +void CTroll_Shout::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG +void CTroll_Shout::Describe_Entity() +{ + +} +#endif + +HRESULT CTroll_Shout::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Troll_States.cpp b/Jusin154_Team3D/Editor/Private/Troll_States.cpp index 44d802525..e103bed6b 100644 --- a/Jusin154_Team3D/Editor/Private/Troll_States.cpp +++ b/Jusin154_Team3D/Editor/Private/Troll_States.cpp @@ -6,6 +6,9 @@ #include "Troll_Rock.h" #include "EffectPool.h" #include "TrailObject.h" +#include "Troll_Weapon.h" +#include "EditEffect.h" +#include "Effect_Container.h" #pragma region STATE #include "State_Idle.h" @@ -47,7 +50,9 @@ void CTroll::Behavior_IdleBreakEnter() m_pFSM->Enable_State(FSMSTATE::IDLEBREAK); pair<_uint, _bool> pairAnimInfo; m_bLookAt = true; - _int RandIndex = m_pGameInstance->Real_Random_Int(0, 3); + _int RandIndex = 3; + + switch (RandIndex) { case 0: //땅 두번구르기 왼발 오른발 @@ -76,6 +81,17 @@ void CTroll::Behavior_IdleBreakEnter() break; case 1:// 방망이 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK2]; + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix WeaponMat = XMLoadFloat4x4(m_pWeapon_BoneMat) * Get_PartObject()->Get_Component()->Get_XMWorldMatrix();; + + _float4 vPosition = {}; + XMStoreFloat4(&vPosition, WeaponMat.r[3]); + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, this, &vPosition); + }, 0.7f); + break; case 2: // 발구르기 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK3]; @@ -93,8 +109,24 @@ void CTroll::Behavior_IdleBreakEnter() break; case 3: //소리지르기 pairAnimInfo = m_Animation[STATEANIM::IDLE_BREAK4]; + + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix HandMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("mouth_bag")) * m_pTransformCom->Get_XMWorldMatrix(); + + _float4 vPosition = {}; + + XMStoreFloat4(&vPosition, HandMat.r[3]); + + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_SHOUT, this , &vPosition); + + }, 0.2f); + break; } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } @@ -269,6 +301,23 @@ void CTroll::Behavior_RushEnter() pairAnimInfo = m_Animation[STATEANIM::RUSH_START]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + + Add_Event(pairAnimInfo.first, [this]() { + + _matrix HandMat = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("IK_LeftFoot")) * m_pTransformCom->Get_XMWorldMatrix(); + + _float4 vPosition = {}; + XMStoreFloat4(&vPosition, HandMat.r[3]); + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_NOMAL_SMOKE, this, &vPosition); + }, 0.45f); + + Add_Event(m_Animation[STATEANIM::RUSH_LOOP].first, [this]() { + + m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_RUSH, this, nullptr , &m_pRushEffect); + + }, 0.f); + } HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta) @@ -290,6 +339,12 @@ HRESULT CTroll::Behavior_RushExitCheck(_float fTimeDelta) else { m_fRushTime += fTimeDelta; + if (m_fRushTime >= 1.f && m_pRushEffect != nullptr) + { + m_pRushEffect->Get_PartObject()->Get_Component()->Set_Loop(false); + SAFE_RELEASE(m_pRushEffect); + } + if (m_fRushTime >= 1.5f) { m_fRushTime = 0.f; @@ -334,7 +389,9 @@ void CTroll::Behavior_ThrowEnter() m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); Add_Event(pairAnimInfo.first, - [this](){Get_PartObject()->Set_Visible(true);}, + [this](){Get_PartObject()->Set_Visible(true); + m_pRock_Smoke->Set_Visible(true); + }, 0.95f); } @@ -389,6 +446,7 @@ void CTroll::Behavior_ThrowExit() m_pFSM->Disable_State(FSMSTATE::THROW_ROCK); Get_PartObject()->Set_Attach(true); Get_PartObject()->Set_Visible(false); + m_pRock_Smoke->Set_Visible(false); } void CTroll::Behavior_SwingEnter() @@ -405,16 +463,20 @@ void CTroll::Behavior_SwingEnter() [this]() {m_bLookAt = false; }, 0.2f); + Add_Event(pairAnimInfo.first, + [this]() { + Troll_Trail_Visible(true); + m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); }, + 0.3f); - Troll_Trail_Visible(true); - m_pWeaponTrail->Set_Visible(true); Add_Event(pairAnimInfo.first, [this]() { Troll_Trail_Visible(false); m_pWeaponTrail->Set_Visible(false); }, - 0.6f); + 0.65f); } HRESULT CTroll::Behavior_SwingExitCheck(_float fTimeDelta) @@ -448,16 +510,13 @@ void CTroll::Behavior_SlamEnter() m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)] = m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::SLAM)]; - - Troll_Trail_Visible(true); - m_pWeaponTrail->Set_Visible(true); - Add_Event(pairAnimInfo.first, [this]() { - Troll_Trail_Visible(false); - m_pWeaponTrail->Set_Visible(false); - }, - 0.7f); + Troll_Trail_Visible(true); + m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); }, + 0.15f); + Add_Event(m_Animation[STATEANIM::SLAM].first, @@ -466,6 +525,8 @@ void CTroll::Behavior_SlamEnter() Add_Event(m_Animation[STATEANIM::SLAM].first, [this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::TROLL_ATTACK, this); + Troll_Trail_Visible(false); + m_pWeaponTrail->Set_Visible(false); } , 0.3f); } @@ -501,15 +562,20 @@ void CTroll::Behavior_BackHandSwingEnter() [this]() { m_bLookAt = false; }, 0.2f); - Troll_Trail_Visible(true); - m_pWeaponTrail->Set_Visible(true); + + Add_Event(pairAnimInfo.first, + [this]() { + Troll_Trail_Visible(true); + m_pWeaponTrail->Set_Visible(true); + m_pWeaponTrail->Get_Component()->Reset_Trail(); }, + 0.4f); Add_Event(pairAnimInfo.first, [this]() { Troll_Trail_Visible(false); m_pWeaponTrail->Set_Visible(false); }, - 0.9f); + 0.66f); } HRESULT CTroll::Behavior_BackHandSwingExitCheck(_float fTimeDelta) diff --git a/Jusin154_Team3D/Editor/Public/Decendo.h b/Jusin154_Team3D/Editor/Public/Decendo.h index f7873b3dd..914632809 100644 --- a/Jusin154_Team3D/Editor/Public/Decendo.h +++ b/Jusin154_Team3D/Editor/Public/Decendo.h @@ -37,7 +37,6 @@ class CDecendo final : public CEffect_Container class CPartObject* m_pProjectile = {}; class CPartObject* m_pProjectile_Blur = {}; - _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; // 현재 타게팅 된 위치 _float m_fLinearSpeed = 22.f; diff --git a/Jusin154_Team3D/Editor/Public/DecendoSide.h b/Jusin154_Team3D/Editor/Public/DecendoSide.h index a02c85be4..f89278016 100644 --- a/Jusin154_Team3D/Editor/Public/DecendoSide.h +++ b/Jusin154_Team3D/Editor/Public/DecendoSide.h @@ -37,6 +37,7 @@ class CDecendoSide final : public CEffect_Container _float4x4 m_TrailStopMat = {}; class CEditEffect* m_pWandLight = { nullptr }; + class CEditEffect* m_pWand_Fire = { nullptr }; class CTrailObject* m_pWandTrail = { nullptr }; public: diff --git a/Jusin154_Team3D/Editor/Public/DummyNPC.h b/Jusin154_Team3D/Editor/Public/DummyNPC.h new file mode 100644 index 000000000..1894b5bcd --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/DummyNPC.h @@ -0,0 +1,59 @@ +#pragma once + +#include "Editor_Define.h" +#include "GameObject.h" + +NS_BEGIN(Engine) +class CModel; +class CShader; +NS_END + +NS_BEGIN(Editor) + +class CDummyNPC final : public CGameObject +{ +public: + typedef struct tagDummyNpcDesc + { + _uint iID = {}; + _float3 vPosition = {}; + _float3 vRotation = {}; + _float3 vScale = { 1.f, 1.f, 1.f }; + }DUMMY_NPC_DESC; +private: + CDummyNPC(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDummyNPC(const CDummyNPC& rhs); + virtual ~CDummyNPC() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; + + CTexture* m_pNormalTextureCom = { nullptr }; + CTexture* m_pSurfaceTextureCom = { nullptr }; + CTexture* m_pDiffuseTextureCom = { nullptr }; + + _uint m_iID = {}; + _float m_fUsingSurfaceParams = {}; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + +public: + static CDummyNPC* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; + HRESULT Save_XML(tinyxml2::XMLDocument& doc, tinyxml2::XMLElement* root); +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index ada767a10..24254b1df 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -67,8 +67,8 @@ namespace Editor JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, STUPEFY_SIDE, STUN, - TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_IMPACT , RANROK_HIT, RANROK_LAND, RANROK_RUSH_BOTTOM, - RANROK_GROUNDPULSE, RANROK_SWIPE, RANROK_DEAD_SPLASH , RANROK_DEAD_IMPACT, RANROK_PROP, + TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, TROLL_SHOUT, TROLL_RUSH, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, RANROK_CHARGE, RANROK_IMPACT , RANROK_HIT, RANROK_LAND, RANROK_RUSH_BOTTOM, + RANROK_GROUNDPULSE, RANROK_SWIPE, RANROK_DEAD_SPLASH , RANROK_DEAD_IMPACT, RANROK_PROP, END }; diff --git a/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h b/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h index 028c7e1a8..cc01c5ffb 100644 --- a/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h @@ -22,6 +22,7 @@ class CLevel_BloomViewer final : public CLevel HRESULT Ready_Layer_Light(); HRESULT Ready_Layer_UI(const _wstring& strLayerTag); HRESULT Ready_Layer_Effect(const _wstring& strLayerTag); + void ResetLevel_Environment() {}; public: static CLevel_BloomViewer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID); diff --git a/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h b/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h index 7e411a32e..9e0325ca5 100644 --- a/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h @@ -24,6 +24,7 @@ class CLevel_EffectViewer final : public CLevel HRESULT Ready_Layer_Effect(const _wstring& strLayerTag); HRESULT Ready_Layer_PhysX(const _wstring& strLayerTag); HRESULT Ready_Layer_BackGround(const _wstring& strLayerTag); + void ResetLevel_Environment() {}; PHYSX_USERDATA m_PlaneData = {}; class CInfoInstance* m_pInfoInstance = { nullptr }; diff --git a/Jusin154_Team3D/Editor/Public/Level_Loading.h b/Jusin154_Team3D/Editor/Public/Level_Loading.h index f378bc23e..6b495785d 100644 --- a/Jusin154_Team3D/Editor/Public/Level_Loading.h +++ b/Jusin154_Team3D/Editor/Public/Level_Loading.h @@ -31,6 +31,7 @@ class CLevel_Loading final : public CLevel virtual HRESULT Initialize(LEVEL eNextLevelID); HRESULT Initialize() override; HRESULT Ready_Layer_BackGround(const _wstring& strLayerTag); + void ResetLevel_Environment() {}; public: static CLevel_Loading* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, LEVEL eNextLevelID); virtual void Free() override; diff --git a/Jusin154_Team3D/Editor/Public/Level_Logo.h b/Jusin154_Team3D/Editor/Public/Level_Logo.h index 612f5685f..d95b83910 100644 --- a/Jusin154_Team3D/Editor/Public/Level_Logo.h +++ b/Jusin154_Team3D/Editor/Public/Level_Logo.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "Level.h" @@ -16,15 +16,15 @@ class CLevel_Logo final : public CLevel virtual HRESULT Render() override; private: - /* ÀÌ ·¹º§¿¡¼­ ¾²±âÀ§ÇÑ °´üµéÀ» »ý¼ºÇѴÙ. */ + /* 이 레벨에서 쓰기위한 객체들을 생성한다. */ virtual HRESULT Initialize() override; HRESULT Ready_Layer_Camera(const _wstring& strLayerTag); HRESULT Ready_Layer_UI(const _wstring& strLayerTag); - + void ResetLevel_Environment() {}; public: static CLevel_Logo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID); virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Level_MapViewer.h b/Jusin154_Team3D/Editor/Public/Level_MapViewer.h index 5f70680e4..c4236cb0d 100644 --- a/Jusin154_Team3D/Editor/Public/Level_MapViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_MapViewer.h @@ -29,6 +29,7 @@ class CLevel_MapViewer final : public CLevel HRESULT Ready_Layer_Chest(const _wstring& strLayerTag); HRESULT Ready_Layer_MapObjectManager(const _wstring& strLayerTag); HRESULT Ready_Layer_Player_And_Ranrok(); + void ResetLevel_Environment() {}; diff --git a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h index 795f6c545..c012eb67d 100644 --- a/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_ObjectViewer.h @@ -41,6 +41,7 @@ class CLevel_ObjectViewer final : public CLevel void Load_KeyFrame(const _char* Name); void Find_Anim(); void Save_KeyFrame(); + void ResetLevel_Environment() {}; private: vector m_Objects; diff --git a/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h b/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h index 277feddd1..40ce15d8a 100644 --- a/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h +++ b/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h @@ -20,6 +20,7 @@ class CLevel_PhysXLab final : public CLevel HRESULT Ready_Layer_Light(); HRESULT Ready_Layer_Camera(const _wstring& strLayerTag); HRESULT Ready_Layer_PhysXObjects(const _wstring& strLayerTag); + void ResetLevel_Environment() {}; diff --git a/Jusin154_Team3D/Editor/Public/Level_UI.h b/Jusin154_Team3D/Editor/Public/Level_UI.h index 91b37c2a8..0f5398c4a 100644 --- a/Jusin154_Team3D/Editor/Public/Level_UI.h +++ b/Jusin154_Team3D/Editor/Public/Level_UI.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "Level.h" @@ -16,11 +16,12 @@ class CLevel_UI final : public CLevel virtual HRESULT Render() override; private: - /* ÀÌ ·¹º§¿¡¼­ ¾²±âÀ§ÇÑ °´üµéÀ» »ý¼ºÇѴÙ. */ + /* 이 레벨에서 쓰기위한 객체들을 생성한다. */ virtual HRESULT Initialize() override; HRESULT Ready_Layer_Camera(const _wstring& strLayerTag); HRESULT Ready_Layer_UI(const _wstring& strLayerTag); HRESULT Ready_Layer_Cursor(const _wstring& strLayerTag); + void ResetLevel_Environment() {}; public: @@ -28,4 +29,4 @@ class CLevel_UI final : public CLevel virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h index 72757078b..c4e5eae40 100644 --- a/Jusin154_Team3D/Editor/Public/MapObject_Manager.h +++ b/Jusin154_Team3D/Editor/Public/MapObject_Manager.h @@ -95,6 +95,8 @@ class CMapObject_Manager final : public CGameObject HRESULT Save_EffectParts(const _char* pFileName); HRESULT Load_EffectParts(const _char* pFileName, const _char* pEffectrFilePath); + + HRESULT Save_DummyNpc(const _char* pFileName); #pragma endregion void Update_PrototypeList(); @@ -107,6 +109,7 @@ class CMapObject_Manager final : public CGameObject void Update_RaceRing(); void Update_EffectParts(); void Update_Balloon(); + void Update_DummyNpc(); void Create_PartObject(_wstring& strPrototypeTag); void Create_Elemnt(_wstring& strPrototypeTag); diff --git a/Jusin154_Team3D/Editor/Public/ReparoObject.h b/Jusin154_Team3D/Editor/Public/ReparoObject.h new file mode 100644 index 000000000..2cf913914 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/ReparoObject.h @@ -0,0 +1,44 @@ +#pragma once + +#include "Editor_Define.h" +#include "Monster.h" + +NS_BEGIN(Editor) + +class CReparoObject final : public CMonster +{ +private: + CReparoObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CReparoObject(const CReparoObject& Prototype); + virtual ~CReparoObject() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + _float4 m_vOutLineColor = CMyTools::ColorRGBA_HEXtoFLOAT4(0xfefefe00); + _float m_fOutLineThickness = { 5.f }; + _float m_fOutLineScale = { 2.f }; + _float m_fOutLinePower = { 2.f }; + +private: + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + HRESULT Render_OutLine(); + +public: + static CReparoObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; + virtual void Free() override; +#ifdef _DEBUG + virtual void Describe_Entity() override; +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Revelio.h b/Jusin154_Team3D/Editor/Public/Revelio.h index 1a9f47ee2..00739c6dd 100644 --- a/Jusin154_Team3D/Editor/Public/Revelio.h +++ b/Jusin154_Team3D/Editor/Public/Revelio.h @@ -33,9 +33,11 @@ class CRevelio final : public CEffect_Container private: _wstring m_wstrEffectName = {}; class CPlayer* m_pPlayer = {}; + class CEditEffect* m_pRevelioPT_Y = { nullptr }; class CEditEffect* m_pRevelioPT_B = { nullptr }; class CEditEffect* m_pRevelioPT_R = { nullptr }; + class CEditEffect* m_pWand_Light = { nullptr }; public: static CRevelio* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/Terrain.h b/Jusin154_Team3D/Editor/Public/Terrain.h index 56f9b979d..d0f9c49a7 100644 --- a/Jusin154_Team3D/Editor/Public/Terrain.h +++ b/Jusin154_Team3D/Editor/Public/Terrain.h @@ -50,6 +50,7 @@ class CTerrain final : public CGameObject _bool m_bUsePsx = { false }; _bool m_isEdit = {}; + _bool m_isFlat = {}; _float m_fUsingSurfaceParams = {}; _float m_fHeightRatio = {1.f}; diff --git a/Jusin154_Team3D/Editor/Public/Troll.h b/Jusin154_Team3D/Editor/Public/Troll.h index 09d182839..0b47609c3 100644 --- a/Jusin154_Team3D/Editor/Public/Troll.h +++ b/Jusin154_Team3D/Editor/Public/Troll.h @@ -78,6 +78,8 @@ class CTroll final : public CMonster #endif // _DEBUG private: class CEffectPool* m_pEffectPool = nullptr; + class CEffect_Container* m_pRushEffect = nullptr; + class CEditEffect* m_pRock_Smoke = { nullptr }; private: virtual void Add_FSM(); virtual void Set_Anim(); diff --git a/Jusin154_Team3D/Editor/Public/Troll_Rush.h b/Jusin154_Team3D/Editor/Public/Troll_Rush.h new file mode 100644 index 000000000..d588f1344 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Troll_Rush.h @@ -0,0 +1,45 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CTroll_Rush final : public CEffect_Container +{ +private: + CTroll_Rush(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTroll_Rush(const CTroll_Rush& rhs); + virtual ~CTroll_Rush() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + + class CEditEffect* m_pRush_Blur = { nullptr }; + +public: + static CTroll_Rush* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Troll_Shout.h b/Jusin154_Team3D/Editor/Public/Troll_Shout.h new file mode 100644 index 000000000..75a6b691b --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Troll_Shout.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CTroll_Shout final : public CEffect_Container +{ +private: + CTroll_Shout(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTroll_Shout(const CTroll_Shout& rhs); + virtual ~CTroll_Shout() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + +public: + static CTroll_Shout* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp index 7a353902f..80ad1e4e2 100644 --- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp +++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp @@ -61,6 +61,10 @@ HRESULT CCharacter_Controller::Render() } return S_OK; } +void CCharacter_Controller::Set_Name(const _char* pName) +{ + m_pController->getActor()->setName(pName); +} #endif // _DEBUG PSX::PxRigidDynamic* CCharacter_Controller::Get_Actor() { diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp index eb3b004cb..7d84edbeb 100644 --- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp +++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp @@ -52,9 +52,7 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De } } #ifdef _DEBUG -#ifdef 기무리 - m_pThreadHolder = CThreadHolder::Create(8); -#elif Bin +#ifdef Bin m_pThreadHolder = CThreadHolder::Create(8); #else m_pThreadHolder = CThreadHolder::Create(6); @@ -65,9 +63,6 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De m_pThreadHolder = CThreadHolder::Create(12); #endif // !_DEBUG - - - if (nullptr == m_pThreadHolder) { return E_FAIL; } @@ -679,6 +674,11 @@ void CGameInstance::Set_LevelToChange() return m_pLevel_Manager->Set_LevelToChange(); } +void CGameInstance::ResetLevel_Environment() +{ + return m_pLevel_Manager->ResetLevel_Environment(); +} + CComponent* CGameInstance::Clone_Asset_Prototype(_uint iTargetLevel, const _wstring& strPrototypeTag, void* pArg, CGameObject* pOwner) { return m_pPrototype_Manager->Clone_Asset_Prototype(iTargetLevel, strPrototypeTag, pArg, pOwner); diff --git a/Jusin154_Team3D/Engine/Private/Level_Manager.cpp b/Jusin154_Team3D/Engine/Private/Level_Manager.cpp index dc68d6d3a..08f6bd0cd 100644 --- a/Jusin154_Team3D/Engine/Private/Level_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/Level_Manager.cpp @@ -42,6 +42,11 @@ _uint CLevel_Manager::Get_Current_LevelID() return m_pCurrentLevel->Get_LevelID(); } +void CLevel_Manager::ResetLevel_Environment() +{ + m_pCurrentLevel->ResetLevel_Environment(); +} + _uint CLevel_Manager::Get_NextLevelID() { if (m_pCurrentLevel == nullptr) { diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index bcecf78b7..39a575afd 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -923,6 +923,19 @@ HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel) } return S_OK; } +HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel, const _char* pName) +{ + m_iNumPhysXMeshes = m_iNumMeshes; + + m_TriMeshes.reserve(m_iNumMeshes); + + m_pGameInstance->ConvertToTriMeshes(m_Meshes, m_TriMeshes, PreTransformMatrix); + + for (_uint i = 0; i < m_iNumMeshes; ++i) { + m_pGameInstance->RegistTriMesh(pName, m_TriMeshes[i], iLevel); + } + return S_OK; +} #ifdef EDITOR_PROJECT HRESULT CModel::Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix) diff --git a/Jusin154_Team3D/Engine/Private/TimeSocket.cpp b/Jusin154_Team3D/Engine/Private/TimeSocket.cpp index 3b932b5df..dd003dba2 100644 --- a/Jusin154_Team3D/Engine/Private/TimeSocket.cpp +++ b/Jusin154_Team3D/Engine/Private/TimeSocket.cpp @@ -21,6 +21,7 @@ HRESULT CTimeSocket::Initialize(void* pArg) SOCKETCONTENTS* pDesc = static_cast(pArg); m_Contents.fRatio = pDesc->fRatio; + m_Contents.pxTransform = pDesc->pxTransform; m_Contents.bTriggerred = pDesc->bTriggerred; m_Contents.pEventTarget = pDesc->pEventTarget; m_Contents.strEventName = pDesc->strEventName; @@ -43,7 +44,6 @@ HRESULT CTimeSocket::Initialize(void* pArg) m_Contents.pxTransform = pDesc->pxTransform; break; case TIMESOCKET_PARAM::NOT_USE: - m_Contents.pOtherTarget = nullptr; break; default: m_Contents.pOtherTarget = nullptr; diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp index d95985a45..e6910695a 100644 --- a/Jusin154_Team3D/Engine/Private/Transform.cpp +++ b/Jusin154_Team3D/Engine/Private/Transform.cpp @@ -656,7 +656,20 @@ void CTransform::Describe_Entity() GUI::InputFloat("Y##Rotation", &m_vRotation.y, 1.f, 15.f); GUI::InputFloat("Z##Rotation", &m_vRotation.z, 1.f, 15.f); +#ifndef 기무리 Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); +#endif // 기무리 +#ifdef 기무리 + _float3 vRot = {}; + XMStoreFloat3(&vRot, Get_RollPitchYawVector()); + GUI::Text("R : %.2f", XMConvertToDegrees(vRot.x)); GUI::SameLine(); + GUI::Text("\tY : %.2f", XMConvertToDegrees(vRot.y)); GUI::SameLine(); + GUI::Text("\tP : %.2f", XMConvertToDegrees(vRot.z)); + if (GUI::SmallButton("ApplyRotation")) { + Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); + } +#endif // 기무리 + _float3 vScale = Get_Scale(); diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp index d5f5bc469..19b8438c7 100644 --- a/Jusin154_Team3D/Engine/Private/Unit.cpp +++ b/Jusin154_Team3D/Engine/Private/Unit.cpp @@ -284,6 +284,9 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) // SPRINT { "SPRINT", SPRINT }, + // CROUCH + { "CROUCH", CROUCH }, + // SLIDE { "SLIDE_START_R", SLIDE_START_R }, { "SLIDE_LOOP_R", SLIDE_LOOP_R }, @@ -550,6 +553,11 @@ STATEANIM::ESTATE CUnit::StringToStateAnim(const string& s) { "BROOM_FLY_UP_B", BROOM_FLY_UP_B }, { "BROOM_FLY_B", BROOM_FLY_B }, { "BROOM_ADD", BROOM_ADD }, + + { "HELLO", HELLO },{ "PLEASE", PLEASE }, + { "BROWSE_START", BROWSE_START },{ "BROWSE_END", BROWSE_END }, + { "FINGERSNAP", FINGERSNAP }, { "CROUCHALERT", CROUCHALERT } + }; diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp index 0c3f1443f..d2acec133 100644 --- a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp +++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp @@ -455,7 +455,7 @@ void CVIBuffer_Terrain::Culling(_fmatrix WorldMatrix) m_iNumIndices = iNumIndices; } -void CVIBuffer_Terrain::FitY(_fmatrix WorldMatrix, _float fY, _float3 vPickingPos, _uint iRange) +void CVIBuffer_Terrain::FitY(_fmatrix WorldMatrix, _float fY, _float3 vPickingPos, _uint iRange, _bool isFlat) { m_pGameInstance->Transform_Frustum_ToLocalSpace(XMMatrixInverse(nullptr, WorldMatrix)); @@ -492,8 +492,11 @@ void CVIBuffer_Terrain::FitY(_fmatrix WorldMatrix, _float fY, _float3 vPickingPo D3D11_MAPPED_SUBRESOURCE SubResource{}; m_pContext->Map(m_pVB, 0, D3D11_MAP_READ_WRITE, 0, &SubResource); VTXNORTEX* pVertices = static_cast(SubResource.pData); - Add_Y(pVertices, iIndex, fY); - Add_NeighborY(pVertices, static_cast<_uint>(vLocalPosition.x), static_cast<_uint>(vLocalPosition.z), fY, iRange); + //Add_Y(pVertices, iIndex, fY); + if (isFlat) + Flat_NeighborY(pVertices, static_cast<_uint>(vLocalPosition.x), static_cast<_uint>(vLocalPosition.z), fY, iRange); + else + Add_NeighborY(pVertices, static_cast<_uint>(vLocalPosition.x), static_cast<_uint>(vLocalPosition.z), fY, iRange); m_pContext->Unmap(m_pVB, 0); } @@ -525,6 +528,32 @@ void CVIBuffer_Terrain::Add_NeighborY(VTXNORTEX* pVertices, _uint iX, _uint iZ, } +void CVIBuffer_Terrain::Flat_NeighborY(VTXNORTEX* pVertices, _uint iX, _uint iZ, _float fY, _uint iRange) +{ + _int Range = iRange; // 이웃 범위 설정 + + for (_int dz = -Range; dz <= Range; ++dz) + { + for (_int dx = -Range; dx <= Range; ++dx) + { + _int nx = iX + dx; + _int nz = iZ + dz; + + // 범위 체크 (0 ~ m_iNumVerticesX/Z-1) + if (nx < 0 || nz < 0 || + nx >= (_int)m_iNumVerticesX || + nz >= (_int)m_iNumVerticesZ) + continue; + + _uint iNeighborIndex = + static_cast<_uint>(nx) + + static_cast<_uint>(nz) * m_iNumVerticesX; + + Flat(pVertices, iNeighborIndex, fY); + } + } +} + void CVIBuffer_Terrain::Add_Y(VTXNORTEX* pVertices, _uint iIndex, _float fY) { _uint iIndices[4] = { @@ -555,6 +584,36 @@ void CVIBuffer_Terrain::Add_Y(VTXNORTEX* pVertices, _uint iIndex, _float fY) } } +void CVIBuffer_Terrain::Flat(VTXNORTEX* pVertices, _uint iIndex, _float fY) +{ + _uint iIndices[4] = { + iIndex + m_iNumVerticesX, + iIndex + m_iNumVerticesX + 1, + iIndex + 1, + iIndex + }; + + for (_uint i = 0; i < 4; i++) + { + if (0 > iIndices[i] || m_iNumVertices <= iIndices[i]) + return; + } + _float fHieght = { }; + _float fAvgHieght = { }; + for (_uint i = 0; i < 4; i++) + { + fHieght += pVertices[iIndices[i]].vPosition.y; + } + + fAvgHieght = fHieght / 4.f; + + for (_uint i = 0; i < 4; i++) + { + pVertices[iIndices[i]].vPosition.y = fY; + memcpy(&m_pVertexPositions[iIndices[i]], &pVertices[iIndices[i]].vPosition, sizeof(_float3)); + } +} + HRESULT CVIBuffer_Terrain::Load_HeightMap(const _char* pFilePath) { diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h index 08118b0ba..1572d270c 100644 --- a/Jusin154_Team3D/Engine/Public/Character_Controller.h +++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h @@ -49,6 +49,7 @@ class ENGINE_DLL CCharacter_Controller final : public: #ifdef _DEBUG virtual HRESULT Render() override; + virtual void Set_Name(const _char* pName); #endif PSX::PxRigidDynamic* Get_Actor(); PSX::PxController* Get_Controller(); diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index 21b7bebd4..796b7ba1a 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -51,6 +51,7 @@ class ENGINE_DLL CGameInstance final : public CBase _uint Get_NextLevelID(); _bool Check_LevelShouldChange(); void Set_LevelToChange(); + void ResetLevel_Environment(); #pragma endregion #pragma region PROTOTYPE_MANAGER diff --git a/Jusin154_Team3D/Engine/Public/GameObject.h b/Jusin154_Team3D/Engine/Public/GameObject.h index 9f508e946..d46d46a67 100644 --- a/Jusin154_Team3D/Engine/Public/GameObject.h +++ b/Jusin154_Team3D/Engine/Public/GameObject.h @@ -18,6 +18,7 @@ class ENGINE_DLL CGameObject abstract virtual void Priority_Update(_float fTimeDelta); virtual void Update(_float fTimeDelta); virtual void Late_Update(_float fTimeDelta); + virtual void Trigger(class CTimeSocket& Socket) {}; virtual HRESULT Render(); virtual HRESULT Render_Shadow(SHADOW eType) { return S_OK; } @@ -39,8 +40,8 @@ class ENGINE_DLL CGameObject abstract _uint Get_ObjectTag() const { return m_iObjectTag; } _uint Get_CollisionID() const { return m_iCollisionID; } - _bool Get_Visible() const { return m_bVisible; } - void Set_Visible(_bool bValue) { m_bVisible = bValue; } + virtual _bool Get_Visible() const { return m_bVisible; } + virtual void Set_Visible(_bool bValue) { m_bVisible = bValue; } CGameObject* Get_Owner() const { return m_pOwner; } public: diff --git a/Jusin154_Team3D/Engine/Public/Level.h b/Jusin154_Team3D/Engine/Public/Level.h index a57c7a65f..9e806fdfe 100644 --- a/Jusin154_Team3D/Engine/Public/Level.h +++ b/Jusin154_Team3D/Engine/Public/Level.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -13,9 +13,10 @@ class ENGINE_DLL CLevel abstract public: _uint Get_LevelID() const { return m_iID; } - virtual _uint Get_NextLevelID() { return m_iID; } // ·εù·¹º§ÀÏ ¶§¸¸ Àǹ̰¡ ÀÖÀ½ + virtual _uint Get_NextLevelID() { return m_iID; } // 로딩레벨일 때만 의미가 있음 virtual void Update(_float fTimeDelta)PURE; virtual HRESULT Render()PURE; + virtual void ResetLevel_Environment()PURE; protected: class CGameInstance* m_pGameInstance = { nullptr }; ID3D11Device* m_pDevice = { nullptr }; @@ -29,4 +30,4 @@ class ENGINE_DLL CLevel abstract virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Level_Manager.h b/Jusin154_Team3D/Engine/Public/Level_Manager.h index 57894a47a..7e5533a69 100644 --- a/Jusin154_Team3D/Engine/Public/Level_Manager.h +++ b/Jusin154_Team3D/Engine/Public/Level_Manager.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -16,6 +16,7 @@ class CLevel_Manager final _bool Check_LevelShouldChange() const; void Set_LevelToChange(); _uint Get_Current_LevelID(); + void ResetLevel_Environment(); _uint Get_NextLevelID(); void Update(_float fTimeDelta); HRESULT Render(); @@ -30,4 +31,4 @@ class CLevel_Manager final virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 4d223fb5b..579d3124a 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -162,6 +162,8 @@ class ENGINE_DLL CModel final : public CComponent public: HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel); + HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel, const _char* pName); + #ifdef EDITOR_PROJECT HRESULT Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex); HRESULT Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix); diff --git a/Jusin154_Team3D/Engine/Public/PhysX/PxQueryReport.h b/Jusin154_Team3D/Engine/Public/PhysX/PxQueryReport.h index 06e66e6dd..6a40552a1 100644 --- a/Jusin154_Team3D/Engine/Public/PhysX/PxQueryReport.h +++ b/Jusin154_Team3D/Engine/Public/PhysX/PxQueryReport.h @@ -1,4 +1,4 @@ -// Redistribution and use in source and binary forms, with or without +// Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h index b1640edb8..da2c532f4 100644 --- a/Jusin154_Team3D/Engine/Public/State.h +++ b/Jusin154_Team3D/Engine/Public/State.h @@ -9,7 +9,8 @@ enum ESTATE WALK, WALK_FWD,WALK_RIGHT,WALK_LEFT, WALK_BWD,WALK_START, WALK_STOP,WALK_STOP_L, WALK_STOP_R, JOG,JOG_START, JOG_FWD, JOG_RIGHT, JOG_LEFT, JOG_BWD, JOG_STOP, JOG_AIM_LEFT, JOG_AIM_RIGHT, JOG_AIM_BWD, JOG_AIM_STOP_L, JOG_AIM_STOP_R, JOG_AIM_STOP_BWD,JOG_LEFT_TURN,JOG_RIGHT_TURN,JOG_112_L,JOG_112_R,JOG_90_L,JOG_90_R, SPRINT, - SLIDE_START_R,SLIDE_LOOP_R,SLIDE_STOP_R, + SLIDE_START_R,SLIDE_LOOP_R,SLIDE_STOP_R, + CROUCH, JUMP,JUMP_JOG,JUMP_SPRINT,FALL_LOOP, LAND,LAND_TO_JOG,LAND_TO_SPRINT,LAND_HARD,LAND_MID,LAND_SOFT, DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,DODGE_ATTACK, @@ -57,6 +58,11 @@ enum ESTATE #pragma region CUTSCENE CUTSCENE_TROLLINTRO,CUTSCENE_OPENINGINTRO1, CUTSCENE_OPENINGINTRO2, CUTSCENE_OPENINGINTRO3,CUTSCENE_DUEL, #pragma endregion + +#pragma region ELF + HELLO,PLEASE, BROWSE_START, BROWSE_END, FINGERSNAP, CROUCHALERT, +#pragma endregion + END }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/TimeSocket.h b/Jusin154_Team3D/Engine/Public/TimeSocket.h index 4970cb129..2b3da839d 100644 --- a/Jusin154_Team3D/Engine/Public/TimeSocket.h +++ b/Jusin154_Team3D/Engine/Public/TimeSocket.h @@ -22,6 +22,7 @@ static constexpr pair g_SocketParamTypeTable[ENUM typedef enum class typeTimeSocket_Func { // COMMON + TELEPORTATION, TRANSLATION, TRANSLATION_LERP, ROTATION, @@ -29,6 +30,7 @@ typedef enum class typeTimeSocket_Func { TOGGLE_FLAGS, // CAMERA + SETTING_CAMERA, BIND_CAMERA, ZOOM_IN, ZOOM_OUT, @@ -46,23 +48,36 @@ typedef enum class typeTimeSocket_Func { // CHARACTER SET_ANIMSTATE, SET_FSMSTATE, + BIND_SOCKET_MATRIX, + UNBIND_SOCKET_MATRIX, // EFFECT // SOUND // TRIGGER + SET_CAMERA_ENVIRONMENT, + + //SYSTEM + STOP_CINEMATIC, + RESET_ENVIRONMENT, + SET_VOLUMETRIC, + END }TIMESOCKET_FUNC; static constexpr pair g_SocketFuncTypeTable[ENUM_CLASS(TIMESOCKET_FUNC::END) + 1] = { + // COMMON + {"TELEPORTATION", TIMESOCKET_FUNC::TELEPORTATION}, {"TRANSLATION", TIMESOCKET_FUNC::TRANSLATION}, {"TRANSLATION_LERP", TIMESOCKET_FUNC::TRANSLATION_LERP}, {"ROTATION", TIMESOCKET_FUNC::ROTATION}, {"ROTATION_LERP", TIMESOCKET_FUNC::ROTATION_LERP}, {"TOGGLE_FLAGS", TIMESOCKET_FUNC::TOGGLE_FLAGS}, + // CAMERA + {"SETTING_CAMERA", TIMESOCKET_FUNC::SETTING_CAMERA}, {"BIND_CAMERA", TIMESOCKET_FUNC::BIND_CAMERA}, {"ZOOM_IN", TIMESOCKET_FUNC::ZOOM_IN}, {"ZOOM_OUT", TIMESOCKET_FUNC::ZOOM_OUT}, @@ -75,9 +90,25 @@ static constexpr pair g_SocketFuncTypeTable[ENUM_C {"DONT_LOOK_AT", TIMESOCKET_FUNC::DONT_LOOK_AT}, {"FOLLOW", TIMESOCKET_FUNC::FOLLOW}, {"DONT_FOLLOW", TIMESOCKET_FUNC::DONT_FOLLOW}, + {"SHAKE", TIMESOCKET_FUNC::SHAKE}, + // CHARACTER {"SET_ANIMSTATE", TIMESOCKET_FUNC::SET_ANIMSTATE}, {"SET_FSMSTATE", TIMESOCKET_FUNC::SET_FSMSTATE}, + {"BIND_SOCKET_MATRIX", TIMESOCKET_FUNC::BIND_SOCKET_MATRIX}, + {"UNBIND_SOCKET_MATRIX",TIMESOCKET_FUNC::UNBIND_SOCKET_MATRIX}, + + // EFFECT + + // SOUND + + // TRIGGER + {"SET_CAMERA_ENVIRONMENT", TIMESOCKET_FUNC::SET_CAMERA_ENVIRONMENT}, + + //SYSTEM + {"STOP_CINEMATIC", TIMESOCKET_FUNC::STOP_CINEMATIC}, + {"RESET_ENVIRONMENT", TIMESOCKET_FUNC::RESET_ENVIRONMENT}, + {"SET_VOLUMETRIC", TIMESOCKET_FUNC::SET_VOLUMETRIC}, {"END", TIMESOCKET_FUNC::END}, }; diff --git a/Jusin154_Team3D/Engine/Public/Unit.h b/Jusin154_Team3D/Engine/Public/Unit.h index cba477288..e91ce8427 100644 --- a/Jusin154_Team3D/Engine/Public/Unit.h +++ b/Jusin154_Team3D/Engine/Public/Unit.h @@ -32,7 +32,6 @@ class ENGINE_DLL CUnit abstract : public CContainerObject virtual void Priority_Update(_float fTimeDelta) override; virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; - virtual void Trigger(class CTimeSocket& Socket) {}; virtual const _float4x4* Get_SocketMatrixPtr(const _char* pSocketName); _wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; } _bool IsAI() { return m_bAI; } @@ -105,7 +104,7 @@ class ENGINE_DLL CUnit abstract : public CContainerObject void Add_Event(_uint AnimIndex, function Callback, _float fRatio = 0.f, _bool bKeep = false); void Reset_Event(); void Check_HitAngle(_vector ProjectileDir); - void Load_AnimXML(const string& path); + virtual void Load_AnimXML(const string& path); STATEANIM::ESTATE StringToStateAnim(const string& s); public: virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE; diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h index a31f25905..2cf973207 100644 --- a/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h +++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h @@ -28,9 +28,11 @@ class ENGINE_DLL CVIBuffer_Terrain final : public CVIBuffer _bool Picking(_fmatrix WorldMatrix, _float3* pOut); void Culling(_fmatrix WorldMatrix); - void FitY(_fmatrix WorldMatrix, _float fY, _float3 vPickingPos, _uint iRange); + void FitY(_fmatrix WorldMatrix, _float fY, _float3 vPickingPos, _uint iRange, _bool isFlat); void Add_NeighborY(VTXNORTEX* pVertices, _uint iX, _uint iZ, _float fY, _uint iRange); + void Flat_NeighborY(VTXNORTEX* pVertices, _uint iX, _uint iZ, _float fY, _uint iRange); void Add_Y(VTXNORTEX* pVertices, _uint iIndex, _float fY); + void Flat(VTXNORTEX* pVertices, _uint iIndex, _float fY); HRESULT Load_HeightMap(const _char* pFilePath); #ifdef EDITOR_PROJECT