mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-15 03:31:30 +01:00
* adj explosions * yuuup * next release * cleanup and EMP changes * minibomb revert, wait until gib experiment --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
20 lines
521 B
C#
20 lines
521 B
C#
using Content.Shared.Throwing;
|
|
using Content.Shared.Trigger.Components.Triggers;
|
|
|
|
namespace Content.Shared.Trigger.Systems;
|
|
|
|
public sealed partial class TriggerOnLandSystem : TriggerOnXSystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<TriggerOnLandComponent, LandEvent>(OnLand);
|
|
}
|
|
|
|
private void OnLand(Entity<TriggerOnLandComponent> ent, ref LandEvent args)
|
|
{
|
|
Trigger.Trigger(ent.Owner, args.User, ent.Comp.KeyOut, predicted: false);
|
|
}
|
|
}
|