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

UnrealShare.BigBioGel


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
//=============================================================================
// BigBioGel.
//=============================================================================
class BigBioGel expands BioGel;

function DropDrip()
{
    local BioGel Gel;

    PlaySound(SpawnSound);      // Dripping Sound
    Gel = Spawn(class'BioDrop', Pawn(Owner),,Location-Vect(0,0,1)*10);
    Gel.DrawScale = DrawScale * 0.5;    
}


auto state Flying
{
    simulated function HitWall( vector HitNormal, actor Wall )
    {
        SetPhysics(PHYS_None);      
        MakeNoise(0.6); 
        bOnGround = True;
        PlaySound(ImpactSound); 
        SetWall(HitNormal, Wall);
        DrawScale=DrawScale*1.4;
        GoToState('OnSurface');
    }

    function BeginState()
    {   
        local Vector viewDir;
        
        viewDir = vector(Rotation); 
        Velocity = (Speed + (viewDir dot Instigator.Velocity)) * viewDir;
        Velocity.z += 120;
        RandSpin(100000);
        LoopAnim('Flying',0.4);
        bOnGround=False;
        PlaySound(SpawnSound);
        if( Region.zone.bWaterZone )
            Velocity=Velocity*0.7;
    }
}

state OnSurface
{
    function BeginState()
    {
        wallTime = DrawScale*5+2;
        
        if ( Mover(Base) != None )
        {
            BaseOffset = VSize(Location - Base.Location);
            SetTimer(0.2, true);
        }
        else 
            SetTimer(wallTime, false);
    }
}

defaultproperties
{
     speed=700.000000
     Damage=75.000000
     MomentumTransfer=30000
     RemoteRole=ROLE_DumbProxy
     LifeSpan=25.000000
     CollisionRadius=3.000000
     CollisionHeight=4.000000
}

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:51.165 - Created with UnCodeX