Add wall mounted lockers (#10673)

This commit is contained in:
Martin Petkovski
2022-08-24 17:08:57 +10:00
committed by GitHub
parent c4d0cddeda
commit 12ab9e838e
6 changed files with 71 additions and 0 deletions

View File

@@ -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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 B

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B