"Universal" fade-to-black on death

For high-res texture/sprite projects, sprite-fix patches, music add-ons, music randomizers, and other graphic/sound-only projects.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

"Universal" fade-to-black on death

Postby Caligari87 » Thu Jun 13, 2019 6:45 am

This is a small visual mutator that makes the player's screen fade to black upon death. The speed/time of the fade is randomized, and partially depends on how much "extra" damage the player takes. i.e, a low-damage killing blow will usually result in a relatively slow fade, but a high-damage hit will be more likely to "instakill" the player straight to a black screen.

I've implemented this in a fairly compatible fashion using an event handler and inventory item. "Universal" is in quotes because it may not work 100% if other loaded mods use custom SetBlends on the player after/during death, or mess with normal death/inventory handling for the playerpawn. In theory it should be multiplayer-compatible but this has not been tested.

Pre-packed .PK3 file attached for convenience. Code is hosted as a Github Gist and should be easy to pack/download from there if desired. I have no plans to actively "develop" this mini-mod (features, compatibility, etc) but may make some tweaks from time to time. Requires ZScript and GZDoom v4.1 at least, I have no interest in porting to or supporting ACS, DECORATE, or older engine versions.

Github Gist

Known issues
  • Respawning before the fade completes may result in the fade continuing until it's done. Vision will be restored after that.
  • The fade sometimes "flickers off" right as it completes, before dropping to full black.

You do not have the required permissions to view the files attached to this post.
User avatar
I'm just here for the community
User Accounts Assistant
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Return to Graphic/Audio Patches

Who is online

Users browsing this forum: No registered users and 0 guests