From db555a7c79af0704680d49ec78035743393b71fa Mon Sep 17 00:00:00 2001 From: Ramlik <105449767+Ramlik@users.noreply.github.com> Date: Sat, 27 Apr 2024 16:27:18 +0300 Subject: [PATCH] Add a handy security radio (#25913) * 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> --- .../VendingMachines/Inventories/sec.yml | 1 + .../Entities/Objects/Devices/radio.yml | 17 +++++++++++ .../Devices/securityhandy.rsi/meta.json | 28 ++++++++++++++++++ .../walkietalkie-inhand-left.png | Bin 0 -> 372 bytes .../walkietalkie-inhand-right.png | Bin 0 -> 384 bytes .../securityhandy.rsi/walkietalkie-off.png | Bin 0 -> 357 bytes .../securityhandy.rsi/walkietalkie-on.png | Bin 0 -> 156 bytes .../securityhandy.rsi/walkietalkie.png | Bin 0 -> 348 bytes 8 files changed, 46 insertions(+) create mode 100644 Resources/Textures/Objects/Devices/securityhandy.rsi/meta.json create mode 100644 Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-inhand-left.png create mode 100644 Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-inhand-right.png create mode 100644 Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-off.png create mode 100644 Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie-on.png create mode 100644 Resources/Textures/Objects/Devices/securityhandy.rsi/walkietalkie.png diff --git a/Resources/Prototypes/Catalog/VendingMachines/Inventories/sec.yml b/Resources/Prototypes/Catalog/VendingMachines/Inventories/sec.yml index b54c2cdbcf..afbeff6b08 100644 --- a/Resources/Prototypes/Catalog/VendingMachines/Inventories/sec.yml +++ b/Resources/Prototypes/Catalog/VendingMachines/Inventories/sec.yml @@ -19,6 +19,7 @@ RiotShield: 2 RiotLaserShield: 2 RiotBulletShield: 2 + RadioHandheldSecurity: 5 # security officers need to follow a diet regimen! contrabandInventory: FoodDonutHomer: 12 diff --git a/Resources/Prototypes/Entities/Objects/Devices/radio.yml b/Resources/Prototypes/Entities/Objects/Devices/radio.yml index 74c2865d07..43f84fe404 100644 --- a/Resources/Prototypes/Entities/Objects/Devices/radio.yml +++ b/Resources/Prototypes/Entities/Objects/Devices/radio.yml @@ -23,3 +23,20 @@ - 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 index 0000000000..18a2d93272 --- /dev/null +++ b/Resources/Textures/Objects/Devices/securityhandy.rsi/meta.json @@ -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 index 0000000000000000000000000000000000000000..5815169abfb1130fd615856f17d084f3f24ea563 GIT binary patch literal 372 zcmV-)0gL{LP)Px$ElET{RCr$Pnz0eXFbo6fX}p5&l0h}lgJh5tT0zq&$3C5b0!L&39Q=IR zMR-K<-%fTcz+_USH!a-fY#dXy~h|M=A2Nt5(XrIEUNPG*%dmaT!E{#+5nQO z%KpO*VC^Y07rFw>qO5EKV3AeHwE-%VV)e8EEV3%OHb7-kte!T2MOG!(2B=Jm)zb#B z$g1Sp0F_CxdfEUMS(RKHpfV{|PaD7@tCA~i0OId>15i=*Ur)q6g0umMdjx3!hZqyZrA5##~fy+@D+fcSzL0D_`&h7C}j9-_MqKu}c9umQ@`Lv$~1zz^r!KtUj} Srs4nq002ovPDHLkV1fXKu$MXj literal 0 HcmV?d00001 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 index 0000000000000000000000000000000000000000..ed1e606cfb74c5af4fabd68a551a76d900210393 GIT binary patch literal 384 zcmV-`0e}99P)Px$I!Q!9RCr$Pnz0eXAPhz2X}p4q43a_8Fo7Enl0lL?R`4|VxJ!C0PKQ4FZd@V6 z(-SVNMS?#|@be1+(173s*aE=?;3dcwU<(8%z!nHD0KWpaT3}t*a-Qd{HQo)ob(pXK zib(nXO8Jnv+NQ~Xk4QP*BCn@NNC4Zmm6Vd~`z|@>CTQM!|DRv;VJd{WC^Ud0=a?-} zD_`${`VM&qp!BmQ&*nQo6C7a;0U%V#GDjLSKsNyNnSm|Px$9Z5t%R9Hvtl`(F@KomsB1uc?APrElj8<9FGD0~NV14s&=zy(QefbZaf0%{N| zZm@0o$P#S|N8_*-qRLw6yU4n+SMvHl&;K(Uq30{=xjq6wP~a{KD5Yv^ZKrQ_+H~uj z0Pz15_yB6o!2-WQCawSrvTz*7%{*3B1u++Bt?Q#PI9yp_3gAI&7-PI$<-K7K)aTCu zPP)-TPv%817Hp?14IF6L+5)ICxpudF&Fe2 zL~J~rz`L^_pSuho_jw1APs;t}-2f022nzJBzz?yujUfgX)K>ri002ovPDHLkV1fVu D=x>X5 literal 0 HcmV?d00001 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 index 0000000000000000000000000000000000000000..dfd79a644160d79f8d519a00ff5bc7abfe1244f7 GIT binary patch literal 156 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}A)YRdArbD$ zDG~_>EDn4#?y*WRVR3VY5hwT>8$@~jCyL%|nRFl2>3PH8`| jf*GM0%vvGJ#L#tvP4VtINok<@44$rjF6*2Univ=WPx$6iGxuR9Hvtl|2f=Koo?>!d3|Ow%c2+KX>pB5pn>r$qCYk2N291yn{bm*>7tv z0b7g6L|4Vi4f0aBX_AF(-j{iAW?N|ZYBgLR0U#*w69tq~rM0%!w`y(rbWQ;HKLwUR z$vK$e9%SMQupkRZQB=)iQ4|n!f!4Y_7=zuL6-EFCTEiIQ?JDmLTcEt0+F0$cPlROH zMyGeh_|X!d1FjYT|G1yL${bgy6cGVn3l_#;t~K&JM;ym+YmpW>fb(X9EX$ClDY}zM z1tbQ*A>`0G1>9N;fRay@dJe(bT3H1g0CRvDAPPVmI^VN6AzUtqxuDS?V&mxq-ktsU uTxS5e&pU{GQtq2~13*w9DA2e9H)XPnA$vAlWdHyG07*qoM6N<$f&c&wW{HRZ literal 0 HcmV?d00001 -- 2.52.0