Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UnrealShare.LightWallHitEffect


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
//=============================================================================
// LightWallHitEffect.
//=============================================================================
class LightWallHitEffect expands WallHitEffect;

simulated function SpawnEffects()
{
    local Actor A;
    local float decision;

    decision = FRand();
    if (decision<0.2) 
        PlaySound(sound'ricochet',, 1,,1200, 0.5+FRand());      
    else if ( decision < 0.4 )
        PlaySound(sound'Impact1',, 3.0,,800);
    else if ( decision < 0.6 )
        PlaySound(sound'Impact2',, 3.0,,800);

    if (FRand()< 0.2) 
    {
        A = spawn(class'Chip');
        if ( A != None )
            A.RemoteRole = ROLE_None;
    }
    if (FRand()< 0.2)
    {
        A = spawn(class'SmallSpark',,,,Rotation + RotRand());
        if ( A != None )
            A.RemoteRole = ROLE_None;
    }
}

defaultproperties
{
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sun 21/2/2010 23:48:40.000 - Creation time: Sun 21/2/2010 23:49:52.273 - Created with UnCodeX