- Aug 4, 2021
- 2
- 1
Hi I'm making a recreation of the MGE gamemode for a mini-game map, and i'm trying to set up the overheal gained after a kill.
I'm looking for exactly 150% of the health of the class, and so far I've only found ways to give a set number of overheal, not a percentage. I don't want to give 300 health to a scout against a soldier !
I've tried using addcond 73, with a AddOutput on !activator, with tf_add_or_remove_item_attributes and trigger_hurt, but all these methods give only a set number of overheal.
Is there a way to read the max health of a class and add overheal accordingly, or should I make a billion filters to list every matchups on each team ? Is there a simpler method, or should I give up and give a flat 50hp at respawn for all classes ?
I'm looking for exactly 150% of the health of the class, and so far I've only found ways to give a set number of overheal, not a percentage. I don't want to give 300 health to a scout against a soldier !
I've tried using addcond 73, with a AddOutput on !activator, with tf_add_or_remove_item_attributes and trigger_hurt, but all these methods give only a set number of overheal.
Is there a way to read the max health of a class and add overheal accordingly, or should I make a billion filters to list every matchups on each team ? Is there a simpler method, or should I give up and give a flat 50hp at respawn for all classes ?