2025-03-13 13:34:35 -06:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://dgeg3kkogm71m"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://djb5tabjcvwkt" path="res://src/world/mechanics/alarm/gunk_alarm.gd" id="1_piaxx"]
|
|
|
|
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_piaxx"]
|
|
|
|
resource_local_to_scene = true
|
|
|
|
emission_enabled = true
|
|
|
|
emission = Color(1, 0, 0, 1)
|
|
|
|
emission_energy_multiplier = 0.0
|
|
|
|
|
|
|
|
[sub_resource type="CylinderMesh" id="CylinderMesh_1uge1"]
|
|
|
|
resource_local_to_scene = true
|
|
|
|
material = SubResource("StandardMaterial3D_piaxx")
|
|
|
|
top_radius = 0.3
|
|
|
|
bottom_radius = 0.3
|
|
|
|
height = 0.3
|
|
|
|
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_b4qsp"]
|
|
|
|
height = 0.3
|
|
|
|
radius = 0.3
|
|
|
|
|
2025-03-13 13:57:50 -06:00
|
|
|
[sub_resource type="Animation" id="Animation_b6er8"]
|
|
|
|
length = 0.001
|
2025-03-13 13:34:35 -06:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("MeshInstance3D:mesh:material:emission_energy_multiplier")
|
2025-03-13 13:57:50 -06:00
|
|
|
tracks/0/interp = 1
|
2025-03-13 13:34:35 -06:00
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
2025-03-13 13:57:50 -06:00
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
2025-03-13 13:34:35 -06:00
|
|
|
"update": 0,
|
2025-03-13 13:57:50 -06:00
|
|
|
"values": [0.0]
|
2025-03-13 13:34:35 -06:00
|
|
|
}
|
|
|
|
|
2025-03-13 13:57:50 -06:00
|
|
|
[sub_resource type="Animation" id="Animation_piaxx"]
|
|
|
|
resource_name = "trigger"
|
|
|
|
length = 4.0
|
|
|
|
step = 0.1
|
2025-03-13 13:34:35 -06:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("MeshInstance3D:mesh:material:emission_energy_multiplier")
|
2025-03-13 13:57:50 -06:00
|
|
|
tracks/0/interp = 2
|
2025-03-13 13:34:35 -06:00
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
2025-03-13 13:57:50 -06:00
|
|
|
"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1),
|
2025-03-13 13:34:35 -06:00
|
|
|
"update": 0,
|
2025-03-13 13:57:50 -06:00
|
|
|
"values": [0.0, 4.0, 0.0, 4.0, 0.0, 4.0, 0.0, 4.0, 0.0]
|
2025-03-13 13:34:35 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_b6er8"]
|
|
|
|
_data = {
|
|
|
|
&"RESET": SubResource("Animation_b6er8"),
|
|
|
|
&"trigger": SubResource("Animation_piaxx")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="GunkAlarm" type="StaticBody3D"]
|
|
|
|
collision_layer = 5
|
|
|
|
collision_mask = 0
|
|
|
|
script = ExtResource("1_piaxx")
|
|
|
|
durability = 3.0
|
|
|
|
value = 10000.0
|
|
|
|
metadata/_custom_type_script = "uid://bypgxi0gy56yk"
|
|
|
|
|
|
|
|
[node name="Label3D" type="Label3D" parent="."]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.2, 0)
|
|
|
|
text = "ALARM"
|
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
mesh = SubResource("CylinderMesh_1uge1")
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
|
|
shape = SubResource("CylinderShape3D_b4qsp")
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
libraries = {
|
|
|
|
&"": SubResource("AnimationLibrary_b6er8")
|
|
|
|
}
|
|
|
|
|
2025-03-14 16:46:25 -06:00
|
|
|
[node name="PulseListenerTimer" type="Timer" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
one_shot = true
|
|
|
|
|
2025-03-13 13:34:35 -06:00
|
|
|
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_finished"]
|
2025-03-14 16:46:25 -06:00
|
|
|
[connection signal="timeout" from="PulseListenerTimer" to="." method="trigger"]
|