XIDMaps
Class PRock03MicroHFPick

source: C:\XIII\XIDMaps\Classes\PRock03MicroHFPick.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Pickup
         |
         +--XIII.XIIIPickup
            |
            +--XIII.EventItemPick
               |
               +--XIDMaps.PRock03MicroHFPick
Direct Known Subclasses:None

class PRock03MicroHFPick
extends XIII.EventItemPick

//___________________________________________________________ // //___________________________________________________________
States
Pickup
State Pickup Function Summary
 bool ValidTouch(Actor Other)



Source Code


00001	//___________________________________________________________
00002	//
00003	//___________________________________________________________
00004	class PRock03MicroHFPick extends EventItemPick;
00005	
00006	
00007	//___________________________________________________________
00008	auto state Pickup
00009	{
00010		function bool ValidTouch( actor Other )
00011		{
00012	
00013			local Inventory Copy;
00014	
00015			// make sure its a live player
00016			if ( (Pawn(Other)==none) || !Pawn(Other).bCanPickupInventory || (Pawn(Other).Health <= 0) )
00017				return false;
00018			// make sure not touching through wall
00019			if ( !FastTrace(Other.Location+Pawn(Other).EyeHeight*vect(0,0,1), Location) )
00020				return false;
00021			// make sure game will let player pick me up
00022			if( Level.Game.PickupQuery(Pawn(Other), self) )
00023			{
00024				if ( bCauseEventOnPick )
00025				{
00026					TriggerEvent(Event, self, Pawn(Other));
00027				}
00028				return true;
00029			}
00030			return false;
00031		}
00032	}
00033	
00034	
00035	
00036	//___________________________________________________________
00037	
00038	
00039	defaultproperties
00040	{
00041	     InvSelectItemSound=Sound'XIIIsound.Items.PassSel1'
00042	     InvActivateSound=Sound'XIIIsound.Items.PassFire1'
00043	     InvItemName="HF Micro"
00044	     bCauseEventOnPick=True
00045	     InventoryType=None
00046	     PickupMessage="HF Micro"
00047	     PickupSound=Sound'XIIIsound.Items.PassPick1'
00048	     StaticMesh=StaticMesh'MeshObjetsPickup.HF'
00049	}

End Source Code