Core.Object | +--Engine.Actor | +--Engine.Effects | +--UnrealShare.AnimSpriteEffect | +--Botpack.UT_SpriteSmokePuff | +--Botpack.UT_GreenGelPuff
vector
SurfaceNormal
int
numBlobs
simulated
PostBeginPlay()
Timer()
00001 //============================================================================= 00002 // ut_GreenGelPuff. 00003 //============================================================================= 00004 class UT_GreenGelPuff expands UT_SpriteSmokePuff; 00005 00006 #exec OBJ LOAD FILE=textures\Goopex.utx PACKAGE=Botpack.GoopEx 00007 00008 var int numBlobs; 00009 var vector SurfaceNormal; 00010 00011 replication 00012 { 00013 unreliable if( Role==ROLE_Authority ) 00014 numBlobs, SurfaceNormal; 00015 } 00016 00017 simulated function PostBeginPlay() 00018 { 00019 Super.PostBeginPlay(); 00020 SetTimer(0.01, false); 00021 } 00022 00023 simulated function Timer() 00024 { 00025 Local GreenBlob GB; 00026 local int j; 00027 00028 if ( (Level.NetMode != NM_DedicatedServer) && (numBlobs > 0) && Level.bHighDetailMode && !Level.bDropDetail ) 00029 { 00030 numBlobs = FMin(numBlobs, 5); 00031 for (j=0; j<numBlobs; j++) 00032 { 00033 GB = Spawn(class'GreenBlob',,,Location+SurfaceNormal*(FRand()*8-4)); 00034 if (GB != None) 00035 { 00036 GB.SetUp(SurfaceNormal); 00037 GB.RemoteRole = ROLE_None; 00038 } 00039 } 00040 } 00041 } 00042 00043 defaultproperties 00044 { 00045 numBlobs=3 00046 SSprites(0)=Texture'Botpack.GoopEx.g1r_a00' 00047 SSprites(1)=Texture'Botpack.GoopEx.g2r_a00' 00048 SSprites(2)=Texture'Botpack.GoopEx.g3r_a00' 00049 SSprites(3)=None 00050 RisingRate=20.000000 00051 NumSets=3 00052 Pause=0.070000 00053 LifeSpan=1.000000 00054 Texture=Texture'Botpack.GoopEx.g1r_a00' 00055 DrawScale=1.400000 00056 }