remove doorslam sound (#25737)

This commit is contained in:
Nemanja
2024-02-29 19:58:52 -05:00
committed by GitHub
parent 70307f9e00
commit 2852483b5c
2 changed files with 0 additions and 12 deletions

View File

@@ -96,12 +96,6 @@ public sealed partial class DoorComponent : Component
[DataField("denySound")]
public SoundSpecifier? DenySound;
/// <summary>
/// Sound to play when a disarmed (hands comp with 0 hands) entity opens the door. What?
/// </summary>
[DataField("tryOpenDoorSound")]
public SoundSpecifier TryOpenDoorSound = new SoundCollectionSpecifier("MetalSlam");
/// <summary>
/// Sound to play when door has been emagged or possibly electrically tampered
/// </summary>

View File

@@ -370,12 +370,6 @@ public abstract partial class SharedDoorSystem : EntitySystem
if (lastState == DoorState.Emagging && TryComp<DoorBoltComponent>(uid, out var doorBoltComponent))
SetBoltsDown((uid, doorBoltComponent), !doorBoltComponent.BoltsDown, user, true);
// I'm not sure what the intent here is/was? It plays a sound if the user is opening a door with a hands
// component, but no actual hands!? What!? Is this the sound of them head-butting the door to get it to open??
// I'm 99% sure something is wrong here, but I kind of want to keep it this way.
if (user != null && (!TryComp(user.Value, out HandsComponent? hands) || hands.Hands.Count == 0))
Audio.PlayPredicted(door.TryOpenDoorSound, uid, user, AudioParams.Default.WithVolume(-2));
}
/// <summary>