Botpack
Class DecapitationMessage

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

class DecapitationMessage
extends Botpack.LocalMessagePlus



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



Source Code


00001	class DecapitationMessage expands LocalMessagePlus;
00002	
00003	var(Messages)	localized string 	DecapitationString;
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		return Default.DecapitationString;
00018	}
00019	
00020	static simulated function ClientReceive( 
00021		PlayerPawn P,
00022		optional int Switch,
00023		optional PlayerReplicationInfo RelatedPRI_1, 
00024		optional PlayerReplicationInfo RelatedPRI_2,
00025		optional Object OptionalObject
00026		)
00027	{
00028		Super.ClientReceive(P, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject);
00029	
00030		P.ClientPlaySound(sound'Announcer.HeadShot',, true);
00031	}
00032	
00033	defaultproperties
00034	{
00035	     DecapitationString="Head Shot!!"
00036	     FontSize=1
00037	     bIsSpecial=True
00038	     bIsUnique=True
00039	     bFadeMessage=True
00040	     DrawColor=(G=0,B=0)
00041	     YPos=196.000000
00042	     bCenter=True
00043	}

End Source Code