colBoh Posted February 22, 2012 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. 0 Share this post Link to post
Rayziik Posted February 22, 2012 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. 0 Share this post Link to post