From 21fd2e848439b8ef32d127e27b6bd378e99fa77e Mon Sep 17 00:00:00 2001 From: SierraKomodo <11140088+SierraKomodo@users.noreply.github.com> Date: Wed, 18 Oct 2023 18:30:08 +0300 Subject: [PATCH] [MIRROR] Radio Incapacitation Tweaks --- .../game/objects/items/devices/radio/radio.dm | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index a2c2e51cf9350..963d292e14d4b 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -338,13 +338,18 @@ if (!broadcasting) // Sedation chemical effect should prevent radio use (Chloral and Soporific) var/mob/living/carbon/C = M - if ((istype(C)) && (C.chem_effects[CE_SEDATE] || C.incapacitated(INCAPACITATION_DISRUPTED))) - to_chat(M, SPAN_WARNING("You're unable to reach \the [src].")) - return 0 - - if((istype(C)) && C.radio_interrupt_cooldown > world.time) - to_chat(M, SPAN_WARNING("You're disrupted as you reach for \the [src].")) - return 0 + if (istype(C)) + if ((C.chem_effects[CE_SEDATE] || C.incapacitated(INCAPACITATION_UNRESISTING))) + to_chat(M, SPAN_WARNING("You're unable to reach \the [src].")) + return 0 + + if (C.chem_effects[CE_VOICELOSS]) + to_chat(M, SPAN_WARNING("Your voice is too quiet for \the [src] to pickup!")) + return FALSE + + if (C.radio_interrupt_cooldown > world.time) + to_chat(M, SPAN_WARNING("You're disrupted as you reach for \the [src].")) + return 0 if(istype(M)) M.trigger_aiming(TARGET_CAN_RADIO)