UnrealShare
Class Suits

source: e:\games\UnrealTournament\UnrealShare\Classes\Suits.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Inventory
         |
         +--Engine.Pickup
            |
            +--UnrealShare.Suits
Direct Known Subclasses:AsbestosSuit, ToxinSuit, KevlarSuit

class Suits
extends Engine.Pickup

//============================================================================= // Suits. //=============================================================================

Function Summary
 void PickupFunction(Pawn Other)



Source Code


00001	//=============================================================================
00002	// Suits.
00003	//=============================================================================
00004	class Suits extends Pickup;
00005	
00006	#exec TEXTURE IMPORT NAME=I_Suit FILE=TEXTURES\HUD\i_Suit.PCX GROUP="Icons" MIPS=OFF
00007	
00008	#exec MESH IMPORT MESH=Suit ANIVFILE=MODELS\bsuit_a.3D DATAFILE=MODELS\bsuit_d.3D X=0 Y=0 Z=0
00009	#exec MESH ORIGIN MESH=Suit X=0 Y=100 Z=40 YAW=64 ROLL=64
00010	#exec MESH SEQUENCE MESH=Suit SEQ=All STARTFRAME=0  NUMFRAMES=1
00011	#exec TEXTURE IMPORT NAME=Asuit1 FILE=MODELS\bsuit.PCX GROUP="Skins"
00012	#exec MESHMAP SCALE MESHMAP=Suit X=0.04 Y=0.04 Z=0.08
00013	#exec MESHMAP SETTEXTURE MESHMAP=Suit NUM=1 TEXTURE=Asuit1
00014	
00015	function PickupFunction(Pawn Other)
00016	{
00017		local inventory inv2;
00018		if (Other.Inventory==None) Return;
00019		
00020		for( Inv2=Other.Inventory; Inv2!=None; Inv2=Inv2.Inventory ) 
00021			if (Suits(Inv2)!=None && Inv2.class!=class) Inv2.Destroy();
00022	}
00023	
00024	defaultproperties
00025	{
00026	     bDisplayableInv=True
00027	     RespawnTime=30.000000
00028	     PickupViewMesh=LodMesh'UnrealShare.Suit'
00029	     ProtectionType1=ProtectNone
00030	     ProtectionType2=ProtectNone
00031	     MaxDesireability=1.700000
00032	     Icon=Texture'UnrealShare.Icons.I_Suit'
00033	     RemoteRole=ROLE_DumbProxy
00034	     DrawType=DT_None
00035	     AmbientGlow=64
00036	     CollisionRadius=26.000000
00037	     CollisionHeight=39.000000
00038	}

End Source Code