Zombie now eat when can
This commit is contained in:
parent
f351e53a03
commit
0592751a25
7 changed files with 76 additions and 81 deletions
|
|
@ -53,7 +53,6 @@ mult_value = 1.0
|
|||
position = Vector2(-29, 0)
|
||||
script = ExtResource("2_uhol2")
|
||||
_armor = NodePath("MainHP")
|
||||
completeInvulnerability = true
|
||||
metadata/_custom_type_script = "uid://3tw88wj1nrj1"
|
||||
|
||||
[node name="Hitbox" type="Area2D" parent="Shield" index="0"]
|
||||
|
|
@ -108,82 +107,80 @@ metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
|||
material = SubResource("ShaderMaterial_p0ieu")
|
||||
|
||||
[node name="RightUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="1"]
|
||||
scale = Vector2(0.999818, 0.999818)
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="RightLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg" index="1"]
|
||||
scale = Vector2(0.999838, 0.999838)
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
|
||||
[node name="RightFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg/RightLowerLeg" index="0"]
|
||||
scale = Vector2(0.999833, 0.999833)
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
|
||||
[node name="LeftUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="2"]
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
|
||||
[node name="LeftLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="1"]
|
||||
scale = Vector2(0.999821, 0.999821)
|
||||
|
||||
[node name="LeftFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg" index="1"]
|
||||
scale = Vector2(0.999822, 0.999822)
|
||||
|
||||
[node name="Body" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="3"]
|
||||
scale = Vector2(0.999818, 0.999818)
|
||||
|
||||
[node name="RightUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="0"]
|
||||
scale = Vector2(0.999823, 0.999823)
|
||||
|
||||
[node name="RightLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="1"]
|
||||
scale = Vector2(0.999823, 0.999823)
|
||||
|
||||
[node name="RightHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm" index="0"]
|
||||
scale = Vector2(0.999834, 0.999834)
|
||||
|
||||
[node name="LeftLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg" index="1"]
|
||||
scale = Vector2(0.999833, 0.999833)
|
||||
|
||||
[node name="LeftFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg" index="1"]
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="Body" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="3"]
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
|
||||
[node name="RightUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="0"]
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="RightLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm" index="1"]
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="RightHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm" index="0"]
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="Tie" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="2"]
|
||||
rotation = -0.090966
|
||||
skew = -0.000511765
|
||||
rotation = 0.163815
|
||||
skew = -0.000518203
|
||||
|
||||
[node name="Head" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="3"]
|
||||
scale = Vector2(0.99984, 0.99984)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
|
||||
[node name="Right_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="0"]
|
||||
position = Vector2(-16, -8)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Left_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="1"]
|
||||
position = Vector2(-4, -9)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="2"]
|
||||
position = Vector2(-2.88703, 2.72734)
|
||||
rotation = -0.0635403
|
||||
scale = Vector2(0.99984, 0.99984)
|
||||
position = Vector2(-3.00201, 2.99659)
|
||||
rotation = 0.0158977
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head" index="1"]
|
||||
scale = Vector2(0.99984, 0.99984)
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
|
||||
[node name="LeftUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="4"]
|
||||
scale = Vector2(0.999834, 0.999834)
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
|
||||
[node name="Left_Lower_Arm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile" index="0"]
|
||||
rotation = -0.096416
|
||||
scale = Vector2(0.99999, 0.99999)
|
||||
rotation = 0.154022
|
||||
scale = Vector2(0.999998, 0.999998)
|
||||
|
||||
[node name="Left_Hand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile/Left_Lower_Arm" index="0"]
|
||||
position = Vector2(-0.99983, 12.9978)
|
||||
rotation = -0.0794755
|
||||
scale = Vector2(0.999646, 0.999646)
|
||||
rotation = -0.0679757
|
||||
scale = Vector2(0.999658, 0.999658)
|
||||
|
||||
[node name="LeftLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm" index="2"]
|
||||
scale = Vector2(0.99982, 0.99982)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="LeftHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/LeftLowerArm" index="0"]
|
||||
scale = Vector2(0.999816, 0.999816)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
|
||||
[node name="Eatbox" parent="." index="3"]
|
||||
_damage = SubResource("Resource_ed67f")
|
||||
|
||||
[node name="Mover" parent="." index="5"]
|
||||
_speed = SubResource("Resource_woxi6")
|
||||
_speedControlMult = 0.299272
|
||||
_speedControlMult = 1.31004
|
||||
|
||||
[connection signal="OnDamaged" from="Shield" to="Shield/ChannelPlayer" method="Play"]
|
||||
[connection signal="ThresholdReached" from="Shield/Particle/Observer" to="Shield/Particle" method="FallOff"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=62 format=3 uid="uid://co11v3w8hbwgf"]
|
||||
[gd_scene load_steps=61 format=3 uid="uid://co11v3w8hbwgf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dildme6epx8l4" path="res://scripts/zombies/RuntimeZombieData.cs" id="1_qq3f1"]
|
||||
[ext_resource type="AudioStream" uid="uid://dt13iugnnx4op" path="res://assets/audio/sfx/yuck_generic.tres" id="2_hh4qh"]
|
||||
|
|
@ -16,7 +16,6 @@
|
|||
[ext_resource type="AnimationLibrary" uid="uid://ceb3khu7rwgy8" path="res://resources/animations/zombies/basic.res" id="9_y6afe"]
|
||||
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="10_ruqsf"]
|
||||
[ext_resource type="Script" uid="uid://dwlwi42smgxkb" path="res://scripts/TimeScalableAnimationTree.cs" id="11_ccrjo"]
|
||||
[ext_resource type="AudioStream" uid="uid://dyid55nhflwyn" path="res://assets/audio/sfx/chomp_generic.tres" id="11_vjrlo"]
|
||||
[ext_resource type="AudioStream" uid="uid://bg76miyscfvhu" path="res://assets/audio/sfx/groan.tres" id="12_ad42i"]
|
||||
[ext_resource type="Script" uid="uid://cnn0ymuhypdff" path="res://scripts/audio/ChannelPlaylist.cs" id="12_he8da"]
|
||||
[ext_resource type="AudioStream" uid="uid://w0qfwds4o3ti" path="res://assets/audio/sfx/hit_generic.tres" id="12_vjrlo"]
|
||||
|
|
@ -790,8 +789,6 @@ metadata/_custom_type_script = "uid://c1x4n4nqyq72f"
|
|||
[node name="Zombie" type="Node2D" node_paths=PackedStringArray("_player", "_tree")]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_qq3f1")
|
||||
garlicSound = ExtResource("2_hh4qh")
|
||||
freezeSound = ExtResource("3_ltj46")
|
||||
MaxHP = 70.0
|
||||
_player = NodePath("CanvasGroup/basic_zombie_walk/AnimationPlayer")
|
||||
_tree = NodePath("AnimationTree")
|
||||
|
|
@ -824,7 +821,7 @@ metadata/_edit_lock_ = true
|
|||
[node name="RightUpperLeg" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt"]
|
||||
use_parent_material = true
|
||||
position = Vector2(-6, 3)
|
||||
scale = Vector2(0.999836, 0.999836)
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
rest = Transform2D(1, 0, 0, 1, -6, 3)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -836,13 +833,13 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="RightLowerLeg" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg"]
|
||||
position = Vector2(-2, 12)
|
||||
scale = Vector2(0.999834, 0.999834)
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
rest = Transform2D(1, 0, 0, 1, -2, 12)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
[node name="RightFoot" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg/RightLowerLeg"]
|
||||
position = Vector2(-2, 14)
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
scale = Vector2(0.999834, 0.999834)
|
||||
rest = Transform2D(1, 0, 0, 1, -2, 14)
|
||||
auto_calculate_length_and_angle = false
|
||||
length = 12.0
|
||||
|
|
@ -865,7 +862,7 @@ metadata/_edit_lock_ = true
|
|||
[node name="LeftUpperLeg" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt"]
|
||||
use_parent_material = true
|
||||
position = Vector2(6, 4)
|
||||
scale = Vector2(0.999833, 0.999833)
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
rest = Transform2D(1, 0, 0, 1, 6, 4)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -877,7 +874,7 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="LeftLowerLeg" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg"]
|
||||
position = Vector2(-1, 13)
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
scale = Vector2(0.999833, 0.999833)
|
||||
rest = Transform2D(1, 0, 0, 1, -1, 13)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -889,7 +886,7 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="LeftFoot" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/LeftUpperLeg/LeftLowerLeg"]
|
||||
position = Vector2(6, 10)
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
scale = Vector2(0.999831, 0.999831)
|
||||
rest = Transform2D(1, 0, 0, 1, 6, 10)
|
||||
auto_calculate_length_and_angle = false
|
||||
length = 12.0
|
||||
|
|
@ -905,7 +902,7 @@ metadata/_edit_lock_ = true
|
|||
[node name="Body" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt"]
|
||||
use_parent_material = true
|
||||
position = Vector2(1, -2)
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
scale = Vector2(0.999833, 0.999833)
|
||||
rest = Transform2D(1, 0, 0, 1, 1, -2)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -913,7 +910,7 @@ editor_settings/show_bone_gizmo = false
|
|||
z_index = -1
|
||||
use_parent_material = true
|
||||
position = Vector2(-14, -23)
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
rest = Transform2D(1, 0, 0, 1, -14, -23)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -925,13 +922,13 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="RightLowerArm" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm"]
|
||||
position = Vector2(-2, 15)
|
||||
scale = Vector2(0.999827, 0.999827)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
rest = Transform2D(1, 0, 0, 1, -2, 15)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
[node name="RightHand" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/RightUpperArm/RightLowerArm"]
|
||||
position = Vector2(-1, 13)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
rest = Transform2D(1, 0, 0, 1, -1, 13)
|
||||
auto_calculate_length_and_angle = false
|
||||
length = 8.0
|
||||
|
|
@ -960,8 +957,8 @@ metadata/_edit_lock_ = true
|
|||
[node name="Tie" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body"]
|
||||
visible = false
|
||||
position = Vector2(-9, -21)
|
||||
rotation = -0.00889184
|
||||
skew = -0.000420451
|
||||
rotation = 0.137587
|
||||
skew = -0.000422955
|
||||
rest = Transform2D(1, 0, 0, 1, -9, -21)
|
||||
auto_calculate_length_and_angle = false
|
||||
length = 24.0
|
||||
|
|
@ -976,7 +973,7 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="Head" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body"]
|
||||
position = Vector2(-10, -25)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
rest = Transform2D(1, 0, 0, 1, -10, -25)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -999,7 +996,6 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="Right_Eye" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head"]
|
||||
position = Vector2(-16, -8)
|
||||
scale = Vector2(1, 1)
|
||||
texture = SubResource("AtlasTexture_vcc72")
|
||||
centered = false
|
||||
offset = Vector2(-2, -2)
|
||||
|
|
@ -1007,16 +1003,15 @@ metadata/_edit_lock_ = true
|
|||
|
||||
[node name="Left_Eye" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head"]
|
||||
position = Vector2(-4, -9)
|
||||
scale = Vector2(1, 1)
|
||||
texture = SubResource("AtlasTexture_kto0i")
|
||||
centered = false
|
||||
offset = Vector2(-2, -2)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Jaw" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head"]
|
||||
position = Vector2(-2.71683, 2.31534)
|
||||
rotation = 0.0263511
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
position = Vector2(-3.00169, 2.99714)
|
||||
rotation = 0.0133523
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
texture = SubResource("AtlasTexture_x5uj2")
|
||||
centered = false
|
||||
offset = Vector2(-12, -2)
|
||||
|
|
@ -1033,7 +1028,7 @@ _observedEntity = NodePath("../../../../../../../..")
|
|||
|
||||
[node name="Jaw" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head"]
|
||||
position = Vector2(-3, 3)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999828, 0.999828)
|
||||
rest = Transform2D(1, 0, 0, 1, -3, 3)
|
||||
auto_calculate_length_and_angle = false
|
||||
length = 11.0
|
||||
|
|
@ -1067,7 +1062,7 @@ remote_path = NodePath("../../HeadParticle/Head/Left_Eye")
|
|||
|
||||
[node name="LeftUpperArm" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body"]
|
||||
position = Vector2(-1, -20)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999832, 0.999832)
|
||||
rest = Transform2D(1, 0, 0, 1, -1, -20)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
|
|
@ -1089,8 +1084,8 @@ minTorque = -45.0
|
|||
maxTorque = 45.0
|
||||
|
||||
[node name="Left_Lower_Arm" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile"]
|
||||
rotation = 0.113898
|
||||
scale = Vector2(0.999999, 0.999999)
|
||||
rotation = 0.129362
|
||||
scale = Vector2(0.999996, 0.999996)
|
||||
texture = SubResource("AtlasTexture_auqeq")
|
||||
centered = false
|
||||
offset = Vector2(-5, 0)
|
||||
|
|
@ -1099,8 +1094,8 @@ metadata/_edit_lock_ = true
|
|||
[node name="Left_Hand" type="Sprite2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/HandProjectile/Left_Lower_Arm"]
|
||||
show_behind_parent = true
|
||||
position = Vector2(-0.99983, 12.9978)
|
||||
rotation = -0.112673
|
||||
scale = Vector2(0.99966, 0.99966)
|
||||
rotation = -0.0570923
|
||||
scale = Vector2(0.999654, 0.999654)
|
||||
texture = SubResource("AtlasTexture_vlvtp")
|
||||
centered = false
|
||||
offset = Vector2(-4, -1)
|
||||
|
|
@ -1116,13 +1111,13 @@ _observedEntity = NodePath("../../../../../../../..")
|
|||
|
||||
[node name="LeftLowerArm" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm"]
|
||||
position = Vector2(-2, 14)
|
||||
scale = Vector2(0.999829, 0.999829)
|
||||
scale = Vector2(0.999826, 0.999826)
|
||||
rest = Transform2D(1, 0, 0, 1, -2, 14)
|
||||
editor_settings/show_bone_gizmo = false
|
||||
|
||||
[node name="LeftHand" type="Bone2D" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/LeftLowerArm"]
|
||||
position = Vector2(-1, 13)
|
||||
scale = Vector2(0.99983, 0.99983)
|
||||
scale = Vector2(0.999824, 0.999824)
|
||||
rest = Transform2D(1, 0, 0, 1, -1, 13)
|
||||
auto_calculate_length_and_angle = false
|
||||
length = 6.0
|
||||
|
|
@ -1172,13 +1167,7 @@ entity = NodePath("..")
|
|||
[node name="Mover" type="Node" parent="."]
|
||||
script = ExtResource("4_u5syx")
|
||||
_speed = SubResource("Resource_ckb7n")
|
||||
_speedControlMult = 2.42123
|
||||
|
||||
[node name="ChompPlayer" type="Node" parent="."]
|
||||
script = ExtResource("10_ruqsf")
|
||||
audioStream = ExtResource("11_vjrlo")
|
||||
channel = "chomp"
|
||||
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
|
||||
_speedControlMult = 0.954599
|
||||
|
||||
[node name="HitPlayer" type="Node" parent="."]
|
||||
script = ExtResource("12_he8da")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue