added light crossbow

This commit is contained in:
Ed
2024-04-22 21:46:11 +03:00
parent 43384c1125
commit 39f64dea73
10 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
- type: entity
id: CP14BaseLightCrossbow
name: light crossbow
parent: BaseItem
description: a small, compact crossbow that is comfortable to hold with one hand. Not too strong on the back side.
components:
- type: Sprite
sprite: _CP14/Objects/Weapons/Ranged/light_crossbow.rsi
layers:
- state: unwielded
map: [ base ]
- type: Item
size: Small
- type: Clothing
equipDelay: 0.45
unequipDelay: 0.45
sprite: _CP14/Objects/Weapons/Ranged/light_crossbow.rsi
quickEquip: false
breakOnMove: false
slots:
- belt
- type: UseDelay
delay: 1
- type: Gun
fireRate: 1
minAngle: 15
maxAngle: 35
selectedMode: SemiAuto
availableModes:
- SemiAuto
soundGunshot:
collection: BulletMiss
soundEmpty: null
- type: ItemSlots
slots:
projectiles:
name: Projectiles
startingItem: null
insertSound: /Audio/Weapons/Guns/Misc/arrow_nock.ogg
whitelist:
tags:
- Arrow
- type: ContainerContainer
containers:
projectiles: !type:ContainerSlot
- type: ContainerAmmoProvider
container: projectiles
- type: Appearance
- type: ItemMapper
mapLayers:
unwielded-arrow:
whitelist:
tags:
- Arrow