This commit is contained in:
Stanbery Trask
2021-12-12 23:03:21 -06:00
committed by GitHub
parent e277122237
commit cd4af34849
6 changed files with 213 additions and 0 deletions

View File

@@ -0,0 +1,112 @@
- type: entity
parent: BaseStructure
id: Railing
name: railing
description: Basic railing meant to protect idiots like you from falling.
components:
- type: Sprite
netsync: false
drawdepth: WallTops
sprite: Structures/Walls/railing.rsi
state: side
- type: Icon
sprite: Structures/Walls/railing.rsi
state: side
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.49,-0.49,0.49,-0.3"
mass: 50
layer:
- SmallImpassable
mask:
- Impassable
- type: InteractionOutline
- type: Repairable
- type: Damageable
damageContainer: Inorganic
damageModifierSet: FlimsyMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 20
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
PartRodMetal1:
min: 0
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Climbable
- type: Construction
graph: railing
node: railing
- type: entity
parent: BaseStructure
id: RailingCorner
name: railing
description: Basic railing meant to protect idiots like you from falling.
components:
- type: Sprite
netsync: false
drawdepth: WallTops
sprite: Structures/Walls/railing.rsi
state: corner
- type: Icon
sprite: Structures/Walls/railing.rsi
state: corner
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.49,-0.49,0.49,-0.3"
mass: 50
layer:
- SmallImpassable
mask:
- Impassable
- shape:
!type:PhysShapeAabb
bounds: "0.49,0.49,0.3,-0.49"
mass: 50
layer:
- SmallImpassable
mask:
- Impassable
- type: InteractionOutline
- type: Repairable
- type: Damageable
damageContainer: Inorganic
damageModifierSet: FlimsyMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 20
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
PartRodMetal1:
min: 0
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Climbable
- type: Construction
graph: railing
node: railingCorner