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

View File

@@ -0,0 +1,48 @@
- type: constructionGraph
id: railing
start: start
graph:
- node: start
edges:
- to: railing
completed:
- !type:SnapToGrid
southRotation: true
steps:
- material: MetalRod
amount: 1
doAfter: 2
- to: railingCorner
completed:
- !type:SnapToGrid
southRotation: true
steps:
- material: MetalRod
amount: 2
doAfter: 2.5
- node: railing
entity: Railing
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: PartRodMetal1
amount: 1
- !type:DeleteEntity
steps:
- tool: Screwing
doAfter: 0.25
- node: railingCorner
entity: RailingCorner
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: PartRodMetal1
amount: 2
- !type:DeleteEntity
steps:
- tool: Screwing
doAfter: 0.5

View File

@@ -323,3 +323,37 @@
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked {}
- type: construction
name: railing
id: Railing
graph: railing
startNode: start
targetNode: railing
category: Structures
description: Basic railing meant to protect idiots like you from falling.
icon:
sprite: Structures/Walls/railing.rsi
state: side
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked {}
- type: construction
name: railing corner
id: RailingCorner
graph: railing
startNode: start
targetNode: railingCorner
category: Structures
description: Basic railing meant to protect idiots like you from falling.
icon:
sprite: Structures/Walls/railing.rsi
state: corner
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked {}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,19 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "tgstation at cf5fa29c1458b50fa2811169534b9e4f7f9f3252",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "side",
"directions": 4
},
{
"name": "corner",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB