Skip to content

Commit

Permalink
Hide invisimin users from ghosts
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Apr 20, 2024
1 parent dcc0b5c commit c73b9bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/__DEFINES/sight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#define INVISIBILITY_OBSERVER 60
#define SEE_INVISIBLE_OBSERVER 60

#define INVISIBILITY_INVINISMIN 80 //invisible admins

#define INVISIBILITY_MAXIMUM 100 //the maximum allowed for "real" objects

#define INVISIBILITY_ABSTRACT 101 //only used for abstract objects (e.g. spacevine_controller), things that are not really there.
Expand Down
3 changes: 2 additions & 1 deletion code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,12 @@ GLOBAL_PROTECT(admin_verbs_hideable)
set category = "Admin.Game"
set desc = "Toggles ghost-like invisibility (Don't abuse this)"
if(holder && mob)
if(mob.invisibility == INVISIBILITY_OBSERVER)
if(mob.invisibility == INVISIBILITY_INVINISMIN)
mob.invisibility = initial(mob.invisibility)
mob.remove_from_all_data_huds()
to_chat(mob, "<span class='boldannounce'>Invisimin off. Invisibility reset.</span>", confidential = TRUE)
else
mob.invisibility = INVISIBILITY_INVINISMIN
mob.add_to_all_human_data_huds()
to_chat(mob, "<span class='adminnotice'><b>Invisimin on. You are now as invisible as a ghost.</b></span>", confidential = TRUE)

Expand Down

0 comments on commit c73b9bc

Please sign in to comment.