I'm creating on 1.27a with unryze jass api(UjAPI 1.1.24.261). I've ran into weird bugs that I have now successfully pinpointed to a hero unit dying.
There are 2 odd behaviours that can happen when a hero dies with a low reproduction chance, independant of each other.
1: the dead hero will be able to autoattack, essentially a ghost walking around and meleeing.
2: the hero's vertex alpha will bug out in a desynchronized manner; when the hero respawns, the players who have vision of this bugged unit see its alpha properly(255) but the moment this unit leaves the fog of war for enemy players(entering their vision), the alpha will become 0 making the whole model transparent. Flipping fog off in a replay while in enemy pov will make the alpha 0 right away, so it's related to the vision of enemies and then the game seems to synchronize the clients to the alpha value of 0.
1.fix I've removed the ability for dead units to attack manually and I'm adding it back once they are alive. This fixed the behaviour.
2.fix I've added a chat command to set alpha of indexed hero back to 255
If someone has knowledge on this topic, I would like to know why are these happening. Assume no code that would prompt dead units to either attack or change their alpha to 0. Is this behaviour of 1.27a or the UjAPI version I am running? These bugs did not exist while I was using a replica of chinese YDWE warcraft.
There are 2 odd behaviours that can happen when a hero dies with a low reproduction chance, independant of each other.
1: the dead hero will be able to autoattack, essentially a ghost walking around and meleeing.
2: the hero's vertex alpha will bug out in a desynchronized manner; when the hero respawns, the players who have vision of this bugged unit see its alpha properly(255) but the moment this unit leaves the fog of war for enemy players(entering their vision), the alpha will become 0 making the whole model transparent. Flipping fog off in a replay while in enemy pov will make the alpha 0 right away, so it's related to the vision of enemies and then the game seems to synchronize the clients to the alpha value of 0.
1.fix I've removed the ability for dead units to attack manually and I'm adding it back once they are alive. This fixed the behaviour.
2.fix I've added a chat command to set alpha of indexed hero back to 255
If someone has knowledge on this topic, I would like to know why are these happening. Assume no code that would prompt dead units to either attack or change their alpha to 0. Is this behaviour of 1.27a or the UjAPI version I am running? These bugs did not exist while I was using a replica of chinese YDWE warcraft.