forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8993272
commit dd18eb6
Showing
9 changed files
with
325 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
Resources/Prototypes/SS220/Entities/Structures/Doors/secter_reinforced_door.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# © SS220, An EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt | ||
|
||
- type: entity | ||
id: BaseSecretReinforcedDoorAssembly | ||
name: secret reinforced door assembly | ||
description: It opens, it closes, and maybe crushes you. | ||
components: | ||
- type: Clickable | ||
- type: InteractionOutline | ||
- type: Sprite | ||
sprite: SS220/Structures/Doors/secter_reinforced_door.rsi | ||
state: assembly | ||
- type: Physics | ||
- type: Fixtures | ||
fixtures: | ||
fix1: | ||
shape: | ||
!type:PhysShapeAabb | ||
bounds: "-0.45,-0.45,0.45,0.45" | ||
density: 110 | ||
mask: | ||
- FullTileMask | ||
layer: | ||
- HumanoidBlockLayer | ||
- type: Anchorable | ||
delay: 2 | ||
- type: Pullable | ||
- type: Transform | ||
anchored: true | ||
noRot: false | ||
- type: Rotatable | ||
- type: Damageable | ||
damageContainer: StructuralInorganic | ||
damageModifierSet: StructuralMetallic | ||
- type: RCDDeconstructable | ||
cost: 6 | ||
delay: 8 | ||
fx: EffectRCDDeconstruct8 | ||
- type: Destructible | ||
thresholds: | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 100 | ||
behaviors: | ||
- !type:DoActsBehavior | ||
acts: ["Destruction"] | ||
- type: Construction | ||
graph: ReinforcedGirder | ||
node: reinforcedElectronics | ||
placement: | ||
mode: SnapgridCenter | ||
|
||
- type: entity | ||
id: SolidSecretReinforcedDoor | ||
name: reinforced wall | ||
parent: BaseSecretDoor | ||
components: | ||
- type: Construction | ||
graph: ReinforcedGirder | ||
node: solidSecretReinforcedDoor | ||
containers: | ||
- battery-container | ||
- type: Sprite | ||
sprite: SS220/Structures/Doors/secter_reinforced_door.rsi | ||
layers: | ||
- state: closed | ||
map: ["enum.DoorVisualLayers.Base"] | ||
- type: Destructible | ||
thresholds: | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 400 | ||
behaviors: | ||
- !type:DoActsBehavior | ||
acts: ["Destruction"] |
87 changes: 87 additions & 0 deletions
87
Resources/Prototypes/SS220/Recipes/Construction/Structures/secretreinforceddoor.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
- type: constructionGraph | ||
id: SecretReinforcedDoor | ||
start: start | ||
graph: | ||
- node: start | ||
edges: | ||
- to: assembly | ||
completed: | ||
- !type:SetAnchor | ||
value: false | ||
steps: | ||
- material: Steel | ||
amount: 4 | ||
doAfter: 4 | ||
- material: MetalRod | ||
amount: 4 | ||
doAfter: 4 | ||
|
||
- node: assembly | ||
entity: BaseSecretReinforcedDoorAssembly | ||
actions: | ||
- !type:SnapToGrid {} | ||
- !type:SetAnchor {} | ||
edges: | ||
- to: wired | ||
conditions: | ||
- !type:EntityAnchored {} | ||
steps: | ||
- material: Cable | ||
amount: 4 | ||
doAfter: 2.5 | ||
- to: start | ||
conditions: | ||
- !type:EntityAnchored | ||
anchored: false | ||
completed: | ||
- !type:SpawnPrototype | ||
prototype: SheetSteel1 | ||
amount: 4 | ||
- !type:DeleteEntity {} | ||
steps: | ||
- tool: Welding | ||
doAfter: 3 | ||
|
||
- node: wired | ||
entity: BaseSecretReinforcedDoorAssembly | ||
edges: | ||
- to: reinforcedElectronics | ||
steps: | ||
- component: PowerCell | ||
name: power cell | ||
store: battery-container | ||
icon: | ||
sprite: Objects/Power/power_cells.rsi | ||
state: small | ||
doAfter: 1 | ||
- to: assembly | ||
completed: | ||
- !type:GivePrototype | ||
prototype: CableApcStack1 | ||
amount: 4 | ||
steps: | ||
- tool: Cutting | ||
doAfter: 2 | ||
|
||
- node: reinforcedElectronics | ||
entity: BaseSecretReinforcedDoorAssembly | ||
edges: | ||
- to: solidSecretReinforcedDoor | ||
steps: | ||
- tool: Screwing | ||
doAfter: 2 | ||
|
||
- node: solidSecretReinforcedDoor | ||
entity: SolidSecretReinforcedDoor | ||
edges: | ||
- to: wired | ||
conditions: | ||
- !type:EntityAnchored {} | ||
- !type:DoorWelded {} | ||
completed: | ||
- !type:EmptyAllContainers | ||
pickup: true | ||
emptyAtUser: true | ||
steps: | ||
- tool: Prying | ||
doAfter: 5 |
Binary file added
BIN
+3.17 KB
Resources/Textures/SS220/Structures/Doors/secter_reinforced_door.rsi/assembly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.89 KB
Resources/Textures/SS220/Structures/Doors/secter_reinforced_door.rsi/closed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.33 KB
Resources/Textures/SS220/Structures/Doors/secter_reinforced_door.rsi/closing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 99 additions & 0 deletions
99
Resources/Textures/SS220/Structures/Doors/secter_reinforced_door.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"version": 1, | ||
"license": "EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt", | ||
"copyright": "by MIXnikita for SS220", | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"states": [ | ||
{ | ||
"name": "assembly", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "closed", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "closing", | ||
"directions": 4, | ||
"delays": [ | ||
[ | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2 | ||
], | ||
[ | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2 | ||
], | ||
[ | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2 | ||
], | ||
[ | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2 | ||
] | ||
] | ||
}, | ||
{ | ||
"name": "open", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "opening", | ||
"directions": 4, | ||
"delays": [ | ||
[ | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2 | ||
], | ||
[ | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2 | ||
], | ||
[ | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2 | ||
], | ||
[ | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2, | ||
0.2 | ||
] | ||
] | ||
} | ||
] | ||
} |
Binary file added
BIN
+2.67 KB
Resources/Textures/SS220/Structures/Doors/secter_reinforced_door.rsi/open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.07 KB
Resources/Textures/SS220/Structures/Doors/secter_reinforced_door.rsi/opening.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.