Page 1 of 1

Translucent deaths and enhanced NV goggles/Invulnerability

Posted: Tue Jun 05, 2007 22:10
by Enjay
I have some enemies defined which get vaporised when you hit them with a certain weapon. This is done by making the death sprites a totally white silhouette, setting the sprites bright and then using a translucency pointer to increase their translucency (initially they are fully opaque). However, when the enhanced night vision goggles are on or invulnerability is active (I believe the effect applied to actors is the same), the enemies disappear instantly rather than fading away.

With normal NV goggles, this does not happen.

Enemies which are always translucent do not become invisible when these powerups are active.

Typical death code:

Code: Select all

SMTH O 6 BRIGHT A_SetTranslucent(0.5, 1)
SMTH P 6 BRIGHT A_XScream
SMTH Q 6 BRIGHT A_SetTranslucent(0.4, 1)
SMTH R 6 BRIGHT A_Fall
SMTH S 6 BRIGHT A_SetTranslucent(0.3, 1)
SMTH T 6 BRIGHT 
Stop

Posted: Wed Jun 06, 2007 16:41
by Graf Zahl
That happens because additive black means nothing. Sorry, there isn't much that I can do.

Posted: Wed Jun 06, 2007 23:30
by Enjay
Ahhh! Of course, that makes sense. Presumably making the sprites one of the bright greys rather than white would get round the problem and leave them at least slightly visible. I'll save that job for some day when I'm really bored. Or maybe I'll see how they look non-additive. That would be a quicker fix.