Two-handed crossbow (#1315)

* Crossbow

* bow

* size

* size crossbow

* PhysicalComposition
This commit is contained in:
Nim
2025-06-10 11:08:07 +03:00
committed by GitHub
parent 747f76242f
commit f0a25ddef6
17 changed files with 288 additions and 1 deletions

View File

@@ -12,6 +12,20 @@
tags:
- CP14CrossbowBolt
- type: entity
parent: BaseArrow
id: CP14BaseBigCrossbolt
categories: [ ForkFiltered ]
abstract: true
components:
- type: Item
size: Small
shape:
- 0,0,0,1
- type: Tag
tags:
- CP14BigCrossbowBolt
- type: entity
id: CP14CrossboltIron
parent: CP14BaseCrossbolt
@@ -106,3 +120,86 @@
- type: PhysicalComposition
materialComposition:
CP14Mithril: 3
- type: entity
id: CP14BigCrossboltIron
parent: CP14BaseBigCrossbolt
name: iron big crossbow bolt
description: A large rod without plumage, for large crossbows.
components:
- type: Projectile
deleteOnCollide: false
onlyCollideWhenShot: true
damage:
types:
Piercing: 35
- type: Sprite
sprite: _CP14/Objects/Weapons/Ranged/Projectiles/crossbolt.rsi
layers:
- state: big_rod
- type: PhysicalComposition
materialComposition:
CP14Iron: 5
- type: entity
id: CP14BigCrossboltGold
parent: CP14BaseBigCrossbolt
name: gold big crossbow bolt
description: A large rod without plumage, for large crossbows.
components:
- type: Projectile
deleteOnCollide: false
onlyCollideWhenShot: true
damage:
types:
Piercing: 25
- type: Sprite
sprite: _CP14/Objects/Weapons/Ranged/Projectiles/crossbolt.rsi
layers:
- state: big_rod
color: "#ffe269"
- type: PhysicalComposition
materialComposition:
CP14Gold: 5
- type: entity
id: CP14BigCrossboltCopper
parent: CP14BaseBigCrossbolt
name: copper big crossbow bolt
description: A large rod without plumage, for large crossbows.
components:
- type: Projectile
deleteOnCollide: false
onlyCollideWhenShot: true
damage:
types:
Piercing: 25
- type: Sprite
sprite: _CP14/Objects/Weapons/Ranged/Projectiles/crossbolt.rsi
layers:
- state: big_rod
color: "#e28f08"
- type: PhysicalComposition
materialComposition:
CP14Copper: 5
- type: entity
id: CP14BigCrossboltMithril
parent: CP14BaseBigCrossbolt
name: mithril big crossbow bolt
description: A large rod without plumage, for large crossbows.
components:
- type: Projectile
deleteOnCollide: false
onlyCollideWhenShot: true
damage:
types:
Piercing: 40
- type: Sprite
sprite: _CP14/Objects/Weapons/Ranged/Projectiles/crossbolt.rsi
layers:
- state: big_rod
color: "#38f0b3"
- type: PhysicalComposition
materialComposition:
CP14Mithril: 5

View File

@@ -7,7 +7,9 @@
- type: Sprite
sprite: _CP14/Objects/Weapons/Ranged/bow.rsi
- type: Item
size: Normal
size: Huge
shape:
- 0,0,1,3
- type: Clothing
equipDelay: 0.45
unequipDelay: 0.45

View File

@@ -0,0 +1,62 @@
- type: entity
id: CP14BaseCrossbow
name: crossbow
parent: BaseItem
categories: [ ForkFiltered ]
description: The standard crossbow, is a great threat, although many may not find it convenient. But that kind of strength may be worth it.
components:
- type: Sprite
sprite: _CP14/Objects/Weapons/Ranged/crossbow.rsi
layers:
- state: unwielded
map: [ base ]
- type: Item
size: Huge
shape:
- 0,0,1,3
- type: Clothing
equipDelay: 0.45
unequipDelay: 0.45
sprite: _CP14/Objects/Weapons/Ranged/crossbow.rsi
quickEquip: false
breakOnMove: false
slots:
- neck
- type: Wieldable
- type: GunRequiresWield
- type: SpeedModifiedOnWield
walkModifier: 0.7
sprintModifier: 0.7
- type: UseDelay
delay: 3
- type: Gun
fireRate: 0.3
minAngle: 15
maxAngle: 30
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:
- CP14BigCrossbowBolt
- type: ContainerContainer
containers:
projectiles: !type:ContainerSlot
- type: ContainerAmmoProvider
container: projectiles
- type: Appearance
- type: ItemMapper
mapLayers:
unwielded-arrow:
whitelist:
tags:
- CP14BigCrossbowBolt

View File

@@ -162,6 +162,66 @@
result: CP14CrossboltMithril
resultCount: 3
- type: CP14Recipe
id: CP14BigCrossboltCopper
tag: CP14RecipeAnvil
category: Weapon
craftTime: 1
requirements:
- !type:SkillRequired
skills:
- CopperMelting
- !type:StackResource
stack: CP14CopperBar
count: 1
result: CP14BigCrossboltCopper
resultCount: 2
- type: CP14Recipe
id: CP14BigCrossboltIron
tag: CP14RecipeAnvil
category: Weapon
craftTime: 1
requirements:
- !type:SkillRequired
skills:
- IronMelting
- !type:StackResource
stack: CP14IronBar
count: 1
result: CP14BigCrossboltIron
resultCount: 2
- type: CP14Recipe
id: CP14BigCrossboltGold
tag: CP14RecipeAnvil
category: Weapon
craftTime: 1
requirements:
- !type:SkillRequired
skills:
- GoldMelting
- !type:StackResource
stack: CP14GoldBar
count: 1
result: CP14BigCrossboltGold
resultCount: 2
- type: CP14Recipe
id: CP14BigCrossboltMithril
tag: CP14RecipeAnvil
category: Weapon
craftTime: 1
requirements:
- !type:SkillRequired
skills:
- MithrilMelting
- !type:StackResource
stack: CP14MithrilBar
count: 1
result: CP14BigCrossboltMithril
resultCount: 2
- type: CP14Recipe
id: CP14BaseLockpick
tag: CP14RecipeAnvil
@@ -211,6 +271,23 @@
count: 1
result: CP14BaseLightCrossbow
- type: CP14Recipe
id: CP14BaseCrossbow
tag: CP14RecipeAnvil
category: Weapon
craftTime: 4
requirements:
- !type:SkillRequired
skills:
- IronMelting
- !type:StackResource
stack: CP14IronBar
count: 5
- !type:ProtoIdResource
protoId: CP14String
count: 2
result: CP14BaseCrossbow
- type: CP14Recipe
id: CP14ClothingMaskSteelMask
tag: CP14RecipeAnvil

View File

@@ -151,5 +151,8 @@
- type: Tag
id: CP14EnergyCrystal
- type: Tag
id: CP14BigCrossbowBolt
- type: Tag
id: CP14Sandwich