]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Admin access configurator (#28107)
authorTsjipTsjip <19798667+TsjipTsjip@users.noreply.github.com>
Sun, 19 May 2024 23:04:16 +0000 (01:04 +0200)
committerGitHub <noreply@github.com>
Sun, 19 May 2024 23:04:16 +0000 (17:04 -0600)
* 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>
17 files changed:
Resources/Prototypes/Catalog/Fills/Backpacks/StarterGear/satchel.yml
Resources/Prototypes/Entities/Objects/Devices/pda.yml
Resources/Prototypes/Entities/Objects/Misc/identification_cards.yml
Resources/Prototypes/Entities/Objects/Tools/access_configurator.yml
Resources/Prototypes/StatusEffects/job.yml
Resources/Textures/Interface/Misc/job_icons.rsi/Admin.png [new file with mode: 0644]
Resources/Textures/Interface/Misc/job_icons.rsi/meta.json
Resources/Textures/Objects/Misc/id_cards.rsi/admin.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/id_cards.rsi/green-inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/id_cards.rsi/green-inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/id_cards.rsi/idadmin.png [new file with mode: 0644]
Resources/Textures/Objects/Misc/id_cards.rsi/meta.json
Resources/Textures/Objects/Tools/universal_access_configurator.rsi/equipped-BELT.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/universal_access_configurator.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/universal_access_configurator.rsi/inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/universal_access_configurator.rsi/inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/universal_access_configurator.rsi/meta.json [new file with mode: 0644]

index 140b1c2968f9c1c88d980cf2c300ffad28f95470..fe411688298f351e7c78f180b529ae1fdebe5082 100644 (file)
       - id: BoxSurvival
       - id: Bible
       - id: RubberStampChaplain
-  
+
 - type: entity
   noSpawn: true
   parent: ClothingBackpackSatchel
     contents:
     - id: GasAnalyzer
     - id: trayScanner
+    - id: AccessConfiguratorUniversal
   - type: Unremoveable
index 472d0ecbe1e19958cdb19f8c6c7f2547d19b1036..b76ca6a14ad1c5c724fd6d85c4c7ab4f5cc0d91d 100644 (file)
   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
index 3de1afe8b8a95fbe65352e26e1f51ba67aa7046f..98ae7df9b31ca1b3105bb7607d0acc2726b33208 100644 (file)
     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
index d63e1f0aa9f462bb673b96e8f174ee50fe0b228b..3c5bc93b42c27f2a77416af98a0056647656d28e 100644 (file)
     - 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
index aec3f5e69d525888fc260c3663086b291af78ac5..6275f0bc07ef7ac1f603a557e5dfc05b34b8c0bf 100644 (file)
   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
diff --git a/Resources/Textures/Interface/Misc/job_icons.rsi/Admin.png b/Resources/Textures/Interface/Misc/job_icons.rsi/Admin.png
new file mode 100644 (file)
index 0000000..38a76df
Binary files /dev/null and b/Resources/Textures/Interface/Misc/job_icons.rsi/Admin.png differ
index 745cc43b844167d60c817982a79e145396b567f5..fff9f78288cfbdf9d1d5b6837f7779b25a95e27f 100644 (file)
@@ -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,
         },
         {
             "name": "InitialInfected"
+        },
+        {
+            "name": "Admin"
         }
     ]
 }
diff --git a/Resources/Textures/Objects/Misc/id_cards.rsi/admin.png b/Resources/Textures/Objects/Misc/id_cards.rsi/admin.png
new file mode 100644 (file)
index 0000000..99ca993
Binary files /dev/null and b/Resources/Textures/Objects/Misc/id_cards.rsi/admin.png differ
diff --git a/Resources/Textures/Objects/Misc/id_cards.rsi/green-inhand-left.png b/Resources/Textures/Objects/Misc/id_cards.rsi/green-inhand-left.png
new file mode 100644 (file)
index 0000000..958c3ba
Binary files /dev/null and b/Resources/Textures/Objects/Misc/id_cards.rsi/green-inhand-left.png differ
diff --git a/Resources/Textures/Objects/Misc/id_cards.rsi/green-inhand-right.png b/Resources/Textures/Objects/Misc/id_cards.rsi/green-inhand-right.png
new file mode 100644 (file)
index 0000000..218d68e
Binary files /dev/null and b/Resources/Textures/Objects/Misc/id_cards.rsi/green-inhand-right.png differ
diff --git a/Resources/Textures/Objects/Misc/id_cards.rsi/idadmin.png b/Resources/Textures/Objects/Misc/id_cards.rsi/idadmin.png
new file mode 100644 (file)
index 0000000..3705c6b
Binary files /dev/null and b/Resources/Textures/Objects/Misc/id_cards.rsi/idadmin.png differ
index a84c76a46c9308ebf7da47fa310a3d404bbd6227..bf76784bb99c2e46c306decfed92fbf14cb53a68 100644 (file)
@@ -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"
     },
     {
       "name": "idintern-tech"
     },
+    {
+      "name": "idadmin"
+    },
     {
       "name": "orange"
     },
     {
       "name": "blue-inhand-right",
       "directions": 4
+    },
+    {
+      "name": "green-inhand-left",
+      "directions": 4
+    },
+    {
+      "name": "green-inhand-right",
+      "directions": 4
     }
   ]
 }
diff --git a/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/equipped-BELT.png b/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/equipped-BELT.png
new file mode 100644 (file)
index 0000000..b80e5e0
Binary files /dev/null and b/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/equipped-BELT.png differ
diff --git a/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/icon.png b/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/icon.png
new file mode 100644 (file)
index 0000000..4b0331d
Binary files /dev/null and b/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/icon.png differ
diff --git a/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/inhand-left.png b/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/inhand-left.png
new file mode 100644 (file)
index 0000000..5fe2029
Binary files /dev/null and b/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/inhand-left.png differ
diff --git a/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/inhand-right.png b/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/inhand-right.png
new file mode 100644 (file)
index 0000000..17951b1
Binary files /dev/null and b/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/inhand-right.png differ
diff --git a/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/meta.json b/Resources/Textures/Objects/Tools/universal_access_configurator.rsi/meta.json
new file mode 100644 (file)
index 0000000..b2332c5
--- /dev/null
@@ -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
+    }
+  ]
+}