## XIIIMP
Class XIIIMPDuckGameInfo

source: C:\XIII\XIIIMP\Classes\XIIIMPDuckGameInfo.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--Engine.GameInfo
                |
                +--XIII.XIIIGameInfo
                   |
                   +--XIIIMP.XIIIMPGameInfo
                      |
                      +--XIIIMP.XIIIMPDuckGameInfo

Direct Known Subclasses:XIIIMPCatchableDuckGameInfo

class XIIIMPDuckGameInfo
extends XIIIMP.XIIIMPGameInfo

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

Variables
`XIIIMPDuckEmiter` | `DuckEmitter`
`class` | `DuckMessageClass`
`TheDuck` | `TheDuck`
`Pawn` | `WhoHasTheDuck`

Function Summary
`void` | `AddBot(int BotID)`
    //_____________________________________________________________________________
`void` | `BroadcastDuckMessage(Controller Other)`
    //_____________________________________________________________________________
`void` | `ScoreKill(Controller Killer, Controller Other)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class XIIIMPDuckGameInfo extends XIIIMPGameInfo;
    00005
    00006	var class<LocalMessage> DuckMessageClass;
    00007	var pawn WhoHasTheDuck;
    00008	var XIIIMPDuckEmiter DuckEmitter;
    00009	var TheDuck TheDuck;
    00010
    00011	//_____________________________________________________________________________
    00012
    00013	function AddBot(int BotID)
    00014	{
    00015	    local DuckBotController Bot;
    00016
    00017	    Bot = spawn( class'DuckBotController');
    00018
    00019	    if ( BotClasses[ BotID ] == none )
    00020	      BotClasses[ BotID ] = class<XIIIPlayerPawn>(DynamicLoadObject(BotClassesName[ BotID ], class'class'));
    00021
    00022
    00023	    Bot.PawnClass = BotClasses[ BotID ];
    00024	    Bot.Skill = level.BotLevel[BotID];
    00025	    Bot.PlayerReplicationInfo.PlayerID = CurrentID++;
    00026	    Bot.bIsBot = true;
    00027	}
    00028
    00029	//_____________________________________________________________________________
    00030
    00031	function ScoreKill(Controller Killer, Controller Other)
    00032	{
    00033	    if (killer == Other)
    00034	        Other.PlayerReplicationInfo.Score -= 50;
    00035	    else if ( killer.PlayerReplicationInfo != None )
    00036	    {
    00037	        Other.PlayerReplicationInfo.Score -= 1;
    00038	        XIIIPlayerReplicationInfo(killer.PlayerReplicationInfo).MyDeathScore += 1;
    00039	    }
    00040	}
    00041
    00042	//_____________________________________________________________________________
    00043
    00044	function BroadcastDuckMessage( controller Other )
    00045	{
    00046	    BroadcastLocalizedMessage( GameMessageClass, 0 );
    00047	}
    00048
    00049	//_____________________________________________________________________________
    00050
    00051
    00052
    00053	defaultproperties
    00054	{
    00055	     HUDType="XIIIMP.XIIIBirdHUD"
    00056	     MutatorClass="XIIIMP.XIIIMPDuckMutator"
    00057	}

End Source Code