Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Botpack.MultiKillMessage


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
class MultiKillMessage extends LocalMessagePlus;

var(Messages)   localized string    DoubleKillString;
var(Messages)   localized string    TripleKillString;
var(Messages)   localized string    MultiKillString;
var(Messages)   localized string    UltraKillString;
var(Messages)   localized string    MonsterKillString;


static function float GetOffset(int Switch, float YL, float ClipY )
{
    return (Default.YPos/768.0) * ClipY + YL;
}

static function int GetFontSize( int Switch )
{
    if ( Switch == 1 )
        return Default.FontSize;
    else
        return 2;
}

static function string GetString(
    optional int Switch,
    optional PlayerReplicationInfo RelatedPRI_1, 
    optional PlayerReplicationInfo RelatedPRI_2,
    optional Object OptionalObject 
    )
{
    switch (Switch)
    {
        case 1:
            return Default.DoubleKillString;
            break;
        case 2:
            return Default.MultiKillString;
            break;
        case 3:
            return Default.UltraKillString;
            break;
        case 4:
        case 5:
        case 6:
        case 7:
        case 8:
        case 9:
            return Default.MonsterKillString;
            break;
    }
    return "";
}

static simulated function ClientReceive( 
    PlayerPawn P,
    optional int Switch,
    optional PlayerReplicationInfo RelatedPRI_1, 
    optional PlayerReplicationInfo RelatedPRI_2,
    optional Object OptionalObject
    )
{
    Super.ClientReceive(P, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject);

    switch (Switch)
    {
        case 1:
            P.ClientPlaySound(sound'Announcer.DoubleKill',, true);
            break;
        case 2:
            P.ClientPlaySound(sound'Announcer.MultiKill',, true);
            break;
        case 3:
            P.ClientPlaySound(sound'Announcer.UltraKill',, true);
            break;
        case 4:
        case 5:
        case 6:
        case 7:
        case 8:
        case 9:
            P.ClientPlaySound(sound'Announcer.MonsterKill',, true);
            break;
    }
}

defaultproperties
{
     DoubleKillString="Double Kill!"
     TripleKillString="Triple Kill!"
     MultiKillString="Multi Kill!"
     UltraKillString="ULTRA KILL!!"
     MonsterKillString="M O N S T E R  K I L L !!!"
     FontSize=1
     bIsSpecial=True
     bIsUnique=True
     bFadeMessage=True
     DrawColor=(G=0,B=0)
     YPos=196.000000
     bCenter=True
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Do 19.5.2005 19:42:14.000 - Creation time: Fr 7.6.2013 13:15:51.607 - Created with UnCodeX