Skip to content

Commit

Permalink
beacon reason
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed May 8, 2024
1 parent 92655a0 commit 2d88d6e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions code/game/objects/items/handheld_distress_beacon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@

if(active)
to_chat(user, "[src] is already active!")
return
return FALSE
var/reason = tgui_input_text(user, "What is the reason for activating this beacon?", "Distress Reason")
if(!reason)
return FALSE

active = TRUE
update_icon()

Expand All @@ -52,7 +56,7 @@
for(var/client/admin_client in GLOB.admins)
if((R_ADMIN|R_MOD) & admin_client.admin_holder.rights)
playsound_client(admin_client,'sound/effects/sos-morse-code.ogg',10)
message_admins("[key_name(user)] has used a [beacon_type]! [CC_MARK(user)] [beacon_call_buttons](<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];deny_distress_handheld=\ref[user]'>DENY</A>) [ADMIN_JMP_USER(user)] [CC_REPLY(user)]")
message_admins("[key_name(user)] has used a [beacon_type] for the reason '[SPAN_ORANGE(reason)]'! [CC_MARK(user)] [beacon_call_buttons](<A HREF='?_src_=admin_holder;[HrefToken(forceGlobal = TRUE)];deny_distress_handheld=\ref[user]'>DENY</A>) [ADMIN_JMP_USER(user)] [CC_REPLY(user)]")
to_chat(user, SPAN_NOTICE("A distress beacon request has been sent to [recipient]."))

/// CMB distress beacon held by CMB Marshal for signalling distress to Anchorpoint Station
Expand Down

0 comments on commit 2d88d6e

Please sign in to comment.