diff --git a/Content.Shared/Weapons/Misc/BaseForceGunComponent.cs b/Content.Shared/Weapons/Misc/BaseForceGunComponent.cs index 45c81fa3f1..a646401066 100644 --- a/Content.Shared/Weapons/Misc/BaseForceGunComponent.cs +++ b/Content.Shared/Weapons/Misc/BaseForceGunComponent.cs @@ -11,7 +11,7 @@ public abstract class BaseForceGunComponent : Component /// The entity the tethered target has a joint to. /// [DataField("tetherEntity"), AutoNetworkedField] - public EntityUid? TetherEntity; + public virtual EntityUid? TetherEntity { get; set; } /// /// The entity currently tethered. diff --git a/Content.Shared/Weapons/Misc/TetherGunComponent.cs b/Content.Shared/Weapons/Misc/TetherGunComponent.cs index 06e7da6df4..fcc5494154 100644 --- a/Content.Shared/Weapons/Misc/TetherGunComponent.cs +++ b/Content.Shared/Weapons/Misc/TetherGunComponent.cs @@ -8,6 +8,12 @@ public sealed partial class TetherGunComponent : BaseForceGunComponent [ViewVariables(VVAccess.ReadWrite), DataField("maxDistance"), AutoNetworkedField] public float MaxDistance = 10f; + /// + /// The entity the tethered target has a joint to. + /// + [DataField("tetherEntity"), AutoNetworkedField] + public override EntityUid? TetherEntity { get; set; } + /// /// The entity currently tethered. /// diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Launchers/launchers.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Launchers/launchers.yml index 0c0940b85e..3c7f670650 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Launchers/launchers.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Launchers/launchers.yml @@ -160,6 +160,8 @@ description: Manipulates gravity around objects to fling them at high velocities. components: - type: TetherGun + frequency: 5 + dampingRatio: 4 - type: PowerCellDraw - type: Sprite sprite: Objects/Weapons/Guns/Launchers/tether_gun.rsi