Add wall mounted lockers (#10673)
This commit is contained in:
@@ -0,0 +1,48 @@
|
|||||||
|
- type: entity
|
||||||
|
id: BaseWallLocker
|
||||||
|
placement:
|
||||||
|
mode: SnapgridCenter
|
||||||
|
abstract: true
|
||||||
|
components:
|
||||||
|
- type: Clickable
|
||||||
|
- type: InteractionOutline
|
||||||
|
- type: WallMount
|
||||||
|
arc: 180
|
||||||
|
- type: Sprite
|
||||||
|
drawdepth: WallMountedItems
|
||||||
|
netsync: false
|
||||||
|
sprite: Structures/Storage/wall_locker.rsi
|
||||||
|
layers:
|
||||||
|
- state: door
|
||||||
|
- type: Destructible
|
||||||
|
thresholds:
|
||||||
|
- trigger:
|
||||||
|
!type:DamageTrigger
|
||||||
|
damage: 50
|
||||||
|
behaviors:
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: ["Destruction"]
|
||||||
|
- !type:PlaySoundBehavior
|
||||||
|
sound:
|
||||||
|
path: /Audio/Effects/metalbreak.ogg
|
||||||
|
- !type:SpawnEntitiesBehavior
|
||||||
|
spawn:
|
||||||
|
SheetSteel1:
|
||||||
|
min: 1
|
||||||
|
max: 2
|
||||||
|
- type: Storage
|
||||||
|
capacity: 100
|
||||||
|
- type: UserInterface
|
||||||
|
interfaces:
|
||||||
|
- key: enum.StorageUiKey.Key
|
||||||
|
type: StorageBoundUserInterface
|
||||||
|
- type: ContainerContainer
|
||||||
|
containers:
|
||||||
|
storagebase: !type:Container
|
||||||
|
ents: []
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
id: WallLocker
|
||||||
|
parent: BaseWallLocker
|
||||||
|
name: wall locker
|
||||||
|
description: A locker built into the wall.
|
||||||
BIN
Resources/Textures/Structures/Storage/wall_locker.rsi/door.png
Normal file
BIN
Resources/Textures/Structures/Storage/wall_locker.rsi/door.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 223 B |
BIN
Resources/Textures/Structures/Storage/wall_locker.rsi/locked.png
Normal file
BIN
Resources/Textures/Structures/Storage/wall_locker.rsi/locked.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 148 B |
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"license": "CC-BY-SA-3.0",
|
||||||
|
"copyright": "https://github.com/space-wizards/space-station-14/pull/10673, modified from TGstation commit 4a274a6e4b195dfcaffd20d7348631131418ecb5",
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "door"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "locked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "unlocked"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "welded"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 148 B |
BIN
Resources/Textures/Structures/Storage/wall_locker.rsi/welded.png
Normal file
BIN
Resources/Textures/Structures/Storage/wall_locker.rsi/welded.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 206 B |
Reference in New Issue
Block a user