Tracker for projectiles (#26026)

This commit is contained in:
ShiftyRail
2020-03-25 20:20:29 +01:00
committed by GitHub
parent 21efc9052f
commit a67f8798a3
7 changed files with 216 additions and 1 deletions

View File

@@ -5375,6 +5375,30 @@
PersistencePanel() //refresh!
// --- Rod tracking
else if (href_list["rod_to_untrack"])
if(!check_rights(R_FUN))
return
var/obj/item/projectile/P = locate(href_list["rod_to_untrack"])
if (!P)
return
P.tracking = FALSE
P.tracker_datum = null
qdel(P.tracker_datum)
var/log_data = "[P.original]"
if (ismob(P.original))
var/mob/M = P.original
if (M.client)
log_data += " (M.client.ckey)"
log_admin("[key_name(usr)] stopped a rod thrown at [log_data].")
message_admins("<span class='notice'>[key_name(usr)] stopped a rod thrown at [log_data].</span>")
ViewAllRods()
// ----- Religion and stuff
else if(href_list["ashpaper"])