mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-13 02:52:03 +00:00
* Lets get this show on the road
* Now were talking
* These matter
* Oh the joys of CI testing
* And this
* Wrong version
* Tweaks
* More tweaks
* Lets document this
* This too
* Upgrades this
* Fixed some sanity issues
* This too
* Screw it, this too
* More sanity
* And these
* This too
* Documentation
* This too
* Fixes **awful** scoreboard logic
* Why do we care about only half-absorbing someone
* Revert "Why do we care about only half-absorbing someone"
This reverts commit 8de1cfdf05.
* Refactors these
* Hashing
* Moxian tweaks
56 lines
1.9 KiB
Plaintext
56 lines
1.9 KiB
Plaintext
/proc/possess(obj/O as obj in world)
|
|
set name = "Possess Obj"
|
|
set category = null
|
|
|
|
if(!check_rights(R_POSSESS))
|
|
return
|
|
|
|
if(istype(O,/obj/singularity))
|
|
if(config.forbid_singulo_possession)
|
|
to_chat(usr, "It is forbidden to possess singularities.")
|
|
return
|
|
|
|
var/turf/T = get_turf(O)
|
|
|
|
var/confirm = alert("Are you sure you want to possess [O]?", "Confirm posession", "Yes", "No")
|
|
|
|
if(confirm != "Yes")
|
|
return
|
|
if(T)
|
|
log_admin("[key_name(usr)] has possessed [O] ([O.type]) at ([T.x], [T.y], [T.z])")
|
|
message_admins("[key_name_admin(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_admin(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.real_name = O.name
|
|
usr.name = O.name
|
|
usr.client.eye = O
|
|
usr.control_object = O
|
|
SSblackbox.record_feedback("tally", "admin_verb", 1, "Possess Object") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
|
|
/proc/release(obj/O as obj in world)
|
|
set name = "Release Obj"
|
|
set category = null
|
|
//usr.loc = get_turf(usr)
|
|
|
|
if(!check_rights(R_POSSESS))
|
|
return
|
|
|
|
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.loc = O.loc // Appear where the object you were controlling is -- TLE
|
|
usr.client.eye = usr
|
|
usr.control_object = null
|
|
SSblackbox.record_feedback("tally", "admin_verb", 1, "Release Object") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|