Ludeon Forums

RimWorld => Mods => Help => Topic started by: Argain on June 03, 2014, 08:47:27 AM

Title: When does Melee Attack 'finish'?
Post by: Argain on June 03, 2014, 08:47:27 AM
When something melee attacks something else, does the flow of the code end with the 'Damage Flasher' class? Looking for a way to inject something along the lines of "if (pawn == [Something]) then commit suicide after causing damage", but struggling to find where exactly one instance of a melee attack 'ends'. Could also see this being useful knowledge for anyone wanting to make some kamikaze enemies lol
Title: Re: When does Melee Attack 'finish'?
Post by: Tynan on June 03, 2014, 09:23:26 AM
I'm trying to think how you could do a dude who explodes or dies on melee. But it's tricky. Melee is basically hardcoded in a really simple way right now so I don't think this is possible.

If I were to do it I'd replace the Verb_MeleeAttack class.
Title: Re: When does Melee Attack 'finish'?
Post by: mrofa on June 03, 2014, 09:24:49 AM
Weapon with range of 1 and custom class to make it explode.