Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UnrealShare.Suits


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
//=============================================================================
// Suits.
//=============================================================================
class Suits extends Pickup;

#exec OBJ LOAD FILE=Detail.utx

#exec TEXTURE IMPORT NAME=I_Suit FILE=Textures\HUD\i_Suit.pcx GROUP="Icons" MIPS=OFF

#exec MESH IMPORT MESH=Suit ANIVFILE=Models\bsuit_a.3d DATAFILE=Models\bsuit_d.3d X=0 Y=0 Z=0 LODSTYLE=8 MLOD=1
#exec MESH LODPARAMS MESH=Suit STRENGTH=0.5 MINVERTS=60 MORPH=0.1 ZDISP=1200.0
#exec MESH ORIGIN MESH=Suit X=0 Y=100 Z=40 YAW=64 ROLL=64
#exec MESH SEQUENCE MESH=Suit SEQ=All STARTFRAME=0  NUMFRAMES=1
#exec TEXTURE IMPORT NAME=Asuit1 FILE=Models\bsuit.pcx GROUP="Skins" DETAIL=Metal
#exec MESHMAP SCALE MESHMAP=Suit X=0.04 Y=0.04 Z=0.08
#exec MESHMAP SETTEXTURE MESHMAP=Suit NUM=1 TEXTURE=Asuit1 TLOD=10

function BeginPlay()
{
	if( Class==Class'Suits' )
		Error("Can't use Class"@string(Class)@"in level.");
	else Super.BeginPlay();
}

function PickupFunction(Pawn Other)
{
	local inventory inv2;
	if (Other.Inventory==None) Return;

	for ( Inv2=Other.Inventory; Inv2!=None; Inv2=Inv2.Inventory )
		if (Suits(Inv2)!=None && Inv2.class!=class) Inv2.Destroy();
}

defaultproperties
{
				bDisplayableInv=True
				RespawnTime=30.000000
				PickupViewMesh=LodMesh'UnrealShare.Suit'
				ProtectionType1="ProtectNone"
				ProtectionType2="ProtectNone"
				MaxDesireability=1.700000
				Icon=Texture'UnrealShare.Icons.I_Suit'
				RemoteRole=ROLE_DumbProxy
				Mesh=LodMesh'UnrealShare.Suit'
				AmbientGlow=64
				CollisionRadius=26.000000
				CollisionHeight=39.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: zo 11-11-2012 21:10:28.000 - Creation time: zo 11-11-2012 21:14:20.490 - Created with UnCodeX