tweak: nanotask papers don't provide throwing pushback

This commit is contained in:
DisposableCrewmember42 2026-01-04 12:08:38 +01:00
parent 4fd93df4cd
commit 6fb87ba301
3 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,7 @@
using System.Numerics;
using Content.Server.Stack;
using Content.Server.Stunnable;
using Content.Shared._DV.Item;
using Content.Shared._NF.Standing; // Frontier
using Content.Shared.ActionBlocker;
using Content.Shared.Body.Part;
@ -224,7 +225,8 @@ namespace Content.Server.Hands.Systems
if (IsHolding((player, hands), throwEnt, out _) && !TryDrop(player, throwEnt.Value))
return false;
_throwingSystem.TryThrow(ev.ItemUid, ev.Direction, ev.ThrowSpeed, ev.PlayerUid, compensateFriction: !HasComp<LandAtCursorComponent>(ev.ItemUid));
// DeltaV - Set pushback to 0 if NoThrowingPushback, previously unset
_throwingSystem.TryThrow(ev.ItemUid, ev.Direction, ev.ThrowSpeed, ev.PlayerUid, pushbackRatio: HasComp<Shared._DV.Item.Components.NoThrowingPushbackComponent>(ev.ItemUid) ? 0 : ThrowingSystem.PushbackDefault, compensateFriction: !HasComp<LandAtCursorComponent>(ev.ItemUid));
return true;
}

View File

@ -0,0 +1,4 @@
namespace Content.Shared._DV.Item.Components;
[RegisterComponent]
public sealed partial class NoThrowingPushbackComponent : Component;

View File

@ -236,6 +236,7 @@
contentMargin: 12.0, 0.0, 12.0, 0.0
# This is a narrow piece of paper
maxWritableArea: 256.0, 0.0
- type: NoThrowingPushback # DeltaV - Added comp
- type: entity
id: PaperCargoBountyManifest