mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
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:
co-authored by
Tobias Berger
pre-commit-ci[bot]
Vanessa
parent
e9c914ba59
commit
09cbcd71cb
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user