/*
 * Shows Inflicted Damage on Screen:
 * By: *PingFre@K*
 * Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.
*/

class DmgMsg extends LocalMessage;

var(Message) color green, grey, yellow, orange, red;

static function string GetString(
	optional int Switch,
	optional bool bPRI1HUD,
	optional PlayerReplicationInfo RelatedPRI_1,
	optional PlayerReplicationInfo RelatedPRI_2,
	optional Object OptionalObject
	)
{
	return ""$switch;
}

static function color GetColor(
	optional int Switch,
	optional PlayerReplicationInfo RelatedPRI_1,
	optional PlayerReplicationInfo RelatedPRI_2,
	optional Object OptionalObject
	)
{
    if(Switch<0) return default.green;
    else if(Switch<33) return default.grey;
	else if(Switch<66) return default.yellow;
    else if(Switch<100) return default.orange;
    return default.red;
}

defaultproperties
{
   Green=(G=255,A=255)
   Grey=(B=90,G=90,R=90,A=255)
   Yellow=(G=130,R=138,A=255)
   Orange=(G=64,R=200,A=255)
   Red=(R=255,A=255)
   bBeep=True
   Lifetime=1
   PosY=0.65
   FontSize=2.25
}
