]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add new component to Make sound on interact (#26523)
authorblueDev2 <89804215+blueDev2@users.noreply.github.com>
Sun, 31 Mar 2024 02:20:44 +0000 (22:20 -0400)
committerGitHub <noreply@github.com>
Sun, 31 Mar 2024 02:20:44 +0000 (13:20 +1100)
commitdaaa7c6de0d21c5b8d9c0b659eb62878a0410d3d
tree82678572021b59104fbedddb190a291de6b96597
parentef8b16af9771fdd785251dc394aa40db30c1c224
Add new component to Make sound on interact (#26523)

* Adds new Component: EmitSoundOnInteractUsing

* Missed an import

* File-scoping

* Replace ID check with Prototype check

* Moved component and system to shared. Set prediction to true.

* Removed impoper imports and changed namespace of component to reflect changed folder.

* Following function naming theme

* All this code is basically deltanedas's, but it was a learning experience for me

* Update Content.Shared/Sound/Components/EmitSoundOnInteractUsingComponent.cs

* Update Content.Shared/Sound/Components/EmitSoundOnInteractUsingComponent.cs

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Content.Shared/Sound/Components/EmitSoundOnInteractUsingComponent.cs [new file with mode: 0644]
Content.Shared/Sound/SharedEmitSoundSystem.cs