Fix tethergun (#16612)

This commit is contained in:
metalgearsloth
2023-05-20 00:31:15 +10:00
committed by GitHub
parent a5ddb062e7
commit 36cd2046a8
3 changed files with 9 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ public abstract class BaseForceGunComponent : Component
/// The entity the tethered target has a joint to. /// The entity the tethered target has a joint to.
/// </summary> /// </summary>
[DataField("tetherEntity"), AutoNetworkedField] [DataField("tetherEntity"), AutoNetworkedField]
public EntityUid? TetherEntity; public virtual EntityUid? TetherEntity { get; set; }
/// <summary> /// <summary>
/// The entity currently tethered. /// The entity currently tethered.

View File

@@ -8,6 +8,12 @@ public sealed partial class TetherGunComponent : BaseForceGunComponent
[ViewVariables(VVAccess.ReadWrite), DataField("maxDistance"), AutoNetworkedField] [ViewVariables(VVAccess.ReadWrite), DataField("maxDistance"), AutoNetworkedField]
public float MaxDistance = 10f; public float MaxDistance = 10f;
/// <summary>
/// The entity the tethered target has a joint to.
/// </summary>
[DataField("tetherEntity"), AutoNetworkedField]
public override EntityUid? TetherEntity { get; set; }
/// <summary> /// <summary>
/// The entity currently tethered. /// The entity currently tethered.
/// </summary> /// </summary>

View File

@@ -160,6 +160,8 @@
description: Manipulates gravity around objects to fling them at high velocities. description: Manipulates gravity around objects to fling them at high velocities.
components: components:
- type: TetherGun - type: TetherGun
frequency: 5
dampingRatio: 4
- type: PowerCellDraw - type: PowerCellDraw
- type: Sprite - type: Sprite
sprite: Objects/Weapons/Guns/Launchers/tether_gun.rsi sprite: Objects/Weapons/Guns/Launchers/tether_gun.rsi