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 |
//============================================================================= // RingExplosion4. //============================================================================= class RingExplosion4 expands RingExplosion; var vector MoveAmount; var int NumPuffs; replication { // Things the server should send to the client. unreliable if( Role==ROLE_Authority ) MoveAmount, NumPuffs; } simulated function Tick( float DeltaTime ) { if ( Level.NetMode != NM_DedicatedServer ) { ScaleGlow = (Lifespan/Default.Lifespan)*1.2; AmbientGlow = ScaleGlow * 210; } } simulated function PostBeginPlay() { if ( Level.NetMode != NM_DedicatedServer ) { PlayAnim ( 'Explosion', 0.1 ); SetTimer(0.06, false); } } simulated function Timer() { local RingExplosion4 r; if (NumPuffs>0) { r = Spawn(class'RingExplosion4',, '', Location+MoveAmount); r.RemoteRole = ROLE_None; r.NumPuffs = NumPuffs -1; r.MoveAmount = MoveAmount; } } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |