bow and quiver

This commit is contained in:
Nimfar11
2025-01-20 03:45:37 +02:00
parent 9ef68fccf9
commit b19b5c9bb6
27 changed files with 217 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
categories: [ ForkFiltered ]
components:
- type: Sprite
sprite: Clothing/Belt/quiver.rsi
sprite: _CP14/Clothing/Belt/quiver.rsi
layers:
- state: icon
- map: [ "enum.StorageContainerVisualLayers.Fill" ]
@@ -25,6 +25,7 @@
whitelist:
tags:
- CP14CrossbowBolt
- CP14Arrow
- type: Appearance
- type: StorageContainerVisuals
maxFillLevels: 3

View File

@@ -0,0 +1,31 @@
- type: entity
parent: BaseArrow
id: CP14BaseArrow
categories: [ ForkFiltered ]
abstract: true
components:
- type: Tag
tags:
- CP14Arrow
- type: entity
id: CP14Arrow
parent: CP14BaseArrow
name: arrow
description: Wooden rod with iron tip and plumage. Simple and dangerous.
components:
- type: Projectile
deleteOnCollide: false
onlyCollideWhenShot: true
damage:
types:
Piercing: 25
- type: Sprite
sprite: _CP14/Objects/Weapons/Ranged/Projectiles/arrows.rsi
layers:
- state: tail
- state: rod
- state: tip
- state: solution1
map: ["enum.SolutionContainerLayers.Fill"]
visible: false

View File

@@ -0,0 +1,80 @@
- type: entity
parent: BaseItem
id: CP14BaseBow
abstract: true
categories: [ ForkFiltered ]
components:
- type: Sprite
sprite: _CP14/Objects/Weapons/Ranged/bow.rsi
- type: Item
size: Normal
- type: Clothing
equipDelay: 0.45
unequipDelay: 0.45
sprite: _CP14/Objects/Weapons/Ranged/bow.rsi
quickEquip: false
breakOnMove: false
slots:
- neck
- type: Wieldable
wieldSound:
path: /Audio/Items/bow_pull.ogg
- type: UseDelay
delay: 1
- type: GunRequiresWield
- type: Gun
minAngle: 0
maxAngle: 5
fireRate: 1
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:
- CP14Arrow
- type: ContainerContainer
containers:
projectiles: !type:ContainerSlot
- type: ContainerAmmoProvider
container: projectiles
- type: entity
name: combat bow
description: A standard ranged weapon, and even without magic.
id: CP14BowCombat
parent: CP14BaseBow
components:
- type: Sprite
layers:
- state: unwielded
map: [ base ]
- state: unwielded-arrow
map: [ arrow ]
visible: false
- type: Appearance
- type: ItemMapper
spriteLayers:
- arrow
mapLayers:
arrow:
whitelist:
tags:
- CP14Arrow
- type: GenericVisualizer
visuals:
enum.WieldableVisuals.Wielded:
arrow:
True: { state: wielded-arrow }
False: { state: unwielded-arrow }
base:
True: { state: wielded }
False: { state: unwielded }

View File

@@ -78,3 +78,6 @@
- type: Tag
id: CP14SpellScroll
- type: Tag
id: CP14Arrow

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

View File

@@ -0,0 +1,27 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Sprited by discord: odlieerr",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-BELT2",
"directions": 4
},
{
"name": "fill-1"
},
{
"name": "fill-2"
},
{
"name": "fill-3"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

View File

@@ -0,0 +1,31 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Created by odlieerr (discord)",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "tail"
},
{
"name": "rod"
},
{
"name": "tip"
},
{
"name": "solution1"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

View File

@@ -0,0 +1,43 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Sprited by discord: odlieerr",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "unwielded"
},
{
"name": "unwielded-arrow"
},
{
"name": "wielded"
},
{
"name": "wielded-arrow"
},
{
"name": "equipped-NECK",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "wielded-inhand-left",
"directions": 4
},
{
"name": "wielded-inhand-right",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 889 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B