Skip to content

Commit

Permalink
апдейт по реквесту
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-34 committed Dec 5, 2023
1 parent ef45d8b commit a6dcdfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modular_ss220/sechailer/code/sechailer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ GLOBAL_LIST_EMPTY(sechailers)
to_chat(user, span_notice(cooldown_info))
return

radio.autosay("Центр, Код [message], офицер [user] запрашивает помощь в [A].", "Система Оповещения", "Security", list(z))
is_on_cooldown = TRUE
addtimer(CALLBACK(src, PROC_REF(reboot)), dispatch_cooldown)
// This code if fucking hell, but it works as intended
Expand All @@ -77,11 +76,12 @@ GLOBAL_LIST_EMPTY(sechailers)
for(var/obj/item/radio/my_radio in user.contents)
for(var/chan in 1 to length(my_radio.channels))
var/channel_name = my_radio.channels[chan]
if(channel_name == "Security")
if(channel_name == DEPARTMENT_SECURITY)
security_channel_found = TRUE
break

if(security_channel_found)
radio.autosay("Центр, Код [message], офицер [user] запрашивает помощь в [A].", "Система Оповещения", DEPARTMENT_SECURITY, list(z))
playsound(hailer.loc, 'modular_ss220/sechailer/sound/dispatch_please_respond.ogg', 55, FALSE)
break
else
Expand Down

0 comments on commit a6dcdfa

Please sign in to comment.