]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Bandaid wire sounds (#31067)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Mon, 19 Aug 2024 19:50:03 +0000 (05:50 +1000)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2024 19:50:03 +0000 (21:50 +0200)
Issue was tools was predicted but wires aren't so this would exclude user from audio.

For now we just do the non-predicted version and I or someone else will fully predict wires later.

Content.Server/Wires/WiresSystem.cs

index e4439ae1da3574a63c75d4e08baa44a757b9f941..92dcbb504f87cd5d3efcfae971e8eb18bf3b1ffd 100644 (file)
@@ -725,7 +725,7 @@ public sealed class WiresSystem : SharedWiresSystem
                     break;
                 }
 
-                Tool.PlayToolSound(toolEntity, tool, user);
+                Tool.PlayToolSound(toolEntity, tool, null);
                 if (wire.Action == null || wire.Action.Cut(user, wire))
                 {
                     wire.IsCut = true;
@@ -746,7 +746,7 @@ public sealed class WiresSystem : SharedWiresSystem
                     break;
                 }
 
-                Tool.PlayToolSound(toolEntity, tool, user);
+                Tool.PlayToolSound(toolEntity, tool, null);
                 if (wire.Action == null || wire.Action.Mend(user, wire))
                 {
                     wire.IsCut = false;