Skip to content

Commit

Permalink
[MIRROR] Radio Incapacitation Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SierraKomodo authored and SuhEugene committed Oct 18, 2023
1 parent 5b866e2 commit 2a05d4f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions code/game/objects/items/devices/radio/radio.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2a05d4f

Please sign in to comment.