Jetpacks (#9023)
* Movement acceleration * tweaks * Weightless refactor coz fuck it * CCVars * weightless movement tweaks * Some cleanup while I'm here * dorkpacks * thanks fork * fixes * zoomies * toggles * hmm * yamls * b * so true * Effects refactor * namespace * review
This commit is contained in:
24
Content.Shared/Movement/Components/JetpackComponent.cs
Normal file
24
Content.Shared/Movement/Components/JetpackComponent.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Content.Shared.Actions.ActionTypes;
|
||||
using Content.Shared.Atmos;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Movement.Components;
|
||||
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class JetpackComponent : Component
|
||||
{
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("volumeUsage")]
|
||||
public float VolumeUsage = Atmospherics.BreathVolume;
|
||||
|
||||
[ViewVariables, DataField("toggleAction", required: true)]
|
||||
public InstantAction ToggleAction = new();
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("acceleration")]
|
||||
public float Acceleration = 1f;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("friction")]
|
||||
public float Friction = 0.3f;
|
||||
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("weightlessModifier")]
|
||||
public float WeightlessModifier = 1.2f;
|
||||
}
|
||||
Reference in New Issue
Block a user