Skip to content

Commit

Permalink
[MIRROR] Fixes Invisimin to not show up on HUDs [MDB IGNORE] (#25000)
Browse files Browse the repository at this point in the history
* Fixes Invisimin to not show up on HUDs (#79605)

## About The Pull Request

Adds _**2 lines of code**_ that enables and disables being able to be
spotted with sec/med huds.
## Why It's Good For The Game
Fixes tgstation/tgstation#72198 and
tgstation/tgstation#36709 since they're the
same issue. This has been around for almost a year now which suggets
that maybe this verb wasn't being used much anyways. But fixes are fixes
and fixed code is healthy code.

## Changelog
:cl: TwistedSilicon
fix: invisimin verb now makes you invisible to all HUDs too! No more
floating healthbars or job identifiers giving you away while you sneak
around.
/:cl:
<details>
  <summary>Before</summary>

https://github.com/tgstation/tgstation/assets/106436013/02b7999b-ae7b-4f79-bd0e-d353d0026db2

</details>
<details>
  <summary>After</summary>

### MedHuds

https://github.com/tgstation/tgstation/assets/106436013/0845c623-8ea1-4c95-825b-008d0be1a428

### SecHuds

https://github.com/tgstation/tgstation/assets/106436013/8af5cd9d-ad6a-4758-8efd-1cce9ca7a643

</details>

No more of this:

![Before](https://github.com/tgstation/tgstation/assets/106436013/6800f2f5-91c7-447d-bfb3-84eea1eee433)
(So for the love of GOD do not invismin next to a chasm or SM shard,
since not even you know where you are anymore.)

* Fixes Invisimin to not show up on HUDs

---------

Co-authored-by: TwistedCicrularConvexLens <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Nov 14, 2023
1 parent 3e18472 commit 43d4c35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,12 @@ GLOBAL_PROTECT(admin_verbs_poll)
if(isnull(holder) || isnull(mob))
return
if(mob.invisimin)
mob.add_to_all_human_data_huds()
mob.invisimin = FALSE
mob.RemoveInvisibility(INVISIBILITY_SOURCE_INVISIMIN)
to_chat(mob, span_boldannounce("Invisimin off. Invisibility reset."), confidential = TRUE)
else
mob.remove_from_all_data_huds()
mob.invisimin = TRUE
mob.SetInvisibility(INVISIBILITY_OBSERVER, INVISIBILITY_SOURCE_INVISIMIN, INVISIBILITY_PRIORITY_ADMIN)
to_chat(mob, span_adminnotice("<b>Invisimin on. You are now as invisible as a ghost.</b>"), confidential = TRUE)
Expand Down

0 comments on commit 43d4c35

Please sign in to comment.