Skip to content

Commit

Permalink
Hide invisimin users from HUDs and Ghosts (#2922)
Browse files Browse the repository at this point in the history
## About The Pull Request

- Hides invisimin users from HUDs
- Hides invisimin users from ghosts

## Why It's Good For The Game

It makes eventmaking better.

## Changelog

:cl:SuhEugene
admin: made invisimin admins invisible for HUDs and ghosts
/:cl:
  • Loading branch information
SuhEugene authored May 5, 2024
1 parent 010d118 commit 6907ee7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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
6 changes: 4 additions & 2 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,13 @@ 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_OBSERVER
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)

/client/proc/check_antagonists()
Expand Down

0 comments on commit 6907ee7

Please sign in to comment.