Add small railing corner (#6036)

This commit is contained in:
Delete69
2022-01-05 18:51:41 -07:00
committed by GitHub
parent d6f0e71cba
commit 80753a70ea
5 changed files with 104 additions and 10 deletions

View File

@@ -110,3 +110,55 @@
graph: railing
node: railingCorner
- type: entity
parent: BaseStructure
id: RailingCornerSmall
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_small
- type: Icon
sprite: Structures/Walls/railing.rsi
state: corner_small
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.49,0.49,-0.3,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: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Climbable
- type: Construction
graph: railing
node: railingCornerSmall