]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add a handy security radio (#25913)
authorRamlik <105449767+Ramlik@users.noreply.github.com>
Sat, 27 Apr 2024 13:27:18 +0000 (16:27 +0300)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2024 13:27:18 +0000 (23:27 +1000)
* Add a handy security radio

I've always wanted to have a handy security radio in game and I thought it would be cool to have one in game.

Demonstation can be found in here: https://youtu.be/VQOLiTQAmKc

* Merged radio files and changed sprite location

* Fixed RSI not having license and copyright

* Added a chance to spawn in security closets

All security closets will have 50% chance to spawn a handy security radio in it

* Update radio id

Co-authored-by: lzk <124214523+lzk228@users.noreply.github.com>
* Change id in locker spawn

* Change id in locker spawn

* Changed id to RadioHandheldSecurity as suggested

* Add radio to vending machine instead of locker

Removed radio from lockers and added it to security vending machine

* Fixed radio not having a sprite

---------

Co-authored-by: lzk <124214523+lzk228@users.noreply.github.com>
Resources/Prototypes/Catalog/VendingMachines/Inventories/sec.yml
Resources/Prototypes/Entities/Objects/Devices/radio.yml
Resources/Textures/Objects/Devices/securityhandy.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-off.png [new file with mode: 0644]
Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-on.png [new file with mode: 0644]
Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie.png [new file with mode: 0644]

index b54c2cdbcfaf8af87e70b1ea0829cd0789c85ff6..afbeff6b0806293c669a8d8177544c412015c90b 100644 (file)
@@ -19,6 +19,7 @@
     RiotShield: 2
     RiotLaserShield: 2
     RiotBulletShield: 2
+    RadioHandheldSecurity: 5
   # security officers need to follow a diet regimen!
   contrabandInventory:
     FoodDonutHomer: 12
index 74c2865d07dacd5b6a20059d617f103240fa0784..43f84fe404e36d74a2530aaf7e0b45ded2f5c421 100644 (file)
   - type: Tag
     tags:
     - Radio
+
+- type: entity
+  name: security radio
+  description: A handy security radio.
+  parent: RadioHandheld
+  id: RadioHandheldSecurity
+  components:
+  - type: RadioMicrophone
+    broadcastChannel: Security
+  - type: RadioSpeaker
+    channels:
+    - Security
+  - type: Sprite
+    sprite: Objects/Devices/securityhandy.rsi
+  - type: Item
+    sprite: Objects/Devices/securityhandy.rsi
+    heldPrefix: walkietalkie
\ No newline at end of file
diff --git a/Resources/Textures/Objects/Devices/securityhandy.rsi/meta.json b/Resources/Textures/Objects/Devices/securityhandy.rsi/meta.json
new file mode 100644 (file)
index 0000000..18a2d93
--- /dev/null
@@ -0,0 +1,28 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Taken from cev-eris and modified by Swept at https://github.com/discordia-space/CEV-Eris/commit/efce5b6c3be75458ce238dcc01510e8f8a653ca6",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "walkietalkie"
+    },
+    {
+      "name": "walkietalkie-inhand-left",
+      "directions": 4
+    },
+    {
+      "name": "walkietalkie-inhand-right",
+      "directions": 4
+    },
+    {
+      "name": "walkietalkie-off"
+    },
+    {
+      "name": "walkietalkie-on"
+    }
+  ]
+}
\ No newline at end of file
diff --git a/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-inhand-left.png b/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-inhand-left.png
new file mode 100644 (file)
index 0000000..5815169
Binary files /dev/null and b/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-inhand-left.png differ
diff --git a/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-inhand-right.png b/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-inhand-right.png
new file mode 100644 (file)
index 0000000..ed1e606
Binary files /dev/null and b/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-inhand-right.png differ
diff --git a/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-off.png b/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-off.png
new file mode 100644 (file)
index 0000000..2afdf8d
Binary files /dev/null and b/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-off.png differ
diff --git a/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-on.png b/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-on.png
new file mode 100644 (file)
index 0000000..dfd79a6
Binary files /dev/null and b/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-on.png differ
diff --git a/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie.png b/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie.png
new file mode 100644 (file)
index 0000000..12aaa3f
Binary files /dev/null and b/Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie.png differ