## XIIIMP
Class MarioPickUp

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

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Pickup
             |
             +--XIIIMP.MarioPickUp

Direct Known Subclasses:MarioArmorAndMedKitPickUp, MarioHeavyWeaponPickUp, MarioSmallWeaponPickUp

class MarioPickUp
extends Engine.Pickup

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

Variables
`bool` | `InitList`
`int` | `ItemNumber`
`class` | `RandomInventoryType[7]`
`string` | `RandomPickupMessage[7]`
`sound` | `RandomPickupSound[7]`
`float` | `ScaleValue`

States
Pickup

Function Summary
`void` | `GetRandomItem()`
    //______________________________________________________________________________
`void` | `InitItemList()`
    //______________________________________________________________________________

State Pickup Function Summary

Source Code

    00001	//-----------------------------------------------------------
    00002	class MarioPickUp extends Pickup;
    00003
    00004	var class<Inventory> RandomInventoryType[7];
    00005	var localized string RandomPickupMessage[7];
    00006	var sound RandomPickupSound[7];
    00007	var int ItemNumber;
    00008	var bool InitList;
    00009	var float ScaleValue;
    00010
    00011	//______________________________________________________________________________
    00012
    00013	function GetRandomItem()
    00014	{
    00015	    local int RandId;
    00016
    00017	    RandId=Rand(ItemNumber);
    00018
    00019	    InventoryType=RandomInventoryType[RandId];
    00020
    00021	    default.InventoryType=RandomInventoryType[RandId];
    00022	}
    00023
    00024	//______________________________________________________________________________
    00025
    00026	function InitItemList()
    00027	{
    00028	}
    00029
    00030	//______________________________________________________________________________
    00031
    00032	auto state Pickup
    00033	{
    00034	    event Touch( actor Other )
    00035	    {
    00036	        if( ! InitList )
    00037	            InitItemList();
    00038
    00039	        GetRandomItem();
    00040
    00041	        super.Touch( Other );
    00042	    }
    00043	}
    00044
    00045	//______________________________________________________________________________
    00046	//    texture=texture'XIIIMenu.UziIcon'
    00047
    00048
    00049	defaultproperties
    00050	{
    00051	     PickupMessage="Mario"
    00052	     PickupSound=Sound'XIIIsound.Multi__SFXMulti.SFXMulti__hCaisse'
    00053	     hRespawnSound=Sound'XIIIsound.Multi__SFXMulti.SFXMulti__hRespawnGun'
    00054	     DrawType=DT_StaticMesh
    00055	     StaticMesh=StaticMesh'MeshArmesPickup.uzi'
    00056	     CollisionHeight=28.000000
    00057	     MessageClass=Class'XIII.XIIIPickupMessage'
    00058	}

End Source Code