Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
colBoh

ZDoom Tweaking: Blood

Recommended Posts

OK, I'm tweaking with a custom monster I found in Realm667. It's the Zombie Scientist with an axe attack. Said axe attack is coded as follows:

Melee:
SCZA E 8 A_FaceTarget
SCZA F 16 A_CustomMeleeAttack (random (2, 6) *5, "KnifeHit", "skeleton/swing")
SCZA E 4
goto See

I know that, with this attack, it'll do 10-30 damage in multiples of 5, when it hits, it'll play the sound "KnifeHit", and when it misses, it'll play the Revenant "whoosh" punch sound.

How do I tweak it so that when it strikes the player, the player will bleed (like with any bullet attack)?

And yes, I've checked the ZDoom Wiki. I don't understand it.

Thank you.

Share this post


Link to post
colBoh said:

Melee:
SCZA E 8 A_FaceTarget
SCZA F 16 A_CustomMeleeAttack (random (2, 6) *5, "KnifeHit", "skeleton/swing")
SCZA E 4
goto See


Replace the second line codepointer with this:

A_CustomMeleeAttack (random (2, 6) *5, "KnifeHit", "skeleton/swing", "melee" , 1)

The last two parameters are for damage type (which is a melee hit) and the T/F variable for target bleeding. The damage type shouldn't change anything.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×