Skip to content

Commit

Permalink
fix scream borg
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimeMoot authored Jan 2, 2025
1 parent 5441c8b commit 7b61c4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Content.Server/Speech/EntitySystems/VocalSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public override void Initialize()
private void OnMapInit(EntityUid uid, VocalComponent component, MapInitEvent args)
{
// try to add scream action when vocal comp added
_actions.AddAction(uid, ref component.ScreamActionEntity, component.ScreamAction);
if (component.ScreamAction != null) // For borgs and others that can emote but shouldn't scream
_actions.AddAction(uid, ref component.ScreamActionEntity, component.ScreamAction);
LoadSounds(uid, component);
}

Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Speech/Components/VocalComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public sealed partial class VocalComponent : Component

[DataField("screamAction", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
[AutoNetworkedField]
public string ScreamAction = "ActionScream";
public string? ScreamAction = "ActionScream";

[DataField("screamActionEntity")]
[AutoNetworkedField]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
- type: Vocal
sounds:
Unsexed: UnisexSilicon
screamAction: null
- type: UnblockableSpeech
- type: FootstepModifier
footstepSoundCollection:
Expand Down

0 comments on commit 7b61c4a

Please sign in to comment.