2023-12-17 02:02:16 +11:00
|
|
|
[gd_scene load_steps=5 format=3 uid="uid://b7nargdyg28fj"]
|
2023-11-15 15:19:40 +11:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Weapons/weapon.gd" id="1_yo2gh"]
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_5krlx"]
|
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Sprite3D:texture:region")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 0,
|
|
|
|
"values": [Rect2(0, 0, 64, 64)]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_0rgpe"]
|
|
|
|
resource_name = "shoot"
|
|
|
|
length = 0.15
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Sprite3D:texture:region")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.15),
|
|
|
|
"transitions": PackedFloat32Array(0, 0),
|
|
|
|
"update": 0,
|
|
|
|
"values": [Rect2(64, 0, 64, 64), Rect2(0, 0, 64, 64)]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_fs82p"]
|
|
|
|
_data = {
|
|
|
|
"RESET": SubResource("Animation_5krlx"),
|
|
|
|
"shoot": SubResource("Animation_0rgpe")
|
|
|
|
}
|
|
|
|
|
2023-11-30 23:37:00 +11:00
|
|
|
[node name="Weapon" type="Node3D" node_paths=PackedStringArray("animator", "audio_player", "recharge_timer")]
|
2023-11-15 15:19:40 +11:00
|
|
|
script = ExtResource("1_yo2gh")
|
|
|
|
animator = NodePath("AnimationPlayer")
|
2023-11-30 23:37:00 +11:00
|
|
|
audio_player = NodePath("AudioStreamPlayer3D")
|
2023-11-28 16:52:15 +11:00
|
|
|
recharge_timer = NodePath("Timer")
|
2023-11-15 15:19:40 +11:00
|
|
|
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="."]
|
|
|
|
layers = 2
|
|
|
|
billboard = 1
|
|
|
|
texture_filter = 0
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_fs82p")
|
|
|
|
}
|
2023-11-28 16:52:15 +11:00
|
|
|
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
|
|
wait_time = 3.0
|
|
|
|
one_shot = true
|
|
|
|
|
2023-11-30 23:37:00 +11:00
|
|
|
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
|
2023-12-17 02:02:16 +11:00
|
|
|
bus = &"SFX"
|
2023-11-30 23:37:00 +11:00
|
|
|
|
2023-11-28 16:52:15 +11:00
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|