newlon/scenes/entities/Zombies/door_zombie.tscn
2025-07-19 20:13:34 +05:00

186 lines
7.8 KiB
Text

[gd_scene load_steps=19 format=3 uid="uid://p5jhgg2r7e07"]
[ext_resource type="PackedScene" uid="uid://co11v3w8hbwgf" path="res://scenes/entities/Zombies/zombie.tscn" id="1_k7yv2"]
[ext_resource type="Shader" uid="uid://d0eo5uuj222c4" path="res://assets/shaders/CG_color_blender.gdshader" id="2_g7fge"]
[ext_resource type="Script" uid="uid://dildme6epx8l4" path="res://scripts/entities/zombies/RuntimeZombieData.cs" id="2_uhol2"]
[ext_resource type="Script" uid="uid://c3cfnrmnnuqms" path="res://addons/floatmodifiers/FloatModifiers.cs" id="3_uvlkc"]
[ext_resource type="Texture2D" uid="uid://b18blso5pbc6a" path="res://assets/sprites/zombies/armor.png" id="4_ed67f"]
[ext_resource type="Script" uid="uid://dt5uj25u0g6y3" path="res://scripts/particles/FallParticle.cs" id="4_woxi6"]
[ext_resource type="Script" uid="uid://fd4im1fmwc5n" path="res://scripts/entities/Armor.cs" id="5_ed67f"]
[ext_resource type="Script" uid="uid://bbw848msxb4re" path="res://scripts/entities/DegradingSprite.cs" id="6_woxi6"]
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="7_tj3uj"]
[ext_resource type="Script" uid="uid://d3l8e8ko5r5i3" path="res://scripts/entities/ArmorHPObserver.cs" id="7_uhol2"]
[ext_resource type="AudioStream" uid="uid://bu1egfsyplpx4" path="res://assets/audio/sfx/metalhit_generic.tres" id="8_uhol2"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ed67f"]
size = Vector2(20, 48)
[sub_resource type="AtlasTexture" id="AtlasTexture_woxi6"]
atlas = ExtResource("4_ed67f")
region = Rect2(0, 71, 48, 88)
[sub_resource type="AtlasTexture" id="AtlasTexture_yhtii"]
atlas = ExtResource("4_ed67f")
region = Rect2(48, 71, 48, 88)
[sub_resource type="AtlasTexture" id="AtlasTexture_tj3uj"]
atlas = ExtResource("4_ed67f")
region = Rect2(96, 71, 47, 88)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_p0ieu"]
resource_local_to_scene = true
shader = ExtResource("2_g7fge")
shader_parameter/blend_color = Color(0.73, 0.73, 0.73, 1)
shader_parameter/amount = 0.0
[sub_resource type="Resource" id="Resource_ed67f"]
resource_local_to_scene = true
script = ExtResource("3_uvlkc")
flat_value = 5.0
percentage_value = 0.0
mult_value = 1.0
[sub_resource type="Resource" id="Resource_woxi6"]
resource_local_to_scene = true
script = ExtResource("3_uvlkc")
flat_value = 0.2
percentage_value = 0.0
mult_value = 1.0
[node name="DoorZombie" instance=ExtResource("1_k7yv2")]
[node name="Shield" type="Node2D" parent="." index="0" node_paths=PackedStringArray("_armor")]
position = Vector2(-29, 0)
script = ExtResource("2_uhol2")
_armor = NodePath("MainHP")
metadata/_custom_type_script = "uid://3tw88wj1nrj1"
[node name="Hitbox" type="Area2D" parent="Shield" index="0"]
collision_layer = 8
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shield/Hitbox" index="0"]
position = Vector2(0, -25)
shape = SubResource("RectangleShape2D_ed67f")
[node name="MainHP" type="Node" parent="Shield" index="1"]
script = ExtResource("5_ed67f")
MaxHP = 375.0
metadata/_custom_type_script = "uid://fd4im1fmwc5n"
[node name="Particle" type="RigidBody2D" parent="Shield" index="2" node_paths=PackedStringArray("data")]
use_parent_material = true
position = Vector2(0, -43)
collision_layer = 128
collision_mask = 64
freeze = true
script = ExtResource("4_woxi6")
data = NodePath("..")
minTorque = 100.0
maxTorque = -100.0
[node name="Sprite2D" type="Sprite2D" parent="Shield/Particle" index="0" node_paths=PackedStringArray("armor")]
z_index = 1
use_parent_material = true
texture = SubResource("AtlasTexture_woxi6")
script = ExtResource("6_woxi6")
armor = NodePath("../../MainHP")
degradationStages = Array[Texture2D]([SubResource("AtlasTexture_woxi6"), SubResource("AtlasTexture_yhtii"), SubResource("AtlasTexture_tj3uj")])
thresholdPercentage = Array[float]([1.0, 0.667, 0.333])
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shield/Particle" index="1"]
position = Vector2(0, 18)
shape = SubResource("RectangleShape2D_ed67f")
[node name="Observer" type="Node" parent="Shield/Particle" index="2" node_paths=PackedStringArray("_observedArmor")]
script = ExtResource("7_uhol2")
_threshold = 0.0
_observedArmor = NodePath("../../MainHP")
[node name="ChannelPlayer" type="Node" parent="Shield" index="3"]
script = ExtResource("7_tj3uj")
audioStream = ExtResource("8_uhol2")
channel = "metalhit"
metadata/_custom_type_script = "uid://c36bj8u7jghc7"
[node name="CanvasGroup" parent="." index="1"]
material = SubResource("ShaderMaterial_p0ieu")
[node name="RightUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="1"]
scale = Vector2(0.99983, 0.99983)
[node name="RightLowerLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg" index="1"]
scale = Vector2(0.999832, 0.999832)
[node name="RightFoot" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/RightUpperLeg/RightLowerLeg" index="0"]
scale = Vector2(0.999831, 0.999831)
[node name="LeftUpperLeg" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt" index="2"]
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.163815
skew = -0.000518203
[node name="Head" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="3"]
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)
[node name="Left_Eye" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="1"]
position = Vector2(-4, -9)
[node name="Jaw" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/Head/HeadParticle/Head" index="2"]
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.99983, 0.99983)
[node name="LeftUpperArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body" index="4"]
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.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.0679757
scale = Vector2(0.999658, 0.999658)
[node name="LeftLowerArm" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm" index="2"]
scale = Vector2(0.999828, 0.999828)
[node name="LeftHand" parent="CanvasGroup/basic_zombie_walk/Zombie/Butt/Body/LeftUpperArm/LeftLowerArm" index="0"]
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 = 1.31004
[connection signal="OnDamaged" from="Shield" to="Shield/ChannelPlayer" method="Play"]
[connection signal="ThresholdReached" from="Shield/Particle/Observer" to="Shield/Particle" method="FallOff"]