This requires takedamagescript in enemies text
I've made something like this before but the finisher isn't a knockdown
I'll modify the script to use knock down finisher instead
[couple minutes later]
Done, here's the script:
Finisher.c
Code:
void main()
{// Endure script (to protect entity from non knockdown finishing blow)
void self = getlocalvar("self"); //Get calling entity.
int HP = getentityproperty(self, "health"); //Get current HP
int Damage = getlocalvar("damage"); //Get received damage
int Knock = getlocalvar("drop"); //Get knockdown power
if(HP <= Damage && HP <= 1 && Knock == 0){
changeentityproperty(self, "health", 1);
}
}
Save this in data/scripts folder
Declare this in enemies text with:
Code:
takedamagescript data/scripts/finisher.c
With this set, the enemy can receive damage like normal until his/her reaches 1. After that, any non knockdown attack won't kill him/her. He/she still plays PAIN as usual