# SFWeapon.SFB9WallHit

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 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 |
    //=============================================================================
    // Spatial Fear
    // Class: SFB9WallHit
    // Descripton: Custom wall hit mark, done by the B9.
    //
    // Author: Markus Nuebel
    //=============================================================================
    class SFB9WallHit extends AnimSpriteEffect;

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

    var Texture m_texAnim[2];
    var float m_fTimer;
    var float m_fStepSize;
    var bool m_bFadeIn;

    function MakeSound()
    {
    	PlaySound(EffectSound1,,12.0,,2000);
    }

    simulated function PostBeginPlay()
    {
    	if ( Level.NetMode != NM_Client )
    		MakeSound();
    	Super.PostBeginPlay();

    	// Set the starting textures
    	Texture = m_texAnim[0];
    	// Reset counter
    	m_fTimer = 0.0f;
    }

    simulated function Tick(float fDelta)
    {
    	m_fTimer += fDelta;

    	// First check in which time span we are.
    	if(m_bFadeIn)
    	{
    		if(LifeSpan/2.0f < m_fTimer)
    		{
    			// Mark the transition
    			m_bFadeIn	= false;
    			Texture		= m_texAnim[1];
    		}
    	}

    	if(m_bFadeIn)
    		DrawScale	= 0.1f + 0.4*m_fTimer;
    	else
    		DrawScale	= 0.5f - 0.4*m_fTimer ;
    }

    simulated function Timer()
    {
    }

    /*
    LightBrightness=255
    LightHue=27
    LightSaturation=71
    */

    defaultproperties
    {
         m_texAnim(0)=FireTexture'k_GorillaTex.FX.B9_Shot'
         m_texAnim(1)=FireTexture'k_GorillaTex.FX.b9fade'
         m_bFadeIn=True
         NumFrames=15
         Pause=0.050000
         EffectSound1=Sound'UnrealShare.General.Expl03'
         RemoteRole=ROLE_SimulatedProxy
         LifeSpan=1.000000
         DrawType=DT_SpriteAnimOnce
         Style=STY_Translucent
         Texture=FireTexture'k_GorillaTex.FX.B9_Shot'
         DrawScale=0.100000
         LightType=LT_TexturePaletteOnce
         LightBrightness=142
         LightHue=137
         LightSaturation=190
         LightRadius=6
         bCorona=False
    }

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