From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Tue, 14 Feb 2023 23:08:01 +0000 (-0500) Subject: Make counters climbable (#14085) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=8af280032e2e9188d43cf89f9abf262bf5002031;p=space-station-14.git Make counters climbable (#14085) --- diff --git a/Resources/Prototypes/Entities/Structures/Furniture/Tables/base_structuretables.yml b/Resources/Prototypes/Entities/Structures/Furniture/Tables/base_structuretables.yml index 0970d04bcc..004e085989 100644 --- a/Resources/Prototypes/Entities/Structures/Furniture/Tables/base_structuretables.yml +++ b/Resources/Prototypes/Entities/Structures/Furniture/Tables/base_structuretables.yml @@ -35,3 +35,20 @@ bonkSound: !type:SoundCollectionSpecifier collection: TrayHit - type: Clickable + +- type: entity + id: CounterBase + parent: TableBase + name: counter + abstract: true + components: + - type: Fixtures + fixtures: + - shape: + !type:PhysShapeAabb + bounds: "-0.45,-0.45,0.45,0.45" + density: 55 + mask: + - TableMask + layer: + - TableLayer diff --git a/Resources/Prototypes/Entities/Structures/Furniture/Tables/tables.yml b/Resources/Prototypes/Entities/Structures/Furniture/Tables/tables.yml index 87696217b1..28786f925a 100644 --- a/Resources/Prototypes/Entities/Structures/Furniture/Tables/tables.yml +++ b/Resources/Prototypes/Entities/Structures/Furniture/Tables/tables.yml @@ -54,10 +54,10 @@ components: - type: SpriteFade - type: Sprite - sprite: Structures/Furniture/Tables/counterwood.rsi + sprite: Structures/Furniture/Tables/frame.rsi netsync: false - type: Icon - sprite: Structures/Furniture/Tables/counterwood.rsi + sprite: Structures/Furniture/Tables/frame.rsi state: full - type: Fixtures fixtures: @@ -108,9 +108,9 @@ description: Pieces of metal that make the frame of a table. components: - type: Sprite - sprite: Structures/Furniture/Tables/countermetal.rsi + sprite: Structures/Furniture/Tables/frame.rsi - type: Icon - sprite: Structures/Furniture/Tables/countermetal.rsi + sprite: Structures/Furniture/Tables/frame.rsi state: full - type: Damageable damageContainer: Inorganic @@ -492,20 +492,80 @@ - type: entity id: TableCounterWood - parent: CounterWoodFrame + parent: CounterBase name: wood counter description: Do not apply fire to this. Rumour says it burns easily. components: + - type: Sprite + sprite: Structures/Furniture/Tables/counterwood.rsi + - type: Icon + sprite: Structures/Furniture/Tables/counterwood.rsi + state: full + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Wood + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 100 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 15 + behaviors: + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/woodhit.ogg + - !type:SpawnEntitiesBehavior + spawn: + MaterialWoodPlank1: + min: 0 + max: 1 + - !type:DoActsBehavior + acts: [ "Destruction" ] - type: Construction graph: Table node: CounterWood - type: entity id: TableCounterMetal - parent: CounterMetalFrame + parent: CounterBase name: metal counter description: Looks like a good place to put a drink down. components: + - type: Sprite + sprite: Structures/Furniture/Tables/countermetal.rsi + - type: Icon + sprite: Structures/Furniture/Tables/countermetal.rsi + state: full + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Metallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 100 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 25 + behaviors: + - !type:PlaySoundBehavior + sound: + path: /Audio/Effects/metalbreak.ogg + - !type:SpawnEntitiesBehavior + spawn: + SheetSteel1: + min: 0 + max: 1 + - !type:DoActsBehavior + acts: [ "Destruction" ] - type: Construction graph: Table node: CounterMetal