Add the NT-3 (#4622)

* Add Bipod System

* Add the NT-3

* Small fixes

* Small fixes

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix Test Fails

* Small oversight

* Robust the Code

* Fix Action Name

Co-authored-by: Tobias Berger <toby@tobot.dev>
Signed-off-by: Sir Warock <67167466+SirWarock@users.noreply.github.com>

* Fix Action Description

Co-authored-by: Tobias Berger <toby@tobot.dev>
Signed-off-by: Sir Warock <67167466+SirWarock@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add WallPierce + Changes

* Small fix

* Cleanup

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix Testfail + Add Descriptions

---------

Signed-off-by: Sir Warock <67167466+SirWarock@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tobias Berger <toby@tobot.dev>
Co-authored-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
This commit is contained in:
Sir Warock
2025-11-25 18:03:33 +00:00
committed by GitHub
co-authored by Tobias Berger pre-commit-ci[bot] Vanessa
parent e9c914ba59
commit 09cbcd71cb
46 changed files with 771 additions and 0 deletions
@@ -1,3 +1,4 @@
using Content.Server._DV.Projectiles.Events; // DeltaV - Addition of the NT-3
using Content.Server.Administration.Logs;
using Content.Server.Destructible;
using Content.Server.Effects;
@@ -88,6 +89,9 @@ public sealed class ProjectileSystem : SharedProjectileSystem
component.ProjectileSpent = true;
}
var pierceEv = new ProjectilePierceEvent(target, damageRequired); // DeltaV - Addition of the NT-3
RaiseLocalEvent(uid, ref pierceEv);
// If the object won't be destroyed, it "tanks" the penetration hit.
if (modifiedDamage.GetTotal() < damageRequired)
{
@@ -103,6 +107,9 @@ public sealed class ProjectileSystem : SharedProjectileSystem
component.ProjectileSpent = true;
}
}
if (component.ProjectileSpent && pierceEv.Pierced) // DeltaV - Addition of the NT-3
component.ProjectileSpent = false;
}
else
{