]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Component for clothes to suppress emotes and scream action in general, and the muzzle...
authorCentronias <me@centronias.com>
Fri, 11 Jul 2025 17:18:15 +0000 (10:18 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Jul 2025 17:18:15 +0000 (13:18 -0400)
commit05436d3dcc03e0638c8e36cf9142d62792d6a246
tree4bd40a4f8db6df979dd8c07679f7df10040d3ba3
parenta22826cd90ad797d17eeccc3ec331aa0d6a3d016
Component for clothes to suppress emotes and scream action in general, and the muzzle to suppress vocal emotes in particular (#32588)

* Component for clothes to suppress scream noise

GaggedComponent + AddGaggedClothingComponent and relevant systems to make them work.

Currently only stifles the scream _action_, not all emotes

because if a mime can silently emote, so can gagged you!

* fix comments

* swap to inventory relay

and make it more general such that specific emotes or emotes of a given category can be blocked

* power gloves shouldn't block snapping

* easy fixes

* blockable emote event

* pr comments, switch to using emote event mostly

* pr comments

add beforeEmoteEvent

add emote blocker name to popup

maybe some other stuff, I forget

* get rid of emoteevent's source because I don't need it anymore

* smol clean

* formatting, style, and one minor thing where having a muzzle in your pocket would gag you
Content.Server/Chat/Systems/ChatSystem.Emote.cs
Content.Server/Chat/Systems/ChatSystem.cs
Content.Server/Speech/Components/EmoteBlockerComponent.cs [new file with mode: 0644]
Content.Server/Speech/EntitySystems/EmoteBlockerSystem.cs [new file with mode: 0644]
Content.Shared/Emoting/EmoteAttemptEvent.cs [deleted file]
Content.Shared/Emoting/EmoteEvents.cs [new file with mode: 0644]
Content.Shared/Inventory/InventorySystem.Relay.cs
Resources/Locale/en-US/chat/emotes.ftl
Resources/Locale/en-US/emote/emote.ftl [new file with mode: 0644]
Resources/Prototypes/Entities/Clothing/Masks/masks.yml