Adds wielding for all large guns (#26970)

* Adds wielding assets

* Modifies meta.json files and adds artist credit

* Adds wieldable component to a bunch of weapons

* Moves shotgun inhands and wield inhands to their own folders (because its the only way the sprites would work)

* Removes the wieldable component from some guns

* Adds wielding sprites for wieldable guns that didnt have them

* Adds gun wielding bonuses and base innaccuracy to wieldable guns.

* Corrects wielded accuracy to be default accuracy instead of perfect

* Makes the drozd smg and bulldog shotgun wieldable

* Makes nukie c20r wieldable and adds sprites

* Adds BaseGunWieldable

* Makes all the newly wieldable gun use the base inheritable

* Adds accuracy to smgs to resolve inheritance conflict

* Makes all wieldable shotguns require wielding to fire because of a bug involving spread innacuracy

* Adds wield bonus message on examine
This commit is contained in:
RiceMar1244
2024-05-09 22:58:15 -04:00
committed by GitHub
parent 00733d87d0
commit 2287f59e8a
79 changed files with 569 additions and 352 deletions

View File

@@ -0,0 +1,12 @@
# A basic inheritable template for a gun that is wieldable and has the standard inaccuracy.
- type: entity
id: BaseGunWieldable
abstract: true
components:
- type: Wieldable
- type: GunWieldBonus
minAngle: -20
maxAngle: -30
- type: Gun
minAngle: 21
maxAngle: 32

View File

@@ -200,7 +200,7 @@
- type: entity
name: laser rifle
parent: BaseWeaponBattery
parent: [BaseWeaponBattery, BaseGunWieldable]
id: WeaponLaserCarbine
description: Favoured by Nanotrasen Security for being cheap and easy to use.
components:
@@ -267,7 +267,7 @@
- type: entity
name: pulse carbine
parent: BaseWeaponBattery
parent: [BaseWeaponBattery, BaseGunWieldable]
id: WeaponPulseCarbine
description: A high tech energy carbine favoured by the NT-ERT operatives.
components:
@@ -298,7 +298,7 @@
- type: entity
name: pulse rifle
parent: BaseWeaponBattery
parent: [BaseWeaponBattery, BaseGunWieldable]
id: WeaponPulseRifle
description: A weapon that is almost as infamous as its users.
components:
@@ -325,7 +325,7 @@
- type: entity
name: laser cannon
parent: BaseWeaponBattery
parent: [BaseWeaponBattery, BaseGunWieldable]
id: WeaponLaserCannon
description: A heavy duty, high powered laser weapon.
components:
@@ -380,7 +380,7 @@
- type: entity
name: x-ray cannon
parent: BaseWeaponBattery
parent: [BaseWeaponBattery, BaseGunWieldable]
id: WeaponXrayCannon
description: An experimental weapon that uses concentrated x-ray energy against its target.
components:

View File

@@ -22,7 +22,7 @@
- type: entity
name: china lake
parent: BaseWeaponLauncher
parent: [BaseWeaponLauncher, BaseGunWieldable]
id: WeaponLauncherChinaLake
description: PLOOP
components:

View File

@@ -1,6 +1,6 @@
- type: entity
name: BaseWeaponRifle
parent: BaseItem
parent: [BaseItem, BaseGunWieldable]
id: BaseWeaponRifle
description: A rooty tooty point and shooty.
abstract: true

View File

@@ -80,7 +80,7 @@
- type: entity
name: C-20r sub machine gun
parent: BaseWeaponSubMachineGun
parent: [BaseWeaponSubMachineGun, BaseGunWieldable]
id: WeaponSubMachineGunC20r
description: A firearm that is often used by the infamous nuclear operatives. Uses .35 auto ammo.
components:
@@ -94,6 +94,8 @@
- type: Clothing
sprite: Objects/Weapons/Guns/SMGs/c20r.rsi
- type: Gun
minAngle: 21
maxAngle: 32
shotsPerBurst: 5
availableModes:
- SemiAuto
@@ -111,7 +113,7 @@
- type: entity
name: Drozd
parent: BaseWeaponSubMachineGun
parent: [BaseWeaponSubMachineGun, BaseGunWieldable]
id: WeaponSubMachineGunDrozd
description: An excellent fully automatic Heavy SMG.
components:
@@ -125,6 +127,8 @@
- type: Clothing
sprite: Objects/Weapons/Guns/SMGs/drozd.rsi
- type: Gun
minAngle: 21
maxAngle: 32
fireRate: 6
selectedMode: FullAuto
soundGunshot:

View File

@@ -46,7 +46,7 @@
- type: entity
name: Bulldog
# Don't parent to BaseWeaponShotgun because it differs significantly
parent: BaseItem
parent: [BaseItem, BaseGunWieldable]
id: WeaponShotgunBulldog
description: It's a magazine-fed shotgun designed for close quarters combat. Uses .50 shotgun shells.
components:
@@ -66,6 +66,7 @@
- Back
- suitStorage
- type: AmmoCounter
- type: GunRequiresWield #remove when inaccuracy on spreads is fixed
- type: Gun
fireRate: 2
selectedMode: FullAuto
@@ -101,7 +102,7 @@
- type: entity
name: double-barreled shotgun
parent: BaseWeaponShotgun
parent: [BaseWeaponShotgun, BaseGunWieldable]
id: WeaponShotgunDoubleBarreled
description: An immortal classic. Uses .50 shotgun shells.
components:
@@ -111,8 +112,8 @@
size: Normal
shape:
- 0,0,4,0
sprite: Objects/Weapons/Guns/Shotguns/inhands_64x.rsi
heldPrefix: db
sprite: Objects/Weapons/Guns/Shotguns/db_shotgun_inhands_64x.rsi
- type: GunRequiresWield #remove when inaccuracy on spreads is fixed
- type: Gun
fireRate: 2
- type: BallisticAmmoProvider
@@ -134,7 +135,7 @@
- type: entity
name: Enforcer
parent: BaseWeaponShotgun
parent: [BaseWeaponShotgun, BaseGunWieldable]
id: WeaponShotgunEnforcer
description: A premium combat shotgun based on the Kammerer design, featuring an upgraded clip capacity. .50 shotgun shells.
components:
@@ -143,9 +144,9 @@
- type: Clothing
sprite: Objects/Weapons/Guns/Shotguns/enforcer.rsi
- type: Item
sprite: Objects/Weapons/Guns/Shotguns/inhands_64x.rsi
heldPrefix: enforcer
sprite: Objects/Weapons/Guns/Shotguns/enforcer_inhands_64x.rsi
- type: BallisticAmmoProvider
- type: GunRequiresWield #remove when inaccuracy on spreads is fixed
- type: entity
parent: WeaponShotgunEnforcer
@@ -157,7 +158,7 @@
- type: entity
name: Kammerer
parent: BaseWeaponShotgun
parent: [BaseWeaponShotgun, BaseGunWieldable]
id: WeaponShotgunKammerer
description: When an old Remington design meets modern materials, this is the result. A favourite weapon of militia forces throughout many worlds. Uses .50 shotgun shells.
components:
@@ -165,12 +166,12 @@
size: Normal
shape:
- 0,0,4,0
sprite: Objects/Weapons/Guns/Shotguns/inhands_64x.rsi
heldPrefix: pump
sprite: Objects/Weapons/Guns/Shotguns/pump_inhands_64x.rsi
- type: Sprite
sprite: Objects/Weapons/Guns/Shotguns/pump.rsi
- type: Clothing
sprite: Objects/Weapons/Guns/Shotguns/pump.rsi
- type: GunRequiresWield #remove when inaccuracy on spreads is fixed
- type: BallisticAmmoProvider
capacity: 4
- type: Tag
@@ -189,8 +190,7 @@
sprite: Objects/Weapons/Guns/Shotguns/sawn.rsi
- type: Item
size: Small
sprite: Objects/Weapons/Guns/Shotguns/inhands_64x.rsi
heldPrefix: sawn
sprite: Objects/Weapons/Guns/Shotguns/sawn_inhands_64x.rsi
- type: Gun
fireRate: 4
- type: BallisticAmmoProvider
@@ -240,7 +240,7 @@
- type: entity
name: blunderbuss
parent: BaseWeaponShotgun
parent: [BaseWeaponShotgun, BaseGunWieldable]
id: WeaponShotgunBlunderbuss
suffix: Pirate
description: Deadly at close range.
@@ -251,6 +251,7 @@
- 0,0,4,0
- type: Sprite
sprite: Objects/Weapons/Guns/Shotguns/blunderbuss.rsi
- type: GunRequiresWield #remove when inaccuracy on spreads is fixed
- type: Gun
fireRate: 2
- type: BallisticAmmoProvider
@@ -260,7 +261,7 @@
- type: entity
name: improvised shotgun
parent: BaseWeaponShotgun
parent: [BaseWeaponShotgun, BaseGunWieldable]
id: WeaponShotgunImprovised
description: A shitty, hand-made shotgun that uses .50 shotgun shells. It can only hold one round in the chamber.
components:
@@ -272,8 +273,8 @@
size: Normal
shape:
- 0,0,4,0
sprite: Objects/Weapons/Guns/Shotguns/inhands_64x.rsi
heldPrefix: improvised
sprite: Objects/Weapons/Guns/Shotguns/improvised_shotgun_inhands_64x.rsi
- type: GunRequiresWield #remove when inaccuracy on spreads is fixed
- type: Gun
fireRate: 4 #No reason to stifle the firerate since you have to manually reload every time anyways.
- type: BallisticAmmoProvider

View File

@@ -40,7 +40,7 @@
- type: entity
name: Kardashev-Mosin
parent: BaseWeaponSniper
parent: [BaseWeaponSniper, BaseGunWieldable]
id: WeaponSniperMosin
description: A weapon for hunting, or endless trench warfare. Uses .30 rifle ammo.
components:
@@ -49,7 +49,7 @@
- type: entity
name: Hristov
parent: BaseWeaponSniper
parent: [BaseWeaponSniper, BaseGunWieldable]
id: WeaponSniperHristov
description: A portable anti-materiel rifle. Fires armor piercing 14.5mm shells. Uses .60 anti-materiel ammo.
components: