mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Removed and commented out the last traces of goon auth. code
This commit is contained in:
@@ -686,7 +686,6 @@
|
|||||||
#include "code\game\objects\tanks\oxygen.dm"
|
#include "code\game\objects\tanks\oxygen.dm"
|
||||||
#include "code\game\structure\structure.dm"
|
#include "code\game\structure\structure.dm"
|
||||||
#include "code\game\verbs\AI_status.dm"
|
#include "code\game\verbs\AI_status.dm"
|
||||||
#include "code\game\verbs\authorize.dm"
|
|
||||||
#include "code\game\verbs\checkkarma.dm"
|
#include "code\game\verbs\checkkarma.dm"
|
||||||
#include "code\game\verbs\ooc.dm"
|
#include "code\game\verbs\ooc.dm"
|
||||||
#include "code\game\verbs\sound.dm"
|
#include "code\game\verbs\sound.dm"
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ dmm_suite/preloader
|
|||||||
set name = "LoadMap"
|
set name = "LoadMap"
|
||||||
set desc = "Loads a map"
|
set desc = "Loads a map"
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
if(src.authenticated && src.holder)
|
if(src.holder)
|
||||||
if(!src.mob)
|
if(!src.mob)
|
||||||
return
|
return
|
||||||
if(src.holder.rank in list("Game Admin", "Game Master"))
|
if(src.holder.rank in list("Game Admin", "Game Master"))
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
var/vote_period = 60 // length of voting period (seconds, default 1 minute)
|
var/vote_period = 60 // length of voting period (seconds, default 1 minute)
|
||||||
var/vote_no_default = 0 // vote does not default to nochange/norestart (tbi)
|
var/vote_no_default = 0 // vote does not default to nochange/norestart (tbi)
|
||||||
var/vote_no_dead = 0 // dead people can't vote (tbi)
|
var/vote_no_dead = 0 // dead people can't vote (tbi)
|
||||||
var/enable_authentication = 0 // goon authentication
|
|
||||||
var/del_new_on_log = 1 // del's new players if they log before they spawn in
|
var/del_new_on_log = 1 // del's new players if they log before they spawn in
|
||||||
var/feature_object_spell_system = 0 //spawns a spellbook which gives object-type spells instead of verb-type spells for the wizard
|
var/feature_object_spell_system = 0 //spawns a spellbook which gives object-type spells instead of verb-type spells for the wizard
|
||||||
var/traitor_scaling = 0 //if amount of traitors scales based on amount of players
|
var/traitor_scaling = 0 //if amount of traitors scales based on amount of players
|
||||||
@@ -168,9 +167,6 @@
|
|||||||
if ("allow_ai")
|
if ("allow_ai")
|
||||||
config.allow_ai = 1
|
config.allow_ai = 1
|
||||||
|
|
||||||
if ("authentication")
|
|
||||||
config.enable_authentication = 1
|
|
||||||
|
|
||||||
if ("norespawn")
|
if ("norespawn")
|
||||||
config.respawn = 0
|
config.respawn = 0
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/client
|
/client
|
||||||
//START Admin Things
|
//START Admin Things
|
||||||
//This should be changed to a datum
|
//This should be changed to a datum
|
||||||
var/obj/admins/holder = null
|
var/obj/admins/holder = null // Stays null if client isn't an admin. Stores properties about the admin, if not null.
|
||||||
var/buildmode = 0
|
var/buildmode = 0
|
||||||
var/stealth = 0
|
var/stealth = 0
|
||||||
var/fakekey = null
|
var/fakekey = null
|
||||||
@@ -14,11 +14,6 @@
|
|||||||
|
|
||||||
//END Admin Things
|
//END Admin Things
|
||||||
|
|
||||||
//Key auth things
|
|
||||||
authenticate = 0
|
|
||||||
var/authenticated = 0
|
|
||||||
var/authenticating = 0
|
|
||||||
|
|
||||||
var/listen_ooc = 1
|
var/listen_ooc = 1
|
||||||
var/move_delay = 1
|
var/move_delay = 1
|
||||||
var/moving = null
|
var/moving = null
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ proc/sql_poll_admins()
|
|||||||
return
|
return
|
||||||
var/admincount = 0
|
var/admincount = 0
|
||||||
for (var/mob/M in world)
|
for (var/mob/M in world)
|
||||||
if(M && M.client && M.client.holder && M.client.authenticated)
|
if(M && M.client && M.client.holder)
|
||||||
admincount += 1
|
admincount += 1
|
||||||
var/DBConnection/dbcon = new()
|
var/DBConnection/dbcon = new()
|
||||||
dbcon.Connect("dbi:mysql:[sqldb]:[sqladdress]:[sqlport]","[sqllogin]","[sqlpass]")
|
dbcon.Connect("dbi:mysql:[sqldb]:[sqladdress]:[sqlport]","[sqllogin]","[sqlpass]")
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ As such, it's hard-coded for now. No reason for it not to be, really.
|
|||||||
set desc = "Spawns a space ninja for when you need a teenager with attitude."
|
set desc = "Spawns a space ninja for when you need a teenager with attitude."
|
||||||
set popup_menu = 0
|
set popup_menu = 0
|
||||||
|
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(!ticker.mode)
|
if(!ticker.mode)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
/datum/game_mode/sandbox/pre_setup()
|
/datum/game_mode/sandbox/pre_setup()
|
||||||
for(var/mob/M in world)
|
for(var/mob/M in world)
|
||||||
if(M.client && M.client.authenticated)
|
if(M.client)
|
||||||
M.CanBuild()
|
M.CanBuild()
|
||||||
|
|
||||||
setup_sectors()
|
setup_sectors()
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
/*
|
||||||
|
|
||||||
|
The old goon auth/beta code is here:
|
||||||
|
|
||||||
/client/proc/authorize()
|
/client/proc/authorize()
|
||||||
set name = "Authorize"
|
set name = "Authorize"
|
||||||
|
|
||||||
@@ -42,7 +46,7 @@
|
|||||||
src << "\blue[no_auth_motd]"
|
src << "\blue[no_auth_motd]"
|
||||||
src.authenticating = 0
|
src.authenticating = 0
|
||||||
|
|
||||||
/* The old goon auth/beta code is here
|
|
||||||
/client/proc/beta_tester_auth()
|
/client/proc/beta_tester_auth()
|
||||||
set name = "Tester?"
|
set name = "Tester?"
|
||||||
/*if(istester(src))
|
/*if(istester(src))
|
||||||
|
|||||||
@@ -12,9 +12,7 @@
|
|||||||
/mob/verb/ooc(msg as text)
|
/mob/verb/ooc(msg as text)
|
||||||
set name = "OOC" //Gave this shit a shorter name so you only have to time out "ooc" rather than "ooc message" to use it --NeoFite
|
set name = "OOC" //Gave this shit a shorter name so you only have to time out "ooc" rather than "ooc message" to use it --NeoFite
|
||||||
set category = "OOC"
|
set category = "OOC"
|
||||||
if (!src.client.authenticated || IsGuestKey(src.key))
|
|
||||||
src << "You are not authorized to communicate over these channels."
|
|
||||||
return
|
|
||||||
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
|
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
|
||||||
if(!msg)
|
if(!msg)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -6,16 +6,6 @@
|
|||||||
|
|
||||||
var/list/peeps = list()
|
var/list/peeps = list()
|
||||||
|
|
||||||
if (config.enable_authentication)
|
|
||||||
for (var/mob/M in world)
|
|
||||||
if (!M.client)
|
|
||||||
continue
|
|
||||||
|
|
||||||
if (M.client.authenticated && M.client.authenticated != 1)
|
|
||||||
peeps += "\t[M.client] ([html_encode(M.client.authenticated)])"
|
|
||||||
else
|
|
||||||
peeps += "\t[M.client]"
|
|
||||||
else
|
|
||||||
for (var/mob/M in world)
|
for (var/mob/M in world)
|
||||||
if (!M.client)
|
if (!M.client)
|
||||||
continue
|
continue
|
||||||
@@ -39,7 +29,7 @@
|
|||||||
usr << "<b>Current Admins:</b>"
|
usr << "<b>Current Admins:</b>"
|
||||||
|
|
||||||
for (var/mob/M in world)
|
for (var/mob/M in world)
|
||||||
if(M && M.client && M.client.holder && M.client.authenticated)
|
if(M && M.client && M.client.holder)
|
||||||
if(usr.client.holder)
|
if(usr.client.holder)
|
||||||
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""]"
|
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""]"
|
||||||
else if(!M.client.stealth && (M.client.holder.level != -3))
|
else if(!M.client.stealth && (M.client.holder.level != -3))
|
||||||
|
|||||||
@@ -176,9 +176,6 @@
|
|||||||
/mob/verb/vote()
|
/mob/verb/vote()
|
||||||
set category = "OOC"
|
set category = "OOC"
|
||||||
set name = "Vote"
|
set name = "Vote"
|
||||||
if(!usr.client.authenticated)
|
|
||||||
usr << "You're not authenticated, you can't vote."
|
|
||||||
return
|
|
||||||
usr.client.showvote = 1
|
usr.client.showvote = 1
|
||||||
|
|
||||||
|
|
||||||
@@ -407,7 +404,7 @@
|
|||||||
|
|
||||||
for(var/mob/CM in world)
|
for(var/mob/CM in world)
|
||||||
if(CM.client)
|
if(CM.client)
|
||||||
if(config.vote_no_default || (config.vote_no_dead && CM.stat == 2) || !CM.client.authenticated)
|
if(config.vote_no_default || (config.vote_no_dead && CM.stat == 2))
|
||||||
CM.client.vote = "none"
|
CM.client.vote = "none"
|
||||||
else
|
else
|
||||||
CM.client.vote = "default"
|
CM.client.vote = "default"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/proc/message_admins(var/text, var/admin_ref = 0)
|
/proc/message_admins(var/text, var/admin_ref = 0)
|
||||||
var/rendered = "<span class=\"admin\"><span class=\"prefix\">ADMIN LOG:</span> <span class=\"message\">[text]</span></span>"
|
var/rendered = "<span class=\"admin\"><span class=\"prefix\">ADMIN LOG:</span> <span class=\"message\">[text]</span></span>"
|
||||||
for (var/mob/M in world)
|
for (var/mob/M in world)
|
||||||
if (M && M.client && M.client.holder && M.client.authenticated)
|
if (M && M.client && M.client.holder)
|
||||||
if (admin_ref)
|
if (admin_ref)
|
||||||
M << dd_replaceText(rendered, "%admin_ref%", "\ref[M]")
|
M << dd_replaceText(rendered, "%admin_ref%", "\ref[M]")
|
||||||
else
|
else
|
||||||
@@ -702,16 +702,6 @@
|
|||||||
log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Observer.)")
|
log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Observer.)")
|
||||||
message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Observer.)", 1)
|
message_admins("[key_name_admin(usr)] has sent [key_name_admin(M)] to the thunderdome. (Observer.)", 1)
|
||||||
|
|
||||||
if (href_list["adminauth"])
|
|
||||||
if ((src.rank in list( "Admin Candidate", "Temporary Admin", "Trial Admin", "Badmin", "Game Admin", "Game Master" )))
|
|
||||||
var/mob/M = locate(href_list["adminauth"])
|
|
||||||
if (ismob(M) && !M.client.authenticated && !M.client.authenticating)
|
|
||||||
M.client.verbs -= /client/proc/authorize
|
|
||||||
M.client.authenticated = text("admin/[]", usr.client.authenticated)
|
|
||||||
log_admin("[key_name(usr)] authorized [key_name(M)]")
|
|
||||||
message_admins("\blue [key_name_admin(usr)] authorized [key_name_admin(M)]", 1)
|
|
||||||
M.client << text("You have been authorized by []", usr.key)
|
|
||||||
|
|
||||||
if (href_list["revive"])
|
if (href_list["revive"])
|
||||||
if ((src.rank in list( "Trial Admin", "Badmin", "Game Admin", "Game Master" )))
|
if ((src.rank in list( "Trial Admin", "Badmin", "Game Admin", "Game Master" )))
|
||||||
var/mob/living/M = locate(href_list["revive"])
|
var/mob/living/M = locate(href_list["revive"])
|
||||||
@@ -1760,12 +1750,8 @@
|
|||||||
usr << "Error: you are not an admin!"
|
usr << "Error: you are not an admin!"
|
||||||
return
|
return
|
||||||
var/dat = "<html><head><title>Options for [M.key]</title></head>"
|
var/dat = "<html><head><title>Options for [M.key]</title></head>"
|
||||||
var/foo = "\[ "
|
var/foo = " "
|
||||||
if (ismob(M) && M.client)
|
if (ismob(M) && M.client)
|
||||||
if(!M.client.authenticated && !M.client.authenticating)
|
|
||||||
foo += text("<A HREF='?src=\ref[src];adminauth=\ref[M]'>Authorize</A> | ")
|
|
||||||
else
|
|
||||||
foo += text("<B>Authorized</B> | ")
|
|
||||||
foo += text("<A HREF='?src=\ref[src];prom_demot=\ref[M.client]'>Promote/Demote</A> | ")
|
foo += text("<A HREF='?src=\ref[src];prom_demot=\ref[M.client]'>Promote/Demote</A> | ")
|
||||||
if(!istype(M, /mob/new_player))
|
if(!istype(M, /mob/new_player))
|
||||||
if(!ismonkey(M))
|
if(!ismonkey(M))
|
||||||
@@ -2254,14 +2240,14 @@
|
|||||||
|
|
||||||
for(var/mob/CM in world)
|
for(var/mob/CM in world)
|
||||||
if(CM.client)
|
if(CM.client)
|
||||||
if(config.vote_no_default || (config.vote_no_dead && CM.stat == 2) || !CM.client.authenticated)
|
if(config.vote_no_default || (config.vote_no_dead && CM.stat == 2))
|
||||||
CM.client.vote = "none"
|
CM.client.vote = "none"
|
||||||
else
|
else
|
||||||
CM.client.vote = "default"
|
CM.client.vote = "default"
|
||||||
|
|
||||||
for(var/mob/CM in world)
|
for(var/mob/CM in world)
|
||||||
if(CM.client)
|
if(CM.client)
|
||||||
if(config.vote_no_default || (config.vote_no_dead && CM.stat == 2) || !CM.client.authenticated)
|
if(config.vote_no_default || (config.vote_no_dead && CM.stat == 2))
|
||||||
CM.client.vote = "none"
|
CM.client.vote = "none"
|
||||||
else
|
else
|
||||||
CM.client.vote = "default"
|
CM.client.vote = "default"
|
||||||
|
|||||||
@@ -524,7 +524,7 @@
|
|||||||
/client/proc/stealth()
|
/client/proc/stealth()
|
||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Stealth Mode"
|
set name = "Stealth Mode"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
stealth = !stealth
|
stealth = !stealth
|
||||||
@@ -542,12 +542,13 @@
|
|||||||
log_admin("[key_name(usr)] has turned stealth mode [stealth ? "ON" : "OFF"]")
|
log_admin("[key_name(usr)] has turned stealth mode [stealth ? "ON" : "OFF"]")
|
||||||
message_admins("[key_name_admin(usr)] has turned stealth mode [stealth ? "ON" : "OFF"]", 1)
|
message_admins("[key_name_admin(usr)] has turned stealth mode [stealth ? "ON" : "OFF"]", 1)
|
||||||
|
|
||||||
#define AUTOBATIME 10
|
#define AUTOBANTIME 10
|
||||||
/client/proc/warn(var/mob/M in world)
|
/client/proc/warn(var/mob/M in world)
|
||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Warn"
|
set name = "Warn"
|
||||||
set desc = "Warn a player"
|
// If you've edited AUTOBANTIME, change the below desc.
|
||||||
if(!authenticated || !holder)
|
set desc = "Warn a player. If player is already warned, they will be autobanned for 10 minutes."
|
||||||
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(M.client && M.client.holder && (M.client.holder.level >= holder.level))
|
if(M.client && M.client.holder && (M.client.holder.level >= holder.level))
|
||||||
@@ -558,12 +559,12 @@
|
|||||||
M.client.warned = 1
|
M.client.warned = 1
|
||||||
message_admins("\blue [ckey] warned [M.ckey].")
|
message_admins("\blue [ckey] warned [M.ckey].")
|
||||||
else
|
else
|
||||||
AddBan(M.ckey, M.computer_id, "Autobanning due to previous warn", ckey, 1, AUTOBATIME)
|
AddBan(M.ckey, M.computer_id, "Autobanning due to previous warn", ckey, 1, AUTOBANTIME)
|
||||||
M << "\red<BIG><B>You have been autobanned by [ckey]. This is what we in the biz like to call a \"second warning\".</B></BIG>"
|
M << "\red<BIG><B>You have been autobanned by [ckey]. This is what we in the biz like to call a \"second warning\".</B></BIG>"
|
||||||
M << "\red This is a temporary ban; it will automatically be removed in [AUTOBATIME] minutes."
|
M << "\red This is a temporary ban; it will automatically be removed in [AUTOBANTIME] minutes."
|
||||||
log_admin("[ckey] warned [M.ckey], resulting in a [AUTOBATIME] minute autoban.")
|
log_admin("[ckey] warned [M.ckey], resulting in a [AUTOBANTIME] minute autoban.")
|
||||||
ban_unban_log_save("[ckey] warned [M.ckey], resulting in a [AUTOBATIME] minute autoban.")
|
ban_unban_log_save("[ckey] warned [M.ckey], resulting in a [AUTOBANTIME] minute autoban.")
|
||||||
message_admins("\blue [ckey] warned [M.ckey], resulting in a [AUTOBATIME] minute autoban.")
|
message_admins("\blue [ckey] warned [M.ckey], resulting in a [AUTOBANTIME] minute autoban.")
|
||||||
feedback_inc("ban_warn",1)
|
feedback_inc("ban_warn",1)
|
||||||
|
|
||||||
del(M.client)
|
del(M.client)
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
/mob/verb/adminhelp(msg as text)
|
/mob/verb/adminhelp(msg as text)
|
||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Adminhelp"
|
set name = "Adminhelp"
|
||||||
if(!usr.client.authenticated)
|
|
||||||
src << "Please authorize before sending these messages."
|
|
||||||
return
|
|
||||||
|
|
||||||
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
|
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
set name = "Jump to Area"
|
set name = "Jump to Area"
|
||||||
set desc = "Area to jump to"
|
set desc = "Area to jump to"
|
||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
/client/proc/jumptoturf(var/turf/T in world)
|
/client/proc/jumptoturf(var/turf/T in world)
|
||||||
set name = "Jump to Turf"
|
set name = "Jump to Turf"
|
||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(config.allow_admin_jump)
|
if(config.allow_admin_jump)
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Jump to Mob"
|
set name = "Jump to Mob"
|
||||||
|
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Jump to Key"
|
set name = "Jump to Key"
|
||||||
|
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Get Mob"
|
set name = "Get Mob"
|
||||||
set desc = "Mob to teleport"
|
set desc = "Mob to teleport"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(config.allow_admin_jump)
|
if(config.allow_admin_jump)
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
set name = "Get Key"
|
set name = "Get Key"
|
||||||
set desc = "Key to teleport"
|
set desc = "Key to teleport"
|
||||||
|
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
/client/proc/sendmob(var/mob/M in world, var/area/A in world)
|
/client/proc/sendmob(var/mob/M in world, var/area/A in world)
|
||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Send Mob"
|
set name = "Send Mob"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(config.allow_admin_jump)
|
if(config.allow_admin_jump)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
// All admins should be authenticated, but... what if?
|
// All admins should be authenticated, but... what if?
|
||||||
|
|
||||||
if (!src.authenticated || !src.holder)
|
if (!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/client/proc/atmosscan()
|
/client/proc/atmosscan()
|
||||||
set category = "Mapping"
|
set category = "Mapping"
|
||||||
set name = "Check Plumbing"
|
set name = "Check Plumbing"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set category = "Fun"
|
set category = "Fun"
|
||||||
set name = "Change Custom Event"
|
set name = "Change Custom Event"
|
||||||
|
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set name = "Dsay" //Gave this shit a shorter name so you only have to time out "dsay" rather than "dead say" to use it --NeoFite
|
set name = "Dsay" //Gave this shit a shorter name so you only have to time out "dsay" rather than "dead say" to use it --NeoFite
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
// All admins should be authenticated, but... what if?
|
// All admins should be authenticated, but... what if?
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(!src.mob)
|
if(!src.mob)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/client/proc/Debug2()
|
/client/proc/Debug2()
|
||||||
set category = "Debug"
|
set category = "Debug"
|
||||||
set name = "Debug-Game"
|
set name = "Debug-Game"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(holder.rank == "Game Admin")
|
if(holder.rank == "Game Admin")
|
||||||
@@ -32,7 +32,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
|||||||
/client/proc/callproc()
|
/client/proc/callproc()
|
||||||
set category = "Debug"
|
set category = "Debug"
|
||||||
set name = "Advanced ProcCall (TG Version)"
|
set name = "Advanced ProcCall (TG Version)"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
var/target = null
|
var/target = null
|
||||||
|
|||||||
@@ -180,7 +180,7 @@
|
|||||||
jump_to_dead_group()
|
jump_to_dead_group()
|
||||||
set name = "Jump to dead group"
|
set name = "Jump to dead group"
|
||||||
set category = "Debug"
|
set category = "Debug"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ var/global/gimmick_hat = null
|
|||||||
set category = "Fun"
|
set category = "Fun"
|
||||||
set name = "Christmas Time"
|
set name = "Christmas Time"
|
||||||
|
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
/client/proc/massmodify_variables(var/atom/O, var/var_name = "", var/method = 0)
|
/client/proc/massmodify_variables(var/atom/O, var/var_name = "", var/method = 0)
|
||||||
var/list/locked = list("vars", "key", "ckey", "client")
|
var/list/locked = list("vars", "key", "ckey", "client")
|
||||||
|
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -263,7 +263,7 @@
|
|||||||
/client/proc/modify_variables(var/atom/O, var/param_var_name = null, var/autodetect_class = 0)
|
/client/proc/modify_variables(var/atom/O, var/param_var_name = null, var/autodetect_class = 0)
|
||||||
var/list/locked = list("vars", "key", "ckey", "client", "firemut", "ishulk", "telekinesis", "xray", "virus", "cuffed", "ka", "last_eaten", "urine", "poo", "icon", "icon_state")
|
var/list/locked = list("vars", "key", "ckey", "client", "firemut", "ishulk", "telekinesis", "xray", "virus", "cuffed", "ka", "last_eaten", "urine", "poo", "icon", "icon_state")
|
||||||
|
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
set name = "Play Global Sound"
|
set name = "Play Global Sound"
|
||||||
|
|
||||||
//if(Debug2)
|
//if(Debug2)
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
set category = "Fun"
|
set category = "Fun"
|
||||||
set name = "Play Local Sound"
|
set name = "Play Local Sound"
|
||||||
|
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
/mob/verb/pray(msg as text)
|
/mob/verb/pray(msg as text)
|
||||||
set category = "IC"
|
set category = "IC"
|
||||||
set name = "Pray"
|
set name = "Pray"
|
||||||
if(!usr.client.authenticated)
|
|
||||||
src << "Please authorize before sending these messages."
|
|
||||||
return
|
|
||||||
|
|
||||||
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
|
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/client/proc/cmd_admin_drop_everything(mob/M as mob in world)
|
/client/proc/cmd_admin_drop_everything(mob/M as mob in world)
|
||||||
set category = null
|
set category = null
|
||||||
set name = "Drop Everything"
|
set name = "Drop Everything"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
for(var/obj/item/W in M)
|
for(var/obj/item/W in M)
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
/client/proc/cmd_admin_prison(mob/M as mob in world)
|
/client/proc/cmd_admin_prison(mob/M as mob in world)
|
||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Prison"
|
set name = "Prison"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if (ismob(M))
|
if (ismob(M))
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
set name = "Subtle Message"
|
set name = "Subtle Message"
|
||||||
|
|
||||||
if(!ismob(M)) return
|
if(!ismob(M)) return
|
||||||
if (!authenticated || !holder)
|
if (!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Global Narrate"
|
set name = "Global Narrate"
|
||||||
|
|
||||||
if (!authenticated || !holder)
|
if (!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Direct Narrate"
|
set name = "Direct Narrate"
|
||||||
|
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
var/msg = input("Message:", text("Enter the text you wish to appear to your target:")) as text
|
var/msg = input("Message:", text("Enter the text you wish to appear to your target:")) as text
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
/client/proc/cmd_admin_pm(mob/M as mob in world)
|
/client/proc/cmd_admin_pm(mob/M as mob in world)
|
||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Admin PM"
|
set name = "Admin PM"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(M)
|
if(M)
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
/client/proc/cmd_admin_mute(mob/M as mob in world)
|
/client/proc/cmd_admin_mute(mob/M as mob in world)
|
||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Admin Mute"
|
set name = "Admin Mute"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if (M.client && M.client.holder && (M.client.holder.level >= holder.level))
|
if (M.client && M.client.holder && (M.client.holder.level >= holder.level))
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
/client/proc/cmd_admin_add_random_ai_law()
|
/client/proc/cmd_admin_add_random_ai_law()
|
||||||
set category = "Fun"
|
set category = "Fun"
|
||||||
set name = "Add Random AI Law"
|
set name = "Add Random AI Law"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
log_admin("[key_name(src)] has added a random AI law.")
|
log_admin("[key_name(src)] has added a random AI law.")
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
set desc = "Spawns a xenomorph for all those boring rounds, without having you to do so manually."
|
set desc = "Spawns a xenomorph for all those boring rounds, without having you to do so manually."
|
||||||
set popup_menu = 0
|
set popup_menu = 0
|
||||||
|
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -224,7 +224,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Respawn Character"
|
set name = "Respawn Character"
|
||||||
set desc = "Respawn a person that has been gibbed/dusted/killed. They must be a ghost for this to work and preferably should not have a body to go back into."
|
set desc = "Respawn a person that has been gibbed/dusted/killed. They must be a ghost for this to work and preferably should not have a body to go back into."
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
var/input = input(src, "Please specify which key will be respawned.", "Key", "")
|
var/input = input(src, "Please specify which key will be respawned.", "Key", "")
|
||||||
@@ -443,7 +443,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
/client/proc/cmd_admin_add_freeform_ai_law()
|
/client/proc/cmd_admin_add_freeform_ai_law()
|
||||||
set category = "Fun"
|
set category = "Fun"
|
||||||
set name = "Add Custom AI law"
|
set name = "Add Custom AI law"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
var/input = input(usr, "Please enter anything you want the AI to do. Anything. Serious.", "What?", "") as text|null
|
var/input = input(usr, "Please enter anything you want the AI to do. Anything. Serious.", "What?", "") as text|null
|
||||||
@@ -471,7 +471,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Rejuvenate"
|
set name = "Rejuvenate"
|
||||||
// All admins should be authenticated, but... what if?
|
// All admins should be authenticated, but... what if?
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(!mob)
|
if(!mob)
|
||||||
@@ -506,7 +506,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
/client/proc/cmd_admin_create_centcom_report()
|
/client/proc/cmd_admin_create_centcom_report()
|
||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Create Command Report"
|
set name = "Create Command Report"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
var/input = input(usr, "Please enter anything you want. Anything. Serious.", "What?", "") as message|null
|
var/input = input(usr, "Please enter anything you want. Anything. Serious.", "What?", "") as message|null
|
||||||
@@ -530,7 +530,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Delete"
|
set name = "Delete"
|
||||||
|
|
||||||
if (!authenticated || !holder)
|
if (!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -543,7 +543,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "List free slots"
|
set name = "List free slots"
|
||||||
|
|
||||||
if (!authenticated || !holder)
|
if (!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(job_master)
|
if(job_master)
|
||||||
@@ -554,7 +554,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Explosion"
|
set name = "Explosion"
|
||||||
|
|
||||||
if (!authenticated || !holder)
|
if (!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -584,7 +584,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "EM Pulse"
|
set name = "EM Pulse"
|
||||||
|
|
||||||
if (!authenticated || !holder)
|
if (!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -607,7 +607,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Gib"
|
set name = "Gib"
|
||||||
|
|
||||||
if (!authenticated || !holder)
|
if (!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -635,7 +635,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
/client/proc/cmd_manual_ban()
|
/client/proc/cmd_manual_ban()
|
||||||
set name = "Manual Ban"
|
set name = "Manual Ban"
|
||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
var/mob/M = null
|
var/mob/M = null
|
||||||
@@ -706,7 +706,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
/client/proc/cmd_admin_remove_plasma()
|
/client/proc/cmd_admin_remove_plasma()
|
||||||
set category = "Debug"
|
set category = "Debug"
|
||||||
set name = "Stabilize Atmos."
|
set name = "Stabilize Atmos."
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
// DEFERRED
|
// DEFERRED
|
||||||
@@ -751,7 +751,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
if ((!( ticker ) || emergency_shuttle.location))
|
if ((!( ticker ) || emergency_shuttle.location))
|
||||||
return
|
return
|
||||||
|
|
||||||
if (!authenticated || !holder)
|
if (!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -778,7 +778,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
|||||||
if ((!( ticker ) || emergency_shuttle.location || emergency_shuttle.direction == 0))
|
if ((!( ticker ) || emergency_shuttle.location || emergency_shuttle.direction == 0))
|
||||||
return
|
return
|
||||||
|
|
||||||
if (!authenticated || !holder)
|
if (!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ var/global/sent_strike_team = 0
|
|||||||
set category = "Fun"
|
set category = "Fun"
|
||||||
set name = "Spawn Death Squad"
|
set name = "Spawn Death Squad"
|
||||||
set desc = "Spawns a squad of commandos in CentCom if you want to run an admin event."
|
set desc = "Spawns a squad of commandos in CentCom if you want to run an admin event."
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(!ticker)
|
if(!ticker)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ var/global/sent_syndicate_strike_team = 0
|
|||||||
set category = "Fun"
|
set category = "Fun"
|
||||||
set name = "Spawn Syndicate Strike Team"
|
set name = "Spawn Syndicate Strike Team"
|
||||||
set desc = "Spawns a squad of commandos in the Syndicate Mothership if you want to run an admin event."
|
set desc = "Spawns a squad of commandos in the Syndicate Mothership if you want to run an admin event."
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(!ticker)
|
if(!ticker)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
set desc = "Ticklag"
|
set desc = "Ticklag"
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
if(Debug2)
|
if(Debug2)
|
||||||
if(src.authenticated && src.holder)
|
if(src.holder)
|
||||||
if(!src.mob)
|
if(!src.mob)
|
||||||
return
|
return
|
||||||
if(src.holder.rank in list("Game Admin", "Game Master"))
|
if(src.holder.rank in list("Game Admin", "Game Master"))
|
||||||
|
|||||||
@@ -202,7 +202,7 @@
|
|||||||
set desc = "Ghost into blobthing."
|
set desc = "Ghost into blobthing."
|
||||||
set hidden = 1
|
set hidden = 1
|
||||||
|
|
||||||
if(!authenticated || !holder)
|
if(!holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
var/input = input(src, "Please specify which key will be turned into a bloby.", "Key", "")
|
var/input = input(src, "Please specify which key will be turned into a bloby.", "Key", "")
|
||||||
|
|||||||
@@ -721,8 +721,6 @@
|
|||||||
if (join_motd)
|
if (join_motd)
|
||||||
src << "<div class=\"motd\">[join_motd]</div>"
|
src << "<div class=\"motd\">[join_motd]</div>"
|
||||||
|
|
||||||
authorize()
|
|
||||||
|
|
||||||
if(custom_event_msg && custom_event_msg != "")
|
if(custom_event_msg && custom_event_msg != "")
|
||||||
src << "<h1 class='alert'>Custom Event</h1>"
|
src << "<h1 class='alert'>Custom Event</h1>"
|
||||||
src << "<h2 class='alert'>A custom event is taking place. OOC Info:</h2>"
|
src << "<h2 class='alert'>A custom event is taking place. OOC Info:</h2>"
|
||||||
@@ -734,7 +732,7 @@
|
|||||||
holder.rank = admins[ckey]
|
holder.rank = admins[ckey]
|
||||||
update_admins(admins[ckey])
|
update_admins(admins[ckey])
|
||||||
|
|
||||||
if(ticker && ticker.mode && ticker.mode.name =="sandbox" && authenticated)
|
if(ticker && ticker.mode && ticker.mode.name =="sandbox")
|
||||||
mob.CanBuild()
|
mob.CanBuild()
|
||||||
|
|
||||||
/client/Del()
|
/client/Del()
|
||||||
|
|||||||
@@ -178,9 +178,6 @@
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
if(href_list["ready"])
|
if(href_list["ready"])
|
||||||
if (!client.authenticated)
|
|
||||||
src << "You are not authorized to enter the game."
|
|
||||||
return
|
|
||||||
|
|
||||||
if(!ready)
|
if(!ready)
|
||||||
ready = 1
|
ready = 1
|
||||||
@@ -192,9 +189,6 @@
|
|||||||
new_player_panel_proc()
|
new_player_panel_proc()
|
||||||
|
|
||||||
if(href_list["observe"])
|
if(href_list["observe"])
|
||||||
if (!client.authenticated)
|
|
||||||
src << "You are not authorized to enter the game."
|
|
||||||
return
|
|
||||||
|
|
||||||
if(alert(src,"Are you sure you wish to observe? You will not be able to play this round!","Player Setup","Yes","No") == "Yes")
|
if(alert(src,"Are you sure you wish to observe? You will not be able to play this round!","Player Setup","Yes","No") == "Yes")
|
||||||
var/mob/dead/observer/observer = new()
|
var/mob/dead/observer/observer = new()
|
||||||
@@ -231,9 +225,6 @@
|
|||||||
ViewManifest()
|
ViewManifest()
|
||||||
|
|
||||||
if(href_list["SelectedJob"])
|
if(href_list["SelectedJob"])
|
||||||
if(!client.authenticated)
|
|
||||||
src << "You are not authorized to enter the game."
|
|
||||||
return
|
|
||||||
|
|
||||||
if(!enter_allowed)
|
if(!enter_allowed)
|
||||||
usr << "\blue There is an administrative lock on entering the game!"
|
usr << "\blue There is an administrative lock on entering the game!"
|
||||||
|
|||||||
@@ -508,10 +508,10 @@ Doing this because FindTurfs() isn't even used
|
|||||||
/mob/verb/revent(number as num)
|
/mob/verb/revent(number as num)
|
||||||
set category = "Debug"
|
set category = "Debug"
|
||||||
set name = "Change event %"
|
set name = "Change event %"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
if(src.authenticated && src.holder)
|
if(src.holder)
|
||||||
eventchance = number
|
eventchance = number
|
||||||
log_admin("[src.key] set the random event chance to [eventchance]%")
|
log_admin("[src.key] set the random event chance to [eventchance]%")
|
||||||
message_admins("[src.key] set the random event chance to [eventchance]%")
|
message_admins("[src.key] set the random event chance to [eventchance]%")
|
||||||
@@ -520,7 +520,7 @@ Doing this because FindTurfs() isn't even used
|
|||||||
/mob/verb/funbutton()
|
/mob/verb/funbutton()
|
||||||
set category = "Admin"
|
set category = "Admin"
|
||||||
set name = "Random Expl.(REMOVE ME)"
|
set name = "Random Expl.(REMOVE ME)"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
for(var/turf/T in world)
|
for(var/turf/T in world)
|
||||||
@@ -544,7 +544,7 @@ Doing this because FindTurfs() isn't even used
|
|||||||
/mob/verb/removeplasma()
|
/mob/verb/removeplasma()
|
||||||
set category = "Debug"
|
set category = "Debug"
|
||||||
set name = "Stabilize Atmos."
|
set name = "Stabilize Atmos."
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
spawn(0)
|
spawn(0)
|
||||||
@@ -571,7 +571,7 @@ Doing this because FindTurfs() isn't even used
|
|||||||
/mob/verb/fire(turf/T as turf in world)
|
/mob/verb/fire(turf/T as turf in world)
|
||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Create Fire"
|
set name = "Create Fire"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
world << "[usr.key] created fire"
|
world << "[usr.key] created fire"
|
||||||
@@ -582,7 +582,7 @@ Doing this because FindTurfs() isn't even used
|
|||||||
/mob/verb/co2(turf/T as turf in world)
|
/mob/verb/co2(turf/T as turf in world)
|
||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Create CO2"
|
set name = "Create CO2"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
world << "[usr.key] created CO2"
|
world << "[usr.key] created CO2"
|
||||||
@@ -592,7 +592,7 @@ Doing this because FindTurfs() isn't even used
|
|||||||
/mob/verb/n2o(turf/T as turf in world)
|
/mob/verb/n2o(turf/T as turf in world)
|
||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Create N2O"
|
set name = "Create N2O"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
world << "[usr.key] created N2O"
|
world << "[usr.key] created N2O"
|
||||||
@@ -602,7 +602,7 @@ Doing this because FindTurfs() isn't even used
|
|||||||
/mob/verb/explosion(T as obj|mob|turf in world)
|
/mob/verb/explosion(T as obj|mob|turf in world)
|
||||||
set category = "Special Verbs"
|
set category = "Special Verbs"
|
||||||
set name = "Create Explosion"
|
set name = "Create Explosion"
|
||||||
if(!src.authenticated || !src.holder)
|
if(!src.holder)
|
||||||
src << "Only administrators may use this command."
|
src << "Only administrators may use this command."
|
||||||
return
|
return
|
||||||
world << "[usr.key] created an explosion"
|
world << "[usr.key] created an explosion"
|
||||||
|
|||||||
Reference in New Issue
Block a user