other models & ground texture

pull/2/head
Sascha 2024-05-28 21:10:55 +07:00
parent 531839a802
commit a4f0d3a27a
67 changed files with 3178 additions and 189 deletions

File diff suppressed because one or more lines are too long

@ -0,0 +1,21 @@
[gd_resource type="StandardMaterial3D" load_steps=6 format=3 uid="uid://dmiddiyswbqqx"]
[ext_resource type="Texture2D" uid="uid://djxsjo1ujifli" path="res://resources/material/TCom_Sand_Muddy2_2x2_512_albedo.png" id="1_2i2oh"]
[ext_resource type="Texture2D" uid="uid://bvucu5qe8rd7o" path="res://resources/material/TCom_Sand_Muddy2_2x2_512_ao.png" id="2_ak48i"]
[ext_resource type="Texture2D" uid="uid://c0cj66ojt2kjk" path="res://resources/material/TCom_Sand_Muddy2_2x2_512_height.png" id="3_0tuve"]
[ext_resource type="Texture2D" uid="uid://m0r2xxbcq2lt" path="res://resources/material/TCom_Sand_Muddy2_2x2_512_normal.png" id="4_rev2l"]
[ext_resource type="Texture2D" uid="uid://bfd7rjr36oknu" path="res://resources/material/TCom_Sand_Muddy2_2x2_512_roughness.png" id="5_fkxk3"]
[resource]
albedo_texture = ExtResource("1_2i2oh")
roughness_texture = ExtResource("5_fkxk3")
roughness_texture_channel = 4
normal_enabled = true
normal_scale = 2.0
normal_texture = ExtResource("4_rev2l")
ao_enabled = true
ao_light_affect = 1.0
ao_texture = ExtResource("2_ak48i")
ao_texture_channel = 4
heightmap_enabled = true
heightmap_texture = ExtResource("3_0tuve")

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://djxsjo1ujifli"
path.s3tc="res://.godot/imported/TCom_Sand_Muddy2_2x2_512_albedo.png-268fa75e7a6afec50780d98d3b5bbeb1.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/material/TCom_Sand_Muddy2_2x2_512_albedo.png"
dest_files=["res://.godot/imported/TCom_Sand_Muddy2_2x2_512_albedo.png-268fa75e7a6afec50780d98d3b5bbeb1.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bvucu5qe8rd7o"
path.s3tc="res://.godot/imported/TCom_Sand_Muddy2_2x2_512_ao.png-e5f0f3ae9ecac8e5e9ad3ea050b0ea47.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/material/TCom_Sand_Muddy2_2x2_512_ao.png"
dest_files=["res://.godot/imported/TCom_Sand_Muddy2_2x2_512_ao.png-e5f0f3ae9ecac8e5e9ad3ea050b0ea47.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c0cj66ojt2kjk"
path.s3tc="res://.godot/imported/TCom_Sand_Muddy2_2x2_512_height.png-15843f6113d41e4f3d43dae5f8372404.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/material/TCom_Sand_Muddy2_2x2_512_height.png"
dest_files=["res://.godot/imported/TCom_Sand_Muddy2_2x2_512_height.png-15843f6113d41e4f3d43dae5f8372404.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://m0r2xxbcq2lt"
path.s3tc="res://.godot/imported/TCom_Sand_Muddy2_2x2_512_normal.png-ff3283121f7f3dce59140b08e4689294.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/material/TCom_Sand_Muddy2_2x2_512_normal.png"
dest_files=["res://.godot/imported/TCom_Sand_Muddy2_2x2_512_normal.png-ff3283121f7f3dce59140b08e4689294.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://resources/material/TCom_Sand_Muddy2_2x2_512_normal.png"
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bfd7rjr36oknu"
path.s3tc="res://.godot/imported/TCom_Sand_Muddy2_2x2_512_roughness.png-a3f812a9a0b677114c8ff818348a53ef.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/material/TCom_Sand_Muddy2_2x2_512_roughness.png"
dest_files=["res://.godot/imported/TCom_Sand_Muddy2_2x2_512_roughness.png-a3f812a9a0b677114c8ff818348a53ef.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

@ -0,0 +1,19 @@
[gd_resource type="StandardMaterial3D" load_steps=6 format=3 uid="uid://2vo5vs8v1u2o"]
[ext_resource type="Texture2D" uid="uid://dhxavqsg7lbtn" path="res://resources/skins/survivorFemaleA_d.png" id="1_0c4go"]
[ext_resource type="Texture2D" uid="uid://nfswq1l0i7lr" path="res://resources/skins/survivorFemaleA_o.png" id="2_y34hn"]
[ext_resource type="Texture2D" uid="uid://bs4kslk0fuacd" path="res://resources/skins/survivorFemaleA_s.png" id="3_ucb6v"]
[ext_resource type="Texture2D" uid="uid://dnhypgdh3kiu2" path="res://resources/skins/survivorFemaleA_n.png" id="4_yqied"]
[ext_resource type="Texture2D" uid="uid://ccyrnyjum0jji" path="res://resources/skins/survivorFemaleA_p.png" id="5_43iaf"]
[resource]
albedo_texture = ExtResource("1_0c4go")
metallic = 1.0
metallic_texture = ExtResource("3_ucb6v")
roughness_texture = ExtResource("5_43iaf")
roughness_texture_channel = 3
emission_enabled = true
normal_enabled = true
normal_texture = ExtResource("4_yqied")
ao_enabled = true
ao_texture = ExtResource("2_y34hn")

@ -12,7 +12,6 @@ metallic = 1.0
metallic_texture = ExtResource("3_74lwl")
roughness_texture = ExtResource("5_dav72")
roughness_texture_channel = 3
emission_enabled = true
normal_enabled = true
normal_texture = ExtResource("4_0djtr")
ao_enabled = true

@ -0,0 +1,18 @@
[gd_resource type="StandardMaterial3D" load_steps=6 format=3 uid="uid://deusv8xm5w3ta"]
[ext_resource type="Texture2D" uid="uid://b23b8phpodjey" path="res://resources/skins/zombieA_d.png" id="1_plvfl"]
[ext_resource type="Texture2D" uid="uid://dxtu2yv41286h" path="res://resources/skins/zombieA_o.png" id="2_gdiwy"]
[ext_resource type="Texture2D" uid="uid://b7l4ew1n0aqu0" path="res://resources/skins/zombieA_s.png" id="3_bihxg"]
[ext_resource type="Texture2D" uid="uid://fbahls5a22lc" path="res://resources/skins/zombieA_n.png" id="4_rqwcx"]
[ext_resource type="Texture2D" uid="uid://7u17ibcngr42" path="res://resources/skins/zombieA_p.png" id="5_dg8tb"]
[resource]
albedo_texture = ExtResource("1_plvfl")
metallic = 1.0
metallic_texture = ExtResource("3_bihxg")
roughness_texture = ExtResource("5_dg8tb")
roughness_texture_channel = 3
normal_enabled = true
normal_texture = ExtResource("4_rqwcx")
ao_enabled = true
ao_texture = ExtResource("2_gdiwy")

@ -0,0 +1,18 @@
[gd_resource type="StandardMaterial3D" load_steps=6 format=3 uid="uid://bd3usms20eh3"]
[ext_resource type="Texture2D" uid="uid://cf65131nu6q7j" path="res://resources/skins/zombieC_d.png" id="1_ks2vh"]
[ext_resource type="Texture2D" uid="uid://fn3pxwim4b2k" path="res://resources/skins/zombieC_o.png" id="2_5rske"]
[ext_resource type="Texture2D" uid="uid://cghl3lo6c81c7" path="res://resources/skins/zombieC_s.png" id="3_c723i"]
[ext_resource type="Texture2D" uid="uid://do6xgbdcbxkyt" path="res://resources/skins/zombieC_n.png" id="4_2pjan"]
[ext_resource type="Texture2D" uid="uid://7ylrlvu45no8" path="res://resources/skins/zombieC_p.png" id="5_lb20u"]
[resource]
albedo_texture = ExtResource("1_ks2vh")
metallic = 1.0
metallic_texture = ExtResource("3_c723i")
roughness_texture = ExtResource("5_lb20u")
roughness_texture_channel = 3
normal_enabled = true
normal_texture = ExtResource("4_2pjan")
ao_enabled = true
ao_texture = ExtResource("2_5rske")

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dhxavqsg7lbtn"
path.s3tc="res://.godot/imported/survivorFemaleA_d.png-2408057c77595347b444cfa880836656.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/survivorFemaleA_d.png"
dest_files=["res://.godot/imported/survivorFemaleA_d.png-2408057c77595347b444cfa880836656.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dnhypgdh3kiu2"
path.s3tc="res://.godot/imported/survivorFemaleA_n.png-75c0ff3420f969efe80a6bd5b3314f6a.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/survivorFemaleA_n.png"
dest_files=["res://.godot/imported/survivorFemaleA_n.png-75c0ff3420f969efe80a6bd5b3314f6a.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://resources/skins/survivorFemaleA_n.png"
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://nfswq1l0i7lr"
path.s3tc="res://.godot/imported/survivorFemaleA_o.png-59242cfa8fc76a657ce387039287acfb.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/survivorFemaleA_o.png"
dest_files=["res://.godot/imported/survivorFemaleA_o.png-59242cfa8fc76a657ce387039287acfb.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=8
roughness/src_normal="res://resources/skins/zombieA_n.png"
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ccyrnyjum0jji"
path.s3tc="res://.godot/imported/survivorFemaleA_p.png-12070ede2cd8e2556cbab48967e327e2.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/survivorFemaleA_p.png"
dest_files=["res://.godot/imported/survivorFemaleA_p.png-12070ede2cd8e2556cbab48967e327e2.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bs4kslk0fuacd"
path.s3tc="res://.godot/imported/survivorFemaleA_s.png-16c19943016457487ee8f9ac581c0b17.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/survivorFemaleA_s.png"
dest_files=["res://.godot/imported/survivorFemaleA_s.png-16c19943016457487ee8f9ac581c0b17.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bwr1d0ncwkpam"
path="res://.godot/imported/survivorFemaleA_v.png-22c7424301d55b34c388bc8ce6d6c3d0.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/skins/survivorFemaleA_v.png"
dest_files=["res://.godot/imported/survivorFemaleA_v.png-22c7424301d55b34c388bc8ce6d6c3d0.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

@ -24,8 +24,8 @@ compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
roughness/mode=8
roughness/src_normal="res://resources/skins/survivorFemaleA_n.png"
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b23b8phpodjey"
path.s3tc="res://.godot/imported/zombieA_d.png-1bdbf7570b6f079dc5f0c2e3ee806e11.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/zombieA_d.png"
dest_files=["res://.godot/imported/zombieA_d.png-1bdbf7570b6f079dc5f0c2e3ee806e11.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://fbahls5a22lc"
path.s3tc="res://.godot/imported/zombieA_n.png-72ec212cc4c067be001af5079998f9a3.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/zombieA_n.png"
dest_files=["res://.godot/imported/zombieA_n.png-72ec212cc4c067be001af5079998f9a3.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://resources/skins/zombieA_n.png"
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dxtu2yv41286h"
path.s3tc="res://.godot/imported/zombieA_o.png-aeb9697812eea44199aa6d5979e79b5b.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/zombieA_o.png"
dest_files=["res://.godot/imported/zombieA_o.png-aeb9697812eea44199aa6d5979e79b5b.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://7u17ibcngr42"
path.s3tc="res://.godot/imported/zombieA_p.png-0bc667d7a9d3c7547cfbfed17e551f6b.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/zombieA_p.png"
dest_files=["res://.godot/imported/zombieA_p.png-0bc667d7a9d3c7547cfbfed17e551f6b.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b7l4ew1n0aqu0"
path.s3tc="res://.godot/imported/zombieA_s.png-4e5d5fdb96744ab5ba273de5ae0dede5.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/zombieA_s.png"
dest_files=["res://.godot/imported/zombieA_s.png-4e5d5fdb96744ab5ba273de5ae0dede5.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 KiB

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b7orr2fq00i3g"
path="res://.godot/imported/zombieA_v.png-7d5b30ea8f576f75e74eca2f469a5c85.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/skins/zombieA_v.png"
dest_files=["res://.godot/imported/zombieA_v.png-7d5b30ea8f576f75e74eca2f469a5c85.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cf65131nu6q7j"
path.s3tc="res://.godot/imported/zombieC_d.png-8673cf5295a8dc811808dcd5ce610687.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/zombieC_d.png"
dest_files=["res://.godot/imported/zombieC_d.png-8673cf5295a8dc811808dcd5ce610687.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://do6xgbdcbxkyt"
path.s3tc="res://.godot/imported/zombieC_n.png-a0580bbc2ab044ce11f909cf019928c1.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/zombieC_n.png"
dest_files=["res://.godot/imported/zombieC_n.png-a0580bbc2ab044ce11f909cf019928c1.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://resources/skins/zombieC_n.png"
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://fn3pxwim4b2k"
path.s3tc="res://.godot/imported/zombieC_o.png-302759909466eafd73c4003ae37ea029.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/zombieC_o.png"
dest_files=["res://.godot/imported/zombieC_o.png-302759909466eafd73c4003ae37ea029.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://7ylrlvu45no8"
path.s3tc="res://.godot/imported/zombieC_p.png-72ffb880d90fcd93ca1c3ec144de41e2.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/zombieC_p.png"
dest_files=["res://.godot/imported/zombieC_p.png-72ffb880d90fcd93ca1c3ec144de41e2.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cghl3lo6c81c7"
path.s3tc="res://.godot/imported/zombieC_s.png-8be6f31cb1a01dc9e1d54c28acfc45c8.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://resources/skins/zombieC_s.png"
dest_files=["res://.godot/imported/zombieC_s.png-8be6f31cb1a01dc9e1d54c28acfc45c8.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 KiB

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c03p3um4hc3nd"
path="res://.godot/imported/zombieC_v.png-d1f478f1766e3e68921cd78f9ede5da2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://resources/skins/zombieC_v.png"
dest_files=["res://.godot/imported/zombieC_v.png-d1f478f1766e3e68921cd78f9ede5da2.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=3 uid="uid://b1i4juq2u7pwk"]
[gd_scene load_steps=14 format=3 uid="uid://b1i4juq2u7pwk"]
[ext_resource type="Environment" uid="uid://d31wkt76cft8k" path="res://resources/world_environment.tres" id="1_03qki"]
[ext_resource type="Script" path="res://scripts/game_manager.gd" id="1_kvi4c"]
@ -9,11 +9,19 @@
[ext_resource type="PackedScene" uid="uid://670weiu5lj4u" path="res://scenes/skeleton_warrior_new.tscn" id="8_b6x6f"]
[ext_resource type="PackedScene" uid="uid://d1vowjv6aed2s" path="res://scenes/ui.tscn" id="9_ah8u8"]
[ext_resource type="MeshLibrary" uid="uid://bs0yqy7xhugol" path="res://resources/level_mesh_library.tres" id="9_dr0le"]
[ext_resource type="Material" uid="uid://dmiddiyswbqqx" path="res://resources/material/TCom_Sand_Muddy2.tres" id="10_0dqj1"]
[sub_resource type="NavigationMesh" id="NavigationMesh_3mbqm"]
vertices = PackedVector3Array(-21.5, 0.4, 13.5, -16, 0.4, 13.5, -16, 0.4, 10.75, -21.5, 0.4, 13.5, -16, 0.4, 10.75, -15.25, 0.4, 10, -13, 0.4, 2, -14, 0.4, 1.5, -21.5, 0.4, -1.5, -14, 0.4, 1.5, -14, 0.4, -1.5, -21.5, 0.4, -1.5, -15.25, 0.4, 10, -13, 0.4, 10, -13, 0.4, 2, -12, 0.4, -1.5, -12, 0.4, 0, 14, 0.4, 0, 14, 0.4, -1.5, 18, 0.4, 10.75, 18, 0.4, 13.5, 20, 0.4, 13.5, 17.5, 0.4, 10, 18, 0.4, 10.75, 20, 0.4, 13.5, 20.25, 0.4, -1.5, 16, 0.4, 1.5, 15.5, 0.4, 2, 20.25, 0.4, -1.5, 16, 0.4, -1.5, 16, 0.4, 1.5, -13, 0.4, 10, 17.5, 0.4, 10, 15.5, 0.4, 2, -13, 0.4, 2, -14, 0.4, 12, -14, 0.4, 13.5, 16, 0.4, 13.5, 16, 0.4, 12)
polygons = [PackedInt32Array(2, 1, 0), PackedInt32Array(4, 3, 5), PackedInt32Array(5, 3, 6), PackedInt32Array(6, 3, 7), PackedInt32Array(7, 3, 8), PackedInt32Array(11, 10, 9), PackedInt32Array(14, 13, 12), PackedInt32Array(18, 17, 15), PackedInt32Array(15, 17, 16), PackedInt32Array(21, 20, 19), PackedInt32Array(23, 22, 24), PackedInt32Array(24, 22, 27), PackedInt32Array(24, 27, 26), PackedInt32Array(24, 26, 25), PackedInt32Array(30, 29, 28), PackedInt32Array(34, 33, 31), PackedInt32Array(31, 33, 32), PackedInt32Array(38, 37, 35), PackedInt32Array(35, 37, 36)]
[sub_resource type="PlaneMesh" id="PlaneMesh_7a7yt"]
material = ExtResource("10_0dqj1")
size = Vector2(100, 100)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_cumsm"]
data = PackedVector3Array(10, 0, 10, -10, 0, 10, 10, 0, -10, -10, 0, 10, -10, 0, -10, 10, 0, -10)
[node name="Game" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
@ -88,3 +96,11 @@ data = {
[node name="UI" parent="CanvasLayer" node_paths=PackedStringArray("player") instance=ExtResource("9_ah8u8")]
player = NodePath("../../Player")
[node name="Ground" type="MeshInstance3D" parent="."]
mesh = SubResource("PlaneMesh_7a7yt")
[node name="StaticBody3D" type="StaticBody3D" parent="Ground"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ground/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_cumsm")

@ -31470,51 +31470,51 @@ margin = 0.1
[node name="Skeleton3D" parent="Rig" index="0"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
bones/0/position = Vector3(0, 0.000151993, 0)
bones/0/position = Vector3(0, 0.000119073, 0)
bones/0/rotation = Quaternion(-9.45753e-12, -0.000274707, -1.63809e-11, 1)
bones/1/position = Vector3(1.98217e-25, 0.370367, -8.31384e-19)
bones/1/rotation = Quaternion(0.000375487, 0.042994, 2.04099e-05, 0.999075)
bones/2/rotation = Quaternion(0.00045192, -0.00026161, 1.88156e-06, 1)
bones/3/rotation = Quaternion(0.000181611, 7.62043e-05, -6.64409e-05, 1)
bones/4/position = Vector3(0.211923, 0.134053, -0.000167655)
bones/4/rotation = Quaternion(-0.553215, -0.056946, -0.636352, 0.534572)
bones/1/position = Vector3(-2.86906e-26, 0.369442, 1.20337e-19)
bones/1/rotation = Quaternion(0.000373657, 0.0429939, 2.04898e-05, 0.999075)
bones/2/rotation = Quaternion(0.000448729, 0.000386646, -5.23103e-05, 1)
bones/3/rotation = Quaternion(0.000170433, 8.5966e-05, -1.62594e-05, 1)
bones/4/position = Vector3(0.211987, 0.134085, -0.000185093)
bones/4/rotation = Quaternion(-0.551435, -0.0586325, -0.643528, 0.527592)
bones/4/scale = Vector3(0.999999, 0.999999, 1)
bones/5/rotation = Quaternion(3.68154e-08, -6.39755e-08, -0.516, 0.856589)
bones/5/rotation = Quaternion(2.06594e-08, -6.67656e-08, -0.505093, 0.863065)
bones/6/rotation = Quaternion(-9.73784e-11, -2.98437e-10, 0.0266581, 0.999645)
bones/6/scale = Vector3(1, 1, 1)
bones/7/rotation = Quaternion(-0.320619, -0.338794, 0.148704, 0.871957)
bones/7/rotation = Quaternion(-0.318364, -0.337764, 0.143769, 0.874008)
bones/8/position = Vector3(4.03524e-10, 0.0961252, -0.0575)
bones/8/rotation = Quaternion(0.000690416, 0.00103666, -0.703075, 0.711115)
bones/8/rotation = Quaternion(0.00112775, 0.00151036, -0.70137, 0.712795)
bones/8/scale = Vector3(1, 1, 1)
bones/14/position = Vector3(-0.211992, 0.134087, -0.000186244)
bones/14/rotation = Quaternion(-0.61132, 0.0775019, 0.612513, 0.495085)
bones/14/position = Vector3(-0.211927, 0.134055, -0.000168807)
bones/14/rotation = Quaternion(-0.610314, 0.0785919, 0.617825, 0.489522)
bones/14/scale = Vector3(0.999999, 0.999999, 1)
bones/15/rotation = Quaternion(2.13292e-08, 4.65869e-08, 0.538759, 0.84246)
bones/15/rotation = Quaternion(2.94524e-08, 5.87742e-08, 0.52781, 0.849362)
bones/16/rotation = Quaternion(-9.73784e-11, 2.98437e-10, -0.0266581, 0.999645)
bones/16/scale = Vector3(1, 1, 1)
bones/17/rotation = Quaternion(-0.319438, 0.314869, -0.231213, 0.863341)
bones/17/rotation = Quaternion(-0.317423, 0.313636, -0.225417, 0.866061)
bones/18/position = Vector3(-1.54782e-08, 0.0961251, -0.0575)
bones/18/rotation = Quaternion(0.00265447, 0.0031406, 0.7035, 0.710683)
bones/18/rotation = Quaternion(0.00394797, 0.00469205, 0.702148, 0.712005)
bones/18/scale = Vector3(1, 1, 1)
bones/21/rotation = Quaternion(-0.000498765, -0.0309079, -6.94553e-05, 0.999522)
bones/24/position = Vector3(0.170945, 0.113587, -0.000347255)
bones/24/rotation = Quaternion(0.989843, 0.083325, 0.0783058, 0.0844753)
bones/21/rotation = Quaternion(-0.000510097, -0.0314923, -3.41198e-05, 0.999504)
bones/24/position = Vector3(0.170945, 0.113587, 0.000255542)
bones/24/rotation = Quaternion(0.989534, 0.0832944, 0.0785418, 0.0878436)
bones/24/scale = Vector3(1, 1, 1)
bones/25/rotation = Quaternion(0.389889, 5.73692e-08, -2.65814e-07, 0.920862)
bones/26/rotation = Quaternion(-0.61684, -0.20033, 0.075596, 0.757405)
bones/27/rotation = Quaternion(-9.82223e-09, 0.920355, -0.391084, 7.82778e-08)
bones/25/rotation = Quaternion(0.393756, 6.31502e-08, -2.64488e-07, 0.919215)
bones/26/rotation = Quaternion(-0.621029, -0.200118, 0.0763476, 0.753954)
bones/27/rotation = Quaternion(-9.81823e-09, 0.920355, -0.391084, 7.8274e-08)
bones/27/scale = Vector3(1, 1, 1)
bones/28/position = Vector3(-0.170945, 0.113587, 0.000347287)
bones/28/rotation = Quaternion(0.991543, -0.0331723, 0.0296884, 0.121903)
bones/28/position = Vector3(-0.170945, 0.113587, -0.000255511)
bones/28/rotation = Quaternion(0.991462, -0.0332611, 0.0296904, 0.122538)
bones/28/scale = Vector3(1, 1, 1)
bones/29/rotation = Quaternion(0.432336, -5.89689e-08, 3.00768e-07, 0.901713)
bones/30/rotation = Quaternion(-0.644088, 0.112152, -0.0227141, 0.756344)
bones/31/rotation = Quaternion(3.03598e-08, 0.920355, -0.391084, -6.95347e-08)
bones/29/rotation = Quaternion(0.439857, -5.7548e-08, 3.06164e-07, 0.898068)
bones/30/rotation = Quaternion(-0.645962, 0.112047, -0.023359, 0.75474)
bones/31/rotation = Quaternion(3.03608e-08, 0.920355, -0.391084, -6.95386e-08)
bones/31/scale = Vector3(1, 1, 1)
bones/32/position = Vector3(0.170945, 0.292343, 0.575845)
bones/32/position = Vector3(0.170945, 0.292413, 0.575915)
bones/32/rotation = Quaternion(0.707107, -2.29302e-07, -4.60552e-08, 0.707107)
bones/33/position = Vector3(0.202061, 0.0264133, 0.202579)
bones/33/rotation = Quaternion(-0.704405, -7.07741e-08, -7.02869e-08, 0.709799)
bones/33/position = Vector3(0.202061, 0.0266931, 0.206325)
bones/33/rotation = Quaternion(-0.707816, -7.04464e-08, -7.06087e-08, 0.706397)
bones/34/rest = Transform3D(-1, 4.66e-34, 1.42109e-14, -4.69932e-34, -1, -2.76642e-22, 1.42109e-14, -2.76642e-22, 1, 1.94581e-08, 0.362833, -2.42861e-15)
bones/34/position = Vector3(1.94503e-08, 0.362833, -2.42861e-15)
bones/34/rotation = Quaternion(9.6269e-09, 1.76581e-09, 0.98583, -0.167751)
@ -31522,10 +31522,10 @@ bones/35/position = Vector3(-2.59494e-08, 0.213436, -5.15143e-09)
bones/35/rotation = Quaternion(-1.01283e-07, 0.391084, 0.920355, -3.34974e-08)
bones/36/position = Vector3(8.5477e-09, 0.16565, -2.42004e-09)
bones/37/rotation = Quaternion(1, -2.31451e-09, 1.99757e-07, 9.76329e-13)
bones/39/position = Vector3(-0.170945, 0.292343, 0.575845)
bones/39/position = Vector3(-0.170945, 0.292413, 0.575915)
bones/39/rotation = Quaternion(0.707107, -3.82385e-08, 1.45009e-07, 0.707107)
bones/40/position = Vector3(-0.170945, 0.027064, 0.247045)
bones/40/rotation = Quaternion(-0.708161, -7.04323e-08, -7.06233e-08, 0.706051)
bones/40/position = Vector3(-0.170945, 0.0263717, 0.243196)
bones/40/rotation = Quaternion(-0.704466, -7.08084e-08, -7.02409e-08, 0.709738)
bones/41/rest = Transform3D(-1, 4.66e-34, 1.42109e-14, -4.69932e-34, -1, -2.76642e-22, 1.42109e-14, -2.76642e-22, 1, 1.94581e-08, 0.362833, 2.42861e-15)
bones/41/position = Vector3(1.94816e-08, 0.362833, 2.0002e-10)
bones/41/rotation = Quaternion(-5.81779e-09, 6.41802e-10, 0.99485, 0.101363)
@ -31536,64 +31536,64 @@ bones/43/rotation = Quaternion(-0.391084, -6.885e-08, -6.56287e-08, 0.920355)
bones/44/rotation = Quaternion(1, 3.75961e-09, 1.94881e-07, 7.41776e-09)
bones/46/position = Vector3(0.453378, 1.10598, -0.589302)
bones/46/rotation = Quaternion(-0.707107, 6.47045e-05, 6.47045e-05, 0.707107)
bones/47/position = Vector3(0.520813, 0.77588, -0.0570186)
bones/47/rotation = Quaternion(0.795444, 0.00177956, 0.606024, 0.000198599)
bones/47/position = Vector3(0.520813, 0.77, -0.0569816)
bones/47/rotation = Quaternion(0.795476, 0.00181774, 0.605982, 0.000210036)
bones/48/position = Vector3(-0.45384, 1.10588, -0.588869)
bones/48/rotation = Quaternion(-0.707107, 6.47045e-05, 6.47045e-05, 0.707107)
bones/49/position = Vector3(-0.510787, 0.77588, 0.0601944)
bones/49/rotation = Quaternion(0.759168, -0.00171101, -0.650892, 0.000378374)
bones/49/position = Vector3(-0.510787, 0.77, 0.0602314)
bones/49/rotation = Quaternion(0.759203, -0.00174849, -0.650852, 0.000391975)
[node name="1H_Sword_Offhand" parent="Rig/Skeleton3D" index="0"]
transform = Transform3D(-0.00274638, 0.263768, 0.964582, 0.999958, -0.00766989, 0.00494541, 0.00870324, 0.964555, -0.263735, 0.512784, 0.624679, 5.09806e-06)
transform = Transform3D(-0.00201055, 0.263326, 0.964704, 0.999909, -0.0122895, 0.00543952, 0.0132887, 0.964628, -0.263277, 0.512215, 0.618112, -0.000647252)
visible = false
[node name="1H_Sword_Offhand" parent="Rig/Skeleton3D/1H_Sword_Offhand" index="0"]
mesh = SubResource("ArrayMesh_rvosg")
[node name="Badge_Shield" parent="Rig/Skeleton3D" index="1"]
transform = Transform3D(-0.00274636, 0.263767, 0.964582, 0.999958, -0.00767243, 0.00494608, 0.00870586, 0.964555, -0.263735, 0.663148, 0.62545, -0.0411074)
transform = Transform3D(-0.00201052, 0.263326, 0.964704, 0.999909, -0.0122921, 0.00544018, 0.0132913, 0.964628, -0.263277, 0.662599, 0.61896, -0.0416883)
visible = false
[node name="Badge_Shield" parent="Rig/Skeleton3D/Badge_Shield" index="0"]
mesh = SubResource("ArrayMesh_0xags")
[node name="Rectangle_Shield" parent="Rig/Skeleton3D" index="2"]
transform = Transform3D(-0.00274636, 0.263767, 0.964582, 0.999958, -0.00767243, 0.00494608, 0.00870586, 0.964555, -0.263735, 0.663148, 0.62545, -0.0411074)
transform = Transform3D(-0.00201052, 0.263326, 0.964704, 0.999909, -0.0122921, 0.00544018, 0.0132913, 0.964628, -0.263277, 0.662599, 0.61896, -0.0416883)
visible = false
[node name="Rectangle_Shield" parent="Rig/Skeleton3D/Rectangle_Shield" index="0"]
mesh = SubResource("ArrayMesh_qr44s")
[node name="Round_Shield" parent="Rig/Skeleton3D" index="3"]
transform = Transform3D(-0.00274636, 0.263767, 0.964582, 0.999958, -0.00767243, 0.00494608, 0.00870586, 0.964555, -0.263735, 0.663148, 0.62545, -0.0411074)
transform = Transform3D(-0.00201052, 0.263326, 0.964704, 0.999909, -0.0122921, 0.00544018, 0.0132913, 0.964628, -0.263277, 0.662599, 0.61896, -0.0416883)
[node name="Round_Shield" parent="Rig/Skeleton3D/Round_Shield" index="0"]
mesh = SubResource("ArrayMesh_bb24p")
[node name="Spike_Shield" parent="Rig/Skeleton3D" index="4"]
transform = Transform3D(-0.00274636, 0.263767, 0.964582, 0.999958, -0.00767243, 0.00494608, 0.00870586, 0.964555, -0.263735, 0.663148, 0.62545, -0.0411074)
transform = Transform3D(-0.00201052, 0.263326, 0.964704, 0.999909, -0.0122921, 0.00544018, 0.0132913, 0.964628, -0.263277, 0.662599, 0.61896, -0.0416883)
[node name="Spike_Shield" parent="Rig/Skeleton3D/Spike_Shield" index="0"]
mesh = SubResource("ArrayMesh_jnwr3")
[node name="1H_Sword" parent="Rig/Skeleton3D" index="5"]
transform = Transform3D(0.000249471, -0.160059, 0.987107, 0.999978, -0.00646524, -0.00130186, 0.00659087, 0.987086, 0.160054, -0.496269, 0.628966, 0.141031)
transform = Transform3D(-0.000151069, -0.164474, 0.986381, 0.999945, -0.0103211, -0.00156882, 0.010439, 0.986327, 0.164466, -0.496742, 0.622573, 0.140203)
[node name="1H_Sword" parent="Rig/Skeleton3D/1H_Sword" index="0"]
mesh = SubResource("ArrayMesh_dbq6c")
[node name="2H_Sword" parent="Rig/Skeleton3D" index="6"]
transform = Transform3D(0.000249455, -0.160059, 0.987107, 0.999978, -0.00646526, -0.00130184, 0.00659088, 0.987086, 0.160054, -0.496269, 0.628966, 0.141031)
transform = Transform3D(-0.000151084, -0.164474, 0.986381, 0.999945, -0.0103211, -0.00156881, 0.0104391, 0.986327, 0.164466, -0.496742, 0.622573, 0.140203)
[node name="Knight_Helmet" parent="Rig/Skeleton3D" index="7"]
transform = Transform3D(0.999729, 0.00031219, 0.0232667, -0.00028884, 0.999999, -0.00100694, -0.023267, 0.000999947, 0.999729, 7.60416e-05, 1.18075, 0.00127709)
transform = Transform3D(0.999726, 0.000245895, 0.0234132, -0.000223633, 0.999999, -0.000953451, -0.0234134, 0.000947953, 0.999725, 0.000119742, 1.17979, 0.00126154)
visible = false
[node name="Knight_Helmet" parent="Rig/Skeleton3D/Knight_Helmet" index="0"]
mesh = SubResource("ArrayMesh_o8mbo")
[node name="Knight_Cape" parent="Rig/Skeleton3D" index="8"]
transform = Transform3D(0.996382, 0.000227505, 0.0849915, -5.63976e-05, 0.999998, -0.00201562, -0.0849918, 0.00200354, 0.99638, 7.77179e-05, 1.18075, 0.00125144)
transform = Transform3D(0.996269, 0.000233752, 0.0863026, -6.2833e-05, 0.999998, -0.00198318, -0.0863029, 0.00197035, 0.996267, 0.000119566, 1.17979, 0.00123541)
visible = false
[node name="Knight_Cape" parent="Rig/Skeleton3D/Knight_Cape" index="0"]
@ -31636,8 +31636,8 @@ libraries = {
tree_root = SubResource("AnimationNodeStateMachine_vnar2")
anim_player = NodePath("../AnimationPlayer")
parameters/current_length = 1.06667
parameters/current_position = 0.436924
parameters/current_delta = 0.0166667
parameters/current_position = 0.604279
parameters/current_delta = 0.0169947
parameters/conditions/blocking = false
parameters/conditions/grounded = false
parameters/conditions/jumping = false
@ -31676,21 +31676,21 @@ parameters/Hit_B/current_length = 0.866667
parameters/Hit_B/current_position = 0.866667
parameters/Hit_B/current_delta = 0.0294314
parameters/IWR/current_length = 1.06667
parameters/IWR/current_position = 0.436924
parameters/IWR/current_delta = 0.0166667
parameters/IWR/current_position = 0.604279
parameters/IWR/current_delta = 0.0169947
parameters/IWR/blend_position = Vector2(0.000524879, 0.00335574)
parameters/IWR/0/current_length = 1.06667
parameters/IWR/0/current_position = 0.436924
parameters/IWR/0/current_delta = 0.0166667
parameters/IWR/0/current_position = 0.604279
parameters/IWR/0/current_delta = 0.0169947
parameters/IWR/1/current_length = 0.8
parameters/IWR/1/current_position = 0.436944
parameters/IWR/1/current_delta = 0.0166667
parameters/IWR/1/current_position = 0.0709689
parameters/IWR/1/current_delta = 0.0169947
parameters/IWR/2/current_length = 1.06667
parameters/IWR/2/current_position = 0.408754
parameters/IWR/2/current_delta = 0.0166667
parameters/IWR/3/current_length = 0.8
parameters/IWR/3/current_position = 0.436944
parameters/IWR/3/current_delta = 0.0166667
parameters/IWR/3/current_position = 0.0709689
parameters/IWR/3/current_delta = 0.0169947
parameters/IWR/4/current_length = 0.8
parameters/IWR/4/current_position = 0.61058
parameters/IWR/4/current_delta = 0.0166667

@ -153,7 +153,7 @@ transitions = ["IWR", "Death_A", SubResource("AnimationNodeStateMachineTransitio
graph_offset = Vector2(-318, -97.186)
[sub_resource type="ViewportTexture" id="ViewportTexture_1vx5n"]
viewport_path = NodePath("sprite_enemy_overlay/EnemyOverlay")
viewport_path = NodePath(".")
[node name="Skeleton_Warrior_new" instance=ExtResource("1_1tv7o")]
script = ExtResource("2_gn4pp")
@ -167,116 +167,131 @@ debug_enabled = true
[node name="Skeleton3D" parent="Rig" index="0"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
bones/0/rotation = Quaternion(-8.55849e-09, -0.000274705, -1.25818e-11, 1)
bones/1/position = Vector3(2.7111e-19, 0.391034, 7.50338e-16)
bones/1/rotation = Quaternion(5.2944e-05, 0.0425452, 3.43062e-05, 0.999095)
bones/2/position = Vector3(5.98821e-12, 0.191978, -2.81141e-12)
bones/2/rotation = Quaternion(-3.039e-05, 0.00390253, 0.000187358, 0.999992)
bones/3/position = Vector3(-1.41719e-11, 0.374988, 2.56119e-11)
bones/3/rotation = Quaternion(3.00442e-05, 8.06943e-05, 0.000550359, 1)
bones/4/position = Vector3(0.211998, 0.134122, -2.31894e-05)
bones/4/rotation = Quaternion(-0.560138, -0.063387, -0.645012, 0.515934)
bones/0/rotation = Quaternion(-8.55849e-09, -0.000274706, -1.25818e-11, 1)
bones/1/position = Vector3(6.80059e-19, 0.375023, 5.84886e-16)
bones/1/rotation = Quaternion(5.20866e-05, 0.0425451, 3.43466e-05, 0.999095)
bones/1/scale = Vector3(1, 1, 1)
bones/2/position = Vector3(5.98822e-12, 0.191978, -2.81142e-12)
bones/2/rotation = Quaternion(-2.80194e-05, 0.00399603, 0.000182573, 0.999992)
bones/2/scale = Vector3(1, 1, 1)
bones/3/position = Vector3(-1.41718e-11, 0.374988, 2.56119e-11)
bones/3/rotation = Quaternion(3.63885e-05, 8.24629e-05, 0.000559458, 1)
bones/3/scale = Vector3(1, 1, 1)
bones/4/position = Vector3(0.212005, 0.134126, -2.50257e-05)
bones/4/rotation = Quaternion(-0.554897, -0.0595122, -0.637555, 0.531104)
bones/4/scale = Vector3(0.999999, 0.999999, 1)
bones/5/position = Vector3(4.27124e-08, 0.241897, -1.72472e-07)
bones/5/rotation = Quaternion(2.06733e-07, 5.95849e-08, -0.493073, 0.869988)
bones/5/rotation = Quaternion(2.14105e-07, 7.45072e-08, -0.513945, 0.857823)
bones/5/scale = Vector3(1, 1, 1)
bones/6/position = Vector3(1.43398e-08, 0.260044, -2.47846e-08)
bones/6/rotation = Quaternion(-2.29225e-07, 3.87405e-08, 0.0266581, 0.999645)
bones/6/scale = Vector3(1, 1, 1)
bones/7/position = Vector3(-7.1782e-09, 0.0738259, -1.0869e-08)
bones/7/rotation = Quaternion(-0.321466, -0.325182, 0.140302, 0.878198)
bones/8/position = Vector3(9.24143e-10, 0.0961252, -0.0575)
bones/8/rotation = Quaternion(0.000120101, 0.000128627, -0.706295, 0.707918)
bones/9/position = Vector3(-0.212004, 0.134125, -2.23118e-05)
bones/9/rotation = Quaternion(-0.619337, 0.0829372, 0.615229, 0.480663)
bones/7/rotation = Quaternion(-0.322592, -0.335326, 0.145965, 0.873032)
bones/7/scale = Vector3(1, 1, 1)
bones/8/position = Vector3(9.24142e-10, 0.0961252, -0.0575)
bones/8/rotation = Quaternion(0.000588112, 0.000569934, -0.704635, 0.70957)
bones/8/scale = Vector3(1, 1, 1)
bones/9/position = Vector3(-0.211998, 0.134121, -2.04754e-05)
bones/9/rotation = Quaternion(-0.614055, 0.0794821, 0.609042, 0.495668)
bones/9/scale = Vector3(0.999999, 0.999999, 1)
bones/10/position = Vector3(-4.04491e-08, 0.241897, -5.30697e-08)
bones/10/rotation = Quaternion(1.94598e-07, -1.11749e-07, 0.517934, 0.855421)
bones/10/rotation = Quaternion(1.82369e-07, -9.09622e-08, 0.537933, 0.842988)
bones/10/scale = Vector3(1, 1, 1)
bones/11/position = Vector3(-3.84913e-08, 0.260044, 1.39398e-08)
bones/11/rotation = Quaternion(-2.17454e-07, -1.26836e-08, -0.0266581, 0.999645)
bones/11/scale = Vector3(1, 1, 1)
bones/12/position = Vector3(-1.3659e-08, 0.0738259, -6.36405e-08)
bones/12/rotation = Quaternion(-0.315154, 0.304136, -0.223762, 0.870695)
bones/12/rotation = Quaternion(-0.316932, 0.315304, -0.229859, 0.864466)
bones/12/scale = Vector3(1, 1, 1)
bones/13/position = Vector3(-1.97277e-08, 0.0961251, -0.0575)
bones/13/rotation = Quaternion(0.00028791, 0.000331383, 0.706674, 0.707539)
bones/14/position = Vector3(-1.24879e-11, 0.268797, 4.0423e-15)
bones/14/rotation = Quaternion(0.000529557, -0.0308949, -1.92212e-05, 0.999523)
bones/16/position = Vector3(0.170945, 0.113587, 0.00026014)
bones/16/rotation = Quaternion(0.993781, 0.0821067, 0.0730142, 0.0180635)
bones/13/rotation = Quaternion(0.00192778, 0.0022464, 0.704964, 0.709237)
bones/13/scale = Vector3(1, 1, 1)
bones/14/position = Vector3(-1.24878e-11, 0.268797, 4.0423e-15)
bones/14/rotation = Quaternion(0.000537237, -0.0309683, -1.44938e-05, 0.99952)
bones/16/position = Vector3(0.170945, 0.113587, 0.000254209)
bones/16/rotation = Quaternion(0.990826, 0.0817788, 0.0769884, 0.0751576)
bones/16/scale = Vector3(1, 1, 1)
bones/17/position = Vector3(3.92422e-08, 0.227078, -1.35528e-10)
bones/17/rotation = Quaternion(0.205855, 7.07272e-08, -1.31986e-07, 0.978583)
bones/17/rotation = Quaternion(0.355326, 7.28648e-08, -2.54071e-07, 0.934743)
bones/17/scale = Vector3(1, 1, 1)
bones/18/position = Vector3(4.37849e-08, 0.149437, -6.94943e-09)
bones/18/rotation = Quaternion(-0.523349, -0.206505, 0.0433873, 0.825578)
bones/18/rotation = Quaternion(-0.600877, -0.200574, 0.0677174, 0.7708)
bones/18/scale = Vector3(1, 1, 0.999999)
bones/19/position = Vector3(-7.03199e-09, 0.16565, 2.68891e-08)
bones/19/rotation = Quaternion(0.000102375, 0.920248, -0.391336, -2.29148e-05)
bones/19/rotation = Quaternion(-2.21969e-06, 0.920155, -0.391554, 6.92488e-07)
bones/19/scale = Vector3(1, 0.999998, 1)
bones/20/position = Vector3(-0.170945, 0.113344, -0.000260463)
bones/20/rotation = Quaternion(0.997296, -0.0291337, 0.031042, 0.0599026)
bones/20/position = Vector3(-0.170945, 0.113344, -0.000254533)
bones/20/rotation = Quaternion(0.993283, -0.0319591, 0.0297783, 0.107152)
bones/20/scale = Vector3(1, 1, 1)
bones/21/position = Vector3(-9.67559e-09, 0.227077, -1.42054e-08)
bones/21/rotation = Quaternion(0.286388, -7.12122e-08, 2.00836e-07, 0.958114)
bones/21/rotation = Quaternion(0.407518, -6.67248e-08, 2.86496e-07, 0.913197)
bones/21/scale = Vector3(1, 1, 1)
bones/22/position = Vector3(1.60742e-08, 0.149437, 6.9127e-09)
bones/22/rotation = Quaternion(-0.564174, 0.11293, -0.00839147, 0.817853)
bones/22/rotation = Quaternion(-0.629134, 0.111629, -0.0190919, 0.769002)
bones/22/scale = Vector3(1, 1, 0.999999)
bones/23/position = Vector3(6.94013e-09, 0.16565, 2.44373e-08)
bones/23/rotation = Quaternion(-8.80686e-05, 0.920215, -0.391413, 2.01278e-05)
bones/23/rotation = Quaternion(-8.8074e-05, 0.920215, -0.391413, 2.01292e-05)
bones/23/scale = Vector3(1, 0.999998, 1)
bones/24/position = Vector3(0.170945, 0.292346, 0.575848)
bones/24/position = Vector3(0.170945, 0.292326, 0.575828)
bones/24/rotation = Quaternion(0.707107, -2.25334e-07, -5.00237e-08, 0.707107)
bones/24/scale = Vector3(1, 1, 1)
bones/25/position = Vector3(0.201736, 0.0277887, 0.208106)
bones/25/rotation = Quaternion(-0.709342, -7.23661e-08, -7.28371e-08, 0.704865)
bones/25/position = Vector3(0.201736, 0.0278416, 0.207833)
bones/25/rotation = Quaternion(-0.709031, -7.23958e-08, -7.2808e-08, 0.705177)
bones/25/scale = Vector3(1, 1, 1)
bones/26/position = Vector3(-7.49557e-10, 0.362833, -6.70081e-10)
bones/26/rotation = Quaternion(-7.43883e-08, 1.36633e-08, 0.986123, -0.166014)
bones/27/position = Vector3(-4.34108e-08, 0.213436, -1.24871e-08)
bones/27/rotation = Quaternion(-1.33533e-07, 0.391084, 0.920355, 2.11999e-08)
bones/27/rotation = Quaternion(-1.33534e-07, 0.391084, 0.920355, 2.11974e-08)
bones/27/scale = Vector3(1, 1, 1)
bones/28/position = Vector3(2.49135e-08, 0.16565, 4.15134e-10)
bones/28/rotation = Quaternion(-0.391084, -1.9452e-08, -4.71066e-08, 0.920355)
bones/28/scale = Vector3(1, 1, 1)
bones/29/position = Vector3(4.40738e-08, 0.16565, -1.00732e-08)
bones/29/rotation = Quaternion(1, -1.43484e-08, 1.98699e-07, -1.03499e-07)
bones/29/scale = Vector3(1, 1, 1)
bones/30/position = Vector3(-1.01971e-08, 1.4023e-08, -1.90554e-08)
bones/30/rotation = Quaternion(4.02062e-08, -6.75533e-12, -1.77594e-08, 1)
bones/31/position = Vector3(-0.170945, 0.292346, 0.575848)
bones/30/rotation = Quaternion(4.02062e-08, -6.75534e-12, -1.77594e-08, 1)
bones/31/position = Vector3(-0.170945, 0.292326, 0.575828)
bones/31/rotation = Quaternion(0.707107, -3.427e-08, 1.4104e-07, 0.707107)
bones/31/scale = Vector3(1, 1, 1)
bones/32/position = Vector3(-0.170945, 0.0251525, 0.241033)
bones/32/rotation = Quaternion(-0.702867, -7.30801e-08, -7.21168e-08, 0.711321)
bones/32/position = Vector3(-0.170945, 0.0251747, 0.241265)
bones/32/rotation = Quaternion(-0.70316, -7.30538e-08, -7.21488e-08, 0.711032)
bones/32/scale = Vector3(1, 1, 1)
bones/33/position = Vector3(1.23156e-08, 0.362833, -3.27994e-10)
bones/33/position = Vector3(1.23156e-08, 0.362833, -3.27995e-10)
bones/33/rotation = Quaternion(-9.3501e-08, -8.30957e-09, 0.994956, 0.100307)
bones/34/position = Vector3(-2.94849e-09, 0.213436, -1.62925e-08)
bones/34/rotation = Quaternion(-1.46972e-07, 0.391084, 0.920355, 2.40365e-08)
bones/34/rotation = Quaternion(-1.46967e-07, 0.391084, 0.920355, 2.40303e-08)
bones/34/scale = Vector3(1, 1, 1)
bones/35/position = Vector3(-8.78417e-09, 0.16565, 1.69807e-08)
bones/35/rotation = Quaternion(-0.391084, -3.11633e-08, -5.80803e-08, 0.920355)
bones/35/scale = Vector3(1, 1, 1)
bones/36/position = Vector3(6.05823e-09, 0.16565, 1.15316e-08)
bones/36/rotation = Quaternion(1, -1.43787e-09, 1.9332e-07, -8.73225e-08)
bones/36/scale = Vector3(1, 1, 1)
bones/37/position = Vector3(4.5566e-09, -3.13355e-09, -5.74337e-09)
bones/37/rotation = Quaternion(-6.66488e-10, 8.29074e-12, -1.77544e-08, 1)
bones/37/rotation = Quaternion(-6.66488e-10, 8.29075e-12, -1.77544e-08, 1)
bones/37/scale = Vector3(1, 1, 1)
bones/38/position = Vector3(0.453379, 1.10355, -0.593026)
bones/38/rotation = Quaternion(-0.707107, 6.4707e-05, 6.47069e-05, 0.707107)
bones/39/position = Vector3(0.520733, 0.788021, -0.0592629)
bones/39/rotation = Quaternion(0.795616, 0.00380772, 0.605784, 0.00243903)
bones/38/rotation = Quaternion(-0.707107, 6.4707e-05, 6.4707e-05, 0.707107)
bones/39/position = Vector3(0.520733, 0.780806, -0.0592629)
bones/39/rotation = Quaternion(0.795616, 0.00380772, 0.605784, 0.00243902)
bones/39/scale = Vector3(1, 1, 1)
bones/40/position = Vector3(-0.45384, 1.10345, -0.592593)
bones/40/rotation = Quaternion(-0.707107, 6.4707e-05, 6.47069e-05, 0.707107)
bones/41/position = Vector3(-0.510811, 0.788472, 0.0633181)
bones/41/rotation = Quaternion(-0.762388, 0.00756036, 0.647063, -0.00406021)
bones/40/rotation = Quaternion(-0.707107, 6.4707e-05, 6.4707e-05, 0.707107)
bones/41/position = Vector3(-0.510811, 0.781257, 0.0633181)
bones/41/rotation = Quaternion(-0.762388, 0.00756036, 0.647063, -0.00406019)
bones/41/scale = Vector3(1, 1, 1)
[node name="Skeleton_Warrior_Helmet" parent="Rig/Skeleton3D" index="0"]
transform = Transform3D(0.999527, -0.00142959, 0.0307302, 0.00146878, 0.999998, -0.00125273, -0.0307283, 0.00129728, 0.999527, -0.000553915, 1.20124, 8.32524e-05)
transform = Transform3D(0.999525, -0.00144508, 0.0307739, 0.00148532, 0.999998, -0.0012848, -0.030772, 0.0013299, 0.999526, -0.000551789, 1.18523, 8.7412e-05)
[node name="AnimationTree" type="AnimationTree" parent="." index="4"]
tree_root = SubResource("AnimationNodeStateMachine_7v7qh")
anim_player = NodePath("../AnimationPlayer")
parameters/current_length = 1.04167
parameters/current_position = 1.025
parameters/current_delta = 0.0233063
parameters/current_position = 0.339409
parameters/current_delta = 0.0166667
parameters/conditions/grounded = false
parameters/conditions/jumping = false
parameters/Death_A/current_length = 0.791667
@ -295,12 +310,12 @@ parameters/Hit_B/current_length = 0.833333
parameters/Hit_B/current_position = 0.833333
parameters/Hit_B/current_delta = 0.0175824
parameters/IWR/current_length = 1.04167
parameters/IWR/current_position = 1.025
parameters/IWR/current_delta = 0.0233063
parameters/IWR/current_position = 0.339409
parameters/IWR/current_delta = 0.0166667
parameters/IWR/blend_position = Vector2(0.000524879, -0.0137615)
parameters/IWR/0/current_length = 1.04167
parameters/IWR/0/current_position = 1.025
parameters/IWR/0/current_delta = 0.0233063
parameters/IWR/0/current_position = 0.339409
parameters/IWR/0/current_delta = 0.0166667
parameters/IWR/1/current_length = 0.791667
parameters/IWR/1/current_position = 0.708259
parameters/IWR/1/current_delta = 0.0166667
@ -308,8 +323,8 @@ parameters/IWR/2/current_length = 1.04167
parameters/IWR/2/current_position = 1.04167
parameters/IWR/2/current_delta = 0.0
parameters/IWR/3/current_length = 0.791667
parameters/IWR/3/current_position = 0.149999
parameters/IWR/3/current_delta = 0.0233063
parameters/IWR/3/current_position = 0.506075
parameters/IWR/3/current_delta = 0.0166667
parameters/IWR/4/current_length = 0.791667
parameters/IWR/4/current_position = 0.390352
parameters/IWR/4/current_delta = 0.0166667

File diff suppressed because one or more lines are too long

@ -1,6 +1,5 @@
[gd_scene load_steps=18 format=4 uid="uid://kv62g7w3iftq"]
[gd_scene load_steps=19 format=4 uid="uid://kv62g7w3iftq"]
[ext_resource type="Script" path="res://scripts/survivor_male_b.gd" id="1_dtvkw"]
[ext_resource type="Material" uid="uid://cgwgfl3nemeyp" path="res://resources/material/survivor_male_b.tres" id="2_w5isd"]
[ext_resource type="AnimationLibrary" uid="uid://cc4y3r5xyhtu4" path="res://resources/animations/animations.tres" id="3_ctvwj"]
@ -12,7 +11,7 @@ emission_enabled = true
emission = Color(0.906332, 0.906332, 0.906332, 1)
emission_energy_multiplier = 0.0
[sub_resource type="ArrayMesh" id="ArrayMesh_wk03k"]
[sub_resource type="ArrayMesh" id="ArrayMesh_mbl2h"]
resource_name = "characterMedium"
_surfaces = [{
"aabb": AABB(-0.0180905, -0.00514236, 6.84114e-06, 0.0361858, 0.0104814, 0.0376469),
@ -32,7 +31,7 @@ _surfaces = [{
}]
blend_shape_mode = 0
[sub_resource type="Skin" id="Skin_s3c17"]
[sub_resource type="Skin" id="Skin_asg1k"]
resource_name = "Skin"
bind_count = 45
bind/0/name = &"LeftFootCtrl"
@ -171,8 +170,6 @@ bind/44/name = &"RightToes"
bind/44/bone = -1
bind/44/pose = Transform3D(-0.992803, 0.119373, 0.0095851, -0.119664, -0.992026, -0.039574, 0.00478278, -0.0404359, 0.999171, -0.00340618, -0.00128335, -0.000149813)
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_phhkt"]
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_etv2h"]
animation = &"animations/idle"
@ -201,24 +198,35 @@ advance_condition = &"grounded"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_gmeix"]
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_qain4"]
xfade_time = 0.5
advance_mode = 2
advance_condition = &"jumping"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_sltif"]
advance_mode = 2
advance_condition = &"grounded"
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_r2kvc"]
states/idle/node = SubResource("AnimationNodeAnimation_etv2h")
states/idle/position = Vector2(538, 100)
states/jump/node = SubResource("AnimationNodeAnimation_g88tu")
states/jump/position = Vector2(538, -15)
states/jump/position = Vector2(652, -15)
states/run/node = SubResource("AnimationNodeAnimation_bfmkg")
states/run/position = Vector2(523, 195)
transitions = ["Start", "idle", SubResource("AnimationNodeStateMachineTransition_un25s"), "idle", "End", SubResource("AnimationNodeStateMachineTransition_eiq6o"), "idle", "jump", SubResource("AnimationNodeStateMachineTransition_oq3f7"), "jump", "idle", SubResource("AnimationNodeStateMachineTransition_nbksx"), "idle", "run", SubResource("AnimationNodeStateMachineTransition_uytk5"), "run", "idle", SubResource("AnimationNodeStateMachineTransition_gmeix")]
graph_offset = Vector2(-226, -2)
states/run/position = Vector2(403, -15)
transitions = ["Start", "idle", SubResource("AnimationNodeStateMachineTransition_un25s"), "idle", "End", SubResource("AnimationNodeStateMachineTransition_eiq6o"), "idle", "jump", SubResource("AnimationNodeStateMachineTransition_oq3f7"), "jump", "idle", SubResource("AnimationNodeStateMachineTransition_nbksx"), "idle", "run", SubResource("AnimationNodeStateMachineTransition_uytk5"), "run", "idle", SubResource("AnimationNodeStateMachineTransition_gmeix"), "run", "jump", SubResource("AnimationNodeStateMachineTransition_qain4"), "jump", "run", SubResource("AnimationNodeStateMachineTransition_sltif")]
graph_offset = Vector2(-347, -104)
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_i865c"]
height = 2.6
[node name="Survivor_Male_B" type="CharacterBody3D"]
script = ExtResource("1_dtvkw")
[node name="Root" type="Node3D" parent="."]
transform = Transform3D(100, 0, 0, 0, -1.19209e-05, 100, 0, -100, -1.19209e-05, 0, 0, 0)
[node name="Skeleton3D" type="Skeleton3D" parent="Root"]
transform = Transform3D(0.55, 0, 0, 0, 0.55, 0, 0, 0, 0.55, 0, 0, 0)
transform = Transform3D(-0.75, 1.13247e-07, 7.81619e-15, -1.13247e-07, -0.75, -1.78814e-07, -1.91839e-14, -1.78814e-07, 0.75, 0, 0, 0)
bones/0/name = "LeftFootCtrl"
bones/0/parent = -1
bones/0/rest = Transform3D(-0.265933, -2.98023e-08, -0.963991, 0.963991, -1.19209e-07, -0.265933, -8.9407e-08, -1, 5.96046e-08, 0.00204209, 0.0014881, 0.00193205)
@ -259,7 +267,7 @@ bones/5/parent = 0
bones/5/rest = Transform3D(2.98023e-07, 1, 1.78814e-07, -2.98023e-08, 2.38419e-07, -1, -1, 2.68221e-07, 5.96046e-08, 1.47542e-10, -2.48384e-10, -3.94152e-11)
bones/5/enabled = true
bones/5/position = Vector3(1.47542e-10, -2.48384e-10, -3.94152e-11)
bones/5/rotation = Quaternion(0.5, 0.5, -0.5, 0.5)
bones/5/rotation = Quaternion(0.652904, 0.271509, -0.652903, 0.271509)
bones/5/scale = Vector3(1, 1, 1)
bones/6/name = "LeftFootRollCtrl_end"
bones/6/parent = 5
@ -301,7 +309,7 @@ bones/11/parent = 10
bones/11/rest = Transform3D(-0.978557, -0.203537, 0.0314188, 0.203608, -0.979052, -0.000917303, 0.0309471, 0.00549951, 0.999506, 0.000286729, 0.00306933, -7.68704e-06)
bones/11/enabled = true
bones/11/position = Vector3(0.000286729, 0.00306933, -7.68704e-06)
bones/11/rotation = Quaternion(0.0158265, 0.00116853, 0.994623, 0.102336)
bones/11/rotation = Quaternion(0.0465759, 0.308451, 0.945589, 0.0924702)
bones/11/scale = Vector3(0.999993, 1, 1)
bones/12/name = "RightFootIK"
bones/12/parent = 11
@ -322,7 +330,7 @@ bones/14/parent = 9
bones/14/rest = Transform3D(2.98023e-07, 1, 1.78814e-07, -2.98023e-08, 2.38419e-07, -1, -1, 2.68221e-07, 5.96046e-08, -2.50354e-12, -5.14782e-10, 3.04448e-11)
bones/14/enabled = true
bones/14/position = Vector3(-2.50354e-12, -5.14782e-10, 3.04448e-11)
bones/14/rotation = Quaternion(0.387552, 0.591442, -0.387552, 0.591442)
bones/14/rotation = Quaternion(0.630035, 0.321023, -0.630035, 0.321023)
bones/14/scale = Vector3(1, 1, 1)
bones/15/name = "RightFootRollCtrl_end"
bones/15/parent = 14
@ -364,7 +372,7 @@ bones/20/parent = 19
bones/20/rest = Transform3D(1, 2.20872e-08, -2.03599e-08, -2.19087e-08, 0.999962, 0.00873287, 2.05521e-08, -0.00873287, 0.999962, -1.96343e-13, 0.00321952, -7.45082e-11)
bones/20/enabled = true
bones/20/position = Vector3(-1.96343e-13, 0.00321952, -7.45082e-11)
bones/20/rotation = Quaternion(-0.00436648, -1.02281e-08, -1.09991e-08, 0.99999)
bones/20/rotation = Quaternion(-0.00377531, -9.90647e-09, -1.14191e-08, 0.999993)
bones/20/scale = Vector3(1, 1, 1)
bones/21/name = "Chest"
bones/21/parent = 20
@ -385,14 +393,14 @@ bones/23/parent = 22
bones/23/rest = Transform3D(1, -2.50697e-09, -5.19409e-09, 1.68398e-09, 0.98826, -0.152781, 5.51612e-09, 0.152781, 0.98826, 4.19095e-11, 0.00270864, 2.94531e-10)
bones/23/enabled = true
bones/23/position = Vector3(4.19095e-11, 0.00270864, 2.94531e-10)
bones/23/rotation = Quaternion(0.0766157, -2.68545e-09, 1.05083e-09, 0.997061)
bones/23/rotation = Quaternion(0.0771701, -1.31376e-05, -4.83667e-05, 0.997018)
bones/23/scale = Vector3(1, 1, 1)
bones/24/name = "Head"
bones/24/parent = 23
bones/24/rest = Transform3D(0.995965, 0.0110639, 0.0891059, -0.0301004, 0.976097, 0.215241, -0.0845949, -0.217053, 0.972488, -8.84756e-11, 0.00278009, 7.69505e-10)
bones/24/enabled = true
bones/24/position = Vector3(-8.84756e-11, 0.00278009, 7.69505e-10)
bones/24/rotation = Quaternion(-0.108831, 0.0437293, -0.0103631, 0.993044)
bones/24/rotation = Quaternion(-0.110559, 0.0437472, -0.0102871, 0.992853)
bones/24/scale = Vector3(1, 1, 1)
bones/25/name = "Head_end"
bones/25/parent = 24
@ -413,21 +421,21 @@ bones/27/parent = 26
bones/27/rest = Transform3D(-0.0214637, -0.19568, 0.980439, -0.772443, 0.625832, 0.107997, -0.634715, -0.755014, -0.164586, -1.49012e-10, 0.00258801, -1.93715e-09)
bones/27/enabled = true
bones/27/position = Vector3(-1.49012e-10, 0.00258801, -1.93715e-09)
bones/27/rotation = Quaternion(-0.359615, 0.67303, -0.240337, 0.599955)
bones/27/rotation = Quaternion(-0.358947, 0.672479, -0.240424, 0.600937)
bones/27/scale = Vector3(0.999996, 1, 1.00001)
bones/28/name = "LeftForeArm"
bones/28/parent = 27
bones/28/rest = Transform3D(0.979308, 0.0804198, -0.185711, -0.183058, 0.74328, -0.643448, 0.0862895, 0.66413, 0.742621, 7.91624e-11, 0.00470775, 5.82077e-11)
bones/28/enabled = true
bones/28/position = Vector3(7.91624e-11, 0.00470775, 5.82077e-11)
bones/28/rotation = Quaternion(0.351215, -0.0730593, -0.07077, 0.930754)
bones/28/rotation = Quaternion(0.351311, -0.0722974, -0.0716234, 0.930711)
bones/28/scale = Vector3(1, 1, 1)
bones/29/name = "LeftHand"
bones/29/parent = 28
bones/29/rest = Transform3D(-0.0513878, 0.0216333, 0.998444, -0.0653424, 0.99755, -0.024977, -0.996539, -0.0665242, -0.0498483, -1.67638e-10, 0.00527228, -5.58794e-11)
bones/29/enabled = true
bones/29/position = Vector3(-1.67638e-10, 0.00527228, -5.58794e-11)
bones/29/rotation = Quaternion(-0.0150854, 0.724359, -0.0315801, 0.688534)
bones/29/rotation = Quaternion(-0.0145258, 0.72429, -0.031881, 0.688605)
bones/29/scale = Vector3(1, 1, 1)
bones/30/name = "LeftHandIndex1"
bones/30/parent = 29
@ -490,21 +498,21 @@ bones/38/parent = 37
bones/38/rest = Transform3D(-0.964546, 0.185606, -0.18765, -0.01415, 0.673586, 0.738972, 0.263559, 0.715427, -0.64707, 4.09782e-10, 0.00258801, -3.72529e-10)
bones/38/enabled = true
bones/38/position = Vector3(4.09782e-10, 0.00258801, -3.72529e-10)
bones/38/rotation = Quaternion(0.0472979, 0.906256, 0.401212, -0.12447)
bones/38/rotation = Quaternion(0.047893, 0.906332, 0.400766, -0.12512)
bones/38/scale = Vector3(1.00001, 1, 0.999996)
bones/39/name = "RightForeArm"
bones/39/parent = 38
bones/39/rest = Transform3D(0.751591, -0.653857, -0.0870728, 0.659576, 0.743279, 0.111782, -0.00837009, -0.141446, 0.989911, -3.35276e-10, 0.00470775, -1.0361e-10)
bones/39/enabled = true
bones/39/position = Vector3(-3.35276e-10, 0.00470775, -1.0361e-10)
bones/39/rotation = Quaternion(-0.0678256, -0.0210801, 0.351795, 0.933379)
bones/39/rotation = Quaternion(-0.0687403, -0.0214248, 0.351774, 0.933312)
bones/39/scale = Vector3(1, 1, 1)
bones/40/name = "RightHand"
bones/40/parent = 39
bones/40/rest = Transform3D(0.973894, 0.0637677, 0.217864, -0.0684951, 0.99755, 0.0142082, -0.216425, -0.0287599, 0.975876, 1.49012e-10, 0.00527228, 1.76951e-10)
bones/40/enabled = true
bones/40/position = Vector3(1.49012e-10, 0.00527228, 1.76951e-10)
bones/40/rotation = Quaternion(-0.0108135, 0.109294, -0.0332856, 0.993393)
bones/40/rotation = Quaternion(-0.0107649, 0.110744, -0.0333014, 0.993233)
bones/40/scale = Vector3(1, 1, 1)
bones/41/name = "RightHandIndex1"
bones/41/parent = 40
@ -560,28 +568,28 @@ bones/48/parent = 19
bones/48/rest = Transform3D(0.990532, 0.137646, 0.000736739, 0.137156, -0.98643, -0.0902725, -0.0116994, 0.089514, -0.995921, 0.00201529, 0.000584635, 9.67385e-10)
bones/48/enabled = true
bones/48/position = Vector3(0.00201529, 0.000584635, 9.67385e-10)
bones/48/rotation = Quaternion(0.996598, 0.0689332, -0.00274987, 0.0451)
bones/48/rotation = Quaternion(0.996529, 0.0693048, -0.00273016, 0.0460311)
bones/48/scale = Vector3(1.00005, 1, 1)
bones/49/name = "LeftLeg"
bones/49/parent = 48
bones/49/rest = Transform3D(0.964789, -0.2188, 0.146002, 0.261003, 0.727337, -0.634713, 0.0326824, 0.650464, 0.758836, -2.02563e-10, 0.00526174, 5.22414e-11)
bones/49/enabled = true
bones/49/position = Vector3(-2.02563e-10, 0.00526174, 5.22414e-11)
bones/49/rotation = Quaternion(0.34591, 0.0305003, 0.12914, 0.928837)
bones/49/rotation = Quaternion(0.347662, 0.0304758, 0.129795, 0.928092)
bones/49/scale = Vector3(1, 0.999998, 1)
bones/50/name = "LeftFoot"
bones/50/parent = 49
bones/50/rest = Transform3D(0.899721, 0.436021, -0.020147, -0.0153375, 0.0777065, 0.996859, 0.43623, -0.896557, 0.0766018, 2.09548e-11, 0.00608811, 6.51926e-11)
bones/50/enabled = true
bones/50/position = Vector3(2.09548e-11, 0.00608811, 6.51926e-11)
bones/50/rotation = Quaternion(-0.660568, -0.159216, -0.157469, 0.716592)
bones/50/rotation = Quaternion(-0.661311, -0.15908, -0.157548, 0.715919)
bones/50/scale = Vector3(1.00002, 0.999984, 1)
bones/51/name = "LeftToes"
bones/51/parent = 50
bones/51/rest = Transform3D(-0.991613, -0.000969272, 0.129242, -0.0745208, 0.821302, -0.565605, -0.105598, -0.570492, -0.814486, -5.82077e-11, 0.00301254, 9.31323e-12)
bones/51/enabled = true
bones/51/position = Vector3(-5.82077e-11, 0.00301254, 9.31323e-12)
bones/51/rotation = Quaternion(-0.0198199, 0.952286, -0.298255, 0.0616593)
bones/51/rotation = Quaternion(0.0051941, 0.766553, -0.638908, 0.0645515)
bones/51/scale = Vector3(1, 1, 1)
bones/52/name = "LeftToes_end"
bones/52/parent = 51
@ -595,21 +603,21 @@ bones/53/parent = 19
bones/53/rest = Transform3D(0.947691, -0.0550513, -0.314368, -0.156332, -0.938818, -0.306887, -0.278236, 0.339985, -0.898327, -0.00201529, 0.000584635, 9.69761e-10)
bones/53/enabled = true
bones/53/position = Vector3(-0.00201529, 0.000584635, 9.69761e-10)
bones/53/rotation = Quaternion(0.972735, -0.0543277, -0.152305, 0.166251)
bones/53/rotation = Quaternion(0.97257, -0.0545723, -0.152285, 0.167147)
bones/53/scale = Vector3(0.999987, 1, 0.999999)
bones/54/name = "RightLeg"
bones/54/parent = 53
bones/54/rest = Transform3D(0.944194, 0.309956, -0.111442, -0.293456, 0.637956, -0.711965, -0.149582, 0.70494, 0.693314, 0, 0.00526174, 8.19564e-10)
bones/54/enabled = true
bones/54/position = Vector3(0, 0.00526174, 8.19564e-10)
bones/54/rotation = Quaternion(0.391448, 0.0105369, -0.166705, 0.904913)
bones/54/rotation = Quaternion(0.392934, 0.010528, -0.167338, 0.904152)
bones/54/scale = Vector3(0.999997, 1, 0.999999)
bones/55/name = "RightFoot"
bones/55/parent = 54
bones/55/rest = Transform3D(0.845272, -0.523061, 0.109173, -0.0169768, 0.177925, 0.983898, -0.534058, -0.833522, 0.141515, -2.42144e-10, 0.00608812, -1.86265e-10)
bones/55/enabled = true
bones/55/position = Vector3(-2.42144e-10, 0.00608812, -1.86265e-10)
bones/55/rotation = Quaternion(-0.617624, 0.218594, 0.171985, 0.735649)
bones/55/rotation = Quaternion(-0.618361, 0.218517, 0.172052, 0.735036)
bones/55/scale = Vector3(0.999995, 1, 1)
bones/56/name = "RightToes"
bones/56/parent = 55
@ -628,14 +636,10 @@ bones/57/scale = Vector3(1, 1, 1)
[node name="characterMedium" type="MeshInstance3D" parent="Root/Skeleton3D"]
transform = Transform3D(1, 0, 0, 0, 1, -3.18748e-13, 0, 3.18748e-13, 1, 0, 0, 0)
mesh = SubResource("ArrayMesh_wk03k")
skin = SubResource("Skin_s3c17")
mesh = SubResource("ArrayMesh_mbl2h")
skin = SubResource("Skin_asg1k")
surface_material_override/0 = ExtResource("2_w5isd")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CapsuleShape3D_phhkt")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"animations": ExtResource("3_ctvwj")
@ -645,9 +649,9 @@ libraries = {
deterministic = false
tree_root = SubResource("AnimationNodeStateMachine_r2kvc")
anim_player = NodePath("../AnimationPlayer")
parameters/current_length = 0.0
parameters/current_position = 0.0
parameters/current_delta = 0.0
parameters/current_length = 1.06667
parameters/current_position = 1.01344
parameters/current_delta = 0.0166667
parameters/conditions/grounded = false
parameters/conditions/jumping = false
parameters/End/current_length = 0.0
@ -657,7 +661,7 @@ parameters/Start/current_length = 0.0
parameters/Start/current_position = 0.0
parameters/Start/current_delta = 0.0
parameters/idle/current_length = 1.06667
parameters/idle/current_position = 0.529793
parameters/idle/current_position = 1.01344
parameters/idle/current_delta = 0.0166667
parameters/jump/current_length = 0.5
parameters/jump/current_position = 0.344537
@ -668,7 +672,12 @@ parameters/run/current_delta = 0.0166667
[node name="SpringArm3D" type="SpringArm3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
visible = false
spring_length = 5.0
margin = 0.1
[node name="Camera3D" type="Camera3D" parent="SpringArm3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.3, 0)
shape = SubResource("CapsuleShape3D_i865c")

@ -1,15 +1,18 @@
[gd_scene load_steps=7 format=3 uid="uid://csuk8r7oi24nd"]
[gd_scene load_steps=12 format=3 uid="uid://csuk8r7oi24nd"]
[ext_resource type="Environment" uid="uid://d31wkt76cft8k" path="res://resources/world_environment.tres" id="1_kc7fe"]
[ext_resource type="PackedScene" uid="uid://kv62g7w3iftq" path="res://scenes/survivor_male_b.tscn" id="1_mtl05"]
[ext_resource type="CameraAttributesPractical" uid="uid://cjryeyord6xdd" path="res://resources/camera_attributes.tres" id="2_him0e"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_3jbb7"]
albedo_color = Color(4.63258e-07, 0.314721, 0.0800208, 1)
[ext_resource type="PackedScene" uid="uid://2l6yoav44wsq" path="res://scenes/survivor_female_a.tscn" id="3_5x0yq"]
[ext_resource type="Material" uid="uid://dmiddiyswbqqx" path="res://resources/material/TCom_Sand_Muddy2.tres" id="3_w0uw1"]
[ext_resource type="PackedScene" uid="uid://cvsx5ruh4jy7b" path="res://scenes/zombie_a.tscn" id="5_20dtm"]
[ext_resource type="PackedScene" uid="uid://dtishjt1o2r2y" path="res://scenes/zombie_c.tscn" id="6_mkx4u"]
[ext_resource type="PackedScene" uid="uid://dtehhqrqtplan" path="res://scenes/knight.tscn" id="7_u2hik"]
[ext_resource type="PackedScene" uid="uid://670weiu5lj4u" path="res://scenes/skeleton_warrior_new.tscn" id="8_rn4yx"]
[sub_resource type="PlaneMesh" id="PlaneMesh_473ws"]
material = SubResource("StandardMaterial3D_3jbb7")
size = Vector2(20, 20)
material = ExtResource("3_w0uw1")
size = Vector2(40, 40)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_xxmje"]
data = PackedVector3Array(10, 0, 10, -10, 0, 10, 10, 0, -10, -10, 0, 10, -10, 0, -10, 10, 0, -10)
@ -36,4 +39,21 @@ mesh = SubResource("PlaneMesh_473ws")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ground/StaticBody3D"]
shape = SubResource("ConcavePolygonShape3D_xxmje")
[node name="Knight" parent="." instance=ExtResource("7_u2hik")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4, 0, 3)
[node name="Survivor_Female_A" parent="." instance=ExtResource("3_5x0yq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 2)
[node name="Survivor_Male_B" parent="." instance=ExtResource("1_mtl05")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 2)
[node name="Zombie_A" parent="." instance=ExtResource("5_20dtm")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 2)
[node name="Zombie_C" parent="." instance=ExtResource("6_mkx4u")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 0, 2)
[node name="Skeleton_Warrior_new" parent="." instance=ExtResource("8_rn4yx")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 0, 3)
script = null

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -3,10 +3,12 @@ extends CharacterBody3D
@onready var anim_tree := $AnimationTree
@onready var anim_state = $AnimationTree.get("parameters/playback")
@onready var spring_arm: SpringArm3D = $SpringArm3D
@onready var model := $Root
var jumping := false
var mouse_sensitivity := 0.006
var rotation_speed := 24.0
var lerp_val := 0.1
const SPEED = 5.0
const JUMP_VELOCITY = 4.5
@ -22,28 +24,29 @@ func _physics_process(delta: float) -> void:
# Add the gravity.
if not is_on_floor():
velocity += get_gravity() * delta
jumping = !is_on_floor()
# Handle jump.
if Input.is_action_just_pressed("jump") and is_on_floor():
velocity.y = JUMP_VELOCITY
jumping = true
anim_tree.set("parameters/conditions/jumping", jumping)
anim_tree.set("parameters/conditions/grounded", !jumping)
# Get the input direction and handle the movement/deceleration.
# As good practice, you should replace UI actions with custom gameplay actions.
var input_dir := Input.get_vector("left", "right", "forward", "back")
var direction := (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized()
var input = Input.get_vector("left", "right", "forward", "back")
var direction = Vector3(input.x, 0, input.y).rotated(Vector3.UP, spring_arm.rotation.y)
if direction:
anim_state.travel("run")
velocity.x = direction.x * SPEED
velocity.z = direction.z * SPEED
if !jumping: anim_state.travel("run")
velocity.x = lerp(velocity.x, direction.x * SPEED, lerp_val)
velocity.z = lerp(velocity.z, direction.z * SPEED, lerp_val)
else:
anim_state.travel("idle")
velocity.x = move_toward(velocity.x, 0, SPEED)
velocity.z = move_toward(velocity.z, 0, SPEED)
if velocity.length() > 1.0:
model.rotation.y = lerp_angle(model.rotation.y, spring_arm.rotation.y, rotation_speed * delta)
# Handle jump.
if Input.is_action_just_pressed("jump") and is_on_floor():
velocity.y = JUMP_VELOCITY
jumping = true
anim_tree.set("parameters/conditions/jumping", jumping)
anim_tree.set("parameters/conditions/grounded", !jumping)
move_and_slide()