Translucent deaths and enhanced NV goggles/Invulnerability

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Translucent deaths and enhanced NV goggles/Invulnerability

Post 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
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

That happens because additive black means nothing. Sorry, there isn't much that I can do.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post 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.
Locked

Return to “Closed Bugs”