Core.Object | +--Engine.Actor | +--Engine.Decal | +--Botpack.Scorch | +--Botpack.Pock
Texture
PockTex[3]
simulated
AttachToSurface()
PostBeginPlay()
00001 //============================================================================= 00002 // pock. 00003 //============================================================================= 00004 class Pock expands Scorch; 00005 00006 #exec TEXTURE IMPORT NAME=pock0_t FILE=TEXTURES\DECALS\pock0_t.PCX LODSET=2 00007 #exec TEXTURE IMPORT NAME=pock2_t FILE=TEXTURES\DECALS\pock2_t.PCX LODSET=2 00008 #exec TEXTURE IMPORT NAME=pock4_t FILE=TEXTURES\DECALS\pock4_t.PCX LODSET=2 00009 00010 var() texture PockTex[3]; 00011 00012 simulated function PostBeginPlay() 00013 { 00014 if ( Level.bDropDetail ) 00015 Texture = PockTex[0]; 00016 else 00017 Texture = PockTex[Rand(3)]; 00018 00019 Super.PostBeginPlay(); 00020 } 00021 00022 simulated function AttachToSurface() 00023 { 00024 bAttached = AttachDecal(100, vect(0,0,1)) != None; 00025 } 00026 00027 defaultproperties 00028 { 00029 PockTex(0)=Texture'Botpack.pock0_t' 00030 PockTex(1)=Texture'Botpack.pock2_t' 00031 PockTex(2)=Texture'Botpack.pock4_t' 00032 bImportant=False 00033 MultiDecalLevel=0 00034 DrawScale=0.190000 00035 }