[gd_scene load_steps=14 format=3 uid="uid://bvq6tbkuv2mfp"] [ext_resource type="Script" uid="uid://ejqql2660u6h" path="res://Worlds/GreenPlanet/Enemies/enemy_controller.gd" id="1_1dh2f"] [ext_resource type="PackedScene" uid="uid://canrxnpxcugc2" path="res://Scenes/corpse.tscn" id="2_1dh2f"] [ext_resource type="Script" uid="uid://bamhci3kawuyt" path="res://Scripts/health.gd" id="2_bckix"] [ext_resource type="PackedScene" uid="uid://cqtew0t8sttpm" path="res://Scenes/damage_particle.tscn" id="3_wnwjl"] [ext_resource type="Script" uid="uid://cummt2be3r1gq" path="res://Scripts/hitbox.gd" id="6_3v8fr"] [ext_resource type="Texture2D" uid="uid://b1fn60m6xfcsq" path="res://Assets/Textures/minimap_enemy.png" id="7_bkkhh"] [ext_resource type="PackedScene" uid="uid://hjq3nrnumklp" path="res://Scenes/health_bar.tscn" id="8_k2835"] [ext_resource type="Script" uid="uid://b62xnsbki8axa" path="res://Scripts/EnemyAI/pathing_controller.gd" id="9_t4oco"] [ext_resource type="PackedScene" uid="uid://dlhx6r23m5ceg" path="res://Enemies/EyeDog/eyedog.glb" id="10_h25mw"] [ext_resource type="Script" uid="uid://cojjgevmbhwal" path="res://Scripts/status_effector.gd" id="11_kpdsm"] [sub_resource type="SphereShape3D" id="SphereShape3D_cavbv"] radius = 0.42 [sub_resource type="SphereShape3D" id="SphereShape3D_h25mw"] radius = 0.151085 [sub_resource type="ViewportTexture" id="ViewportTexture_1kwxq"] viewport_path = NodePath("SubViewport") [node name="Node3D" type="CharacterBody3D" node_paths=PackedStringArray("status_manager", "movement_controller", "health", "d_n") groups=["Enemies"]] collision_layer = 4 collision_mask = 0 script = ExtResource("1_1dh2f") status_manager = NodePath("StatusEffector") movement_controller = NodePath("PathingController") health = NodePath("Health") d_n = NodePath("Node3D") corpse_scene = ExtResource("2_1dh2f") metadata/_custom_type_script = "uid://ejqql2660u6h" [node name="Health" type="Node" parent="."] script = ExtResource("2_bckix") damage_particle_scene = ExtResource("3_wnwjl") [node name="Hitbox" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.33811, 0.0832841) shape = SubResource("SphereShape3D_cavbv") script = ExtResource("6_3v8fr") metadata/_custom_type_script = "uid://cummt2be3r1gq" [node name="Hitbox2" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.601201, -0.436369) shape = SubResource("SphereShape3D_h25mw") script = ExtResource("6_3v8fr") critical_zone = true metadata/_custom_type_script = "uid://cummt2be3r1gq" [node name="HealthBar" type="Sprite3D" parent="."] transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 1.20821, 0) sorting_offset = 1.0 pixel_size = 0.02 billboard = 1 texture_filter = 0 texture = SubResource("ViewportTexture_1kwxq") [node name="MinimapIcon" type="Sprite3D" parent="."] transform = Transform3D(2, 0, 0, 0, -8.74228e-08, 2, 0, -2, -8.74228e-08, 0, 1.40824, 0) layers = 4 texture_filter = 0 texture = ExtResource("7_bkkhh") [node name="SubViewport" type="SubViewport" parent="."] transparent_bg = true size = Vector2i(200, 55) render_target_update_mode = 4 [node name="HBoxContainer" type="HBoxContainer" parent="SubViewport"] anchors_preset = 10 anchor_right = 1.0 offset_bottom = 32.0 grow_horizontal = 2 alignment = 1 [node name="HealthBar" parent="SubViewport" instance=ExtResource("8_k2835")] visible = false offset_top = 36.0 offset_bottom = 236.0 [node name="PathingController" type="Node" parent="." node_paths=PackedStringArray("character")] script = ExtResource("9_t4oco") character = NodePath("..") [node name="StatusEffector" type="Node" parent="." node_paths=PackedStringArray("sprite_container")] script = ExtResource("11_kpdsm") sprite_container = NodePath("../SubViewport/HBoxContainer") metadata/_custom_type_script = "uid://cojjgevmbhwal" [node name="Node3D" type="Node3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.39813, 0) [node name="eyedog" parent="." instance=ExtResource("10_h25mw")] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.3764, 0) [connection signal="health_changed" from="Health" to="SubViewport/HealthBar" method="on_health_changed"] [connection signal="health_depleted" from="Health" to="." method="die"] [connection signal="took_damage" from="Hitbox" to="Health" method="take_damage"] [connection signal="took_damage" from="Hitbox2" to="Health" method="take_damage"]