]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Landmine stepoff (#22962)
authorKISS <59531932+YuriyKiss@users.noreply.github.com>
Sun, 24 Mar 2024 05:33:45 +0000 (07:33 +0200)
committerGitHub <noreply@github.com>
Sun, 24 Mar 2024 05:33:45 +0000 (16:33 +1100)
commit54dd273f660d6d8d523d0771bb8d8437373b082e
treed9a2ab20414b411fa30dcdb2f601d62108b79e29
parentf96cf360e9cc036e58fd8b1582385922346f323d
Landmine stepoff (#22962)

* 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>
13 files changed:
Content.Server/Ensnaring/EnsnareableSystem.Ensnaring.cs
Content.Server/Explosion/EntitySystems/TriggerSystem.cs
Content.Server/LandMines/LandMineComponent.cs
Content.Server/LandMines/LandMineSystem.cs
Content.Server/Tiles/LavaSystem.cs
Content.Shared/Chasm/ChasmSystem.cs
Content.Shared/Slippery/SlipperySystem.cs
Content.Shared/StepTrigger/Components/StepTriggerComponent.cs
Content.Shared/StepTrigger/Systems/StepTriggerSystem.cs
Resources/Audio/Effects/attributions.yml
Resources/Audio/Effects/beep_landmine.ogg [new file with mode: 0644]
Resources/Prototypes/Entities/Objects/Misc/land_mine.yml
Resources/Prototypes/Entities/Objects/Specific/Janitorial/janitor.yml