Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Railings and Chainlink Fences #86

Merged
merged 4 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions Resources/Prototypes/Nuclear14/Entities/Structures/Doors/gates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Metal
- type: entity
parent: BaseStructure
id: N14FenceChainGate
name: fence gate
description: A gate in the fence to allow access.
components:
- type: InteractionOutline
- type: Physics
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.49,-0.49,0.49,0.49"
density: 100
mask:
- FullTileMask
layer:
- AirlockLayer
- type: Appearance
visuals:
- type: AirlockVisualizer
simpleVisuals: true
animationTime: 1.2
- type: IconSmooth
key: walls
mode: NoSprite
- type: Sprite
netsync: false
sprite: Nuclear14/Structures/Doors/chaingate.rsi
layers:
- state: closed
map: ["enum.DoorVisualLayers.Base"]
- type: Door
bumpOpen: false
clickOpen: true
closeTimeOne: 0.2
closeTimeTwo: 0.6
openTimeOne: 0.6
openTimeTwo: 0.2
openSound:
path: /Audio/Effects/door_open.ogg
closeSound:
path: /Audio/Effects/door_close.ogg
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
PartRodMetal1:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
layers:
- state: reactoroff
- state: norm0
shader: unshaded
- type: PointLight
radius: 3
energy: 4.5
Expand Down Expand Up @@ -136,7 +135,6 @@
sprite: Nuclear14/Structures/Power/reactor_floor.rsi
layers:
- state: broken
shader: unshaded
- type: RadiationSource
intensity: 3
- type: PointLight
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
- type: entity
abstract: true
parent: BaseStructure
id: N14BaseFence
name: fence
description: Helps keep trespassers out.
placement:
mode: SnapgridCenter
snap:
- Wall
components:
- type: Sprite
netsync: false
drawdepth: Walls
- type: Icon
state: full
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.5,0.5,0.5"
mask:
- FullTileMask
layer:
- WallLayer
density: 100

- type: entity
parent: N14BaseFence
id: N14WallFenceChain
name: chainlink fence
components:
- type: Sprite
sprite: Nuclear14/Structures/Walls/fencechain.rsi
- type: Icon
sprite: Nuclear14/Structures/Walls/fencechain.rsi
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
PartRodMetal1:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: IconSmooth
key: walls
base: fence
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Yellow Handrail
# Bounding boxes are funky and rotate funny if changed. Update them if you have the patience.
- type: entity
parent: Railing
id: RailingYellow
name: yellow railing
description: Basic railing meant to protect idiots like you from falling.
components:
- type: Sprite
netsync: false
drawdepth: WallTops
sprite: Nuclear14/Structures/Walls/railingyellow.rsi
state: side
- type: Icon
sprite: Nuclear14/Structures/Walls/railingyellow.rsi
state: side
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.5,0.20,0.5,0.0"
density: 100
mask:
- TableMask
layer:
- TableLayer

- type: entity
parent: RailingCorner
id: RailingYellowCorner
name: yellow railing
description: Basic railing meant to protect idiots like you from falling.
components:
- type: Sprite
netsync: false
drawdepth: WallTops
sprite: Nuclear14/Structures/Walls/railingyellow.rsi
state: corner
- type: Icon
sprite: Nuclear14/Structures/Walls/railingyellow.rsi
state: corner
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.5,0.0,0.0,0.5"
density: 100
mask:
- TableMask
layer:
- TableLayer


- type: entity
parent: Railing
id: RailingYellowEnd
name: yellow railing
description: Basic railing meant to protect idiots like you from falling.
components:
- type: Sprite
netsync: false
drawdepth: WallTops
sprite: Nuclear14/Structures/Walls/railingyellow.rsi
state: end
- type: Icon
sprite: Nuclear14/Structures/Walls/railingyellow.rsi
state: end
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.15,0.0,0.15,0.5"
density: 100
mask:
- TableMask
layer:
- TableLayer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 107 additions & 0 deletions Resources/Textures/Nuclear14/Structures/Doors/chaingate.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/Official-Outcast13/Fallout-13/commit/48cb787f1a4c4946a703ffa769429655a6109e3b, modified by Peptide90",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "closed",
"directions": 4
},
{
"name": "opening",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "closing",
"directions": 4,
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
],
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "open",
"directions": 4
},
{
"name": "locked",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/Official-Outcast13/Fallout-13/commit/48cb787f1a4c4946a703ffa769429655a6109e3b, modified by Peptide90",
"states": [
{
"name": "full"
},
{
"name": "fence0",
"directions": 4
},
{
"name": "fence1",
"directions": 4
},
{
"name": "fence2",
"directions": 4
},
{
"name": "fence3",
"directions": 4
},
{
"name": "fence4",
"directions": 4
},
{
"name": "fence5",
"directions": 4
},
{
"name": "fence6",
"directions": 4
},
{
"name": "fence7",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "taken from fortuna at https://github.com/FortunaSS13/Fortuna/commit/2a9408a47e2f83d945335e4feeeeafb552173e6f",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "side",
"directions": 4
},
{
"name": "corner",
"directions": 4
},
{
"name": "end",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading