Cap gun and foam crossbow fixes (#3397)

Assigned sprite for cap gun cartridge. Added cap gun cartridge box. Fixed naming of cap gun speed loader so it shows easier in entity spawner. Fixed cap gun so it deals 0 damage.
This commit is contained in:
Peptide90
2021-02-25 11:30:35 +00:00
committed by GitHub
parent acf34e373f
commit fda390cbf7
4 changed files with 21 additions and 8 deletions

View File

@@ -13,13 +13,24 @@
# Boxes
- type: entity
id: BoxDonkSoftBox
name: "foamdart box"
name: "foam dart box"
parent: BoxDonkSoftBase
components:
- type: AmmoBox
capacity: 40
fillPrototype: BulletDonkSoft
- type: Sprite
sprite: Objects/Fun/toys.rsi
state: foambox
- type: entity
id: BoxCartridgeCap
name: "cap gun cartridge box"
parent: BoxDonkSoftBase
components:
- type: AmmoBox
capacity: 20
fillPrototype: CartridgeCap
- type: Sprite
sprite: Objects\Storage\boxes.rsi
state: box

View File

@@ -8,8 +8,8 @@
caliber: Cap
- type: Sprite
netsync: false
noRot: true
sprite: Objects/Consumable/Trash/ash.rsi
directional: true
sprite: Objects\Weapons\Guns\Ammunition\Casings\ammo_casing.rsi
layers:
- state: base
map: ["enum.AmmoVisualLayers.Base"]
@@ -17,8 +17,8 @@
- type: entity
id: CartridgeCap
name: cartridge (cap)
name: cap gun cartridge
parent: CartridgeCapBase
components:
- type: Ammo
projectile: BulletCap
projectile: BulletCap

View File

@@ -1,6 +1,6 @@
- type: entity
id: CapAmmoBase
name: "cap loader"
name: "cap gun loader"
parent: BaseItem
abstract: true
components:
@@ -23,7 +23,7 @@
- type: entity
id: CapLoader
name: "capgun loader"
name: "cap gun loader"
parent: CapAmmoBase
components:
- type: SpeedLoader

View File

@@ -229,3 +229,5 @@
state: capbullet
- type: Projectile
deleteOnCollide: true
damages:
Piercing: 0