-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbc82ab
commit d01fd91
Showing
23 changed files
with
315 additions
and
530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Content.Shared/ADT/ComponentalActions/Components/ComponentActionSpawnData.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Content.Shared.ComponentalActions; | ||
|
||
[ImplicitDataDefinitionForInheritors] | ||
public abstract partial class ComponentalActionsSpawnData | ||
{ | ||
|
||
} | ||
|
||
/// <summary> | ||
/// Spawns 1 at the caster's feet. | ||
/// </summary> | ||
public sealed partial class TargetCasterPos : ComponentalActionsSpawnData { } | ||
|
||
/// <summary> | ||
/// Targets the 3 tiles in front of the caster. | ||
/// </summary> | ||
public sealed partial class TargetInFront : ComponentalActionsSpawnData | ||
{ | ||
[DataField("width")] public int Width = 3; | ||
} |
37 changes: 37 additions & 0 deletions
37
Content.Shared/ADT/ComponentalActions/Components/HealActComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Shared.ComponentalActions.Components; | ||
|
||
[RegisterComponent] | ||
[AutoGenerateComponentState(true)] | ||
public sealed partial class HealActComponent : Component | ||
{ | ||
[DataField("healSound")] | ||
public SoundSpecifier HealSound = new SoundPathSpecifier("/Audio/Effects/blobattack.ogg"); | ||
|
||
/// <summary> | ||
/// Volume control for the spell. | ||
/// </summary> | ||
[DataField("healVolume")] | ||
public float HealVolume = 1f; | ||
|
||
[DataField] | ||
public float RegenerateBurnHealAmount = -50f; | ||
|
||
[DataField] | ||
public float RegenerateBruteHealAmount = -75f; | ||
|
||
[DataField] | ||
public float RegenerateBloodVolumeHealAmount = 100f; | ||
|
||
[DataField] | ||
public float RegenerateBleedReduceAmount = -100f; | ||
|
||
[DataField("healAction")] | ||
public EntProtoId Action = "CompActionHeal"; | ||
|
||
[DataField, AutoNetworkedField] | ||
public EntityUid? ActionEntity; | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
Content.Shared/ADT/ComponentalActions/Components/InvisibilityActComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Shared.ComponentalActions.Components; | ||
|
||
[RegisterComponent] | ||
[AutoGenerateComponentState(true)] | ||
public sealed partial class InvisibilityActComponent : Component | ||
{ | ||
[DataField] | ||
public bool Active = false; | ||
|
||
[DataField("passiveVisibilityRate")] | ||
public float PassiveVisibilityRate = -0.10f; | ||
|
||
[DataField("movementVisibilityRate")] | ||
public float MovementVisibilityRate = 0.10f; | ||
|
||
[DataField("minVisibility")] | ||
public float MinVisibility = -1f; | ||
|
||
[DataField("maxVisibility")] | ||
public float MaxVisibility = 1.5f; | ||
|
||
[DataField("stealthAction")] | ||
public EntProtoId Action = "CompActionStealth"; | ||
|
||
[DataField, AutoNetworkedField] | ||
public EntityUid? ActionEntity; | ||
} |
28 changes: 28 additions & 0 deletions
28
Content.Shared/ADT/ComponentalActions/Components/JumpActComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Shared.ComponentalActions.Components; | ||
|
||
[RegisterComponent] | ||
[AutoGenerateComponentState(true)] | ||
public sealed partial class JumpActComponent : Component | ||
{ | ||
[DataField("jumpSound")] | ||
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Effects/Footsteps/suitstep2.ogg"); | ||
|
||
/// <summary> | ||
/// Volume control for the spell. | ||
/// </summary> | ||
[DataField("jumpVolume")] | ||
public float Volume = 1f; | ||
|
||
[DataField("jumpStrength")] | ||
public float Strength = 13f; | ||
|
||
[DataField("jumpAction")] | ||
public EntProtoId Action = "CompActionJump"; | ||
|
||
[DataField, AutoNetworkedField] | ||
public EntityUid? ActionEntity; | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
Content.Shared/ADT/ComponentalActions/Components/LevitationActComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Robust.Shared.Prototypes; | ||
using Content.Shared.Alert; | ||
|
||
namespace Content.Shared.ComponentalActions.Components; | ||
|
||
[RegisterComponent] | ||
[AutoGenerateComponentState(true)] | ||
public sealed partial class LevitationActComponent : Component | ||
{ | ||
[DataField] | ||
public float SpeedModifier = 2f; | ||
|
||
[DataField] | ||
public float BaseSprintSpeed = 4.5f; | ||
|
||
[DataField] | ||
public float BaseWalkSpeed = 2.5f; | ||
|
||
[DataField] | ||
public bool Active = false; | ||
|
||
[DataField("blinkAction")] | ||
public EntProtoId Action = "CompLevitationAction"; | ||
|
||
[DataField, AutoNetworkedField] | ||
public EntityUid? ActionEntity; | ||
|
||
[DataField] | ||
[ViewVariables(VVAccess.ReadWrite)] | ||
public ProtoId<AlertPrototype> Alert = "ADTLevitation"; | ||
} |
35 changes: 35 additions & 0 deletions
35
Content.Shared/ADT/ComponentalActions/Components/ProjectileActComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.Prototypes; | ||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; | ||
|
||
namespace Content.Shared.ComponentalActions.Components; | ||
|
||
[RegisterComponent] | ||
[AutoGenerateComponentState(true)] | ||
public sealed partial class ProjectileActComponent : Component | ||
{ | ||
/// <summary> | ||
/// What entity should be spawned. | ||
/// </summary> | ||
[DataField("prototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))] | ||
public string Prototype = "BulletKinetic"; | ||
|
||
/// <summary> | ||
/// Gets the targeted spawn positions; may lead to multiple entities being spawned. | ||
/// </summary> | ||
[DataField("posData")] | ||
public ComponentalActionsSpawnData Pos = new TargetCasterPos(); | ||
|
||
[DataField] | ||
public SoundSpecifier ShootSound = new SoundPathSpecifier("/Audio/Weapons/Xeno/alien_spitacid.ogg"); | ||
|
||
[DataField("shootVolume")] | ||
public float ShootVolume = 5f; | ||
|
||
[DataField("projAction")] | ||
public EntProtoId Action = "CompActionShoot"; | ||
|
||
[DataField, AutoNetworkedField] | ||
public EntityUid? ActionEntity; | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
Content.Shared/ADT/ComponentalActions/Components/StasisHealActComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Shared.ComponentalActions.Components; | ||
|
||
[RegisterComponent] | ||
[AutoGenerateComponentState(true)] | ||
public sealed partial class StasisHealActComponent : Component | ||
{ | ||
[DataField] | ||
public bool Active = false; | ||
|
||
[DataField] | ||
public float SpeedModifier = 1f; | ||
|
||
[DataField] | ||
public float BaseSprintSpeed = 3f; | ||
|
||
[DataField] | ||
public float BaseWalkSpeed = 3f; | ||
|
||
[DataField] | ||
public float RegenerateBurnHealAmount = -0.05f; | ||
|
||
[DataField] | ||
public float RegenerateBruteHealAmount = -0.1f; | ||
|
||
[DataField] | ||
public float RegenerateBloodVolumeHealAmount = 0.25f; | ||
|
||
[DataField] | ||
public float RegenerateBleedReduceAmount = -0.01f; | ||
|
||
[DataField("healAction")] | ||
public EntProtoId Action = "CompActionStasisHeal"; | ||
|
||
[DataField, AutoNetworkedField] | ||
public EntityUid? ActionEntity; | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
Content.Shared/ADT/ComponentalActions/Components/TeleportActComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Shared.ComponentalActions.Components; | ||
|
||
[RegisterComponent] | ||
[AutoGenerateComponentState(true)] | ||
public sealed partial class TeleportActComponent : Component | ||
{ | ||
[DataField("blinkSound")] | ||
public SoundSpecifier BlinkSound = new SoundPathSpecifier("/Audio/Magic/blink.ogg"); | ||
|
||
/// <summary> | ||
/// Volume control for the spell. | ||
/// </summary> | ||
[DataField("blinkVolume")] | ||
public float BlinkVolume = 5f; | ||
|
||
[DataField("blinkAction")] | ||
public EntProtoId Action = "CompActionTeleport"; | ||
|
||
[DataField, AutoNetworkedField] | ||
public EntityUid? ActionEntity; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.