Restored weapon sounds

This commit is contained in:
Marco 2025-05-08 10:46:02 +02:00
commit 251636364b
3 changed files with 23 additions and 18 deletions

View file

@ -18,8 +18,9 @@ position = Vector2(-4.685, 3.52)
[node name="ShootTimer" type="Timer" parent="."]
one_shot = true
[node name="SoundModule" type="Node2D" parent="." node_paths=PackedStringArray("ShootSound", "ReloadSound", "EmptySound")]
[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")

File diff suppressed because one or more lines are too long

View file

@ -119,6 +119,7 @@ public partial class Weapon : Node2D
}
else
{
EmitSignalEmpty();
return;
}
}
@ -130,6 +131,7 @@ public partial class Weapon : Node2D
{
Reload();
}
EmitSignalEmpty();
return;
}