[gd_scene load_steps=14 format=3 uid="uid://cah3scx7my3bo"] [ext_resource type="PackedScene" uid="uid://5t571rk10fot" path="res://enemies/roomba/roomba.gltf" id="1_0byba"] [ext_resource type="Script" path="res://enemies/roomba/roomba.gd" id="1_ywmos"] [ext_resource type="PackedScene" uid="uid://cilj11mx2ahb1" path="res://enemies/enemy_hit_box.tscn" id="2_kryr4"] [ext_resource type="PackedScene" uid="uid://d2p86lb72dp61" path="res://components/healthcomponent.tscn" id="3_lmjf6"] [ext_resource type="PackedScene" uid="uid://5q0aw58r81vp" path="res://effects/explosion.tscn" id="5_qdl43"] [ext_resource type="AudioStream" uid="uid://de4uedmk5edgf" path="res://enemies/roomba/461697__leonelmail__body-falls-into-debris.mp3" id="6_q81qv"] [ext_resource type="PackedScene" uid="uid://mlq22lwd7tip" path="res://enemies/player_detector.tscn" id="7_cyxum"] [ext_resource type="PackedScene" uid="uid://b7mq56myq16y6" path="res://enemies/EnemyWeaponSlot.tscn" id="8_7n6uh"] [ext_resource type="Resource" uid="uid://e6kduk7gil5d" path="res://enemies/roomba/roomba_weapon.tres" id="9_df07r"] [sub_resource type="CylinderShape3D" id="CylinderShape3D_ryfyn"] height = 0.327 [sub_resource type="CylinderShape3D" id="CylinderShape3D_crthm"] height = 2.052 [sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_0wgue"] random_pitch = 1.1 streams_count = 1 stream_0/stream = ExtResource("6_q81qv") [sub_resource type="CylinderShape3D" id="CylinderShape3D_7htvr"] height = 16.61 radius = 4.445 [node name="Roomba" type="CharacterBody3D"] collision_layer = 4 collision_mask = 3 script = ExtResource("1_ywmos") [node name="blockbench_export" parent="." instance=ExtResource("1_0byba")] [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0) shape = SubResource("CylinderShape3D_ryfyn") [node name="EnemyHitBox" parent="." node_paths=PackedStringArray("health_component") instance=ExtResource("2_kryr4")] health_component = NodePath("../Healthcomponent") [node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyHitBox"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0) shape = SubResource("CylinderShape3D_crthm") [node name="Healthcomponent" parent="." instance=ExtResource("3_lmjf6")] max_health = 50.0 [node name="CollisionShape3D" type="CollisionShape3D" parent="Healthcomponent"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0) shape = SubResource("CylinderShape3D_ryfyn") disabled = true [node name="Explosion" parent="." instance=ExtResource("5_qdl43")] [node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."] stream = SubResource("AudioStreamRandomizer_0wgue") bus = &"SFX" [node name="PlayerDetector" parent="." instance=ExtResource("7_cyxum")] [node name="CollisionShape3D2" type="CollisionShape3D" parent="PlayerDetector"] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, -7.95) shape = SubResource("CylinderShape3D_7htvr") [node name="EnemyWeaponSlot" parent="." instance=ExtResource("8_7n6uh")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -0.8) weapon = ExtResource("9_df07r") [connection signal="start_dying" from="Healthcomponent" to="." method="_on_healthcomponent_start_dying"] [connection signal="start_dying" from="Healthcomponent" to="Explosion" method="play"] [connection signal="new_target" from="PlayerDetector" to="EnemyWeaponSlot" method="set_target"]