Core.Object | +--Engine.Actor | +--Engine.Decoration | +--UnrealShare.BubbleGenerator
float
NumBubbles
int
i
void
UnTouch(Actor Other)
Touch(Actor Other)
Trigger(Actor Other, Pawn EventInstigator)
Timer()
00001 //============================================================================= 00002 // BubbleGenerator. 00003 //============================================================================= 00004 class BubbleGenerator extends Decoration; 00005 00006 #exec Texture Import File=models\bubble1.pcx Name=S_bubble1 Mips=Off Flags=2 00007 00008 00009 var() float NumBubbles; 00010 var int i; 00011 00012 Auto state Active 00013 { 00014 00015 function Timer() 00016 { 00017 local vector X,Y,Z; 00018 00019 i++; 00020 if (i>NumBubbles) UnTouch(None); 00021 Spawn(class'Bubble'); 00022 00023 SetTimer(FRand()*2.0+2.0,False); 00024 } 00025 00026 function Trigger( actor Other, pawn EventInstigator ) 00027 { 00028 SetTimer(0.3,False); 00029 i=0; 00030 } 00031 00032 function Touch( actor Other) 00033 { 00034 SetTimer(0.3,False); 00035 i=0; 00036 } 00037 00038 function UnTouch( actor Other) 00039 { 00040 SetTimer(0.0, False); 00041 } 00042 00043 00044 Begin: 00045 bHidden = True; 00046 } 00047 00048 defaultproperties 00049 { 00050 NumBubbles=15.000000 00051 bStatic=False 00052 Texture=Texture'UnrealShare.S_bubble1' 00053 DrawScale=0.500000 00054 CollisionRadius=64.000000 00055 CollisionHeight=64.000000 00056 bCollideActors=True 00057 }