HP bar doesn't disappear when Service account is invisible #2042
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Depends on
You do not have permission to read 1 dependency
Reference: your-land/bugtracker#2042
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As mentioned in a comment in #91, the HP bar from the
gauges
mod doesn't disappear when a player becomes invisible. The solution for this is a proper API for invisibility, with "on_vanish" and "on_appear" callbacks, as well as some other goodies I've got in mind (like a generalized mechanism for un-vanishing players, as done by the evoker, balrog, and in the nether).Dependent mods:
Mods which should get a dependency:
@AliasAlreadyTaken one outstanding question I have is, should a player's model disappear when they drink an invisibility potion? The code currently implies that this should happen, but it clearly does not, and I'm not sure why. The last time I started cleaning up the code, it magically started happening, and I had to undo most of what I did in order to not create a surprising new ability.
Also, the mechanism used to make the player "vanish" is to set the size of their player model to 0, which I think would make them unhitable by other players, which would make for a nasty confound for PvP...
hm. perhaps instead of a rewrite of invisibility itself, it should be worked into yl_statuseffects, which i could flesh out the API for in the process (see your-land/administration#63).
The current invisibility mod will need to go anyway, once we do 1.4 classes and abilities
Statuseffects seems a much more appropriate place. maybe all statuseffects need a callback when they are applied and when they go away.
I'm going to sit on this one for a while, because it'll require a number of changes to unexposed behavior in mobs_redo, and would make it hard to merge any other upstream fixes. perhaps this should wait until we've ported all our mobs to a more reasonable underlying API, it doesn't seem worth the potential problems to just get rid of Service's HP bar.