Author Topic: Add Max Health Playertype Problem  (Read 386 times)

I am trying to make a player that has a higher max damage itself, but it won't work, what is the problem? It is also based from the tf2 medigun.

Code: [Select]
function HeathBasedPlayer::onAdd(%this,%obj)
{
%obj.tf2overheal = 100;
%hp = (%obj.dataBlock.maxDamage - %obj.getDamageLevel()) + %obj.tf2overheal;
%obj.tf2overheal = %hp;
}

EDIT: I have changed up the code, still doesn't work, executes right, but won't work
« Last Edit: March 02, 2013, 09:18:47 AM by Advanced Bot »