## XIII
Class XIIIDeathMessage

source: C:\XIII\XIII\Classes\XIIIDeathMessage.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--Engine.LocalMessage
                |
                +--XIII.XIIILocalMessage
                   |
                   +--XIII.XIIIDeathMessage

Direct Known Subclasses:XIIIMPBlueDeathMessage, XIIIMPRedDeathMessage

class XIIIDeathMessage
extends XIII.XIIILocalMessage

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Variables
`SuicidedMalus,` | `KilledByKKK`

Function Summary
`string` | `GetString(optional int, optional PlayerReplicationInfo, optional PlayerReplicationInfo, optional Object)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class XIIIDeathMessage extends XIIILocalMessage;
    00005
    00006	var localized string KilledBy, Suicided, SuicidedMalus, KilledByKKK;
    00007
    00008	//_____________________________________________________________________________
    00009	static function string GetString( optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject )
    00010	{
    00011	    switch (Switch)
    00012	    {
    00013	      case 3: // KKK
    00014	        return RelatedPRI_2.PlayerName@Default.KilledByKKK; break;
    00015	      case 2: // Suicide KKK
    00016	        return RelatedPRI_2.PlayerName@Default.SuicidedMalus; break;
    00017	      case 1: // Suicide
    00018	        return RelatedPRI_2.PlayerName@Default.Suicided; break;
    00019	      case 0: // Killed
    00020	        return RelatedPRI_2.PlayerName@Default.KilledBy@RelatedPRI_1.PlayerName; break;
    00021	    }
    00022	    return default.class$" ERR::RECEIVED GetString with wrong or undefined Params";
    00023	}
    00024
    00025
    00026
    00027	defaultproperties
    00028	{
    00029	     KilledBy="Was killed by"
    00030	     Suicided="had a sudden heart attack"
    00031	     SuicidedMalus="had a sudden heart attack ! Malus -50"
    00032	     KilledByKKK="was killed by The Death ! Malus -10"
    00033	     DrawColor=(B=210,G=252,R=255,A=230)
    00034	}

End Source Code