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.
|
||||
/// </summary>
|
||||
[DataField("tetherEntity"), AutoNetworkedField]
|
||||
public EntityUid? TetherEntity;
|
||||
public virtual EntityUid? TetherEntity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The entity currently tethered.
|
||||
|
||||
@@ -8,6 +8,12 @@ public sealed partial class TetherGunComponent : BaseForceGunComponent
|
||||
[ViewVariables(VVAccess.ReadWrite), DataField("maxDistance"), AutoNetworkedField]
|
||||
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>
|
||||
/// The entity currently tethered.
|
||||
/// </summary>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user