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

View File

@@ -20,6 +20,14 @@
- material: MetalRod
amount: 2
doAfter: 2.5
- to: railingCornerSmall
completed:
- !type:SnapToGrid
southRotation: true
steps:
- material: MetalRod
amount: 1
doAfter: 2
- node: railing
entity: Railing
@@ -46,3 +54,16 @@
steps:
- tool: Screwing
doAfter: 0.5
- node: railingCornerSmall
entity: RailingCornerSmall
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: PartRodMetal1
amount: 1
- !type:DeleteEntity
steps:
- tool: Screwing
doAfter: 0.25

View File

@@ -307,6 +307,23 @@
conditions:
- !type:TileNotBlocked
- type: construction
name: railing corner small
id: RailingCornerSmall
graph: railing
startNode: start
targetNode: railingCornerSmall
category: Structures
description: Basic railing meant to protect idiots like you from falling.
icon:
sprite: Structures/Walls/railing.rsi
state: corner_small
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked
- type: construction
name: airlock
id: airlock

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

View File

@@ -6,14 +6,18 @@
"x": 32,
"y": 32
},
"states": [
{
"name": "side",
"directions": 4
},
{
"name": "corner",
"directions": 4
}
]
"states": [
{
"name": "side",
"directions": 4
},
{
"name": "corner",
"directions": 4
},
{
"name": "corner_small",
"directions": 4
}
]
}