2022-06-24 17:44:30 +10:00
|
|
|
using Robust.Shared.GameStates;
|
2023-09-08 18:16:05 -07:00
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2022-06-24 17:44:30 +10:00
|
|
|
|
|
|
|
|
namespace Content.Shared.Movement.Components;
|
|
|
|
|
|
2023-10-08 06:08:13 +11:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class JetpackComponent : Component
|
2022-06-24 17:44:30 +10:00
|
|
|
{
|
2022-06-24 19:45:53 +10:00
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("moleUsage")]
|
2022-06-27 01:36:20 -03:00
|
|
|
public float MoleUsage = 0.012f;
|
2022-06-24 17:44:30 +10:00
|
|
|
|
2023-09-23 04:49:39 -04:00
|
|
|
[DataField] public EntProtoId ToggleAction = "ActionToggleJetpack";
|
2023-09-08 18:16:05 -07:00
|
|
|
|
2023-10-08 06:08:13 +11:00
|
|
|
[DataField, AutoNetworkedField] public EntityUid? ToggleActionEntity;
|
2022-06-24 17:44:30 +10:00
|
|
|
|
|
|
|
|
[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;
|
|
|
|
|
}
|