Botpack
Class KillerMessagePlus

source: e:\games\UnrealTournament\Botpack\Classes\KillerMessagePlus.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Info
         |
         +--Engine.LocalMessage
            |
            +--Botpack.LocalMessagePlus
               |
               +--Botpack.KillerMessagePlus
Direct Known Subclasses:None

class KillerMessagePlus
extends Botpack.LocalMessagePlus


Variables
 string ScoreString
 string YouKilled
 string YouKilledTrailer


Function Summary
 float GetOffset(int Switch, float YL, float ClipY)
 string GetString(optional int, optional PlayerReplicationInfo, optional PlayerReplicationInfo, optional Object)



Source Code


00001	class KillerMessagePlus expands LocalMessagePlus;
00002	
00003	var localized string YouKilled;
00004	var localized string ScoreString;
00005	var localized string YouKilledTrailer;
00006	
00007	
00008	static function float GetOffset(int Switch, float YL, float ClipY )
00009	{
00010		return (Default.YPos/768.0) * ClipY - YL;
00011	}
00012	
00013	static function string GetString(
00014		optional int Switch,
00015		optional PlayerReplicationInfo RelatedPRI_1, 
00016		optional PlayerReplicationInfo RelatedPRI_2,
00017		optional Object OptionalObject 
00018		)
00019	{
00020		if (RelatedPRI_1 == None)
00021			return "";
00022		if (RelatedPRI_2 == None)
00023			return "";
00024	
00025		if (RelatedPRI_2.PlayerName != "")
00026			return Default.YouKilled@RelatedPRI_2.PlayerName@Default.YouKilledTrailer;
00027	}
00028	
00029	defaultproperties
00030	{
00031	     YouKilled="You killed"
00032	     ScoreString="Your Score:"
00033	     FontSize=1
00034	     bIsSpecial=True
00035	     bIsUnique=True
00036	     bFadeMessage=True
00037	     DrawColor=(R=0,G=128)
00038	     YPos=196.000000
00039	     bCenter=True
00040	}

End Source Code