Make counters climbable (#14085)

This commit is contained in:
Nemanja
2023-02-14 18:08:01 -05:00
committed by GitHub
parent 0b70b53473
commit 8af280032e
2 changed files with 83 additions and 6 deletions

View File

@@ -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

View File

@@ -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