Railings (#5732)
This commit is contained in:
112
Resources/Prototypes/Entities/Structures/Walls/railing.yml
Normal file
112
Resources/Prototypes/Entities/Structures/Walls/railing.yml
Normal 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
|
||||||
|
|
||||||
48
Resources/Prototypes/Recipes/Construction/Graphs/railing.yml
Normal file
48
Resources/Prototypes/Recipes/Construction/Graphs/railing.yml
Normal 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
|
||||||
@@ -323,3 +323,37 @@
|
|||||||
canBuildInImpassable: false
|
canBuildInImpassable: false
|
||||||
conditions:
|
conditions:
|
||||||
- !type:TileNotBlocked {}
|
- !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 {}
|
||||||
|
|||||||
BIN
Resources/Textures/Structures/Walls/railing.rsi/corner.png
Normal file
BIN
Resources/Textures/Structures/Walls/railing.rsi/corner.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
19
Resources/Textures/Structures/Walls/railing.rsi/meta.json
Normal file
19
Resources/Textures/Structures/Walls/railing.rsi/meta.json
Normal 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
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
BIN
Resources/Textures/Structures/Walls/railing.rsi/side.png
Normal file
BIN
Resources/Textures/Structures/Walls/railing.rsi/side.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
Reference in New Issue
Block a user