How can i do this

Damage dealt to target results in zapping the healthpool of target and adding it to your healthpool

When the target is below 5% of max healthpool, they die.

The other thing with this is that damage dealt will also be inverse to health, so the more hp someone has, the less damage they deal.

Each person starts with 500hp and 100dps.

I hope this is possible

This shouldn’t be too hard to make, but killing players before their entire health pool is gone is confusing and unnecessary, so I wouldn’t recommend doing that. Also, what heroes would be available? If all heroes can be used, it would be hard to enforce “100 dps”, since some heroes deal more damage on headshots. What about ability damage? What about damage falloff? Just some things to think about.

Here is some code to get you started:

variables
{
	player:
		0: healthPercent
}

rule("life steal")
{
	event
	{
		Player Dealt Damage;
		All;
		All;
	}

	actions
	{
		Heal(Attacker, Attacker, Event Damage);
	}
}

rule("update damage dealt")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Event Player.healthPercent != Normalized Health(Event Player);
	}

	actions
	{
		Event Player.healthPercent = Normalized Health(Event Player);
		Set Damage Dealt(Event Player, 100 * (0.500 + (1 - Normalized Health(Event Player))));
	}
}
1 Like

Oh boy, lots of questions

I would say just flat out dps.

Abilities would not be available

I believe damage falloff is a fixed gaurentee

Also,thanks, ill try to impliment it in at some point

Something you can do is reduce all damage to 1% - this will still register as having dealt damage but will do functionally 0 damage.

That way you can still get the Damage Dealt to trigger, but you can set the damage to the fixed amount.
I’d suggest making it 50 damage each hit, 100 on headshot. For heroes that can’t headshot (ana) you could add an extra 20 damage per shot to compensate.

With the upcoming changes you could also set heroes like Soldier to 1 ammo for better representation.

Additionally it may be easier to use the Settings to change the base health of enemies to 100 (e.g. most heroes would be at 50% max health, pig would be at 16.66%) and then use the Set Max Health command to 500% on spawn, etc.