## XIIIMP
Class XIIIMPCatchableDuckMutator

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

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--Engine.Mutator
                |
                +--XIIIMP.XIIIMPMutator
                   |
                   +--XIIIMP.MPBombMutator
                      |
                      +--XIIIMP.XIIIMPDuckMutator
                         |
                         +--XIIIMP.XIIIMPCatchableDuckMutator

Direct Known Subclasses:None

class XIIIMPCatchableDuckMutator
extends XIIIMP.XIIIMPDuckMutator

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

Function Summary
`void` | `AddTheDuck()`

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class XIIIMPCatchableDuckMutator extends XIIIMPDuckMutator;
    00005
    00006
    00007	function AddTheDuck()
    00008	{
    00009	    local NavigationPoint Nav;
    00010	    local TheDuck MyDuck;
    00011	    local Array<NavigationPoint> NavPointList;
    00012
    00013	    Nav = Level.NavigationPointList;
    00014
    00015	    while( Nav != none)
    00016	    {
    00017	        if( CrouchPathNode(Nav) == none )
    00018	        {
    00019	            NavPointList.Length = NavPointList.Length+1;
    00020	            NavPointList[ NavPointList.Length-1 ] = Nav;
    00021	        }
    00022
    00023	        Nav = Nav.NextNavigationPoint;
    00024	    }
    00025
    00026	    Nav = NavPointList[ Rand(NavPointList.Length) ];
    00027
    00028	    MyDuck = Spawn(class'TheCatchableDuck',,, Nav.Location);
    00029
    00030	    XIIIMPDuckGameInfo(Level.Game).TheDuck=MyDuck;
    00031
    00032	    DuckWasAdded = true;
    00033	}
    00034
    00035
    00036
    00037	defaultproperties
    00038	{
    00039	}

End Source Code