Admin access configurator (#28107)
* Port spritework and initial prototypes by @Arimah Co-authored-by: Alice 'Arimah' Heurlin <30327355+arimah@users.noreply.github.com> * Make Admin PDA's spawn with a universal ID card * Add universal access configurator to aghost satchel of holding * Add Admin suffixes to adminonly items: AdminPDA, UniversalIDCard, AccessConfiguratorUniversal * Admin jobicon --------- Co-authored-by: Alice 'Arimah' Heurlin <30327355+arimah@users.noreply.github.com>
@@ -214,7 +214,7 @@
|
||||
- id: BoxSurvival
|
||||
- id: Bible
|
||||
- id: RubberStampChaplain
|
||||
|
||||
|
||||
- type: entity
|
||||
noSpawn: true
|
||||
parent: ClothingBackpackSatchel
|
||||
@@ -296,4 +296,5 @@
|
||||
contents:
|
||||
- id: GasAnalyzer
|
||||
- id: trayScanner
|
||||
- id: AccessConfiguratorUniversal
|
||||
- type: Unremoveable
|
||||
|
||||
@@ -658,10 +658,11 @@
|
||||
parent: CentcomPDA
|
||||
id: AdminPDA
|
||||
name: Admin PDA
|
||||
suffix: Admin
|
||||
description: If you are not an admin please return this PDA to the nearest admin.
|
||||
components:
|
||||
- type: Pda
|
||||
id: PassengerIDCard
|
||||
id: UniversalIDCard
|
||||
- type: HealthAnalyzer
|
||||
scanDelay: 0
|
||||
- type: CartridgeLoader
|
||||
|
||||
@@ -840,3 +840,30 @@
|
||||
layers:
|
||||
- state: default
|
||||
- state: idseniorofficer
|
||||
|
||||
- type: entity
|
||||
parent: IDCardStandard
|
||||
id: UniversalIDCard
|
||||
name: universal ID card
|
||||
suffix: Admin
|
||||
description: An ID card that gives you access beyond your wildest dreams.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/Misc/id_cards.rsi
|
||||
layers:
|
||||
- state: admin
|
||||
- state: idadmin
|
||||
- type: Clothing
|
||||
sprite: Objects/Misc/id_cards.rsi
|
||||
- type: Item
|
||||
heldPrefix: green
|
||||
- type: IdCard
|
||||
jobTitle: Universal
|
||||
jobIcon: JobIconAdmin
|
||||
- type: Access
|
||||
groups:
|
||||
- AllAccess
|
||||
tags:
|
||||
- CentralCommand
|
||||
- NuclearOperative
|
||||
- SyndicateAgent
|
||||
|
||||
@@ -73,3 +73,61 @@
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
AccessOverrider-privilegedId: !type:ContainerSlot
|
||||
|
||||
- type: entity
|
||||
parent: AccessConfigurator
|
||||
id: AccessConfiguratorUniversal
|
||||
name: universal access configurator
|
||||
suffix: Admin
|
||||
description: A modified access configurator used only by the mythical Administrator.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/Tools/universal_access_configurator.rsi
|
||||
- type: Clothing
|
||||
sprite: Objects/Tools/universal_access_configurator.rsi
|
||||
- type: AccessOverrider
|
||||
accessLevels:
|
||||
- Armory
|
||||
- Atmospherics
|
||||
- Bar
|
||||
- Brig
|
||||
- Detective
|
||||
- Captain
|
||||
- Cargo
|
||||
- Chapel
|
||||
- Chemistry
|
||||
- ChiefEngineer
|
||||
- ChiefMedicalOfficer
|
||||
- Command
|
||||
- Engineering
|
||||
- External
|
||||
- HeadOfPersonnel
|
||||
- HeadOfSecurity
|
||||
- Hydroponics
|
||||
- Janitor
|
||||
- Kitchen
|
||||
- Lawyer
|
||||
- Maintenance
|
||||
- Medical
|
||||
- Quartermaster
|
||||
- Research
|
||||
- ResearchDirector
|
||||
- Salvage
|
||||
- Security
|
||||
- Service
|
||||
- Theatre
|
||||
- CentralCommand
|
||||
- NuclearOperative
|
||||
- SyndicateAgent
|
||||
privilegedIdSlot:
|
||||
name: id-card-console-privileged-id
|
||||
ejectSound: /Audio/Machines/id_swipe.ogg
|
||||
insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
|
||||
ejectOnBreak: true
|
||||
swap: false
|
||||
whitelist:
|
||||
components:
|
||||
- IdCard
|
||||
denialSound:
|
||||
path: /Audio/Machines/custom_deny.ogg
|
||||
doAfter: 0.5
|
||||
|
||||
@@ -375,3 +375,10 @@
|
||||
icon:
|
||||
sprite: /Textures/Interface/Misc/job_icons.rsi
|
||||
state: Visitor
|
||||
|
||||
- type: statusIcon
|
||||
parent: JobIcon
|
||||
id: JobIconAdmin
|
||||
icon:
|
||||
sprite: /Textures/Interface/Misc/job_icons.rsi
|
||||
state: Admin
|
||||
|
||||
BIN
Resources/Textures/Interface/Misc/job_icons.rsi/Admin.png
Normal file
|
After Width: | Height: | Size: 159 B |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from https://github.com/vgstation-coders/vgstation13/blob/e71d6c4fba5a51f99b81c295dcaec4fc2f58fb19/icons/mob/screen1.dmi | Brigmedic icon made by PuroSlavKing (Github) | Zombie icon made by RamZ | Zookeper by netwy (discort) | Rev and Head Rev icon taken from https://tgstation13.org/wiki/HUD and edited by coolmankid12345 (Discord) | Mindshield icon taken from https://github.com/tgstation/tgstation/blob/master/icons/mob/huds/hud.dmi",
|
||||
"copyright": "Taken from https://github.com/vgstation-coders/vgstation13/blob/e71d6c4fba5a51f99b81c295dcaec4fc2f58fb19/icons/mob/screen1.dmi | Brigmedic icon made by PuroSlavKing (Github) | Zombie icon made by RamZ | Zookeper by netwy (discort) | Rev and Head Rev icon taken from https://tgstation13.org/wiki/HUD and edited by coolmankid12345 (Discord) | Mindshield icon taken from https://github.com/tgstation/tgstation/blob/master/icons/mob/huds/hud.dmi | Admin recolored from MedicalIntern by TsjipTsjip",
|
||||
|
||||
"size": {
|
||||
"x": 8,
|
||||
@@ -185,6 +185,9 @@
|
||||
},
|
||||
{
|
||||
"name": "InitialInfected"
|
||||
},
|
||||
{
|
||||
"name": "Admin"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
BIN
Resources/Textures/Objects/Misc/id_cards.rsi/admin.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
BIN
Resources/Textures/Objects/Misc/id_cards.rsi/idadmin.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/d917f4c2a088419d5c3aec7656b7ff8cebd1822e idcluwne made by brainfood1183 (github) for ss14, idbrigmedic made by PuroSlavKing (Github), pirate made by brainfood1183 (github)",
|
||||
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/d917f4c2a088419d5c3aec7656b7ff8cebd1822e idcluwne made by brainfood1183 (github) for ss14, idbrigmedic made by PuroSlavKing (Github), pirate made by brainfood1183 (github), idadmin made by Arimah (github)",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
@@ -13,6 +13,9 @@
|
||||
{
|
||||
"name": "centcom"
|
||||
},
|
||||
{
|
||||
"name": "admin"
|
||||
},
|
||||
{
|
||||
"name": "ert_chaplain"
|
||||
},
|
||||
@@ -169,6 +172,9 @@
|
||||
{
|
||||
"name": "idintern-tech"
|
||||
},
|
||||
{
|
||||
"name": "idadmin"
|
||||
},
|
||||
{
|
||||
"name": "orange"
|
||||
},
|
||||
@@ -256,6 +262,14 @@
|
||||
{
|
||||
"name": "blue-inhand-right",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "green-inhand-left",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "green-inhand-right",
|
||||
"directions": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Recoloured by Arimah from the access configurator at https://github.com/space-wizards/space-station-14/commit/fd7db8004e6d5cf442168152a0ca6af1051263eb",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "icon",
|
||||
"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,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "inhand-left",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "inhand-right",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "equipped-BELT",
|
||||
"directions": 4
|
||||
}
|
||||
]
|
||||
}
|
||||