* make landmine work on stepping off * update methods naming * made both step modes possible * updated stepoff event raise to not interfere with game physics internals * added comments * figuring out how audiosystem works * added beep sound effect, updated how stepoff trigger works to make it more consistent * updated source in attributions.yml * made stepoff working every time * introduced suggested changes * updated janitor's WetSignMine to have audio * made cleaner events and bashing my head at OnEndCollide event raise * inverted conditional where applicable * review --------- Co-authored-by: Yurii Kis <yurii.kis@smartteksas.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
14 lines
326 B
C#
14 lines
326 B
C#
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Server.LandMines;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class LandMineComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Trigger sound effect when stepping onto landmine
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public SoundSpecifier? Sound;
|
|
}
|