From 68276b9469d5d9cb4c60ed9c78b86ab977dbed5e Mon Sep 17 00:00:00 2001 From: vanx <#vanxxxx> Date: Wed, 28 Aug 2024 13:33:54 +0300 Subject: [PATCH] gun prototype changes --- .../Objects/Weapons/Guns/Basic/pka.yml | 11 +++++++++++ .../Weapons/Guns/Battery/battery_guns.yml | 19 +++++++++++++++++++ .../Objects/Weapons/Guns/LMGs/lmgs.yml | 7 +++++++ .../Objects/Weapons/Guns/Pistols/pistols.yml | 6 ++++++ .../Weapons/Guns/Revolvers/revolvers.yml | 6 ++++++ .../Objects/Weapons/Guns/Rifles/rifles.yml | 11 +++++++++++ .../Objects/Weapons/Guns/SMGs/smgs.yml | 11 +++++++++-- .../Weapons/Guns/Shotguns/shotguns.yml | 7 +++++++ .../Objects/Weapons/Guns/Snipers/snipers.yml | 15 +++++++++++++++ 9 files changed, 91 insertions(+), 2 deletions(-) diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/pka.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/pka.yml index 226fa29164..0a013b6137 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/pka.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Basic/pka.yml @@ -11,5 +11,16 @@ - state: animation-icon visible: false map: [ "empty-icon" ] + - type: MeleeWeapon + attackRate: 0.7 + damage: + types: + Blunt: 7 + soundHit: + collection: GenericHit + - type: IncreaseDamageOnWield + damage: + types: + Blunt: 3 # todo: add itemcomponent with inhandVisuals states using unused texture and animation assets in kinetic_accelerator.rsi # todo: add clothingcomponent with clothingVisuals states using unused texture and animations assets in kinetic_accelerator.rsi diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml index ec0a0a148b..1ba1dcd13e 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml @@ -32,6 +32,13 @@ - type: Appearance - type: StaticPrice price: 500 + - type: MeleeWeapon + attackRate: 0.7 + damage: + types: + Blunt: 10 + soundHit: + collection: GenericHit - type: entity id: BaseWeaponPowerCell @@ -68,6 +75,13 @@ - type: ContainerContainer containers: gun_magazine: !type:ContainerSlot + - type: MeleeWeapon + attackRate: 0.7 + damage: + types: + Blunt: 10 + soundHit: + collection: GenericHit - type: entity id: BaseWeaponBatterySmall @@ -88,6 +102,11 @@ slots: - Belt - suitStorage + - type: MeleeWeapon + attackRate: 1 + damage: + types: + Blunt: 7 - type: entity id: BaseWeaponPowerCellSmall diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/LMGs/lmgs.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/LMGs/lmgs.yml index 49b2eeaada..4e30c5f823 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/LMGs/lmgs.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/LMGs/lmgs.yml @@ -60,6 +60,13 @@ price: 500 - type: UseDelay delay: 1 + - type: MeleeWeapon + attackRate: 0.5 + damage: + types: + Blunt: 8 + soundHit: + collection: GenericHit - type: entity name: L6 SAW diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Pistols/pistols.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Pistols/pistols.yml index 410664e46e..4f69c628c8 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Pistols/pistols.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Pistols/pistols.yml @@ -65,6 +65,12 @@ - type: Appearance - type: StaticPrice price: 500 + - type: MeleeWeapon + damage: + types: + Blunt: 7 + soundHit: + collection: GenericHit - type: entity name: viper diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Revolvers/revolvers.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Revolvers/revolvers.yml index c5237cdad9..292c5e5368 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Revolvers/revolvers.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Revolvers/revolvers.yml @@ -50,6 +50,12 @@ path: /Audio/Weapons/Guns/MagIn/revolver_magin.ogg - type: StaticPrice price: 500 + - type: MeleeWeapon + damage: + types: + Blunt: 7 + soundHit: + collection: GenericHit - type: entity name: Deckard diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Rifles/rifles.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Rifles/rifles.yml index c55b2b6b09..8f42a9af25 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Rifles/rifles.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Rifles/rifles.yml @@ -49,6 +49,13 @@ gun_chamber: !type:ContainerSlot - type: StaticPrice price: 500 + - type: MeleeWeapon + attackRate: 0.7 + damage: + types: + Blunt: 10 + soundHit: + collection: GenericHit - type: entity name: AKMS @@ -98,6 +105,10 @@ steps: 1 zeroVisible: true - type: Appearance + - type: MeleeWeapon + damage: + types: + Blunt: 10 - type: entity name: M-90gl diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/SMGs/smgs.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/SMGs/smgs.yml index 3962f6e1f5..3eb01e77c5 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/SMGs/smgs.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/SMGs/smgs.yml @@ -20,7 +20,7 @@ maxAngle: 16 fireRate: 8 angleIncrease: 3 - angleDecay: 16 + angleDecay: 16 selectedMode: FullAuto availableModes: - SemiAuto @@ -54,6 +54,13 @@ gun_chamber: !type:ContainerSlot - type: StaticPrice price: 500 + - type: MeleeWeapon + attackRate: 0.8 + damage: + types: + Blunt: 8 + soundHit: + collection: GenericHit - type: entity name: Atreides @@ -234,7 +241,7 @@ minAngle: 1 maxAngle: 6 angleIncrease: 1.5 - angleDecay: 6 + angleDecay: 6 selectedMode: FullAuto shotsPerBurst: 5 availableModes: diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Shotguns/shotguns.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Shotguns/shotguns.yml index 52b05b6d60..b498e03a56 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Shotguns/shotguns.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Shotguns/shotguns.yml @@ -43,6 +43,13 @@ ents: [] - type: StaticPrice price: 500 + - type: MeleeWeapon + attackRate: 0.7 + damage: + types: + Blunt: 10 + soundHit: + collection: GenericHit - type: entity name: Bulldog diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Snipers/snipers.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Snipers/snipers.yml index adb8e323f4..e1310de1ae 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/Snipers/snipers.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/Snipers/snipers.yml @@ -37,6 +37,13 @@ ents: [] - type: StaticPrice price: 500 + - type: MeleeWeapon + attackRate: 0.5 + damage: + types: + Blunt: 8 + soundHit: + collection: GenericHit - type: entity name: Kardashev-Mosin @@ -54,6 +61,14 @@ soundGunshot: path: /Audio/Weapons/Guns/Gunshots/sniper.ogg fireOnDropChance: 1 + - type: MeleeWeapon + range: 1.4 # AFFIX BAYONETS! + damage: + types: + Piercing: 10 + Slash: 5 + soundHit: + path: /Audio/Weapons/bladeslice.ogg - type: entity name: Hristov