mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Yelling at other servers
This commit is contained in:
@@ -116,6 +116,19 @@ var/const/CALL_SHUTTLE_REASON_LENGTH = 12
|
|||||||
else if (src.authenticated==2 && message_cooldown)
|
else if (src.authenticated==2 && message_cooldown)
|
||||||
usr << "Intercomms recharging. Please stand by."
|
usr << "Intercomms recharging. Please stand by."
|
||||||
|
|
||||||
|
if("crossserver")
|
||||||
|
if(src.authenticated==2)
|
||||||
|
if(CM.lastTimeUsed + 600 > world.time)
|
||||||
|
usr << "Arrays recycling. Please stand by."
|
||||||
|
return
|
||||||
|
var/input = stripped_input(usr, "Please choose a message to transmit to an allied station. Please be aware that this process is very expensive, and abuse will lead to... termination.", "Send a message to an allied station.", "")
|
||||||
|
if(!input || !(usr in view(1,src)))
|
||||||
|
return
|
||||||
|
send2otherserver(world.name, input,"Comms_Console")
|
||||||
|
minor_announce(input, title = "Outgoing message to allied station")
|
||||||
|
log_say("[key_name(usr)] has sent a message to the other server: [input]")
|
||||||
|
CM.lastTimeUsed = world.time
|
||||||
|
|
||||||
if("callshuttle")
|
if("callshuttle")
|
||||||
src.state = STATE_DEFAULT
|
src.state = STATE_DEFAULT
|
||||||
if(src.authenticated)
|
if(src.authenticated)
|
||||||
@@ -384,6 +397,7 @@ var/const/CALL_SHUTTLE_REASON_LENGTH = 12
|
|||||||
if (src.authenticated==2)
|
if (src.authenticated==2)
|
||||||
dat += "<BR><BR><B>Captain Functions</B>"
|
dat += "<BR><BR><B>Captain Functions</B>"
|
||||||
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=announce'>Make a Captain's Announcement</A> \]"
|
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=announce'>Make a Captain's Announcement</A> \]"
|
||||||
|
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=crossserver'>Send a message to an allied station</A> \]"
|
||||||
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=changeseclevel'>Change Alert Level</A> \]"
|
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=changeseclevel'>Change Alert Level</A> \]"
|
||||||
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=emergencyaccess'>Emergency Maintenance Access</A> \]"
|
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=emergencyaccess'>Emergency Maintenance Access</A> \]"
|
||||||
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=nukerequest'>Request Nuclear Authentication Codes</A> \]"
|
dat += "<BR>\[ <A HREF='?src=\ref[src];operation=nukerequest'>Request Nuclear Authentication Codes</A> \]"
|
||||||
|
|||||||
@@ -154,7 +154,8 @@
|
|||||||
/proc/send2otherserver(source,msg,type = "Ahelp")
|
/proc/send2otherserver(source,msg,type = "Ahelp")
|
||||||
if(global.cross_allowed)
|
if(global.cross_allowed)
|
||||||
var/list/message = list()
|
var/list/message = list()
|
||||||
message["message"] = "[source]: [msg]"
|
message["message_sender"] = source
|
||||||
|
message["message"] = msg
|
||||||
message["source"] = "([config.cross_name])"
|
message["source"] = "([config.cross_name])"
|
||||||
message["key"] = global.comms_key
|
message["key"] = global.comms_key
|
||||||
message["crossmessage"] = type
|
message["crossmessage"] = type
|
||||||
|
|||||||
@@ -155,7 +155,11 @@ var/last_irc_status = 0
|
|||||||
return
|
return
|
||||||
else
|
else
|
||||||
if(input["crossmessage"] == "Ahelp")
|
if(input["crossmessage"] == "Ahelp")
|
||||||
relay_msg_admins("<span class='adminnotice'><b><font color=red>HELP: </font> [input["source"]] [input["message"]]</b></span>")
|
relay_msg_admins("<span class='adminnotice'><b><font color=red>HELP: </font> [input["source"]] [input["message_sender"]]: [input["message"]]</b></span>")
|
||||||
|
if(input["crossmessage"] == "Comms_Console")
|
||||||
|
minor_announce(input["message"], "Incoming message from [input["message_sender"]]")
|
||||||
|
for(var/obj/machinery/computer/communications/CM in machines)
|
||||||
|
CM.overrideCooldown()
|
||||||
|
|
||||||
/world/Reboot(var/reason, var/feedback_c, var/feedback_r, var/time)
|
/world/Reboot(var/reason, var/feedback_c, var/feedback_r, var/time)
|
||||||
if (reason == 1) //special reboot, do none of the normal stuff
|
if (reason == 1) //special reboot, do none of the normal stuff
|
||||||
|
|||||||
Reference in New Issue
Block a user