generated from krampus/template-godot4
80 lines
2.3 KiB
Plaintext
80 lines
2.3 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://bttust5ohud8e"]
|
|
|
|
[ext_resource type="Script" uid="uid://1oup50bp0pwd" path="res://src/world/mechanics/relay/gunk_relay.gd" id="1_rdv5j"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gk1l0"]
|
|
resource_local_to_scene = true
|
|
emission_enabled = true
|
|
emission = Color(1, 0, 0, 1)
|
|
emission_energy_multiplier = 0.0
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_hsruj"]
|
|
resource_local_to_scene = true
|
|
material = SubResource("StandardMaterial3D_gk1l0")
|
|
radius = 0.1
|
|
height = 0.2
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_gk1l0"]
|
|
radius = 0.1
|
|
|
|
[sub_resource type="Animation" id="Animation_ipm58"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("MeshInstance3D:mesh:material:emission_energy_multiplier")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_rdv5j"]
|
|
resource_name = "trigger"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("MeshInstance3D:mesh:material:emission_energy_multiplier")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.166667, 1),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [0.0, 2.0, 0.0]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ipm58"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_ipm58"),
|
|
&"trigger": SubResource("Animation_rdv5j")
|
|
}
|
|
|
|
[node name="GunkRelay" type="StaticBody3D"]
|
|
collision_layer = 5
|
|
script = ExtResource("1_rdv5j")
|
|
durability = 0.8
|
|
value = 800.0
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
mesh = SubResource("SphereMesh_hsruj")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("SphereShape3D_gk1l0")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
unique_name_in_owner = true
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_ipm58")
|
|
}
|
|
|
|
[node name="RebroadcastDelay" type="Timer" parent="."]
|
|
unique_name_in_owner = true
|
|
wait_time = 0.2
|
|
one_shot = true
|
|
|
|
[connection signal="timeout" from="RebroadcastDelay" to="." method="_on_rebroadcast_delay_timeout"]
|