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

Botpack.EnhancedRespawn


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
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
//=============================================================================
// EnhancedRespawn.
//=============================================================================
class EnhancedRespawn expands Effects;

#exec AUDIO IMPORT FILE="Sounds\Pickups\item-respawn2.WAV" NAME="RespawnSound2" GROUP="Generic"

#exec MESH IMPORT MESH=TeleEffect2 ANIVFILE=MODELS\telepo_a.3D DATAFILE=MODELS\telepo_d.3D X=0 Y=0 Z=0
#exec MESH ORIGIN MESH=TeleEffect2 X=0 Y=0 Z=-200 YAW=0
#exec MESH SEQUENCE MESH=TeleEffect2 SEQ=All  STARTFRAME=0  NUMFRAMES=30
#exec MESH SEQUENCE MESH=TeleEffect2  SEQ=Burst  STARTFRAME=0  NUMFRAMES=30
#exec MESHMAP SCALE MESHMAP=TeleEffect2 X=0.03 Y=0.03 Z=0.06
#exec MESHMAP SETTEXTURE MESHMAP=TeleEffect2 NUM=0 TEXTURE=DefaultTexture

simulated function BeginPlay()
{
    Super.BeginPlay();
    Playsound(EffectSound1);
    PlayAnim('All',0.8);
}

simulated function PostBeginPlay()
{
    local inventory Inv;

    Super.PostBeginPlay();
    if ( Level.bDropDetail )
        LightType = LT_None;
    Playsound(EffectSound1);
    if ( Owner != None )
    {
        Inv = Inventory(Owner);
        if ( Inv != None )
        {
            if ( Inv.PickupViewScale == 1.0 )
                Mesh = Inv.PickUpViewMesh;
            else
                Mesh = Owner.Mesh;
            if ( Inv.RespawnTime < 15 )
                LifeSpan = 0.5;
        }
        else
            Mesh = Owner.Mesh;
        Animframe = Owner.Animframe;
        Animsequence = Owner.Animsequence;
    }
}

auto state Explode
{
    simulated function Tick( float DeltaTime )
    {
        if ( Owner != None )
        {
            if ( Owner.LatentFloat > 1 ) //got picked up and put back to sleep
            {
                Destroy();
                Return;
            } 
            SetRotation(Owner.Rotation);
        }
        if ( Level.bDropDetail )
            LifeSpan -= DeltaTime;
        ScaleGlow = (Lifespan/Default.Lifespan);    
        LightBrightness = ScaleGlow*210.0;
        DrawScale = 0.03 + 0.77 * ScaleGlow;
    }

    simulated function AnimEnd()
    {
        RemoteRole = ROLE_None;
        Destroy();
    }
}

defaultproperties
{
     EffectSound1=Sound'Botpack.Generic.RespawnSound2'
     bNetOptional=True
     RemoteRole=ROLE_SimulatedProxy
     LifeSpan=1.500000
     AnimSequence=All
     DrawType=DT_Mesh
     Style=STY_Translucent
     Texture=Texture'UnrealShare.DBEffect.de_A00'
     Skin=Texture'UnrealShare.DBEffect.de_A00'
     Mesh=LodMesh'UnrealShare.TeleEffect2'
     DrawScale=1.100000
     AmbientGlow=255
     bUnlit=True
     bParticles=True
     bMeshEnviroMap=True
     LightType=LT_Steady
     LightEffect=LE_NonIncidence
     LightBrightness=210
     LightHue=30
     LightSaturation=224
     LightRadius=6
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Do 19.5.2005 19:42:14.000 - Creation time: Fr 7.6.2013 13:15:41.107 - Created with UnCodeX