Bump, i got something that kinda works!
function KeyboardProjectile::Damage(%this,%obj,%col,%fade,%pos,%normal)
{
if(%col.getType() & $TypeMasks::PlayerObjectType)
{
if(%col.getDamagePercent() <= 0.1)
{
if(isObject(%obj.client))
{
bottomPrint(%obj.client, "<just:center><color:ffffff>B", 2);
}
}
else if(%col.getDamagePercent() <= 0.2)
{
if(isObject(%obj.client))
{
bottomPrint(%obj.client, "<just:center><color:ffffff>Bl", 2);
}
}
else if(%col.getDamagePercent() <= 0.3)
{
if(isObject(%obj.client))
{
bottomPrint(%obj.client, "<just:center><color:ffffff>Blo", 2);
}
}
else if(%col.getDamagePercent() <= 0.4)
{
if(isObject(%obj.client))
{
bottomPrint(%obj.client, "<just:center><color:ffffff>Bloc", 2);
}
}
else if(%col.getDamagePercent() <= 0.5)
{
if(isObject(%obj.client))
{
bottomPrint(%obj.client, "<just:center><color:ffffff>Block", 2);
}
}
else if(%col.getDamagePercent() <= 0.6)
{
if(isObject(%obj.client))
{
bottomPrint(%obj.client, "<just:center><color:ffffff>Blockl", 2);
}
}
else if(%col.getDamagePercent() <= 0.7)
{
if(isObject(%obj.client))
{
bottomPrint(%obj.client, "<just:center><color:ffffff>Blockla", 2);
}
}
else if(%col.getDamagePercent() <= 0.8)
{
if(isObject(%obj.client))
{
bottomPrint(%obj.client, "<just:center><color:ffffff>Blocklan", 2);
}
}
else if(%col.getDamagePercent() <= 0.9)
{
if(isObject(%obj.client))
{
bottomPrint(%obj.client, "<just:center><color:ffffff>Blockland", 2);
}
}
else if(%col.getDamagePercent() <= 1.0)
{
if(isObject(%obj.client))
{
bottomPrint(%obj.client, "<just:center><color:ffffff>Blockland!", 2);
}
}
}
parent::Damage(%this,%obj,%col,%fade,%pos,%normal);
}
Values 0.6 (50 health), 0.8 (30 health) and 1.0 (10 health) repeat what 0.5, 0.7, and 0.9 say, i've even tried changing the <= into == and >= while also changing the value accordingly, sadly, i haven't been able to fix it