## XIIIMP
Class XIIIMPGameRules

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

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Info
             |
             +--Engine.GameRules
                |
                +--XIIIMP.XIIIMPGameRules

Direct Known Subclasses:None

class XIIIMPGameRules
extends Engine.GameRules

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

Function Summary
`bool` | `HandleRestartGame()`
    //_____________________________________________________________________________
    // ELR Return True to cancel the GameRestart and force the player to go into the menu to Reload
`bool` | `OverridePickupQuery(Pawn Other, Pickup item, out byte)`
    /* OverridePickupQuery()
    when pawn wants to pickup something, gamerules given a chance to modify it.  If this function
    returns true, bAllowPickup will determine if the object can be picked up.
    */

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class XIIIMPGameRules extends GameRules;
    00005
    00006	//_____________________________________________________________________________
    00007	// ELR Return True to cancel the GameRestart and force the player to go into the menu to Reload
    00008	function bool HandleRestartGame()
    00009	{
    00010	    return true;
    00011	}
    00012
    00013	//_____________________________________________________________________________
    00014	/* OverridePickupQuery()
    00015	when pawn wants to pickup something, gamerules given a chance to modify it.  If this function
    00016	returns true, bAllowPickup will determine if the object can be picked up.
    00017	*/
    00018	function bool OverridePickupQuery(Pawn Other, Pickup item, out byte bAllowPickup)
    00019	{
    00020	//    log("CALL to OverridePickupQuery for "$other$" picking "$item);
    00021
    00022	    /*if (MultiplayerMedPickup(Item) != none)
    00023	    {
    00024	      if ( XIIIPawn(Other).IsWounded() )
    00025	        bAllowPickup=1.0;
    00026	      return true;
    00027	    }   */
    00028
    00029	    if ( (NextGameRules != None) &&  NextGameRules.OverridePickupQuery(Other, item, bAllowPickup) )
    00030	      return true;
    00031	    return false;
    00032	}
    00033
    00034
    00035
    00036	defaultproperties
    00037	{
    00038	}

End Source Code