Made a fancier lasergun (#174)

Laserguns now have an internal capacitor that can be recharged by using it with a power cell

Makes the final fix for #138
This commit is contained in:
ScumbagDog
2019-04-01 20:06:43 +02:00
committed by Pieter-Jan Briers
parent b94e015314
commit 1af1ee2ad4
8 changed files with 148 additions and 38 deletions

View File

@@ -1,25 +1,3 @@
- type: entity
name: Laser Gun
parent: BaseItem
id: LaserItem
description: A weapon using light amplified by the stimulated emission of radiation
components:
- type: Sprite
sprite: Objects/laser_retro.rsi
state: 100
- type: Icon
sprite: Objects/laser_retro.rsi
state: 100
- type: RangedWeapon
- type: HitscanWeapon
damage: 30
sprite: "Objects/laser.png"
- type: Item
Size: 24
sprite: Objects/laser_retro.rsi
prefix: 100
- type: Sound
- type: entity
name: Spear
parent: BaseItem

View File

@@ -0,0 +1,24 @@
- type: entity
name: Laser Gun
parent: BaseItem
id: LaserItem
description: A weapon using light amplified by the stimulated emission of radiation
components:
- type: Sprite
sprite: Objects/laser_retro.rsi
state: 100
- type: Icon
sprite: Objects/laser_retro.rsi
state: 100
- type: RangedWeapon
- type: HitscanWeapon
damage: 30
sprite: "Objects/laser.png"
lowerDischargeLimit: 10
- type: HitscanWeaponCapacitor
capacity: 1000
- type: Item
Size: 24
sprite: Objects/laser_retro.rsi
prefix: 100
- type: Sound