Fix tethergun (#16612)
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user