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

JBAddonJailCard.JBJailCardMessageConsole


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
//==============================================================================
// JBJailCardMessageConsole
// Copyright 2007 by [GSF]JohnDoe <gsfjohndoe@hotmail.com>
//
// Console message when someone picks up the JailCard
//
// CHANGELOG:
// 22 jan 2007 - Class created
// 10 feb 2007 - Added ClientReceive and PlayMySound methods
// 11 feb 2007 - Removed ClientReceive and PlayMySound methods
//               Added code to colour the message according to the players team
//==============================================================================
class JBJailCardMessageConsole extends JBJailCardMessage notplaceable;


//==============================================================================
// Properties
//==============================================================================

var Color Red;
var Color Blue;


// ============================================================================
// GetColor
//
// Returns the color to use for the given message.
// ============================================================================

static function color GetConsoleColor( PlayerReplicationInfo RelatedPRI_1 )
{
    if(RelatedPRI_1.Team.TeamIndex == 0)
        return Default.Red;
    else
        return Default.Blue;


    return Super.GetConsoleColor(RelatedPRI_1);
}


//=============================================================================
// default properties
//=============================================================================

DefaultProperties
{
    bIsConsoleMessage=True;
    bBeep=True;
    bIsSpecial=False;
    Lifetime=6;

    // colours
    Red=(R=255,G=0,B=0,A=255);
    Blue=(R=0,G=0,B=255,A=255);
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mo 12.2.2007 22:40:18.000 - Creation time: Do 14.8.2014 09:58:42.719 - Created with UnCodeX