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