Core.Object | +--Engine.Actor | +--Engine.Info | +--Engine.LocalMessage | +--Botpack.LocalMessagePlus | +--Botpack.VictimMessage
YouWereKilledBy,
KilledByTrailer
float
GetOffset(int Switch, float YL, float ClipY)
string
GetString(optional int, optional PlayerReplicationInfo, optional PlayerReplicationInfo, optional Object)
00001 class VictimMessage expands LocalMessagePlus; 00002 00003 var localized string YouWereKilledBy, KilledByTrailer; 00004 00005 static function float GetOffset(int Switch, float YL, float ClipY ) 00006 { 00007 return (Default.YPos/768.0) * ClipY + 2*YL; 00008 } 00009 00010 static function string GetString( 00011 optional int Switch, 00012 optional PlayerReplicationInfo RelatedPRI_1, 00013 optional PlayerReplicationInfo RelatedPRI_2, 00014 optional Object OptionalObject 00015 ) 00016 { 00017 if (RelatedPRI_1 == None) 00018 return ""; 00019 00020 if (RelatedPRI_1.PlayerName != "") 00021 return Default.YouWereKilledBy@RelatedPRI_1.PlayerName$Default.KilledByTrailer; 00022 } 00023 00024 defaultproperties 00025 { 00026 YouWereKilledBy="You were killed by" 00027 KilledByTrailer="!" 00028 FontSize=1 00029 bIsSpecial=True 00030 bIsUnique=True 00031 bFadeMessage=True 00032 DrawColor=(G=0,B=0) 00033 YPos=196.000000 00034 bCenter=True 00035 }