Possessing stuff now sends admin messages.

Possessing and then releasing something restores your original name. Works even if you possess several things one after another as well as if you release an object without having possessed it in the first place.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2699 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2011-12-16 15:00:41 +00:00
parent e2a8a5e8bb
commit ea2062e13f
3 changed files with 21 additions and 1 deletions

View File

@@ -94,7 +94,7 @@
var/canmove = 1.0 var/canmove = 1.0
var/eye_stat = null//Living, potentially Carbon var/eye_stat = null//Living, potentially Carbon
var/name_archive //For admin things like possession
var/timeofdeath = 0.0//Living var/timeofdeath = 0.0//Living
var/cpr_time = 1.0//Carbon var/cpr_time = 1.0//Carbon

View File

@@ -277,6 +277,18 @@
usr << "It is forbidden to possess singularities." usr << "It is forbidden to possess singularities."
return return
var/turf/T = get_turf(O)
if(T)
log_admin("[key_name(usr)] has possessed [O] ([O.type]) at ([T.x], [T.y], [T.z])")
message_admins("[key_name(usr)] has possessed [O] ([O.type]) at ([T.x], [T.y], [T.z])", 1)
else
log_admin("[key_name(usr)] has possessed [O] ([O.type]) at an unknown location")
message_admins("[key_name(usr)] has possessed [O] ([O.type]) at an unknown location", 1)
if(!usr.control_object) //If you're not already possessing something...
usr.name_archive = usr.real_name
usr.loc = O usr.loc = O
usr.real_name = O.name usr.real_name = O.name
usr.name = O.name usr.name = O.name
@@ -287,10 +299,17 @@
set name = "Release Obj" set name = "Release Obj"
set category = "Object" set category = "Object"
//usr.loc = get_turf(usr) //usr.loc = get_turf(usr)
if(usr.control_object && usr.name_archive) //if you have a name archived and if you are actually relassing an object
usr.real_name = usr.name_archive
usr.name = usr.real_name
usr.update_clothing() //So the name is updated properly
usr.loc = O.loc // Appear where the object you were controlling is -- TLE usr.loc = O.loc // Appear where the object you were controlling is -- TLE
usr.client.eye = usr usr.client.eye = usr
usr.control_object = null usr.control_object = null
/proc/givetestverbs(mob/M as mob in world) /proc/givetestverbs(mob/M as mob in world)
set desc = "Give this guy possess/release verbs" set desc = "Give this guy possess/release verbs"
set category = "Debug" set category = "Debug"

View File

@@ -228,6 +228,7 @@
M << "\red<BIG><B>You have been banned by [usr.client.ckey].\nReason: [reason].</B></BIG>" M << "\red<BIG><B>You have been banned by [usr.client.ckey].\nReason: [reason].</B></BIG>"
M << "\red This is a temporary ban, it will be removed in [mins] minutes." M << "\red This is a temporary ban, it will be removed in [mins] minutes."
feedback_inc("ban_tmp",1) feedback_inc("ban_tmp",1)
feedback_inc("ban_tmp_mins",mins)
if(config.banappeals) if(config.banappeals)
M << "\red To try to resolve this matter head to [config.banappeals]" M << "\red To try to resolve this matter head to [config.banappeals]"
else else