Class DamageMessage extends NKillsMessage;

static function string GetString(
    optional int Switch,
    optional PlayerReplicationInfo RelatedPRI_1,
    optional PlayerReplicationInfo RelatedPRI_2,
    optional Object OptionalObject
    )
{
	return GetNameOf(Class<Monster>(OptionalObject))@"-"$Switch@Default.KillString;
}

// Fade color: Green (0-99 damage) > Yellow (100-499 damage) > Red (500-999 damage) > Dark Red (999+ damage).
static function color GetColor(
	optional int Switch,
	optional PlayerReplicationInfo RelatedPRI_1,
	optional PlayerReplicationInfo RelatedPRI_2
	)
{
	local color C;

	C.A = 255;
	if( Switch<800 )
	{
		C.G = Clamp(512-Switch,0,255);
		C.R = Clamp((Switch * 2.5f),0,255);
	}
	else C.R = Clamp(1256-Switch,150,255);
	return C;
}

defaultproperties
{
     KillString="HP"
     MessageShowTime=4.000000
     bDamageMessage=True
     PosY=0.650000
     FontSize=-2
}
