From: Chief-Engineer <119664036+Chief-Engineer@users.noreply.github.com> Date: Wed, 15 Feb 2023 05:53:30 +0000 (-0600) Subject: Readd tasers (#14123) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=781ec8e9eb19038b59fd4490d4f014543cbcbaa2;p=space-station-14.git Readd tasers (#14123) --- 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 2c0307922b..2b2f7ed0b0 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml @@ -321,14 +321,13 @@ - type: ProjectileBatteryAmmoProvider proto: BulletDisablerPractice fireCost: 100 - + - type: entity name: taser parent: BaseWeaponBatterySmall id: WeaponTaser description: A low-capacity, energy-based stun gun used by security teams to subdue targets at range. - # Use Disabler - suffix: Obsolete + suffix: Admin components: - type: Tag tags: @@ -351,7 +350,7 @@ soundGunshot: path: /Audio/Weapons/Guns/Gunshots/taser.ogg - type: ProjectileBatteryAmmoProvider - proto: BulletDisabler + proto: BulletTaser fireCost: 100 - type: MagazineVisuals magState: mag diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml index 0c3ed4708d..f2c1bae757 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml @@ -129,6 +129,47 @@ damage: 15 # Energy projectiles +- type: entity + name: taser bolt + id: BulletTaser + parent: BaseBullet + noSpawn: true + components: + - type: FlyBySound + sound: + collection: EnergyMiss + params: + volume: 5 + - type: Sprite + noRot: true + sprite: Objects/Weapons/Guns/Projectiles/projectiles2.rsi + color: "#ffff33" + layers: + - state: spark + shader: unshaded + - type: Physics + - type: Fixtures + fixtures: + - shape: + !type:PhysShapeAabb + bounds: "-0.2,-0.2,0.2,0.2" + hard: false + id: projectile + mask: + - Impassable + - BulletImpassable + - type: Ammo + - type: Projectile + damage: + types: + Heat: 5 + soundHit: + path: "/Audio/Weapons/Guns/Hits/taser_hit.ogg" + soundForce: true + - type: StunOnCollide + stunAmount: 5 + knockdownAmount: 5 + - type: entity name : disabler bolt id: BulletDisabler