Core.Object | +--Engine.Actor | +--Engine.Effects | +--UnrealShare.SmokeGenerator | +--UnrealShare.ShortSmokeGen
00001 //============================================================================= 00002 // ShortSmokeGen. 00003 //============================================================================= 00004 class ShortSmokeGen extends SmokeGenerator; 00005 00006 Auto State Active 00007 { 00008 Simulated function Timer() 00009 { 00010 local Effects d; 00011 00012 d = Spawn(GenerationType); 00013 d.DrawScale = BasePuffSize+FRand()*SizeVariance; 00014 d.RemoteRole = ROLE_None; 00015 if (SpriteSmokePuff(d)!=None) SpriteSmokePuff(d).RisingRate = RisingVelocity; 00016 i++; 00017 if (i>TotalNumPuffs && TotalNumPuffs!=0) Destroy(); 00018 } 00019 } 00020 00021 simulated function PostBeginPlay() 00022 { 00023 SetTimer(SmokeDelay+FRand()*SmokeDelay,True); 00024 Super.PostBeginPlay(); 00025 } 00026 00027 defaultproperties 00028 { 00029 SmokeDelay=0.120000 00030 BasePuffSize=1.500000 00031 TotalNumPuffs=10 00032 RisingVelocity=40.000000 00033 RemoteRole=ROLE_SimulatedProxy 00034 }