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

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

View File

@@ -0,0 +1,39 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Created by TheShuEd (github) for CrystallPunk14",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "unwielded"
},
{
"name": "unwielded-arrow"
},
{
"name": "wielded"
},
{
"name": "wielded-arrow"
},
{
"name": "equipped-BELT1",
"directions": 4
},
{
"name": "equipped-BELT2",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B