Make counters climbable (#14085)
This commit is contained in:
@@ -35,3 +35,20 @@
|
|||||||
bonkSound: !type:SoundCollectionSpecifier
|
bonkSound: !type:SoundCollectionSpecifier
|
||||||
collection: TrayHit
|
collection: TrayHit
|
||||||
- type: Clickable
|
- 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
|
||||||
|
|||||||
@@ -54,10 +54,10 @@
|
|||||||
components:
|
components:
|
||||||
- type: SpriteFade
|
- type: SpriteFade
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Structures/Furniture/Tables/counterwood.rsi
|
sprite: Structures/Furniture/Tables/frame.rsi
|
||||||
netsync: false
|
netsync: false
|
||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Structures/Furniture/Tables/counterwood.rsi
|
sprite: Structures/Furniture/Tables/frame.rsi
|
||||||
state: full
|
state: full
|
||||||
- type: Fixtures
|
- type: Fixtures
|
||||||
fixtures:
|
fixtures:
|
||||||
@@ -108,9 +108,9 @@
|
|||||||
description: Pieces of metal that make the frame of a table.
|
description: Pieces of metal that make the frame of a table.
|
||||||
components:
|
components:
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Structures/Furniture/Tables/countermetal.rsi
|
sprite: Structures/Furniture/Tables/frame.rsi
|
||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Structures/Furniture/Tables/countermetal.rsi
|
sprite: Structures/Furniture/Tables/frame.rsi
|
||||||
state: full
|
state: full
|
||||||
- type: Damageable
|
- type: Damageable
|
||||||
damageContainer: Inorganic
|
damageContainer: Inorganic
|
||||||
@@ -492,20 +492,80 @@
|
|||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: TableCounterWood
|
id: TableCounterWood
|
||||||
parent: CounterWoodFrame
|
parent: CounterBase
|
||||||
name: wood counter
|
name: wood counter
|
||||||
description: Do not apply fire to this. Rumour says it burns easily.
|
description: Do not apply fire to this. Rumour says it burns easily.
|
||||||
components:
|
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
|
- type: Construction
|
||||||
graph: Table
|
graph: Table
|
||||||
node: CounterWood
|
node: CounterWood
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: TableCounterMetal
|
id: TableCounterMetal
|
||||||
parent: CounterMetalFrame
|
parent: CounterBase
|
||||||
name: metal counter
|
name: metal counter
|
||||||
description: Looks like a good place to put a drink down.
|
description: Looks like a good place to put a drink down.
|
||||||
components:
|
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
|
- type: Construction
|
||||||
graph: Table
|
graph: Table
|
||||||
node: CounterMetal
|
node: CounterMetal
|
||||||
|
|||||||
Reference in New Issue
Block a user