This commit is contained in:
DisposableCrewmember42 2026-05-10 11:43:47 +00:00 committed by GitHub
commit 5fc373b898
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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

@ -238,6 +238,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