# SFWeapon.SFRingExplosion1

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 00063 00064 |
    //=============================================================================
    // Spatial Fear
    // Class: SFRingExplosion1
    // Descripton: Impact effect caused by the RapidEddy.
    //
    // Author: Markus Nuebel
    //=============================================================================
    class SFRingExplosion1 extends SFEffects;

    #exec OBJ LOAD FILE=k_GorillaTex.utx PACKAGE=k_GorillaTex GROUP=FX

    var int numwaits;

    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  ( 'Explo', 0.1 );
    		SetTimer(0.06, false);
    	}

    }

    simulated function Timer()
    {
    	local SFRingExplosion1 r;

    	//log(self$" timer "$Level.TimeSeconds$" role "$Role$" Location "$Location$" rot "$Rotation$" numpuffs "$numpuffs);

    	//log("self lifespan "$lifespan);

    	if (NumPuffs>0)
    	{
    		r = Spawn(class'SFRingExplosion1',,,Location+MoveAmount);
    		r.RemoteRole = ROLE_None;
    		r.NumPuffs = NumPuffs -1;
    		r.MoveAmount = MoveAmount;
    	}
    }

    defaultproperties
    {
         RemoteRole=ROLE_SimulatedProxy
         LifeSpan=0.400000
         DrawType=DT_Mesh
         Style=STY_Translucent
         Texture=Texture'k_GorillaTex.FX.HWExpRing'
         Mesh=LodMesh'Botpack.UTRingex'
         DrawScale=0.200000
         MultiSkins(0)=Texture'k_GorillaTex.FX.HWExpRing'
         MultiSkins(1)=Texture'k_GorillaTex.FX.HWExpRing'
    }

class file time: 12/7/2003 3:58:26 PM - creation time: 12/7/2003 4:03:45 PM
Created with UnCodeX