U-Shape Rails (#19485)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Alekshhh
2023-09-20 11:26:16 +03:00
committed by GitHub
parent 4fbebb6917
commit f658970f3e
6 changed files with 129 additions and 0 deletions

View File

@@ -180,3 +180,76 @@
- type: Construction
graph: Railing
node: railingCornerSmall
- type: entity
parent: BaseStructure
id: RailingRound
name: railing
description: Basic railing meant to protect idiots like you from falling.
components:
- type: Sprite
drawdepth: WallTops
sprite: Structures/Walls/railing.rsi
state: round
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.49,-0.49,0.49,-0.25"
density: 1000
mask:
- TableMask
layer:
- TableLayer
fix2:
shape:
!type:PhysShapeAabb
bounds: "-0.49,-0.49,-0.25,0.49"
density: 1000
mask:
- TableMask
layer:
- TableLayer
fix3:
shape:
!type:PhysShapeAabb
bounds: "0.25,-0.49,0.49,0.49"
density: 1000
mask:
- TableMask
layer:
- TableLayer
- type: InteractionOutline
- type: Repairable
- type: Damageable
damageContainer: Inorganic
damageModifierSet: FlimsyMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- 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: railingRound

View File

@@ -28,6 +28,14 @@
- material: MetalRod
amount: 1
doAfter: 2
- to: railingRound
completed:
- !type:SnapToGrid
southRotation: true
steps:
- material: MetalRod
amount: 2
doAfter: 2
- node: railing
entity: Railing
@@ -67,3 +75,16 @@
steps:
- tool: Screwing
doAfter: 0.25
- node: railingRound
entity: RailingRound
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: PartRodMetal1
amount: 2
- !type:DeleteEntity
steps:
- tool: Screwing
doAfter: 0.5

View File

@@ -627,6 +627,23 @@
conditions:
- !type:TileNotBlocked
- type: construction
name: railing round
id: RailingRound
graph: Railing
startNode: start
targetNode: railingRound
category: construction-category-structures
description: Basic railing meant to protect idiots like you from falling.
icon:
sprite: Structures/Walls/railing.rsi
state: round
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked
# Chain link fencing
- type: construction
name: chain link fence

View File

@@ -18,6 +18,10 @@
{
"name": "corner_small",
"directions": 4
},
{
"name": "round",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -688,6 +688,20 @@
- 5: 8
name: RailingCornerSmall
- action: !type:InstantActionComponent
icon:
entity: RailingRound
name: RailingRound
keywords: []
clientExclusive: True
autoPopulate: False
temporary: True
event: !type:StartPlacementActionEvent
placementOption: SnapgridCenter
entityType: RailingRound
assignments:
- 5: 9
- action: !type:InstantAction
checkCanInteract: False
icon:
entity: AirlockMaintLocked
keywords: []