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.
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