Skip to content

Commit

Permalink
alert animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsar-Salat committed Aug 2, 2024
1 parent ec25775 commit 98ea544
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/objects/items/devices/radio/headset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ GLOBAL_LIST_EMPTY(secsets)
GLOB.secsets += src
//recalculateChannels()

/obj/item/radio/headset/headset_sec/proc/dispatch(mob/user)
/obj/item/radio/headset/headset_sec/proc/dispatch(mob/living/user)

if(COOLDOWN_TIMELEFT(src, dispatch_cooldown_timer))
to_chat(user, "<span class='warning'>Dispatch radio broadcasting systems are recharging.</span>")
balloon_alert(user, "still recharging!")
Expand Down Expand Up @@ -183,6 +184,7 @@ GLOBAL_LIST_EMPTY(secsets)
sanitized_area_string = "UNKNOWN"

talk_into(src, "Dispatch, Officer [user.last_name()], [message] at [sanitized_area_string], requesting response.", radio_channel)
user.do_alert_animation(user)
COOLDOWN_START(src, dispatch_cooldown_timer, dispatch_cooldown)
for(var/atom/movable/hailer in GLOB.secsets)
if(ismob(hailer.loc))
Expand Down

0 comments on commit 98ea544

Please sign in to comment.