A mod where enemies can die from earlier damage

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
Doug82
Posts: 4
Joined: Sat Jun 12, 2021 6:45 pm

A mod where enemies can die from earlier damage

Post by Doug82 »

I enjoyed Hideous Destructor's "damage a monster without killing it and it can still die from blood loss\previous damage shortly afterwards" mechanic. Is there a mod that can add this to a game? HD is a bit more than I can chew but would love to be able to have a "bleed out" damage system like that for enemies. Is something like that available? Thank you.
Jarewill
 
 
Posts: 1855
Joined: Sun Jul 21, 2019 8:54 am

Re: A mod where enemies can die from earlier damage

Post by Jarewill »

Here's a small mod that does that.
It adds to a special counter how much the monster was damaged and every half a second it will damage the monster for 1 damage until the counter is drained.
So if you hit a monster for 10 damage, it will take 10 more damage over the span of 5 seconds.

You will probably have to tweak the mod to your liking, as I really just made it in 5 minutes without much balancing.
I tried to leave comments describing functions in the code.
Attachments
Enemy Bleed.wad
(1.14 KiB) Downloaded 65 times
Doug82
Posts: 4
Joined: Sat Jun 12, 2021 6:45 pm

Re: A mod where enemies can die from earlier damage

Post by Doug82 »

Hi Jarewill, I just tried your mod in doom 2 vanilla and it works great! Some bleed out from earlier hits, some don't. Just what I was hoping for. My coding knowledge is *very* limited but I opened it up in slade and with your comments its easy to understand for me. I really appreciate you taking the time to write that chunk of code. Cheers!
Post Reply

Return to “General”