mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-08 00:12:25 +00:00
Commented out the authentication system. It was the remnants of the old goon authentication stuff (or maybe even older) and wasn't actually used in our code at all (at least not in any useful way, it was merely called and short-circuited to 1, so all those if(authenticated) were totally pointless. This has removed 3 unused variables from every client, a bunch of unused variables from the config and two empty text files! Committed (as a config option) a feature requested by Apoc station. It causes a 'reply to' window to popup when an admin PMs a non-admin player. It's meant to grab their attention so they can't say "I didn't see your PM". It defaults to off. To turn it on just uncomment the #POPUP_ADMIN_PM line in config/config.txt Fixed a derp in isday where it was fetching the month instead of the day. Removed medal references from Gib() Removed the medal_hub global variables because they aren't used in any way shape or form. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3444 316c924e-a436-60f5-8080-3fe189b3f50e
146 lines
4.0 KiB
Plaintext
146 lines
4.0 KiB
Plaintext
/client/proc/Jump(var/area/A in world)
|
|
set name = "Jump to Area"
|
|
set desc = "Area to jump to"
|
|
set category = "Admin"
|
|
if(!src.holder)
|
|
src << "Only administrators may use this command."
|
|
return
|
|
|
|
if(config.allow_admin_jump)
|
|
usr.loc = pick(get_area_turfs(A))
|
|
|
|
log_admin("[key_name(usr)] jumped to [A]")
|
|
message_admins("[key_name_admin(usr)] jumped to [A]", 1)
|
|
else
|
|
alert("Admin jumping disabled")
|
|
|
|
/client/proc/jumptoturf(var/turf/T in world)
|
|
set name = "Jump to Turf"
|
|
set category = "Admin"
|
|
if(!src.holder)
|
|
src << "Only administrators may use this command."
|
|
return
|
|
if(config.allow_admin_jump)
|
|
log_admin("[key_name(usr)] jumped to [T.x],[T.y],[T.z] in [T.loc]")
|
|
message_admins("[key_name_admin(usr)] jumped to [T.x],[T.y],[T.z] in [T.loc]", 1)
|
|
usr.loc = T
|
|
else
|
|
alert("Admin jumping disabled")
|
|
return
|
|
|
|
/client/proc/jumptomob(var/mob/M in world)
|
|
set category = "Admin"
|
|
set name = "Jump to Mob"
|
|
|
|
if(!src.holder)
|
|
src << "Only administrators may use this command."
|
|
return
|
|
|
|
if(config.allow_admin_jump)
|
|
log_admin("[key_name(usr)] jumped to [key_name(M)]")
|
|
message_admins("[key_name_admin(usr)] jumped to [key_name_admin(M)]", 1)
|
|
if(src.mob)
|
|
var/mob/A = src.mob
|
|
var/turf/T = get_turf(M)
|
|
if(T && isturf(T))
|
|
A.loc = T
|
|
else
|
|
A << "This mob is not located in the game world."
|
|
else
|
|
alert("Admin jumping disabled")
|
|
|
|
/client/proc/jumptocoord(tx as num, ty as num, tz as num)
|
|
set category = "Admin"
|
|
set name = "Jump to Coordinate"
|
|
|
|
if (!holder)
|
|
src << "Only administrators may use this command."
|
|
return
|
|
|
|
if (config.allow_admin_jump)
|
|
if(src.mob)
|
|
var/mob/A = src.mob
|
|
A.x = tx
|
|
A.y = ty
|
|
A.z = tz
|
|
message_admins("[key_name_admin(usr)] jumped to coordinates [tx], [ty], [tz]")
|
|
|
|
else
|
|
alert("Admin jumping disabled")
|
|
|
|
/client/proc/jumptokey()
|
|
set category = "Admin"
|
|
set name = "Jump to Key"
|
|
|
|
if(!src.holder)
|
|
src << "Only administrators may use this command."
|
|
return
|
|
|
|
if(config.allow_admin_jump)
|
|
var/list/keys = list()
|
|
for(var/mob/M in world)
|
|
keys += M.client
|
|
var/selection = input("Please, select a player!", "Admin Jumping", null, null) as null|anything in keys
|
|
if(!selection)
|
|
return
|
|
var/mob/M = selection:mob
|
|
log_admin("[key_name(usr)] jumped to [key_name(M)]")
|
|
message_admins("[key_name_admin(usr)] jumped to [key_name_admin(M)]", 1)
|
|
usr.loc = M.loc
|
|
else
|
|
alert("Admin jumping disabled")
|
|
|
|
/client/proc/Getmob(var/mob/M in world)
|
|
set category = "Admin"
|
|
set name = "Get Mob"
|
|
set desc = "Mob to teleport"
|
|
if(!src.holder)
|
|
src << "Only administrators may use this command."
|
|
return
|
|
if(config.allow_admin_jump)
|
|
log_admin("[key_name(usr)] teleported [key_name(M)]")
|
|
message_admins("[key_name_admin(usr)] teleported [key_name_admin(M)]", 1)
|
|
M.loc = get_turf(usr)
|
|
else
|
|
alert("Admin jumping disabled")
|
|
|
|
/client/proc/Getkey()
|
|
set category = "Admin"
|
|
set name = "Get Key"
|
|
set desc = "Key to teleport"
|
|
|
|
if(!src.holder)
|
|
src << "Only administrators may use this command."
|
|
return
|
|
|
|
if(config.allow_admin_jump)
|
|
var/list/keys = list()
|
|
for(var/mob/M in world)
|
|
keys += M.client
|
|
var/selection = input("Please, select a player!", "Admin Jumping", null, null) as null|anything in keys
|
|
if(!selection)
|
|
return
|
|
var/mob/M = selection:mob
|
|
|
|
if(!M)
|
|
return
|
|
log_admin("[key_name(usr)] teleported [key_name(M)]")
|
|
message_admins("[key_name_admin(usr)] teleported [key_name(M)]", 1)
|
|
if(M)
|
|
M.loc = get_turf(usr)
|
|
else
|
|
alert("Admin jumping disabled")
|
|
|
|
/client/proc/sendmob(var/mob/M in world, var/area/A in world)
|
|
set category = "Admin"
|
|
set name = "Send Mob"
|
|
if(!src.holder)
|
|
src << "Only administrators may use this command."
|
|
return
|
|
if(config.allow_admin_jump)
|
|
M.loc = pick(get_area_turfs(A))
|
|
|
|
log_admin("[key_name(usr)] teleported [key_name(M)] to [A]")
|
|
message_admins("[key_name_admin(usr)] teleported [key_name_admin(M)] to [A]", 1)
|
|
else
|
|
alert("Admin jumping disabled") |