Add Emergency Shotgun Cabinet (#21419) (#22327)

* add emergency shotgun

* yml parent cleanup
This commit is contained in:
Whisper
2023-12-11 06:35:46 -05:00
committed by GitHub
parent c34ede3594
commit 2fa023ac70
18 changed files with 108 additions and 2 deletions

View File

@@ -7,8 +7,8 @@
components:
- type: Sprite
layers:
- state: icon
map: [ "enum.GunVisualLayers.Base" ]
- state: icon
map: [ "enum.GunVisualLayers.Base" ]
- type: Item
# If you update this also update the bulldog's size.
size: Large
@@ -166,6 +166,9 @@
size: Normal
- type: BallisticAmmoProvider
capacity: 4
- type: Tag
tags:
- WeaponShotgunKammerer
- type: entity
name: sawn-off shotgun

View File

@@ -3,6 +3,9 @@
name: fire axe cabinet
description: There is a small label that reads "For Emergency use only" along with details for safe use of the axe. As if.
components:
- type: Damageable # adding destructible causes the entity inside to be deleted when the cabinet is destroyed :(
damageContainer: Inorganic
damageModifierSet: Glass
- type: MeleeSound
soundGroups:
Brute:

View File

@@ -0,0 +1,47 @@
- type: entity
parent: FireAxeCabinet
id: ShotGunCabinet
name: shotgun cabinet
description: There is a small label that reads "For Emergency use only" along with details for safe use of the shotgun. As if.
components:
- type: Sprite
sprite: Structures/Wallmounts/shotgun_cabinet.rsi
layers:
- state: cabinet
- state: shotgun
map: ["enum.ItemCabinetVisualLayers.ContainsItem"]
visible: true
- state: glass
map: ["enum.ItemCabinetVisualLayers.Door"]
- type: ItemCabinet
cabinetSlot:
ejectOnInteract: true
whitelist:
tags:
- WeaponShotgunKammerer
- type: AccessReader
access: [["Security"], ["Command"]]
- type: entity
id: ShotGunCabinetOpen
parent: [ShotGunCabinet, FireAxeCabinetOpen]
suffix: Open
- type: entity
id: ShotGunCabinetFilled
parent: [ShotGunCabinet,FireAxeCabinetFilled]
suffix: Filled
components:
- type: ItemCabinet
cabinetSlot:
startingItem: WeaponShotgunKammerer
ejectOnInteract: true
whitelist:
tags:
- WeaponShotgunKammerer
- type: entity
id: ShotGunCabinetFilledOpen
parent: [ShotGunCabinetFilled,FireAxeCabinetFilledOpen]
suffix: Filled, Open

View File

@@ -1080,6 +1080,9 @@
- type: Tag
id: WeaponPistolCHIMPUpgradeKit
- type: Tag
id: WeaponShotgunKammerer
- type: Tag
id: Window

Binary file not shown.

After

Width:  |  Height:  |  Size: 486 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 749 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 682 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

View File

@@ -0,0 +1,50 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Inspired by tg station\u0027s fireaxe cabinet https://github.com/tgstation/tgstation/commit/d0d81185f09ca30d3b0856d476544240dba0de53 Made by DISCORD@ps3moira#9488",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "glass"
},
{
"name": "glass-1"
},
{
"name": "glass-2"
},
{
"name": "glass-3"
},
{
"name": "glass-4"
},
{
"name": "glass-up"
},
{
"name": "locked"
},
{
"name": "shotgun"
},
{
"name": "unlocked"
},
{
"name": "cabinet"
},
{
"name": "cabinet-empty-open"
},
{
"name": "cabinet-filled-closed"
},
{
"name": "cabinet-filled-open"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B