diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index 44417bdf27..53e0bc97a7 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -1,821 +1,822 @@
-
-////////////////////////////////
-/proc/message_admins(msg)
- msg = "ADMIN LOG: [msg]"
- to_chat(GLOB.admins, msg)
-
-/proc/relay_msg_admins(msg)
- msg = "RELAY: [msg]"
- to_chat(GLOB.admins, msg)
-
-
-///////////////////////////////////////////////////////////////////////////////////////////////Panels
-
-/datum/admins/proc/show_player_panel(mob/M in GLOB.mob_list)
- set category = "Admin"
- set name = "Show Player Panel"
- set desc="Edit player (respawn, ban, heal, etc)"
-
- if(!check_rights())
- return
-
- if(!isobserver(usr))
- log_game("[key_name_admin(usr)] checked the player panel while in game.")
-
- if(!M)
- to_chat(usr, "You seem to be selecting a mob that doesn't exist anymore.")
- return
-
- var/body = "
Options for [M.key]"
- body += "Options panel for [M]"
- if(M.client)
- body += " played by [M.client] "
- body += "\[[M.client.holder ? M.client.holder.rank : "Player"]\]"
-
- if(isnewplayer(M))
- body += " Hasn't Entered Game "
- else
- body += " \[Heal\] "
-
- if(M.client)
- body += "
\[First Seen: [M.client.player_join_date]\]\[Byond account registered on: [M.client.account_join_date]\]"
-
-
-
- body += "
\[ "
- body += "VV - "
- body += "TP - "
- body += "PM - "
- body += "SM - "
- body += "FLW - "
- body += "LOGS\]
"
-
- body += "Mob type = [M.type]
"
-
- body += "Kick | "
- body += "Ban | "
- body += "Jobban | "
- body += "Identity Ban | "
- if(jobban_isbanned(M, "OOC"))
- body+= "OOCBan | "
- else
- body+= "OOCBan | "
- if(jobban_isbanned(M, "emote"))
- body+= "EmoteBan | "
- else
- body+= "Emoteban | "
-
- body += "Notes | Messages | Watchlist | "
- if(M.client)
- body += "| Prison | "
- body += "\ Send back to Lobby | "
- var/muted = M.client.prefs.muted
- body += "
Mute: "
- body += "\[IC | "
- body += "OOC | "
- body += "PRAY | "
- body += "ADMINHELP | "
- body += "DEADCHAT\]"
- body += "(toggle all)"
-
- body += "
"
- body += "Jump to | "
- body += "Get | "
- body += "Send To"
-
- body += "
"
- body += "Traitor panel | "
- body += "Narrate to | "
- body += "Subtle message | "
- body += "Language Menu"
-
- if (M.client)
- if(!isnewplayer(M))
- body += "
"
- body += "Transformation:"
- body += "
"
-
- //Human
- if(ishuman(M))
- body += "Human | "
- else
- body += "Humanize | "
-
- //Monkey
- if(ismonkey(M))
- body += "Monkeyized | "
- else
- body += "Monkeyize | "
-
- //Corgi
- if(iscorgi(M))
- body += "Corgized | "
- else
- body += "Corgize | "
-
- //AI / Cyborg
- if(isAI(M))
- body += "Is an AI "
- else if(ishuman(M))
- body += "Make AI | "
- body += "Make Robot | "
- body += "Make Alien | "
- body += "Make Slime | "
- body += "Make Blob | "
-
- //Simple Animals
- if(isanimal(M))
- body += "Re-Animalize | "
- else
- body += "Animalize | "
-
- body += "
"
- body += "Rudimentary transformation:
These transformations only create a new mob type and copy stuff over. They do not take into account MMIs and similar mob-specific things. The buttons in 'Transformations' are preferred, when possible.
"
- body += "Observer | "
- body += "\[ Alien: Drone, "
- body += "Hunter, "
- body += "Sentinel, "
- body += "Praetorian, "
- body += "Queen, "
- body += "Larva \] "
- body += "Human "
- body += "\[ slime: Baby, "
- body += "Adult \] "
- body += "Monkey | "
- body += "Cyborg | "
- body += "Cat | "
- body += "Runtime | "
- body += "Corgi | "
- body += "Ian | "
- body += "Crab | "
- body += "Coffee | "
- //body += "Parrot | "
- //body += "Poly | "
- body += "\[ Construct: Juggernaut , "
- body += "Artificer , "
- body += "Wraith \] "
- body += "Shade"
- body += "
"
-
- if (M.client)
- body += "
"
- body += "Other actions:"
- body += "
"
- body += "Forcesay | "
- body += "Thunderdome 1 | "
- body += "Thunderdome 2 | "
- body += "Thunderdome Admin | "
- body += "Thunderdome Observer | "
-
- body += "
"
- body += ""
-
- usr << browse(body, "window=adminplayeropts-\ref[M];size=550x515")
- SSblackbox.add_details("admin_verb","Player Panel") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-
-/datum/admins/proc/access_news_network() //MARKER
- set category = "Fun"
- set name = "Access Newscaster Network"
- set desc = "Allows you to view, add and edit news feeds."
-
- if (!istype(src,/datum/admins))
- src = usr.client.holder
- if (!istype(src,/datum/admins))
- to_chat(usr, "Error: you are not an admin!")
- return
- var/dat
- dat = text("Admin NewscasterAdmin Newscaster Unit
")
-
- switch(admincaster_screen)
- if(0)
- dat += "Welcome to the admin newscaster.
Here you can add, edit and censor every newspiece on the network."
- dat += "
Feed channels and stories entered through here will be uneditable and handled as official news by the rest of the units."
- dat += "
Note that this panel allows full freedom over the news network, there are no constrictions except the few basic ones. Don't break things!"
- if(GLOB.news_network.wanted_issue.active)
- dat+= "
Read Wanted Issue"
- dat+= "
Create Feed Channel"
- dat+= "
View Feed Channels"
- dat+= "
Submit new Feed story"
- dat+= "
Exit"
- var/wanted_already = 0
- if(GLOB.news_network.wanted_issue.active)
- wanted_already = 1
- dat+="
Feed Security functions:
"
- dat+="
[(wanted_already) ? ("Manage") : ("Publish")] \"Wanted\" Issue"
- dat+="
Censor Feed Stories"
- dat+="
Mark Feed Channel with Nanotrasen D-Notice (disables and locks the channel)."
- dat+="
The newscaster recognises you as:
[src.admin_signature]"
- if(1)
- dat+= "Station Feed Channels
"
- if( isemptylist(GLOB.news_network.network_channels) )
- dat+="No active channels found..."
- else
- for(var/datum/newscaster/feed_channel/CHANNEL in GLOB.news_network.network_channels)
- if(CHANNEL.is_admin_channel)
- dat+="[CHANNEL.channel_name]
"
- else
- dat+="[CHANNEL.channel_name] [(CHANNEL.censored) ? ("***") : ()]
"
- dat+="
Refresh"
- dat+="
Back"
- if(2)
- dat+="Creating new Feed Channel..."
- dat+="
Channel Name: [src.admincaster_feed_channel.channel_name]
"
- dat+="Channel Author: [src.admin_signature]
"
- dat+="Will Accept Public Feeds: [(src.admincaster_feed_channel.locked) ? ("NO") : ("YES")]
"
- dat+="
Submit
Cancel
"
- if(3)
- dat+="Creating new Feed Message..."
- dat+="
Receiving Channel: [src.admincaster_feed_channel.channel_name]
" //MARK
- dat+="Message Author: [src.admin_signature]
"
- dat+="Message Body: [src.admincaster_feed_message.returnBody(-1)]
"
- dat+="
Submit
Cancel
"
- if(4)
- dat+="Feed story successfully submitted to [src.admincaster_feed_channel.channel_name].
"
- dat+="
Return
"
- if(5)
- dat+="Feed Channel [src.admincaster_feed_channel.channel_name] created successfully.
"
- dat+="
Return
"
- if(6)
- dat+="ERROR: Could not submit Feed story to Network.
"
- if(src.admincaster_feed_channel.channel_name=="")
- dat+="Invalid receiving channel name.
"
- if(src.admincaster_feed_message.returnBody(-1) == "" || src.admincaster_feed_message.returnBody(-1) == "\[REDACTED\]")
- dat+="Invalid message body.
"
- dat+="
Return
"
- if(7)
- dat+="ERROR: Could not submit Feed Channel to Network.
"
- if(src.admincaster_feed_channel.channel_name =="" || src.admincaster_feed_channel.channel_name == "\[REDACTED\]")
- dat+="Invalid channel name.
"
- var/check = 0
- for(var/datum/newscaster/feed_channel/FC in GLOB.news_network.network_channels)
- if(FC.channel_name == src.admincaster_feed_channel.channel_name)
- check = 1
- break
- if(check)
- dat+="Channel name already in use.
"
- dat+="
Return
"
- if(9)
- dat+="[admincaster_feed_channel.channel_name]: \[created by: [admincaster_feed_channel.returnAuthor(-1)]\]
"
- if(src.admincaster_feed_channel.censored)
- dat+="ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a Nanotrasen D-Notice.
"
- dat+="No further feed story additions are allowed while the D-Notice is in effect.
"
- else
- if( isemptylist(src.admincaster_feed_channel.messages) )
- dat+="No feed messages found in channel...
"
- else
- var/i = 0
- for(var/datum/newscaster/feed_message/MESSAGE in src.admincaster_feed_channel.messages)
- i++
- dat+="-[MESSAGE.returnBody(-1)]
"
- if(MESSAGE.img)
- usr << browse_rsc(MESSAGE.img, "tmp_photo[i].png")
- dat+="
"
- dat+="\[Story by [MESSAGE.returnAuthor(-1)]\]
"
- dat+="[MESSAGE.comments.len] comment[MESSAGE.comments.len > 1 ? "s" : ""]:
"
- for(var/datum/newscaster/feed_comment/comment in MESSAGE.comments)
- dat+="[comment.body]
[comment.author] [comment.time_stamp]
"
- dat+="
"
- dat+="
Refresh"
- dat+="
Back"
- if(10)
- dat+="Nanotrasen Feed Censorship Tool
"
- dat+="NOTE: Due to the nature of news Feeds, total deletion of a Feed Story is not possible.
"
- dat+="Keep in mind that users attempting to view a censored feed will instead see the \[REDACTED\] tag above it."
- dat+="
Select Feed channel to get Stories from:
"
- if(isemptylist(GLOB.news_network.network_channels))
- dat+="No feed channels found active...
"
- else
- for(var/datum/newscaster/feed_channel/CHANNEL in GLOB.news_network.network_channels)
- dat+="[CHANNEL.channel_name] [(CHANNEL.censored) ? ("***") : ()]
"
- dat+="
Cancel"
- if(11)
- dat+="Nanotrasen D-Notice Handler
"
- dat+="A D-Notice is to be bestowed upon the channel if the handling Authority deems it as harmful for the station's"
- dat+="morale, integrity or disciplinary behaviour. A D-Notice will render a channel unable to be updated by anyone, without deleting any feed"
- dat+="stories it might contain at the time. You can lift a D-Notice if you have the required access at any time.
"
- if(isemptylist(GLOB.news_network.network_channels))
- dat+="No feed channels found active...
"
- else
- for(var/datum/newscaster/feed_channel/CHANNEL in GLOB.news_network.network_channels)
- dat+="[CHANNEL.channel_name] [(CHANNEL.censored) ? ("***") : ()]
"
-
- dat+="
Back"
- if(12)
- dat+="[src.admincaster_feed_channel.channel_name]: \[ created by: [src.admincaster_feed_channel.returnAuthor(-1)] \]
"
- dat+="[(src.admincaster_feed_channel.authorCensor) ? ("Undo Author censorship") : ("Censor channel Author")]
"
-
- if( isemptylist(src.admincaster_feed_channel.messages) )
- dat+="No feed messages found in channel...
"
- else
- for(var/datum/newscaster/feed_message/MESSAGE in src.admincaster_feed_channel.messages)
- dat+="-[MESSAGE.returnBody(-1)]
\[Story by [MESSAGE.returnAuthor(-1)]\]
"
- dat+="[(MESSAGE.bodyCensor) ? ("Undo story censorship") : ("Censor story")] - [(MESSAGE.authorCensor) ? ("Undo Author Censorship") : ("Censor message Author")]
"
- dat+="[MESSAGE.comments.len] comment[MESSAGE.comments.len > 1 ? "s" : ""]: [MESSAGE.locked ? "Unlock" : "Lock"]
"
- for(var/datum/newscaster/feed_comment/comment in MESSAGE.comments)
- dat+="[comment.body] X
[comment.author] [comment.time_stamp]
"
- dat+="
Back"
- if(13)
- dat+="[src.admincaster_feed_channel.channel_name]: \[ created by: [src.admincaster_feed_channel.returnAuthor(-1)] \]
"
- dat+="Channel messages listed below. If you deem them dangerous to the station, you can Bestow a D-Notice upon the channel.
"
- if(src.admincaster_feed_channel.censored)
- dat+="ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a Nanotrasen D-Notice.
"
- dat+="No further feed story additions are allowed while the D-Notice is in effect.
"
- else
- if( isemptylist(src.admincaster_feed_channel.messages) )
- dat+="No feed messages found in channel...
"
- else
- for(var/datum/newscaster/feed_message/MESSAGE in src.admincaster_feed_channel.messages)
- dat+="-[MESSAGE.returnBody(-1)]
\[Story by [MESSAGE.returnAuthor(-1)]\]
"
- dat+="
Back"
- if(14)
- dat+="Wanted Issue Handler:"
- var/wanted_already = 0
- var/end_param = 1
- if(GLOB.news_network.wanted_issue.active)
- wanted_already = 1
- end_param = 2
- if(wanted_already)
- dat+="
A wanted issue is already in Feed Circulation. You can edit or cancel it below."
- dat+="
"
- dat+="Criminal Name: [src.admincaster_wanted_message.criminal]
"
- dat+="Description: [src.admincaster_wanted_message.body]
"
- if(wanted_already)
- dat+="Wanted Issue created by:[GLOB.news_network.wanted_issue.scannedUser]
"
- else
- dat+="Wanted Issue will be created under prosecutor:[src.admin_signature]
"
- dat+="
[(wanted_already) ? ("Edit Issue") : ("Submit")]"
- if(wanted_already)
- dat+="
Take down Issue"
- dat+="
Cancel"
- if(15)
- dat+="Wanted issue for [src.admincaster_wanted_message.criminal] is now in Network Circulation.
"
- dat+="
Return
"
- if(16)
- dat+="ERROR: Wanted Issue rejected by Network.
"
- if(src.admincaster_wanted_message.criminal =="" || src.admincaster_wanted_message.criminal == "\[REDACTED\]")
- dat+="Invalid name for person wanted.
"
- if(src.admincaster_wanted_message.body == "" || src.admincaster_wanted_message.body == "\[REDACTED\]")
- dat+="Invalid description.
"
- dat+="
Return
"
- if(17)
- dat+="Wanted Issue successfully deleted from Circulation
"
- dat+="
Return
"
- if(18)
- dat+="-- STATIONWIDE WANTED ISSUE --
\[Submitted by: [GLOB.news_network.wanted_issue.scannedUser]\]
"
- dat+="Criminal: [GLOB.news_network.wanted_issue.criminal]
"
- dat+="Description: [GLOB.news_network.wanted_issue.body]
"
- dat+="Photo:: "
- if(GLOB.news_network.wanted_issue.img)
- usr << browse_rsc(GLOB.news_network.wanted_issue.img, "tmp_photow.png")
- dat+="
"
- else
- dat+="None"
- dat+="
Back
"
- if(19)
- dat+="Wanted issue for [src.admincaster_wanted_message.criminal] successfully edited.
"
- dat+="
Return
"
- else
- dat+="I'm sorry to break your immersion. This shit's bugged. Report this bug to Agouri, polyxenitopalidou@gmail.com"
-
- //to_chat(world, "Channelname: [src.admincaster_feed_channel.channel_name] [src.admincaster_feed_channel.author]")
- //to_chat(world, "Msg: [src.admincaster_feed_message.author] [src.admincaster_feed_message.body]")
- usr << browse(dat, "window=admincaster_main;size=400x600")
- onclose(usr, "admincaster_main")
-
-
-/datum/admins/proc/Game()
- if(!check_rights(0))
- return
-
- var/dat = {"
- Game Panel
\n
- Change Game Mode
- "}
- if(GLOB.master_mode == "secret")
- dat += "(Force Secret Mode)
"
-
- dat += {"
-
- Create Object
- Quick Create Object
- Create Turf
- Create Mob
- "}
-
- if(marked_datum && istype(marked_datum, /atom))
- dat += "Duplicate Marked Datum
"
-
- usr << browse(dat, "window=admin2;size=210x200")
- return
-
-/////////////////////////////////////////////////////////////////////////////////////////////////admins2.dm merge
-//i.e. buttons/verbs
-
-
-/datum/admins/proc/restart()
- set category = "Server"
- set name = "Reboot World"
- set desc="Restarts the world immediately"
- if (!usr.client.holder)
- return
- var/confirm = alert("Restart the game world?", "Restart", "Yes", "Cancel")
- if(confirm == "Cancel")
- return
- if(confirm == "Yes")
- SSticker.delay_end = 0
- SSblackbox.add_details("admin_verb","Reboot World") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
- world.Reboot("Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key].", "end_error", "admin reboot - by [usr.key] [usr.client.holder.fakekey ? "(stealth)" : ""]", 10)
-
-/datum/admins/proc/end_round()
- set category = "Server"
- set name = "End Round"
- set desc = "Attempts to produce a round end report and then restart the server organically."
-
- if (!usr.client.holder)
- return
- var/confirm = alert("End the round and restart the game world?", "End Round", "Yes", "Cancel")
- if(confirm == "Cancel")
- return
- if(confirm == "Yes")
- SSticker.force_ending = 1
- SSblackbox.add_details("admin_verb","End Round") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-
-/datum/admins/proc/announce()
- set category = "Special Verbs"
- set name = "Announce"
- set desc="Announce your desires to the world"
- if(!check_rights(0))
- return
-
- var/message = input("Global message to send:", "Admin Announce", null, null) as message
- if(message)
- if(!check_rights(R_SERVER,0))
- message = adminscrub(message,500)
- to_chat(world, "[usr.client.holder.fakekey ? "Administrator" : usr.key] Announces:\n \t [message]")
- log_admin("Announce: [key_name(usr)] : [message]")
- SSblackbox.add_details("admin_verb","Announce") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-/datum/admins/proc/set_admin_notice()
- set category = "Special Verbs"
- set name = "Set Admin Notice"
- set desc ="Set an announcement that appears to everyone who joins the server. Only lasts this round"
- if(!check_rights(0))
- return
-
- var/new_admin_notice = input(src,"Set a public notice for this round. Everyone who joins the server will see it.\n(Leaving it blank will delete the current notice):","Set Notice",GLOB.admin_notice) as message|null
- if(new_admin_notice == null)
- return
- if(new_admin_notice == GLOB.admin_notice)
- return
- if(new_admin_notice == "")
- message_admins("[key_name(usr)] removed the admin notice.")
- log_admin("[key_name(usr)] removed the admin notice:\n[GLOB.admin_notice]")
- else
- message_admins("[key_name(usr)] set the admin notice.")
- log_admin("[key_name(usr)] set the admin notice:\n[new_admin_notice]")
- to_chat(world, "Admin Notice:\n \t [new_admin_notice]")
- SSblackbox.add_details("admin_verb","Set Admin Notice") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
- GLOB.admin_notice = new_admin_notice
- return
-
-/datum/admins/proc/toggleooc()
- set category = "Server"
- set desc="Toggle dis bitch"
- set name="Toggle OOC"
- toggle_ooc()
- log_admin("[key_name(usr)] toggled OOC.")
- message_admins("[key_name_admin(usr)] toggled OOC.")
- SSblackbox.add_details("admin_toggle","Toggle OOC|[GLOB.ooc_allowed]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-/datum/admins/proc/toggleoocdead()
- set category = "Server"
- set desc="Toggle dis bitch"
- set name="Toggle Dead OOC"
- GLOB.dooc_allowed = !( GLOB.dooc_allowed )
-
- log_admin("[key_name(usr)] toggled OOC.")
- message_admins("[key_name_admin(usr)] toggled Dead OOC.")
- SSblackbox.add_details("admin_toggle","Toggle Dead OOC|[GLOB.dooc_allowed]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-/datum/admins/proc/startnow()
- set category = "Server"
- set desc="Start the round RIGHT NOW"
- set name="Start Now"
- if(SSticker.current_state == GAME_STATE_PREGAME || SSticker.current_state == GAME_STATE_STARTUP)
- SSticker.start_immediately = TRUE
- log_admin("[usr.key] has started the game.")
- var/msg = ""
- if(SSticker.current_state == GAME_STATE_STARTUP)
- msg = " (The server is still setting up, but the round will be \
- started as soon as possible.)"
- message_admins("\
- [usr.key] has started the game.[msg]")
- SSblackbox.add_details("admin_verb","Start Now") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
- return 1
- else
- to_chat(usr, "Error: Start Now: Game has already started.")
-
- return 0
-
-/datum/admins/proc/toggleenter()
- set category = "Server"
- set desc="People can't enter"
- set name="Toggle Entering"
- GLOB.enter_allowed = !( GLOB.enter_allowed )
- if (!( GLOB.enter_allowed ))
- to_chat(world, "New players may no longer enter the game.")
- else
- to_chat(world, "New players may now enter the game.")
- log_admin("[key_name(usr)] toggled new player game entering.")
- message_admins("[key_name_admin(usr)] toggled new player game entering.")
- world.update_status()
- SSblackbox.add_details("admin_toggle","Toggle Entering|[GLOB.enter_allowed]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-/datum/admins/proc/toggleAI()
- set category = "Server"
- set desc="People can't be AI"
- set name="Toggle AI"
- config.allow_ai = !( config.allow_ai )
- if (!( config.allow_ai ))
- to_chat(world, "The AI job is no longer chooseable.")
- else
- to_chat(world, "The AI job is chooseable now.")
- log_admin("[key_name(usr)] toggled AI allowed.")
- world.update_status()
- SSblackbox.add_details("admin_toggle","Toggle AI|[config.allow_ai]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-/datum/admins/proc/toggleaban()
- set category = "Server"
- set desc="Respawn basically"
- set name="Toggle Respawn"
- GLOB.abandon_allowed = !( GLOB.abandon_allowed )
- if (GLOB.abandon_allowed)
- to_chat(world, "You may now respawn.")
- else
- to_chat(world, "You may no longer respawn :(")
- message_admins("[key_name_admin(usr)] toggled respawn to [GLOB.abandon_allowed ? "On" : "Off"].")
- log_admin("[key_name(usr)] toggled respawn to [GLOB.abandon_allowed ? "On" : "Off"].")
- world.update_status()
- SSblackbox.add_details("admin_toggle","Toggle Respawn|[GLOB.abandon_allowed]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-/datum/admins/proc/delay()
- set category = "Server"
- set desc="Delay the game start"
- set name="Delay pre-game"
-
- var/newtime = input("Set a new time in seconds. Set -1 for indefinite delay.","Set Delay",round(SSticker.GetTimeLeft()/10)) as num|null
- if(SSticker.current_state > GAME_STATE_PREGAME)
- return alert("Too late... The game has already started!")
- if(newtime)
- SSticker.SetTimeLeft(newtime * 10)
- if(newtime < 0)
- to_chat(world, "The game start has been delayed.")
- log_admin("[key_name(usr)] delayed the round start.")
- else
- to_chat(world, "The game will start in [newtime] seconds.")
- world << 'sound/ai/attention.ogg'
- log_admin("[key_name(usr)] set the pre-game delay to [newtime] seconds.")
- SSblackbox.add_details("admin_verb","Delay Game Start") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-/datum/admins/proc/unprison(mob/M in GLOB.mob_list)
- set category = "Admin"
- set name = "Unprison"
- if (M.z == ZLEVEL_CENTCOM)
- M.loc = pick(GLOB.latejoin)
- message_admins("[key_name_admin(usr)] has unprisoned [key_name_admin(M)]")
- log_admin("[key_name(usr)] has unprisoned [key_name(M)]")
- else
- alert("[M.name] is not prisoned.")
- SSblackbox.add_details("admin_verb","Unprison") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-////////////////////////////////////////////////////////////////////////////////////////////////ADMIN HELPER PROCS
-
-/*
-/datum/admins/proc/get_sab_desc(var/target)
- switch(target)
- if(1)
- return "Destroy at least 70% of the plasma canisters on the station"
- if(2)
- return "Destroy the AI"
- if(3)
- var/count = 0
- for(var/mob/living/carbon/monkey/Monkey in world)
- if(Monkey.z == 1)
- count++
- return "Kill all [count] of the monkeys on the station"
- if(4)
- return "Cut power to at least 80% of the station"
- else
- return "Error: Invalid sabotage target: [target]"
-*/
-/datum/admins/proc/spawn_atom(object as text)
- set category = "Debug"
- set desc = "(atom path) Spawn an atom"
- set name = "Spawn"
-
- if(!check_rights(R_SPAWN))
- return
-
- var/chosen = pick_closest_path(object)
- if(!chosen)
- return
- if(ispath(chosen,/turf))
- var/turf/T = get_turf(usr.loc)
- T.ChangeTurf(chosen)
- else
- var/atom/A = new chosen(usr.loc)
- A.admin_spawned = TRUE
-
- log_admin("[key_name(usr)] spawned [chosen] at ([usr.x],[usr.y],[usr.z])")
- SSblackbox.add_details("admin_verb","Spawn Atom") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-
-/datum/admins/proc/show_traitor_panel(mob/M in GLOB.mob_list)
- set category = "Admin"
- set desc = "Edit mobs's memory and role"
- set name = "Show Traitor Panel"
-
- if(!istype(M))
- to_chat(usr, "This can only be used on instances of type /mob")
- return
- if(!M.mind)
- to_chat(usr, "This mob has no mind!")
- return
-
- M.mind.edit_memory()
- SSblackbox.add_details("admin_verb","Traitor Panel") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-
-/datum/admins/proc/toggletintedweldhelmets()
- set category = "Debug"
- set desc="Reduces view range when wearing welding helmets"
- set name="Toggle tinted welding helmes"
- GLOB.tinted_weldhelh = !( GLOB.tinted_weldhelh )
- if (GLOB.tinted_weldhelh)
- to_chat(world, "The tinted_weldhelh has been enabled!")
- else
- to_chat(world, "The tinted_weldhelh has been disabled!")
- log_admin("[key_name(usr)] toggled tinted_weldhelh.")
- message_admins("[key_name_admin(usr)] toggled tinted_weldhelh.")
- SSblackbox.add_details("admin_toggle","Toggle Tinted Welding Helmets|[GLOB.tinted_weldhelh]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-/datum/admins/proc/toggleguests()
- set category = "Server"
- set desc="Guests can't enter"
- set name="Toggle guests"
- GLOB.guests_allowed = !( GLOB.guests_allowed )
- if (!( GLOB.guests_allowed ))
- to_chat(world, "Guests may no longer enter the game.")
- else
- to_chat(world, "Guests may now enter the game.")
- log_admin("[key_name(usr)] toggled guests game entering [GLOB.guests_allowed?"":"dis"]allowed.")
- message_admins("[key_name_admin(usr)] toggled guests game entering [GLOB.guests_allowed?"":"dis"]allowed.")
- SSblackbox.add_details("admin_toggle","Toggle Guests|[GLOB.guests_allowed]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
-
-/datum/admins/proc/output_ai_laws()
- var/ai_number = 0
- for(var/mob/living/silicon/S in GLOB.mob_list)
- ai_number++
- if(isAI(S))
- to_chat(usr, "AI [key_name(S, usr)]'s laws:")
- else if(iscyborg(S))
- var/mob/living/silicon/robot/R = S
- to_chat(usr, "CYBORG [key_name(S, usr)] [R.connected_ai?"(Slaved to: [R.connected_ai])":"(Independant)"]: laws:")
- else if (ispAI(S))
- to_chat(usr, "pAI [key_name(S, usr)]'s laws:")
- else
- to_chat(usr, "SOMETHING SILICON [key_name(S, usr)]'s laws:")
-
- if (S.laws == null)
- to_chat(usr, "[key_name(S, usr)]'s laws are null?? Contact a coder.")
- else
- S.laws.show_laws(usr)
- if(!ai_number)
- to_chat(usr, "No AIs located" )
-
-/datum/admins/proc/output_all_devil_info()
- var/devil_number = 0
- for(var/D in SSticker.mode.devils)
- devil_number++
- to_chat(usr, "Devil #[devil_number]:
" + SSticker.mode.printdevilinfo(D))
- if(!devil_number)
- to_chat(usr, "No Devils located" )
-
-/datum/admins/proc/output_devil_info(mob/living/M)
- if(istype(M) && M.mind && M.mind.devilinfo)
- to_chat(usr, SSticker.mode.printdevilinfo(M.mind))
- else
- to_chat(usr, "[M] is not a devil.")
-
-/datum/admins/proc/manage_free_slots()
- if(!check_rights())
- return
- var/dat = "Manage Free Slots"
- var/count = 0
-
- if(SSticker && !SSticker.mode)
- alert(usr, "You cannot manage jobs before the round starts!")
- return
-
- if(SSjob)
- for(var/datum/job/job in SSjob.occupations)
- count++
- var/J_title = html_encode(job.title)
- var/J_opPos = html_encode(job.total_positions - (job.total_positions - job.current_positions))
- var/J_totPos = html_encode(job.total_positions)
- if(job.total_positions < 0)
- dat += "[J_title]: [J_opPos] (unlimited)"
- else
- dat += "[J_title]: [J_opPos]/[J_totPos]"
-
- if(job.title == "AI" || job.title == "Cyborg")
- dat += " (Cannot Late Join)
"
- continue
- if(job.total_positions >= 0)
- dat += " Add | "
- if(job.total_positions > job.current_positions)
- dat += "Remove | "
- else
- dat += "Remove | "
- dat += "Unlimit"
- else
- dat += " Limit"
- dat += "
"
-
- dat += ""
- var/winheight = 100 + (count * 20)
- winheight = min(winheight, 690)
- usr << browse(dat, "window=players;size=375x[winheight]")
-
-//
-//
-//ALL DONE
-//*********************************************************************************************************
-//TO-DO:
-//
-//
-
-//RIP ferry snowflakes
-
-//Kicks all the clients currently in the lobby. The second parameter (kick_only_afk) determins if an is_afk() check is ran, or if all clients are kicked
-//defaults to kicking everyone (afk + non afk clients in the lobby)
-//returns a list of ckeys of the kicked clients
-/proc/kick_clients_in_lobby(message, kick_only_afk = 0)
- var/list/kicked_client_names = list()
- for(var/client/C in GLOB.clients)
- if(isnewplayer(C.mob))
- if(kick_only_afk && !C.is_afk()) //Ignore clients who are not afk
- continue
- if(message)
- to_chat(C, message)
- kicked_client_names.Add("[C.ckey]")
- qdel(C)
- return kicked_client_names
-
-//returns 1 to let the dragdrop code know we are trapping this event
-//returns 0 if we don't plan to trap the event
-/datum/admins/proc/cmd_ghost_drag(mob/dead/observer/frommob, mob/living/tomob)
-
- //this is the exact two check rights checks required to edit a ckey with vv.
- if (!check_rights(R_VAREDIT,0) || !check_rights(R_SPAWN|R_DEBUG,0))
- return 0
-
- if (!frommob.ckey)
- return 0
-
- var/question = ""
- if (tomob.ckey)
- question = "This mob already has a user ([tomob.key]) in control of it! "
- question += "Are you sure you want to place [frommob.name]([frommob.key]) in control of [tomob.name]?"
-
- var/ask = alert(question, "Place ghost in control of mob?", "Yes", "No")
- if (ask != "Yes")
- return 1
-
- if (!frommob || !tomob) //make sure the mobs don't go away while we waited for a response
- return 1
-
- tomob.ghostize(0)
-
- message_admins("[key_name_admin(usr)] has put [frommob.ckey] in control of [tomob.name].")
- log_admin("[key_name(usr)] stuffed [frommob.ckey] into [tomob.name].")
- SSblackbox.add_details("admin_verb","Ghost Drag Control")
-
- tomob.ckey = frommob.ckey
- qdel(frommob)
-
- return 1
-
-/client/proc/adminGreet(logout)
- if(SSticker.HasRoundStarted())
- var/string
- if(logout && config && config.announce_admin_logout)
- string = pick(
- "Admin logout: [key_name(src)]")
- else if(!logout && config && config.announce_admin_login && (prefs.toggles & ANNOUNCE_LOGIN))
- string = pick(
- "Admin login: [key_name(src)]")
- if(string)
- message_admins("[string]")
+
+////////////////////////////////
+/proc/message_admins(msg)
+ msg = "ADMIN LOG: [msg]"
+ to_chat(GLOB.admins, msg)
+
+/proc/relay_msg_admins(msg)
+ msg = "RELAY: [msg]"
+ to_chat(GLOB.admins, msg)
+
+
+///////////////////////////////////////////////////////////////////////////////////////////////Panels
+
+/datum/admins/proc/show_player_panel(mob/M in GLOB.mob_list)
+ set category = "Admin"
+ set name = "Show Player Panel"
+ set desc="Edit player (respawn, ban, heal, etc)"
+
+ if(!check_rights())
+ return
+
+ if(!isobserver(usr))
+ log_game("[key_name_admin(usr)] checked the player panel while in game.")
+
+ if(!M)
+ to_chat(usr, "You seem to be selecting a mob that doesn't exist anymore.")
+ return
+
+ var/body = "Options for [M.key]"
+ body += "Options panel for [M]"
+ if(M.client)
+ body += " played by [M.client] "
+ body += "\[[M.client.holder ? M.client.holder.rank : "Player"]\]"
+
+ if(isnewplayer(M))
+ body += " Hasn't Entered Game "
+ else
+ body += " \[Heal\] "
+
+ if(M.client)
+ body += "
\[Player Age: [M.client.player_age]\]\[Byond Age: [M.client.account_age]\]"
+ body += "
Show related accounts by: "
+ body += "\[ CID | "
+ body += "IP \]"
+
+ body += "
\[ "
+ body += "VV - "
+ body += "TP - "
+ body += "PM - "
+ body += "SM - "
+ body += "FLW - "
+ body += "LOGS\]
"
+
+ body += "Mob type = [M.type]
"
+
+ body += "Kick | "
+ body += "Ban | "
+ body += "Jobban | "
+ body += "Identity Ban | "
+ if(jobban_isbanned(M, "OOC"))
+ body+= "OOCBan | "
+ else
+ body+= "OOCBan | "
+ if(jobban_isbanned(M, "emote"))
+ body+= "EmoteBan | "
+ else
+ body+= "Emoteban | "
+
+ body += "Notes | Messages | Watchlist | "
+ if(M.client)
+ body += "| Prison | "
+ body += "\ Send back to Lobby | "
+ var/muted = M.client.prefs.muted
+ body += "
Mute: "
+ body += "\[IC | "
+ body += "OOC | "
+ body += "PRAY | "
+ body += "ADMINHELP | "
+ body += "DEADCHAT\]"
+ body += "(toggle all)"
+
+ body += "
"
+ body += "Jump to | "
+ body += "Get | "
+ body += "Send To"
+
+ body += "
"
+ body += "Traitor panel | "
+ body += "Narrate to | "
+ body += "Subtle message | "
+ body += "Language Menu"
+
+ if (M.client)
+ if(!isnewplayer(M))
+ body += "
"
+ body += "Transformation:"
+ body += "
"
+
+ //Human
+ if(ishuman(M))
+ body += "Human | "
+ else
+ body += "Humanize | "
+
+ //Monkey
+ if(ismonkey(M))
+ body += "Monkeyized | "
+ else
+ body += "Monkeyize | "
+
+ //Corgi
+ if(iscorgi(M))
+ body += "Corgized | "
+ else
+ body += "Corgize | "
+
+ //AI / Cyborg
+ if(isAI(M))
+ body += "Is an AI "
+ else if(ishuman(M))
+ body += "Make AI | "
+ body += "Make Robot | "
+ body += "Make Alien | "
+ body += "Make Slime | "
+ body += "Make Blob | "
+
+ //Simple Animals
+ if(isanimal(M))
+ body += "Re-Animalize | "
+ else
+ body += "Animalize | "
+
+ body += "
"
+ body += "Rudimentary transformation:
These transformations only create a new mob type and copy stuff over. They do not take into account MMIs and similar mob-specific things. The buttons in 'Transformations' are preferred, when possible.
"
+ body += "Observer | "
+ body += "\[ Alien: Drone, "
+ body += "Hunter, "
+ body += "Sentinel, "
+ body += "Praetorian, "
+ body += "Queen, "
+ body += "Larva \] "
+ body += "Human "
+ body += "\[ slime: Baby, "
+ body += "Adult \] "
+ body += "Monkey | "
+ body += "Cyborg | "
+ body += "Cat | "
+ body += "Runtime | "
+ body += "Corgi | "
+ body += "Ian | "
+ body += "Crab | "
+ body += "Coffee | "
+ //body += "Parrot | "
+ //body += "Poly | "
+ body += "\[ Construct: Juggernaut , "
+ body += "Artificer , "
+ body += "Wraith \] "
+ body += "Shade"
+ body += "
"
+
+ if (M.client)
+ body += "
"
+ body += "Other actions:"
+ body += "
"
+ body += "Forcesay | "
+ body += "Thunderdome 1 | "
+ body += "Thunderdome 2 | "
+ body += "Thunderdome Admin | "
+ body += "Thunderdome Observer | "
+
+ body += "
"
+ body += ""
+
+ usr << browse(body, "window=adminplayeropts-\ref[M];size=550x515")
+ SSblackbox.add_details("admin_verb","Player Panel") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+
+/datum/admins/proc/access_news_network() //MARKER
+ set category = "Fun"
+ set name = "Access Newscaster Network"
+ set desc = "Allows you to view, add and edit news feeds."
+
+ if (!istype(src,/datum/admins))
+ src = usr.client.holder
+ if (!istype(src,/datum/admins))
+ to_chat(usr, "Error: you are not an admin!")
+ return
+ var/dat
+ dat = text("Admin NewscasterAdmin Newscaster Unit
")
+
+ switch(admincaster_screen)
+ if(0)
+ dat += "Welcome to the admin newscaster.
Here you can add, edit and censor every newspiece on the network."
+ dat += "
Feed channels and stories entered through here will be uneditable and handled as official news by the rest of the units."
+ dat += "
Note that this panel allows full freedom over the news network, there are no constrictions except the few basic ones. Don't break things!"
+ if(GLOB.news_network.wanted_issue.active)
+ dat+= "
Read Wanted Issue"
+ dat+= "
Create Feed Channel"
+ dat+= "
View Feed Channels"
+ dat+= "
Submit new Feed story"
+ dat+= "
Exit"
+ var/wanted_already = 0
+ if(GLOB.news_network.wanted_issue.active)
+ wanted_already = 1
+ dat+="
Feed Security functions:
"
+ dat+="
[(wanted_already) ? ("Manage") : ("Publish")] \"Wanted\" Issue"
+ dat+="
Censor Feed Stories"
+ dat+="
Mark Feed Channel with Nanotrasen D-Notice (disables and locks the channel)."
+ dat+="
The newscaster recognises you as:
[src.admin_signature]"
+ if(1)
+ dat+= "Station Feed Channels
"
+ if( isemptylist(GLOB.news_network.network_channels) )
+ dat+="No active channels found..."
+ else
+ for(var/datum/newscaster/feed_channel/CHANNEL in GLOB.news_network.network_channels)
+ if(CHANNEL.is_admin_channel)
+ dat+="[CHANNEL.channel_name]
"
+ else
+ dat+="[CHANNEL.channel_name] [(CHANNEL.censored) ? ("***") : ()]
"
+ dat+="
Refresh"
+ dat+="
Back"
+ if(2)
+ dat+="Creating new Feed Channel..."
+ dat+="
Channel Name: [src.admincaster_feed_channel.channel_name]
"
+ dat+="Channel Author: [src.admin_signature]
"
+ dat+="Will Accept Public Feeds: [(src.admincaster_feed_channel.locked) ? ("NO") : ("YES")]
"
+ dat+="
Submit
Cancel
"
+ if(3)
+ dat+="Creating new Feed Message..."
+ dat+="
Receiving Channel: [src.admincaster_feed_channel.channel_name]
" //MARK
+ dat+="Message Author: [src.admin_signature]
"
+ dat+="Message Body: [src.admincaster_feed_message.returnBody(-1)]
"
+ dat+="
Submit
Cancel
"
+ if(4)
+ dat+="Feed story successfully submitted to [src.admincaster_feed_channel.channel_name].
"
+ dat+="
Return
"
+ if(5)
+ dat+="Feed Channel [src.admincaster_feed_channel.channel_name] created successfully.
"
+ dat+="
Return
"
+ if(6)
+ dat+="ERROR: Could not submit Feed story to Network.
"
+ if(src.admincaster_feed_channel.channel_name=="")
+ dat+="Invalid receiving channel name.
"
+ if(src.admincaster_feed_message.returnBody(-1) == "" || src.admincaster_feed_message.returnBody(-1) == "\[REDACTED\]")
+ dat+="Invalid message body.
"
+ dat+="
Return
"
+ if(7)
+ dat+="ERROR: Could not submit Feed Channel to Network.
"
+ if(src.admincaster_feed_channel.channel_name =="" || src.admincaster_feed_channel.channel_name == "\[REDACTED\]")
+ dat+="Invalid channel name.
"
+ var/check = 0
+ for(var/datum/newscaster/feed_channel/FC in GLOB.news_network.network_channels)
+ if(FC.channel_name == src.admincaster_feed_channel.channel_name)
+ check = 1
+ break
+ if(check)
+ dat+="Channel name already in use.
"
+ dat+="
Return
"
+ if(9)
+ dat+="[admincaster_feed_channel.channel_name]: \[created by: [admincaster_feed_channel.returnAuthor(-1)]\]
"
+ if(src.admincaster_feed_channel.censored)
+ dat+="ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a Nanotrasen D-Notice.
"
+ dat+="No further feed story additions are allowed while the D-Notice is in effect.
"
+ else
+ if( isemptylist(src.admincaster_feed_channel.messages) )
+ dat+="No feed messages found in channel...
"
+ else
+ var/i = 0
+ for(var/datum/newscaster/feed_message/MESSAGE in src.admincaster_feed_channel.messages)
+ i++
+ dat+="-[MESSAGE.returnBody(-1)]
"
+ if(MESSAGE.img)
+ usr << browse_rsc(MESSAGE.img, "tmp_photo[i].png")
+ dat+="
"
+ dat+="\[Story by [MESSAGE.returnAuthor(-1)]\]
"
+ dat+="[MESSAGE.comments.len] comment[MESSAGE.comments.len > 1 ? "s" : ""]:
"
+ for(var/datum/newscaster/feed_comment/comment in MESSAGE.comments)
+ dat+="[comment.body]
[comment.author] [comment.time_stamp]
"
+ dat+="
"
+ dat+="
Refresh"
+ dat+="
Back"
+ if(10)
+ dat+="Nanotrasen Feed Censorship Tool
"
+ dat+="NOTE: Due to the nature of news Feeds, total deletion of a Feed Story is not possible.
"
+ dat+="Keep in mind that users attempting to view a censored feed will instead see the \[REDACTED\] tag above it."
+ dat+="
Select Feed channel to get Stories from:
"
+ if(isemptylist(GLOB.news_network.network_channels))
+ dat+="No feed channels found active...
"
+ else
+ for(var/datum/newscaster/feed_channel/CHANNEL in GLOB.news_network.network_channels)
+ dat+="[CHANNEL.channel_name] [(CHANNEL.censored) ? ("***") : ()]
"
+ dat+="
Cancel"
+ if(11)
+ dat+="Nanotrasen D-Notice Handler
"
+ dat+="A D-Notice is to be bestowed upon the channel if the handling Authority deems it as harmful for the station's"
+ dat+="morale, integrity or disciplinary behaviour. A D-Notice will render a channel unable to be updated by anyone, without deleting any feed"
+ dat+="stories it might contain at the time. You can lift a D-Notice if you have the required access at any time.
"
+ if(isemptylist(GLOB.news_network.network_channels))
+ dat+="No feed channels found active...
"
+ else
+ for(var/datum/newscaster/feed_channel/CHANNEL in GLOB.news_network.network_channels)
+ dat+="[CHANNEL.channel_name] [(CHANNEL.censored) ? ("***") : ()]
"
+
+ dat+="
Back"
+ if(12)
+ dat+="[src.admincaster_feed_channel.channel_name]: \[ created by: [src.admincaster_feed_channel.returnAuthor(-1)] \]
"
+ dat+="[(src.admincaster_feed_channel.authorCensor) ? ("Undo Author censorship") : ("Censor channel Author")]
"
+
+ if( isemptylist(src.admincaster_feed_channel.messages) )
+ dat+="No feed messages found in channel...
"
+ else
+ for(var/datum/newscaster/feed_message/MESSAGE in src.admincaster_feed_channel.messages)
+ dat+="-[MESSAGE.returnBody(-1)]
\[Story by [MESSAGE.returnAuthor(-1)]\]
"
+ dat+="[(MESSAGE.bodyCensor) ? ("Undo story censorship") : ("Censor story")] - [(MESSAGE.authorCensor) ? ("Undo Author Censorship") : ("Censor message Author")]
"
+ dat+="[MESSAGE.comments.len] comment[MESSAGE.comments.len > 1 ? "s" : ""]: [MESSAGE.locked ? "Unlock" : "Lock"]
"
+ for(var/datum/newscaster/feed_comment/comment in MESSAGE.comments)
+ dat+="[comment.body] X
[comment.author] [comment.time_stamp]
"
+ dat+="
Back"
+ if(13)
+ dat+="[src.admincaster_feed_channel.channel_name]: \[ created by: [src.admincaster_feed_channel.returnAuthor(-1)] \]
"
+ dat+="Channel messages listed below. If you deem them dangerous to the station, you can Bestow a D-Notice upon the channel.
"
+ if(src.admincaster_feed_channel.censored)
+ dat+="ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a Nanotrasen D-Notice.
"
+ dat+="No further feed story additions are allowed while the D-Notice is in effect.
"
+ else
+ if( isemptylist(src.admincaster_feed_channel.messages) )
+ dat+="No feed messages found in channel...
"
+ else
+ for(var/datum/newscaster/feed_message/MESSAGE in src.admincaster_feed_channel.messages)
+ dat+="-[MESSAGE.returnBody(-1)]
\[Story by [MESSAGE.returnAuthor(-1)]\]
"
+ dat+="
Back"
+ if(14)
+ dat+="Wanted Issue Handler:"
+ var/wanted_already = 0
+ var/end_param = 1
+ if(GLOB.news_network.wanted_issue.active)
+ wanted_already = 1
+ end_param = 2
+ if(wanted_already)
+ dat+="
A wanted issue is already in Feed Circulation. You can edit or cancel it below."
+ dat+="
"
+ dat+="Criminal Name: [src.admincaster_wanted_message.criminal]
"
+ dat+="Description: [src.admincaster_wanted_message.body]
"
+ if(wanted_already)
+ dat+="Wanted Issue created by:[GLOB.news_network.wanted_issue.scannedUser]
"
+ else
+ dat+="Wanted Issue will be created under prosecutor:[src.admin_signature]
"
+ dat+="
[(wanted_already) ? ("Edit Issue") : ("Submit")]"
+ if(wanted_already)
+ dat+="
Take down Issue"
+ dat+="
Cancel"
+ if(15)
+ dat+="Wanted issue for [src.admincaster_wanted_message.criminal] is now in Network Circulation.
"
+ dat+="
Return
"
+ if(16)
+ dat+="ERROR: Wanted Issue rejected by Network.
"
+ if(src.admincaster_wanted_message.criminal =="" || src.admincaster_wanted_message.criminal == "\[REDACTED\]")
+ dat+="Invalid name for person wanted.
"
+ if(src.admincaster_wanted_message.body == "" || src.admincaster_wanted_message.body == "\[REDACTED\]")
+ dat+="Invalid description.
"
+ dat+="
Return
"
+ if(17)
+ dat+="Wanted Issue successfully deleted from Circulation
"
+ dat+="
Return
"
+ if(18)
+ dat+="-- STATIONWIDE WANTED ISSUE --
\[Submitted by: [GLOB.news_network.wanted_issue.scannedUser]\]
"
+ dat+="Criminal: [GLOB.news_network.wanted_issue.criminal]
"
+ dat+="Description: [GLOB.news_network.wanted_issue.body]
"
+ dat+="Photo:: "
+ if(GLOB.news_network.wanted_issue.img)
+ usr << browse_rsc(GLOB.news_network.wanted_issue.img, "tmp_photow.png")
+ dat+="
"
+ else
+ dat+="None"
+ dat+="
Back
"
+ if(19)
+ dat+="Wanted issue for [src.admincaster_wanted_message.criminal] successfully edited.
"
+ dat+="
Return
"
+ else
+ dat+="I'm sorry to break your immersion. This shit's bugged. Report this bug to Agouri, polyxenitopalidou@gmail.com"
+
+ //to_chat(world, "Channelname: [src.admincaster_feed_channel.channel_name] [src.admincaster_feed_channel.author]")
+ //to_chat(world, "Msg: [src.admincaster_feed_message.author] [src.admincaster_feed_message.body]")
+ usr << browse(dat, "window=admincaster_main;size=400x600")
+ onclose(usr, "admincaster_main")
+
+
+/datum/admins/proc/Game()
+ if(!check_rights(0))
+ return
+
+ var/dat = {"
+ Game Panel
\n
+ Change Game Mode
+ "}
+ if(GLOB.master_mode == "secret")
+ dat += "(Force Secret Mode)
"
+
+ dat += {"
+
+ Create Object
+ Quick Create Object
+ Create Turf
+ Create Mob
+ "}
+
+ if(marked_datum && istype(marked_datum, /atom))
+ dat += "Duplicate Marked Datum
"
+
+ usr << browse(dat, "window=admin2;size=210x200")
+ return
+
+/////////////////////////////////////////////////////////////////////////////////////////////////admins2.dm merge
+//i.e. buttons/verbs
+
+
+/datum/admins/proc/restart()
+ set category = "Server"
+ set name = "Reboot World"
+ set desc="Restarts the world immediately"
+ if (!usr.client.holder)
+ return
+ var/confirm = alert("Restart the game world?", "Restart", "Yes", "Cancel")
+ if(confirm == "Cancel")
+ return
+ if(confirm == "Yes")
+ SSticker.delay_end = 0
+ SSblackbox.add_details("admin_verb","Reboot World") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+ world.Reboot("Initiated by [usr.client.holder.fakekey ? "Admin" : usr.key].", "end_error", "admin reboot - by [usr.key] [usr.client.holder.fakekey ? "(stealth)" : ""]", 10)
+
+/datum/admins/proc/end_round()
+ set category = "Server"
+ set name = "End Round"
+ set desc = "Attempts to produce a round end report and then restart the server organically."
+
+ if (!usr.client.holder)
+ return
+ var/confirm = alert("End the round and restart the game world?", "End Round", "Yes", "Cancel")
+ if(confirm == "Cancel")
+ return
+ if(confirm == "Yes")
+ SSticker.force_ending = 1
+ SSblackbox.add_details("admin_verb","End Round") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+
+/datum/admins/proc/announce()
+ set category = "Special Verbs"
+ set name = "Announce"
+ set desc="Announce your desires to the world"
+ if(!check_rights(0))
+ return
+
+ var/message = input("Global message to send:", "Admin Announce", null, null) as message
+ if(message)
+ if(!check_rights(R_SERVER,0))
+ message = adminscrub(message,500)
+ to_chat(world, "[usr.client.holder.fakekey ? "Administrator" : usr.key] Announces:\n \t [message]")
+ log_admin("Announce: [key_name(usr)] : [message]")
+ SSblackbox.add_details("admin_verb","Announce") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+/datum/admins/proc/set_admin_notice()
+ set category = "Special Verbs"
+ set name = "Set Admin Notice"
+ set desc ="Set an announcement that appears to everyone who joins the server. Only lasts this round"
+ if(!check_rights(0))
+ return
+
+ var/new_admin_notice = input(src,"Set a public notice for this round. Everyone who joins the server will see it.\n(Leaving it blank will delete the current notice):","Set Notice",GLOB.admin_notice) as message|null
+ if(new_admin_notice == null)
+ return
+ if(new_admin_notice == GLOB.admin_notice)
+ return
+ if(new_admin_notice == "")
+ message_admins("[key_name(usr)] removed the admin notice.")
+ log_admin("[key_name(usr)] removed the admin notice:\n[GLOB.admin_notice]")
+ else
+ message_admins("[key_name(usr)] set the admin notice.")
+ log_admin("[key_name(usr)] set the admin notice:\n[new_admin_notice]")
+ to_chat(world, "Admin Notice:\n \t [new_admin_notice]")
+ SSblackbox.add_details("admin_verb","Set Admin Notice") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+ GLOB.admin_notice = new_admin_notice
+ return
+
+/datum/admins/proc/toggleooc()
+ set category = "Server"
+ set desc="Toggle dis bitch"
+ set name="Toggle OOC"
+ toggle_ooc()
+ log_admin("[key_name(usr)] toggled OOC.")
+ message_admins("[key_name_admin(usr)] toggled OOC.")
+ SSblackbox.add_details("admin_toggle","Toggle OOC|[GLOB.ooc_allowed]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+/datum/admins/proc/toggleoocdead()
+ set category = "Server"
+ set desc="Toggle dis bitch"
+ set name="Toggle Dead OOC"
+ GLOB.dooc_allowed = !( GLOB.dooc_allowed )
+
+ log_admin("[key_name(usr)] toggled OOC.")
+ message_admins("[key_name_admin(usr)] toggled Dead OOC.")
+ SSblackbox.add_details("admin_toggle","Toggle Dead OOC|[GLOB.dooc_allowed]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+/datum/admins/proc/startnow()
+ set category = "Server"
+ set desc="Start the round RIGHT NOW"
+ set name="Start Now"
+ if(SSticker.current_state == GAME_STATE_PREGAME || SSticker.current_state == GAME_STATE_STARTUP)
+ SSticker.start_immediately = TRUE
+ log_admin("[usr.key] has started the game.")
+ var/msg = ""
+ if(SSticker.current_state == GAME_STATE_STARTUP)
+ msg = " (The server is still setting up, but the round will be \
+ started as soon as possible.)"
+ message_admins("\
+ [usr.key] has started the game.[msg]")
+ SSblackbox.add_details("admin_verb","Start Now") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+ return 1
+ else
+ to_chat(usr, "Error: Start Now: Game has already started.")
+
+ return 0
+
+/datum/admins/proc/toggleenter()
+ set category = "Server"
+ set desc="People can't enter"
+ set name="Toggle Entering"
+ GLOB.enter_allowed = !( GLOB.enter_allowed )
+ if (!( GLOB.enter_allowed ))
+ to_chat(world, "New players may no longer enter the game.")
+ else
+ to_chat(world, "New players may now enter the game.")
+ log_admin("[key_name(usr)] toggled new player game entering.")
+ message_admins("[key_name_admin(usr)] toggled new player game entering.")
+ world.update_status()
+ SSblackbox.add_details("admin_toggle","Toggle Entering|[GLOB.enter_allowed]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+/datum/admins/proc/toggleAI()
+ set category = "Server"
+ set desc="People can't be AI"
+ set name="Toggle AI"
+ config.allow_ai = !( config.allow_ai )
+ if (!( config.allow_ai ))
+ to_chat(world, "The AI job is no longer chooseable.")
+ else
+ to_chat(world, "The AI job is chooseable now.")
+ log_admin("[key_name(usr)] toggled AI allowed.")
+ world.update_status()
+ SSblackbox.add_details("admin_toggle","Toggle AI|[config.allow_ai]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+/datum/admins/proc/toggleaban()
+ set category = "Server"
+ set desc="Respawn basically"
+ set name="Toggle Respawn"
+ GLOB.abandon_allowed = !( GLOB.abandon_allowed )
+ if (GLOB.abandon_allowed)
+ to_chat(world, "You may now respawn.")
+ else
+ to_chat(world, "You may no longer respawn :(")
+ message_admins("[key_name_admin(usr)] toggled respawn to [GLOB.abandon_allowed ? "On" : "Off"].")
+ log_admin("[key_name(usr)] toggled respawn to [GLOB.abandon_allowed ? "On" : "Off"].")
+ world.update_status()
+ SSblackbox.add_details("admin_toggle","Toggle Respawn|[GLOB.abandon_allowed]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+/datum/admins/proc/delay()
+ set category = "Server"
+ set desc="Delay the game start"
+ set name="Delay pre-game"
+
+ var/newtime = input("Set a new time in seconds. Set -1 for indefinite delay.","Set Delay",round(SSticker.GetTimeLeft()/10)) as num|null
+ if(SSticker.current_state > GAME_STATE_PREGAME)
+ return alert("Too late... The game has already started!")
+ if(newtime)
+ SSticker.SetTimeLeft(newtime * 10)
+ if(newtime < 0)
+ to_chat(world, "The game start has been delayed.")
+ log_admin("[key_name(usr)] delayed the round start.")
+ else
+ to_chat(world, "The game will start in [newtime] seconds.")
+ world << 'sound/ai/attention.ogg'
+ log_admin("[key_name(usr)] set the pre-game delay to [newtime] seconds.")
+ SSblackbox.add_details("admin_verb","Delay Game Start") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+/datum/admins/proc/unprison(mob/M in GLOB.mob_list)
+ set category = "Admin"
+ set name = "Unprison"
+ if (M.z == ZLEVEL_CENTCOM)
+ M.loc = pick(GLOB.latejoin)
+ message_admins("[key_name_admin(usr)] has unprisoned [key_name_admin(M)]")
+ log_admin("[key_name(usr)] has unprisoned [key_name(M)]")
+ else
+ alert("[M.name] is not prisoned.")
+ SSblackbox.add_details("admin_verb","Unprison") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+////////////////////////////////////////////////////////////////////////////////////////////////ADMIN HELPER PROCS
+
+/*
+/datum/admins/proc/get_sab_desc(var/target)
+ switch(target)
+ if(1)
+ return "Destroy at least 70% of the plasma canisters on the station"
+ if(2)
+ return "Destroy the AI"
+ if(3)
+ var/count = 0
+ for(var/mob/living/carbon/monkey/Monkey in world)
+ if(Monkey.z == 1)
+ count++
+ return "Kill all [count] of the monkeys on the station"
+ if(4)
+ return "Cut power to at least 80% of the station"
+ else
+ return "Error: Invalid sabotage target: [target]"
+*/
+/datum/admins/proc/spawn_atom(object as text)
+ set category = "Debug"
+ set desc = "(atom path) Spawn an atom"
+ set name = "Spawn"
+
+ if(!check_rights(R_SPAWN))
+ return
+
+ var/chosen = pick_closest_path(object)
+ if(!chosen)
+ return
+ if(ispath(chosen,/turf))
+ var/turf/T = get_turf(usr.loc)
+ T.ChangeTurf(chosen)
+ else
+ var/atom/A = new chosen(usr.loc)
+ A.admin_spawned = TRUE
+
+ log_admin("[key_name(usr)] spawned [chosen] at ([usr.x],[usr.y],[usr.z])")
+ SSblackbox.add_details("admin_verb","Spawn Atom") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+
+/datum/admins/proc/show_traitor_panel(mob/M in GLOB.mob_list)
+ set category = "Admin"
+ set desc = "Edit mobs's memory and role"
+ set name = "Show Traitor Panel"
+
+ if(!istype(M))
+ to_chat(usr, "This can only be used on instances of type /mob")
+ return
+ if(!M.mind)
+ to_chat(usr, "This mob has no mind!")
+ return
+
+ M.mind.edit_memory()
+ SSblackbox.add_details("admin_verb","Traitor Panel") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+
+/datum/admins/proc/toggletintedweldhelmets()
+ set category = "Debug"
+ set desc="Reduces view range when wearing welding helmets"
+ set name="Toggle tinted welding helmes"
+ GLOB.tinted_weldhelh = !( GLOB.tinted_weldhelh )
+ if (GLOB.tinted_weldhelh)
+ to_chat(world, "The tinted_weldhelh has been enabled!")
+ else
+ to_chat(world, "The tinted_weldhelh has been disabled!")
+ log_admin("[key_name(usr)] toggled tinted_weldhelh.")
+ message_admins("[key_name_admin(usr)] toggled tinted_weldhelh.")
+ SSblackbox.add_details("admin_toggle","Toggle Tinted Welding Helmets|[GLOB.tinted_weldhelh]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+/datum/admins/proc/toggleguests()
+ set category = "Server"
+ set desc="Guests can't enter"
+ set name="Toggle guests"
+ GLOB.guests_allowed = !( GLOB.guests_allowed )
+ if (!( GLOB.guests_allowed ))
+ to_chat(world, "Guests may no longer enter the game.")
+ else
+ to_chat(world, "Guests may now enter the game.")
+ log_admin("[key_name(usr)] toggled guests game entering [GLOB.guests_allowed?"":"dis"]allowed.")
+ message_admins("[key_name_admin(usr)] toggled guests game entering [GLOB.guests_allowed?"":"dis"]allowed.")
+ SSblackbox.add_details("admin_toggle","Toggle Guests|[GLOB.guests_allowed]") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
+
+/datum/admins/proc/output_ai_laws()
+ var/ai_number = 0
+ for(var/mob/living/silicon/S in GLOB.mob_list)
+ ai_number++
+ if(isAI(S))
+ to_chat(usr, "AI [key_name(S, usr)]'s laws:")
+ else if(iscyborg(S))
+ var/mob/living/silicon/robot/R = S
+ to_chat(usr, "CYBORG [key_name(S, usr)] [R.connected_ai?"(Slaved to: [R.connected_ai])":"(Independant)"]: laws:")
+ else if (ispAI(S))
+ to_chat(usr, "pAI [key_name(S, usr)]'s laws:")
+ else
+ to_chat(usr, "SOMETHING SILICON [key_name(S, usr)]'s laws:")
+
+ if (S.laws == null)
+ to_chat(usr, "[key_name(S, usr)]'s laws are null?? Contact a coder.")
+ else
+ S.laws.show_laws(usr)
+ if(!ai_number)
+ to_chat(usr, "No AIs located" )
+
+/datum/admins/proc/output_all_devil_info()
+ var/devil_number = 0
+ for(var/D in SSticker.mode.devils)
+ devil_number++
+ to_chat(usr, "Devil #[devil_number]:
" + SSticker.mode.printdevilinfo(D))
+ if(!devil_number)
+ to_chat(usr, "No Devils located" )
+
+/datum/admins/proc/output_devil_info(mob/living/M)
+ if(istype(M) && M.mind && M.mind.devilinfo)
+ to_chat(usr, SSticker.mode.printdevilinfo(M.mind))
+ else
+ to_chat(usr, "[M] is not a devil.")
+
+/datum/admins/proc/manage_free_slots()
+ if(!check_rights())
+ return
+ var/dat = "Manage Free Slots"
+ var/count = 0
+
+ if(SSticker && !SSticker.mode)
+ alert(usr, "You cannot manage jobs before the round starts!")
+ return
+
+ if(SSjob)
+ for(var/datum/job/job in SSjob.occupations)
+ count++
+ var/J_title = html_encode(job.title)
+ var/J_opPos = html_encode(job.total_positions - (job.total_positions - job.current_positions))
+ var/J_totPos = html_encode(job.total_positions)
+ if(job.total_positions < 0)
+ dat += "[J_title]: [J_opPos] (unlimited)"
+ else
+ dat += "[J_title]: [J_opPos]/[J_totPos]"
+
+ if(job.title == "AI" || job.title == "Cyborg")
+ dat += " (Cannot Late Join)
"
+ continue
+ if(job.total_positions >= 0)
+ dat += " Add | "
+ if(job.total_positions > job.current_positions)
+ dat += "Remove | "
+ else
+ dat += "Remove | "
+ dat += "Unlimit"
+ else
+ dat += " Limit"
+ dat += "
"
+
+ dat += ""
+ var/winheight = 100 + (count * 20)
+ winheight = min(winheight, 690)
+ usr << browse(dat, "window=players;size=375x[winheight]")
+
+//
+//
+//ALL DONE
+//*********************************************************************************************************
+//TO-DO:
+//
+//
+
+//RIP ferry snowflakes
+
+//Kicks all the clients currently in the lobby. The second parameter (kick_only_afk) determins if an is_afk() check is ran, or if all clients are kicked
+//defaults to kicking everyone (afk + non afk clients in the lobby)
+//returns a list of ckeys of the kicked clients
+/proc/kick_clients_in_lobby(message, kick_only_afk = 0)
+ var/list/kicked_client_names = list()
+ for(var/client/C in GLOB.clients)
+ if(isnewplayer(C.mob))
+ if(kick_only_afk && !C.is_afk()) //Ignore clients who are not afk
+ continue
+ if(message)
+ to_chat(C, message)
+ kicked_client_names.Add("[C.ckey]")
+ qdel(C)
+ return kicked_client_names
+
+//returns 1 to let the dragdrop code know we are trapping this event
+//returns 0 if we don't plan to trap the event
+/datum/admins/proc/cmd_ghost_drag(mob/dead/observer/frommob, mob/living/tomob)
+
+ //this is the exact two check rights checks required to edit a ckey with vv.
+ if (!check_rights(R_VAREDIT,0) || !check_rights(R_SPAWN|R_DEBUG,0))
+ return 0
+
+ if (!frommob.ckey)
+ return 0
+
+ var/question = ""
+ if (tomob.ckey)
+ question = "This mob already has a user ([tomob.key]) in control of it! "
+ question += "Are you sure you want to place [frommob.name]([frommob.key]) in control of [tomob.name]?"
+
+ var/ask = alert(question, "Place ghost in control of mob?", "Yes", "No")
+ if (ask != "Yes")
+ return 1
+
+ if (!frommob || !tomob) //make sure the mobs don't go away while we waited for a response
+ return 1
+
+ tomob.ghostize(0)
+
+ message_admins("[key_name_admin(usr)] has put [frommob.ckey] in control of [tomob.name].")
+ log_admin("[key_name(usr)] stuffed [frommob.ckey] into [tomob.name].")
+ SSblackbox.add_details("admin_verb","Ghost Drag Control")
+
+ tomob.ckey = frommob.ckey
+ qdel(frommob)
+
+ return 1
+
+/client/proc/adminGreet(logout)
+ if(SSticker.HasRoundStarted())
+ var/string
+ if(logout && config && config.announce_admin_logout)
+ string = pick(
+ "Admin logout: [key_name(src)]")
+ else if(!logout && config && config.announce_admin_login && (prefs.toggles & ANNOUNCE_LOGIN))
+ string = pick(
+ "Admin login: [key_name(src)]")
+ if(string)
+ message_admins("[string]")
\ No newline at end of file
diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm
index 71a695f57a..c1780e4a34 100644
--- a/code/modules/admin/topic.dm
+++ b/code/modules/admin/topic.dm
@@ -2242,4 +2242,20 @@
if(href_list["viewruntime_backto"])
error_viewer.show_to(owner, locate(href_list["viewruntime_backto"]), href_list["viewruntime_linear"])
else
- error_viewer.show_to(owner, null, href_list["viewruntime_linear"])
\ No newline at end of file
+ error_viewer.show_to(owner, null, href_list["viewruntime_linear"])
+ else if(href_list["showrelatedacc"])
+ var/client/C = locate(href_list["client"]) in GLOB.clients
+ var/list/thing_to_check
+ if(href_list["showrelatedacc"] == "cid")
+ thing_to_check = C.related_accounts_cid
+ else
+ thing_to_check = C.related_accounts_ip
+ thing_to_check = splittext(thing_to_check, ", ")
+
+
+ var/dat = "Related accounts by [uppertext(href_list["showrelatedacc"])]:
"
+ for(var/thing in thing_to_check)
+ dat += "[thing]
"
+
+ usr << browse(dat, "size=420x300")
+