2025-04-08 17:59:20 +02:00
|
|
|
[gd_scene load_steps=3 format=3 uid="uid://crry0rgk7a8sm"]
|
2024-11-15 16:32:26 +01:00
|
|
|
|
2025-02-24 11:37:45 +01:00
|
|
|
[ext_resource type="Script" uid="uid://2ji3nxqbq577" path="res://Scripts/Weapon.cs" id="1_f5iec"]
|
2025-04-08 17:59:20 +02:00
|
|
|
[ext_resource type="Script" uid="uid://dw7nwfbws3op4" path="res://Scripts/Weapons/WeaponSoundModule.cs" id="2_uwnyl"]
|
2024-11-15 16:32:26 +01:00
|
|
|
|
2025-01-28 10:06:10 +01:00
|
|
|
[node name="Weapon" type="Sprite2D" node_paths=PackedStringArray("Muzzle")]
|
2024-11-15 16:32:26 +01:00
|
|
|
script = ExtResource("1_f5iec")
|
2025-01-28 10:06:10 +01:00
|
|
|
Muzzle = NodePath("Muzzle")
|
2024-11-15 16:32:26 +01:00
|
|
|
|
|
|
|
|
[node name="Muzzle" type="Marker2D" parent="."]
|
|
|
|
|
|
|
|
|
|
[node name="ShootTimer" type="Timer" parent="."]
|
|
|
|
|
one_shot = true
|
2025-04-08 17:59:20 +02:00
|
|
|
|
|
|
|
|
[node name="SoundModule" type="Node2D" parent="." node_paths=PackedStringArray("Weapon", "ShootSound", "ReloadSound", "EmptySound")]
|
|
|
|
|
script = ExtResource("2_uwnyl")
|
|
|
|
|
Weapon = NodePath("..")
|
|
|
|
|
ShootSound = NodePath("ShootSound")
|
|
|
|
|
ReloadSound = NodePath("ReloadSound")
|
|
|
|
|
EmptySound = NodePath("EmptySound")
|
|
|
|
|
|
|
|
|
|
[node name="ShootSound" type="AudioStreamPlayer2D" parent="SoundModule"]
|
|
|
|
|
bus = &"Effects"
|
|
|
|
|
area_mask = 2
|
|
|
|
|
|
|
|
|
|
[node name="ReloadSound" type="AudioStreamPlayer2D" parent="SoundModule"]
|
|
|
|
|
|
|
|
|
|
[node name="EmptySound" type="AudioStreamPlayer2D" parent="SoundModule"]
|
|
|
|
|
|
|
|
|
|
[connection signal="Empty" from="." to="SoundModule" method="PlayEmptySound"]
|
|
|
|
|
[connection signal="Reloading" from="." to="SoundModule" method="PlayReloadSound"]
|
|
|
|
|
[connection signal="Shooting" from="." to="SoundModule" method="PlayShootSound"]
|