Core.Object | +--Engine.Actor | +--Engine.Effects | +--Botpack.UT_RingExplosion
bool
bExtraEffectsSpawned
simulated
PostBeginPlay()
SpawnEffects()
SpawnExtraEffects()
Tick(float DeltaTime)
00001 //============================================================================= 00002 // ut_Ringexplosion. 00003 //============================================================================= 00004 class UT_RingExplosion extends Effects; 00005 00006 #exec MESH IMPORT MESH=UTRingex ANIVFILE=..\botpack\MODELS\Ring_a.3D DATAFILE=..\botpack\MODELS\Ring_d.3D ZEROTEX=1 LODSTYLE=8 00007 #exec MESH ORIGIN MESH=UTRingex X=0 Y=0 Z=0 YAW=0 PITCH=64 00008 #exec MESH SEQUENCE MESH=UTRingex SEQ=All STARTFRAME=0 NUMFRAMES=9 00009 #exec MESH SEQUENCE MESH=UTRingex SEQ=Explo STARTFRAME=0 NUMFRAMES=9 00010 #exec TEXTURE IMPORT NAME=ASaRing FILE=..\botpack\models\ring2.pcx GROUP=Effects 00011 #exec MESHMAP SCALE MESHMAP=UTRingex X=0.4 Y=0.4 Z=0.8 YAW=128 00012 #exec MESHMAP SETTEXTURE MESHMAP=UTRingex NUM=0 TEXTURE=ASaRing 00013 00014 var bool bExtraEffectsSpawned; 00015 00016 simulated function Tick( float DeltaTime ) 00017 { 00018 if ( Level.NetMode != NM_DedicatedServer ) 00019 { 00020 if ( !bExtraEffectsSpawned ) 00021 SpawnExtraEffects(); 00022 ScaleGlow = (Lifespan/Default.Lifespan)*0.7; 00023 AmbientGlow = ScaleGlow * 255; 00024 } 00025 } 00026 00027 simulated function PostBeginPlay() 00028 { 00029 if ( Level.NetMode != NM_DedicatedServer ) 00030 { 00031 PlayAnim( 'Explo', 0.35, 0.0 ); 00032 SpawnEffects(); 00033 } 00034 if ( Instigator != None ) 00035 MakeNoise(0.5); 00036 } 00037 00038 simulated function SpawnEffects() 00039 { 00040 Spawn(class'shockexplo'); 00041 } 00042 00043 simulated function SpawnExtraEffects() 00044 { 00045 bExtraEffectsSpawned = true; 00046 } 00047 00048 defaultproperties 00049 { 00050 bExtraEffectsSpawned=True 00051 RemoteRole=ROLE_SimulatedProxy 00052 LifeSpan=0.800000 00053 AnimSequence=Explo 00054 DrawType=DT_Mesh 00055 Style=STY_None 00056 Mesh=LodMesh'Botpack.UTRingex' 00057 DrawScale=0.700000 00058 ScaleGlow=1.100000 00059 AmbientGlow=255 00060 bUnlit=True 00061 }