Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Spectator team switching resets cloak shader

Open sprunk opened this issue 6 years ago • 6 comments

@Anarchid has a problem (feel free to edit the ticket):

selecting cloaked unit temporarily renders them uncloaked for me, does this happen to anyone else? i think this may be related to the thing about selecting ally units The decloak issue is what bothers me Every time it happens it looks like your cloaked unit has ran out of energy

sprunk avatar Oct 03 '19 12:10 sprunk

I think the more frequently detected team change issue is the cause of this: https://github.com/ZeroK-RTS/Zero-K/issues/3730

GoogleFrog avatar Oct 04 '19 03:10 GoogleFrog

@Anarchid says this also happens when clicking your own unit though.

sprunk avatar Oct 04 '19 08:10 sprunk

Or, rather, i get both the zeroing of the metal bars and the cloak shader thing when selecting units on the same team as i was previously selecting.

I haven't paid enough attention to notice if this happens in games where i'm not a spec.

Anarchid avatar Oct 04 '19 12:10 Anarchid

@Anarchid still happens?

sprunk avatar Jan 25 '24 13:01 sprunk

This is a bit of a confusing ticket, but I have an issue which might be what is happening here. If you are spectating a team and then switch to spectating a team on the same allyTeam, the cloak shader resets so it looks like everything has decloaked. This would be nice to fix. For bonus points we could even make it so that switching between spectated allyTeams doesn't reset the shader.

GoogleFrog avatar Jan 26 '24 07:01 GoogleFrog

This is a bit of a confusing ticket, but I have an issue which might be what is happening here. If you are spectating a team and then switch to spectating a team on the same allyTeam, the cloak shader resets so it looks like everything has decloaked. This would be nice to fix. For bonus points we could even make it so that switching between spectated allyTeams doesn't reset the shader.

This is the thing, yes.

Anarchid avatar Feb 12 '24 14:02 Anarchid