From 579b0093fae8c10c658cc2c2ed6b4a9234341d0c Mon Sep 17 00:00:00 2001 From: Arendian <137322659+Arendian@users.noreply.github.com> Date: Fri, 14 Jul 2023 06:48:59 +0200 Subject: [PATCH] Disposable turret for uplink (#17973) * Disposable turret for uplink * Adjusted firerate and ammo capacity * Fix funny yaml mistake * adjust cargo value * Fix price for real this time * Made it buyable for scientist traitors --- .../Locale/en-US/store/uplink-catalog.ftl | 3 ++ .../Catalog/Fills/Items/toolboxes.yml | 21 ++++++++++ .../Prototypes/Catalog/uplink_catalog.yml | 18 +++++++- .../Entities/Objects/Tools/toolbox.yml | 31 ++++++++++++++ .../Entities/Objects/Weapons/Guns/turrets.yml | 41 +++++++++++++++++++ 5 files changed, 113 insertions(+), 1 deletion(-) diff --git a/Resources/Locale/en-US/store/uplink-catalog.ftl b/Resources/Locale/en-US/store/uplink-catalog.ftl index ee1104696c..622d6fe18a 100644 --- a/Resources/Locale/en-US/store/uplink-catalog.ftl +++ b/Resources/Locale/en-US/store/uplink-catalog.ftl @@ -178,6 +178,9 @@ uplink-chimp-ammo-desc = A box of 10 omega particle cartridges for the CHIMP. Om uplink-proximity-mine-name = Proximity Mine uplink-proximity-mine-desc = A mine disguised as a wet floor sign. +uplink-disposable-turret-name = Disposable Ballistic Turret +uplink-disposable-turret-desc = Looks and functions like a normal electrical toolbox. Upon hitting the toolbox it will transform into a ballistic turret, theoretically shooting at anyone except members of the syndicate. + # Armor uplink-chameleon-name = Chameleon Kit uplink-chameleon-desc = A backpack full of items that contain chameleon technology allowing you to disguise as pretty much anything on the station, and more! diff --git a/Resources/Prototypes/Catalog/Fills/Items/toolboxes.yml b/Resources/Prototypes/Catalog/Fills/Items/toolboxes.yml index 84e415128c..234481af8d 100644 --- a/Resources/Prototypes/Catalog/Fills/Items/toolboxes.yml +++ b/Resources/Prototypes/Catalog/Fills/Items/toolboxes.yml @@ -40,6 +40,27 @@ - id: CableHVStack10 orGroup: GlovesOrWires +- type: entity + id: ToolboxElectricalTurretFilled + name: electrical toolbox + suffix: Filled + parent: ToolboxElectricalTurret + components: + - type: StorageFill + contents: + - id: Screwdriver + - id: Crowbar + - id: Wirecutter + - id: CableApcStack10 + - id: CableMVStack10 + - id: trayScanner + prob: 0.9 + - id: ClothingHandsGlovesColorYellow + prob: 0.05 + orGroup: GlovesOrWires + - id: CableHVStack10 + orGroup: GlovesOrWires + - type: entity id: ToolboxMechanicalFilled name: mechanical toolbox diff --git a/Resources/Prototypes/Catalog/uplink_catalog.yml b/Resources/Prototypes/Catalog/uplink_catalog.yml index 876370ee92..c6983f1300 100644 --- a/Resources/Prototypes/Catalog/uplink_catalog.yml +++ b/Resources/Prototypes/Catalog/uplink_catalog.yml @@ -124,7 +124,7 @@ description: uplink-mini-bomb-desc productEntity: SyndieMiniBomb cost: - Telecrystal: 6 + Telecrystal: 6 categories: - UplinkExplosives @@ -744,6 +744,22 @@ - Scientist - Chef +- type: listing + id: UplinkDisposableTurret + name: uplink-disposable-turret-name + description: uplink-disposable-turret-desc + productEntity: ToolboxElectricalTurretFilled + cost: + Telecrystal: 12 + categories: + - UplinkJob + conditions: + - !type:BuyerJobCondition + whitelist: + - StationEngineer + - AtmosphericTechnician + - Scientist + # Armor - type: listing diff --git a/Resources/Prototypes/Entities/Objects/Tools/toolbox.yml b/Resources/Prototypes/Entities/Objects/Tools/toolbox.yml index 037c86e843..e9f0526796 100644 --- a/Resources/Prototypes/Entities/Objects/Tools/toolbox.yml +++ b/Resources/Prototypes/Entities/Objects/Tools/toolbox.yml @@ -59,6 +59,37 @@ - type: Item sprite: Objects/Tools/Toolboxes/toolbox_yellow.rsi +- type: entity + name: electrical toolbox + suffix: Syndicate, Turret + parent: ToolboxElectrical + id: ToolboxElectricalTurret + description: A toolbox typically stocked with electrical gear. + components: + - type: Damageable + damageContainer: Inorganic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 100 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 1 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:SpawnEntitiesBehavior + spawn: + WeaponTurretSyndicateDisposable: + min: 1 + max: 1 + - type: StaticPrice + price: 1350 + - type: entity name: artistic toolbox parent: ToolboxBase diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Guns/turrets.yml b/Resources/Prototypes/Entities/Objects/Weapons/Guns/turrets.yml index 8cbf19ef77..9e7e7425f0 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Guns/turrets.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Guns/turrets.yml @@ -120,6 +120,47 @@ factions: - Syndicate +- type: entity + parent: BaseWeaponTurret + name: disposable ballistic turret + id: WeaponTurretSyndicateDisposable + suffix: Syndicate, Disposable + components: + - type: Faction + factions: + - Syndicate + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 600 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 100 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg + - !type:SpawnEntitiesBehavior + spawn: + WeaponTurretSyndicateBroken: + min: 1 + max: 1 + - type: Gun + fireRate: 2.5 + selectedMode: FullAuto + availableModes: + - FullAuto + soundGunshot: /Audio/Weapons/Guns/Gunshots/gun_sentry.ogg + - type: BallisticAmmoProvider + proto: CartridgePistol + capacity: 125 + - type: entity parent: BaseWeaponTurret id: WeaponTurretNanoTrasen