mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Invisibility GM tool and Glamour Mob (#11296)
Co-authored-by: SatinIsle <98125273+SatinIsle@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ffcfc7b170
commit
399e4948e8
@@ -604,6 +604,28 @@
|
||||
var/mob/living/silicon/robot/Tar = target
|
||||
add_verb(Tar, /mob/living/silicon/robot/proc/ColorMate)
|
||||
|
||||
if("be_event_invis")
|
||||
var/mob/living/Tar = target
|
||||
if(!istype(Tar)) //Technically does not need this restriction, but prevents ghosts accidentally being placed in mob layer
|
||||
return
|
||||
if(Tar.plane != PLANE_INVIS_EVENT)
|
||||
Tar.plane = PLANE_INVIS_EVENT
|
||||
if(!(VIS_EVENT_INVIS in Tar.vis_enabled))
|
||||
Tar.plane_holder.set_vis(VIS_EVENT_INVIS,TRUE)
|
||||
Tar.vis_enabled += VIS_EVENT_INVIS
|
||||
else
|
||||
Tar.plane = MOB_LAYER
|
||||
if(VIS_EVENT_INVIS in Tar.vis_enabled)
|
||||
Tar.plane_holder.set_vis(VIS_EVENT_INVIS,FALSE)
|
||||
Tar.vis_enabled -= VIS_EVENT_INVIS
|
||||
|
||||
if("see_event_invis")
|
||||
if(!(VIS_EVENT_INVIS in target.vis_enabled))
|
||||
target.plane_holder.set_vis(VIS_EVENT_INVIS,TRUE)
|
||||
target.vis_enabled += VIS_EVENT_INVIS
|
||||
else if(VIS_EVENT_INVIS in target.vis_enabled)
|
||||
target.plane_holder.set_vis(VIS_EVENT_INVIS,FALSE)
|
||||
target.vis_enabled -= VIS_EVENT_INVIS
|
||||
|
||||
////////INVENTORY//////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user