fixes things and mentors.

This commit is contained in:
Poojawa
2018-03-06 23:34:54 -06:00
parent 3c1e557302
commit 57bd3824a4
11 changed files with 44 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
//#define LOWMEMORYMODE //uncomment this to load centcom and runtime station and thats it. #define LOWMEMORYMODE //uncomment this to load centcom and runtime station and thats it.
#include "map_files\generic\CentCom.dmm" #include "map_files\generic\CentCom.dmm"

View File

@@ -1 +1,2 @@
poojawa role=admin poojawa role=admin
junozumori role=admin

View File

@@ -338,7 +338,7 @@ update_label("John Doe", "Clowny")
/obj/item/card/id/mining /obj/item/card/id/mining
name = "mining ID" name = "mining ID"
access = list(ACCESS_MINING, ACCESS_MINING_STATION, ACCESS_MAILSORTING, ACCESS_MINERAL_STOREROOM) access = list(ACCESS_MINERAL_STOREROOM) // CITADEL CHANGE removes golem's ability to get on the station willy nilly.
/obj/item/card/id/away /obj/item/card/id/away
name = "a perfectly generic identification card" name = "a perfectly generic identification card"

View File

@@ -39,7 +39,7 @@
return list("reason"="guest", "desc"="\nReason: Guests not allowed. Please sign in with a byond account.") return list("reason"="guest", "desc"="\nReason: Guests not allowed. Please sign in with a byond account.")
if (CONFIG_GET(flag/panic_bunker) && SSdbcore.Connect()) if (CONFIG_GET(flag/panic_bunker) && SSdbcore.Connect())
log_access("Failed Login: [key] - Guests not allowed during panic bunker") log_access("Failed Login: [key] - Guests not allowed during panic bunker")
return list("reason"="guest", "desc"="\nReason: Sorry but the server is currently not accepting connections from never before seen players or guests. If you have played on this server with a byond account before, please log in to the byond account you have played from.") return list("reason"="guest", "desc"="\nReason: You must first join the Discord to verify your account before joining this server. Please ping an admin once you've joined and read the rules. https://discord.gg/E6SQuhz")
//Population Cap Checking //Population Cap Checking
var/extreme_popcap = CONFIG_GET(number/extreme_popcap) var/extreme_popcap = CONFIG_GET(number/extreme_popcap)

View File

@@ -18,6 +18,7 @@ GLOBAL_LIST_INIT(admin_verbs_default, world.AVerbsDefault())
/client/proc/cmd_admin_pm_context, /*right-click adminPM interface*/ /client/proc/cmd_admin_pm_context, /*right-click adminPM interface*/
/client/proc/cmd_admin_pm_panel, /*admin-pm list*/ /client/proc/cmd_admin_pm_panel, /*admin-pm list*/
/client/proc/cmd_admin_ticket_panel, /client/proc/cmd_admin_ticket_panel,
/client/proc/panicbunker,
/client/proc/stop_sounds /client/proc/stop_sounds
) )
GLOBAL_PROTECT(admin_verbs_admin) GLOBAL_PROTECT(admin_verbs_admin)
@@ -116,7 +117,6 @@ GLOBAL_LIST_INIT(admin_verbs_server, world.AVerbsServer())
/client/proc/toggle_random_events, /client/proc/toggle_random_events,
/client/proc/forcerandomrotate, /client/proc/forcerandomrotate,
/client/proc/adminchangemap, /client/proc/adminchangemap,
/client/proc/panicbunker,
/client/proc/toggle_hub /client/proc/toggle_hub
) )
GLOBAL_PROTECT(admin_verbs_debug) GLOBAL_PROTECT(admin_verbs_debug)

View File

@@ -55,6 +55,7 @@
<A href='?src=[REF(src)];[HrefToken()];secrets=quickpower'>Power all SMES</A><BR> <A href='?src=[REF(src)];[HrefToken()];secrets=quickpower'>Power all SMES</A><BR>
<A href='?src=[REF(src)];[HrefToken()];secrets=tripleAI'>Triple AI mode (needs to be used in the lobby)</A><BR> <A href='?src=[REF(src)];[HrefToken()];secrets=tripleAI'>Triple AI mode (needs to be used in the lobby)</A><BR>
<A href='?src=[REF(src)];[HrefToken()];secrets=traitor_all'>Everyone is the traitor</A><BR> <A href='?src=[REF(src)];[HrefToken()];secrets=traitor_all'>Everyone is the traitor</A><BR>
<A href='?src=[REF(src)];[HrefToken()];secrets=ak47s'>AK-47s For Everyone!</A><BR>
<A href='?src=[REF(src)];[HrefToken()];secrets=guns'>Summon Guns</A><BR> <A href='?src=[REF(src)];[HrefToken()];secrets=guns'>Summon Guns</A><BR>
<A href='?src=[REF(src)];[HrefToken()];secrets=magic'>Summon Magic</A><BR> <A href='?src=[REF(src)];[HrefToken()];secrets=magic'>Summon Magic</A><BR>
<A href='?src=[REF(src)];[HrefToken()];secrets=events'>Summon Events (Toggle)</A><BR> <A href='?src=[REF(src)];[HrefToken()];secrets=events'>Summon Events (Toggle)</A><BR>
@@ -107,6 +108,9 @@
dat += "No-one has done anything this round!" dat += "No-one has done anything this round!"
usr << browse(dat, "window=admin_log") usr << browse(dat, "window=admin_log")
if("mentor_log")
CitadelMentorLogSecret()
if("list_job_debug") if("list_job_debug")
var/dat = "<B>Job Debug info.</B><HR>" var/dat = "<B>Job Debug info.</B><HR>"
for(var/line in SSjob.job_debug) for(var/line in SSjob.job_debug)
@@ -475,6 +479,13 @@
message_admins("[key_name_admin(usr)] activated Egalitarian Station mode") message_admins("[key_name_admin(usr)] activated Egalitarian Station mode")
priority_announce("CentCom airlock control override activated. Please take this time to get acquainted with your coworkers.", null, 'sound/ai/commandreport.ogg') priority_announce("CentCom airlock control override activated. Please take this time to get acquainted with your coworkers.", null, 'sound/ai/commandreport.ogg')
if("ak47s")
if(!check_rights(R_FUN))
return
message_admins("[key_name_admin(usr)] activated AK-47s for Everyone!")
usr.client.ak47s()
sound_to_playing_players('sound/misc/ak47s.ogg')
if("guns") if("guns")
if(!check_rights(R_FUN)) if(!check_rights(R_FUN))
return return

View File

@@ -22,6 +22,8 @@
if(!CheckAdminHref(href, href_list)) if(!CheckAdminHref(href, href_list))
return return
citaTopic(href, href_list) //CITADEL EDIT, MENTORS
if(href_list["ahelp"]) if(href_list["ahelp"])
if(!check_rights(R_ADMIN, TRUE)) if(!check_rights(R_ADMIN, TRUE))
return return

View File

@@ -57,6 +57,10 @@ It's like a regular ol' straight pipe, but you can turn it on and off.
close() close()
return return
open() open()
var/turf/T = get_turf(src)
var/area/A = get_area(src)
investigate_log("Valve, [src.name], was manipiulated by [key_name(usr)] at [x], [y], [z], [A]", "atmos")
message_admins("Valve, [src.name], was manipulated by [ADMIN_LOOKUPFLW(user)] at [ADMIN_COORDJMP(T)], [A]")
/obj/machinery/atmospherics/components/binary/valve/digital // can be controlled by AI /obj/machinery/atmospherics/components/binary/valve/digital // can be controlled by AI
name = "digital valve" name = "digital valve"

View File

@@ -87,12 +87,22 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
if(href_list["priv_msg"]) if(href_list["priv_msg"])
cmd_admin_pm(href_list["priv_msg"],null) cmd_admin_pm(href_list["priv_msg"],null)
return return
// Mentor PM
if(href_list["mentor_msg"])
if(CONFIG_GET(flag.mentors_mobname_only))
var/mob/M = locate(href_list["mentor_msg"])
cmd_mentor_pm(M,null)
else
cmd_mentor_pm(href_list["mentor_msg"],null)
return
switch(href_list["_src_"]) switch(href_list["_src_"])
if("holder") if("holder")
hsrc = holder hsrc = holder
if("usr") if("usr")
hsrc = mob hsrc = mob
if("mentor") // CITADEL
hsrc = mentor_datum // CITADEL END
if("prefs") if("prefs")
if (inprefs) if (inprefs)
return return
@@ -376,6 +386,8 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
if (menuitem) if (menuitem)
menuitem.Load_checked(src) menuitem.Load_checked(src)
hook_vr("client_new",list(src)) // CIT CHANGE - hook for client/New() changes
Master.UpdateTickRate() Master.UpdateTickRate()
////////////// //////////////
@@ -713,6 +725,11 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
if (isnull(new_size)) if (isnull(new_size))
CRASH("change_view called without argument.") CRASH("change_view called without argument.")
//CIT CHANGES START HERE - makes change_view change DEFAULT_VIEW to 15x15 depending on preferences
if(prefs && CONFIG_GET(string/default_view))
if(!prefs.widescreenpref && new_size == CONFIG_GET(string/default_view))
new_size = "15x15"
//END OF CIT CHANGES
view = new_size view = new_size
apply_clickcatcher() apply_clickcatcher()
if (isliving(mob)) if (isliving(mob))

View File

@@ -2,7 +2,6 @@
var/following = null var/following = null
/datum/admins/associate(client/C) /datum/admins/associate(client/C)
removeMentor(C.ckey) //safety to avoid multiple datums and other weird shit i cannot comprehend
..() ..()
if(istype(C)) if(istype(C))
C.mentor_datum_set(TRUE) C.mentor_datum_set(TRUE)

View File

@@ -1,4 +1,8 @@
/datum/admins/proc/citaTopic(href, href_list) /datum/admins/proc/citaTopic(href, href_list)
if(href_list["makementor"])
makeMentor(href_list["makementor"])
else if(href_list["removementor"])
removeMentor(href_list["removementor"])
/datum/admins/proc/makeMentor(ckey) /datum/admins/proc/makeMentor(ckey)
if(!usr.client) if(!usr.client)