]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Readd tasers (#14123)
authorChief-Engineer <119664036+Chief-Engineer@users.noreply.github.com>
Wed, 15 Feb 2023 05:53:30 +0000 (23:53 -0600)
committerGitHub <noreply@github.com>
Wed, 15 Feb 2023 05:53:30 +0000 (16:53 +1100)
Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml

index 2c0307922b2cee441b51da98dc69d904246f3673..2b2f7ed0b07e75645917e18a01d3fcfd2c5071cf 100644 (file)
     - 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:
     soundGunshot:
       path: /Audio/Weapons/Guns/Gunshots/taser.ogg
   - type: ProjectileBatteryAmmoProvider
-    proto: BulletDisabler
+    proto: BulletTaser
     fireCost: 100
   - type: MagazineVisuals
     magState: mag
index 0c3ed4708d3e6809a25594be3bfe1b83a416d523..f2c1bae75725fe95df7ba77e191ace134ad583db 100644 (file)
     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