Glass tables break when climbed on (#6246)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
- type: entity
|
||||
id: TableFrame
|
||||
parent: TableBase
|
||||
# BaseStructure and not BaseTable, since these shouldn't be climbable/placeable.
|
||||
parent: BaseStructure
|
||||
name: table frame
|
||||
description: Pieces of metal that make the frame of a table.
|
||||
components:
|
||||
@@ -8,9 +9,21 @@
|
||||
sprite: Structures/Furniture/Tables/frame.rsi
|
||||
- type: Icon
|
||||
sprite: Structures/Furniture/Tables/frame.rsi
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.45,-0.45,0.45,0.45"
|
||||
mass: 50
|
||||
mask:
|
||||
- Impassable
|
||||
- VaultImpassable
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Metallic
|
||||
- type: IconSmooth
|
||||
key: state
|
||||
base: state_
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
@@ -104,6 +117,13 @@
|
||||
sprite: Structures/Furniture/Tables/glass.rsi
|
||||
- type: Icon
|
||||
sprite: Structures/Furniture/Tables/glass.rsi
|
||||
- type: GlassTable
|
||||
climberDamage:
|
||||
types:
|
||||
Slash: 15
|
||||
tableDamage:
|
||||
types:
|
||||
Blunt: 25
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
@@ -118,6 +138,8 @@
|
||||
ShardGlass:
|
||||
min: 1
|
||||
max: 1
|
||||
- !type:ChangeConstructionNodeBehavior
|
||||
node: TableFrame
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Construction
|
||||
@@ -134,6 +156,13 @@
|
||||
sprite: Structures/Furniture/Tables/r_glass.rsi
|
||||
- type: Icon
|
||||
sprite: Structures/Furniture/Tables/r_glass.rsi
|
||||
- type: GlassTable
|
||||
climberDamage:
|
||||
types:
|
||||
Slash: 25
|
||||
tableDamage:
|
||||
types:
|
||||
Blunt: 40
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
@@ -143,6 +172,8 @@
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/glass_break2.ogg
|
||||
- !type:ChangeConstructionNodeBehavior
|
||||
node: TableFrame
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
ShardGlass:
|
||||
@@ -167,15 +198,24 @@
|
||||
sprite: Structures/Furniture/Tables/plasma.rsi
|
||||
- type: Icon
|
||||
sprite: Structures/Furniture/Tables/plasma.rsi
|
||||
- type: GlassTable
|
||||
climberDamage:
|
||||
types:
|
||||
Slash: 30
|
||||
tableDamage:
|
||||
types:
|
||||
Blunt: 100
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 20
|
||||
damage: 50
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/glass_break2.ogg
|
||||
- !type:ChangeConstructionNodeBehavior
|
||||
node: TableFrame
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
ShardGlassPlasma:
|
||||
|
||||
Reference in New Issue
Block a user