From 398c8df343e2b41ebdf03fe6d3714a1e894434c0 Mon Sep 17 00:00:00 2001 From: keronshb <54602815+keronshb@users.noreply.github.com> Date: Sat, 27 Sep 2025 17:21:03 -0400 Subject: [PATCH] Readds Tasers to Security (#39087) * Readds taser to security * removes item drop from regular tasers, adds item drop to admeme tasers * Fixes stun on collide options * Fixes drop * Lowers fire rate for taser --- Content.Server/Stunnable/Systems/StunOnCollideSystem.cs | 1 + Resources/Prototypes/Catalog/Fills/Lockers/heads.yml | 1 + Resources/Prototypes/Catalog/Fills/Lockers/security.yml | 3 +++ .../Entities/Objects/Weapons/Guns/Battery/battery_guns.yml | 1 + .../Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml | 4 +++- 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Content.Server/Stunnable/Systems/StunOnCollideSystem.cs b/Content.Server/Stunnable/Systems/StunOnCollideSystem.cs index c1757b1c2d..09e42966c7 100644 --- a/Content.Server/Stunnable/Systems/StunOnCollideSystem.cs +++ b/Content.Server/Stunnable/Systems/StunOnCollideSystem.cs @@ -27,6 +27,7 @@ internal sealed class StunOnCollideSystem : EntitySystem if (ent.Comp.Refresh) { _stunSystem.TryUpdateStunDuration(target, ent.Comp.StunAmount); + _movementMod.TryUpdateMovementSpeedModDuration( target, MovementModStatusSystem.TaserSlowdown, diff --git a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml index ae904f7f95..37dd68e63a 100644 --- a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml +++ b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml @@ -342,6 +342,7 @@ - id: SecurityTechFabCircuitboard - id: CargoRequestSecurityComputerCircuitboard - id: WeaponDisabler + - id: WeaponTaser - id: WantedListCartridge - id: DrinkHosFlask diff --git a/Resources/Prototypes/Catalog/Fills/Lockers/security.yml b/Resources/Prototypes/Catalog/Fills/Lockers/security.yml index 056a5ce135..a6add7f4b7 100644 --- a/Resources/Prototypes/Catalog/Fills/Lockers/security.yml +++ b/Resources/Prototypes/Catalog/Fills/Lockers/security.yml @@ -28,6 +28,7 @@ children: - id: FlashlightSeclite - id: WeaponDisabler + - id: WeaponTaser - id: ClothingBeltSecurityFilled - id: Flash - id: ClothingEyesGlassesSecurity @@ -71,6 +72,7 @@ - id: FlashlightSeclite prob: 0.8 - id: WeaponDisabler + - id: WeaponTaser - id: ClothingUniformJumpsuitSecGrey prob: 0.3 - id: ClothingHeadHelmetBasic @@ -104,6 +106,7 @@ table: !type:AllSelector children: - id: ClothingEyesGlassesSecurity + - id: WeaponTaser - id: WeaponDisabler - id: TrackingImplanter amount: 2 diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml index 821f63856e..787f263176 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml @@ -611,6 +611,7 @@ slots: - Belt - type: Gun + fireRate: 0.5 soundGunshot: path: /Audio/Weapons/Guns/Gunshots/taser.ogg - type: ProjectileBatteryAmmoProvider diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml index d847e9d8d8..3521f57a8b 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml @@ -225,7 +225,8 @@ lifetime: 0.170 # Very short range - type: StunOnCollide stunAmount: 0 - knockdownAmount: 2.5 # Enough to subdue and follow up with a stun batong + knockdownAmount: 2.5 # Enough to subdue and follow up with a stun baton + drop: false #Ranged KD and item drop are too strong in one package slowdownAmount: 2.5 walkSpeedModifier: 0.5 sprintSpeedModifier: 0.5 @@ -253,6 +254,7 @@ lifetime: 1.0 # Not so short range - type: StunOnCollide stunAmount: 5 + drop: true # this is the evil taser knockdownAmount: 10 slowdownAmount: 10 walkSpeedModifier: 0.5