mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-14 19:29:53 +01:00
fix electrify sound effects being reversed (#42294)
* The Fix * The Fix Part 2
This commit is contained in:
@@ -112,10 +112,10 @@ public sealed partial class ElectrifiedComponent : Component
|
||||
public SoundSpecifier ShockNoises = new SoundCollectionSpecifier("sparks");
|
||||
|
||||
[DataField, AutoNetworkedField]
|
||||
public SoundPathSpecifier AirlockElectrifyDisabled = new("/Audio/Machines/airlock_electrify_on.ogg");
|
||||
public SoundPathSpecifier AirlockElectrifyDisabled = new("/Audio/Machines/airlock_electrify_off.ogg");
|
||||
|
||||
[DataField, AutoNetworkedField]
|
||||
public SoundPathSpecifier AirlockElectrifyEnabled = new("/Audio/Machines/airlock_electrify_off.ogg");
|
||||
public SoundPathSpecifier AirlockElectrifyEnabled = new("/Audio/Machines/airlock_electrify_on.ogg");
|
||||
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool PlaySoundOnShock = true;
|
||||
|
||||
@@ -123,8 +123,8 @@ public abstract class SharedDoorRemoteSystem : EntitySystem
|
||||
{
|
||||
_electrify.SetElectrified((args.Target.Value, eletrifiedComp), !eletrifiedComp.Enabled);
|
||||
var soundToPlay = eletrifiedComp.Enabled
|
||||
? eletrifiedComp.AirlockElectrifyDisabled
|
||||
: eletrifiedComp.AirlockElectrifyEnabled;
|
||||
? eletrifiedComp.AirlockElectrifyEnabled
|
||||
: eletrifiedComp.AirlockElectrifyDisabled;
|
||||
_audio.PlayLocal(soundToPlay, args.Target.Value, args.User);
|
||||
_adminLogger.Add(LogType.Action,
|
||||
LogImpact.Medium,
|
||||
|
||||
@@ -101,8 +101,8 @@ public abstract partial class SharedStationAiSystem
|
||||
_adminLogger.Add(LogType.Action, $"{args.User} set electrified status on {ent} to [{args.Electrified}] using the Station AI radial.");
|
||||
_electrify.SetElectrified((ent, component), args.Electrified);
|
||||
var soundToPlay = component.Enabled
|
||||
? component.AirlockElectrifyDisabled
|
||||
: component.AirlockElectrifyEnabled;
|
||||
? component.AirlockElectrifyEnabled
|
||||
: component.AirlockElectrifyDisabled;
|
||||
_audio.PlayLocal(soundToPlay, ent, args.User);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user