Translucent deaths and enhanced NV goggles/Invulnerability
Posted: Tue Jun 05, 2007 22:10
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:
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