mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
Allow admins to drag-drop ghosts into mobs
This allows administrators to drag their mouse from a ghost to a type of /mob/living, which will then prompt them if they wish to put that ghost in control of the mob, and obviously, that is exactly what happens if you select yes.
This commit is contained in:
committed by
Tigercat2000
parent
dca6fac85f
commit
f6d4aae74a
@@ -487,6 +487,14 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
|
||||
src << browse(dat, "window=manifest;size=370x420;can_close=1")
|
||||
|
||||
//this is called when a ghost is drag clicked to something.
|
||||
/mob/dead/observer/MouseDrop(atom/over)
|
||||
if (isobserver(usr) && usr.client && usr.client.holder && isliving(over))
|
||||
if (usr.client.holder.cmd_ghost_drag(src,over))
|
||||
return
|
||||
|
||||
return ..()
|
||||
|
||||
//BEGIN TELEPORT HREF CODE
|
||||
/mob/dead/observer/Topic(href, href_list)
|
||||
if(usr != src)
|
||||
|
||||
Reference in New Issue
Block a user