Diona immune to FTL Knockdown (#2543)
* Strong * Update ShuttleSystem.FasterThanLight.cs Signed-off-by: Dvir <39403717+dvir001@users.noreply.github.com> --------- Signed-off-by: Dvir <39403717+dvir001@users.noreply.github.com>
This commit is contained in:
parent
1704c56aad
commit
07da7ec901
|
|
@ -1,6 +1,7 @@
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Content.Server._NF.Shuttles.Components; // Frontier: FTL knockdown immunity
|
||||
using Content.Server.Shuttles.Components;
|
||||
using Content.Server.Shuttles.Events;
|
||||
using Content.Server.Station.Events;
|
||||
|
|
@ -631,7 +632,8 @@ public sealed partial class ShuttleSystem
|
|||
if (!_statusQuery.TryGetComponent(child, out var status))
|
||||
continue;
|
||||
|
||||
_stuns.TryParalyze(child, _hyperspaceKnockdownTime, true, status);
|
||||
if (!HasComp<FTLKnockdownImmuneComponent>(child)) // Frontier: FTL knockdown immunity
|
||||
_stuns.TryParalyze(child, _hyperspaceKnockdownTime, true, status);
|
||||
|
||||
// If the guy we knocked down is on a spaced tile, throw them too
|
||||
if (grid != null)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
namespace Content.Server._NF.Shuttles.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Denotes an entity as being immune from knockdown on FTL
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed partial class FTLKnockdownImmuneComponent : Component
|
||||
{
|
||||
}
|
||||
|
|
@ -117,6 +117,7 @@
|
|||
- type: MovementSpeedModifier # DeltaV
|
||||
baseWalkSpeed: 1.0
|
||||
baseSprintSpeed: 3.0
|
||||
- type: FTLKnockdownImmune # Frontier
|
||||
|
||||
- type: entity
|
||||
parent: BaseSpeciesDummy
|
||||
|
|
|
|||
Loading…
Reference in New Issue