Readd tasers (#14123)

This commit is contained in:
Chief-Engineer
2023-02-14 23:53:30 -06:00
committed by GitHub
parent 64e882bb6d
commit 781ec8e9eb
2 changed files with 44 additions and 4 deletions

View File

@@ -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

View File

@@ -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