mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-22 15:22:10 +00:00
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * Port the /TG/ globals controller. * part 1 * part 2 * oops * part 3 * Hollow Purple * sadas * bsbsdb * muda na agaki ta * ids 1-15 * 16-31 * 41-75 * bring me back to how things used to be before i lost it all * the strength of mayhem * final touches * cl * protect some vars * update sdql2 to use glob * stuff? * forgot that is not defined there * whoops * observ * but it never gets better * a --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
54 lines
2.0 KiB
Plaintext
54 lines
2.0 KiB
Plaintext
/proc/possess(obj/O as obj in range(world.view))
|
|
set name = "Possess Obj"
|
|
set category = "Object"
|
|
|
|
if(istype(O,/obj/singularity))
|
|
if(GLOB.config.forbid_singulo_possession)
|
|
to_chat(usr, "It is forbidden to possess singularities.")
|
|
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])",admin_key=key_name(usr))
|
|
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",admin_key=key_name(usr))
|
|
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.forceMove(O)
|
|
usr.real_name = O.name
|
|
usr.name = O.name
|
|
usr.client.eye = O
|
|
usr.control_object = O
|
|
feedback_add_details("admin_verb","PO") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/proc/release(obj/O as obj in range(world.view))
|
|
set name = "Release Obj"
|
|
set category = "Object"
|
|
//usr.forceMove(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
|
|
if(ishuman(usr))
|
|
var/mob/living/carbon/human/H = usr
|
|
H.name = H.get_visible_name()
|
|
// usr.regenerate_icons() //So the name is updated properly
|
|
|
|
usr.forceMove(O.loc) // Appear where the object you were controlling is -- TLE
|
|
usr.client.eye = usr
|
|
usr.control_object = null
|
|
feedback_add_details("admin_verb","RO") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/proc/givetestverbs(mob/M as mob in GLOB.mob_list)
|
|
set desc = "Give this guy possess/release verbs"
|
|
set category = "Debug"
|
|
set name = "Give Possessing Verbs"
|
|
add_verb(M, /proc/possess)
|
|
add_verb(M, /proc/release)
|
|
feedback_add_details("admin_verb","GPV") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|