mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
[MIRROR] Fixes Invisimin to not show up on HUDs [MDB IGNORE] (#25000)
* 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 https://github.com/tgstation/tgstation/issues/72198 and https://github.com/tgstation/tgstation/issues/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 🆑 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. /🆑 <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:  (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 <106436013+TwistedCicrularConvexLens@users.noreply.github.com>
This commit is contained in:
@@ -394,10 +394,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)
|
||||
|
||||
Reference in New Issue
Block a user