* Adds seven new smites, moves the explosion smite to the verb category. * adds even more smites. * Even more smites, some messages for specific smites. * Adds even more smites. * Removes some junk, adds a smite that angers the pointing arrows. * get rid of dumb component. * Remove mistake from verb menu presentation. * How did that happen? * whoops * c * e * fuck * Loading... * removes the BoM go away * adds the funny kill sign. Fixes ghost smite. * Move systems around. * Adjust organ vomit. * Adds a smite that turns people into an instrument, and one that removes their gravity. * oops * typo Co-authored-by: Veritius <veritiusgaming@gmail.com>
28 lines
931 B
C#
28 lines
931 B
C#
using Content.Shared.Alert;
|
|
using Content.Shared.Movement.Components;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Movement.EntitySystems;
|
|
|
|
public sealed class MovementIgnoreGravitySystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
SubscribeLocalEvent<MovementIgnoreGravityComponent, ComponentGetState>(GetState);
|
|
SubscribeLocalEvent<MovementIgnoreGravityComponent, ComponentHandleState>(HandleState);
|
|
}
|
|
|
|
private void HandleState(EntityUid uid, MovementIgnoreGravityComponent component, ref ComponentHandleState args)
|
|
{
|
|
if (args.Next is null)
|
|
return;
|
|
|
|
component.Weightless = ((MovementIgnoreGravityComponentState) args.Next).Weightless;
|
|
}
|
|
|
|
private void GetState(EntityUid uid, MovementIgnoreGravityComponent component, ref ComponentGetState args)
|
|
{
|
|
args.State = new MovementIgnoreGravityComponentState(component);
|
|
}
|
|
}
|