mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-08 21:05:54 +00:00
Restored weapon sounds
This commit is contained in:
parent
fe6187af58
commit
251636364b
3 changed files with 23 additions and 18 deletions
|
|
@ -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
|
|
@ -119,6 +119,7 @@ public partial class Weapon : Node2D
|
|||
}
|
||||
else
|
||||
{
|
||||
EmitSignalEmpty();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -130,6 +131,7 @@ public partial class Weapon : Node2D
|
|||
{
|
||||
Reload();
|
||||
}
|
||||
EmitSignalEmpty();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue