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

UnrealI.JumpBoots


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
//=============================================================================
// JumpBoots
//=============================================================================
class JumpBoots extends Pickup;

#exec AUDIO IMPORT FILE="..\UnrealShare\Sounds\Pickups\BOOTSA1.WAV" NAME="BootSnd" GROUP="Pickups"
#exec AUDIO IMPORT FILE="..\UnrealShare\Sounds\Pickups\BOOTJMP.WAV" NAME="BootJmp" GROUP="Pickups"

#exec TEXTURE IMPORT NAME=I_Boots FILE=TEXTURES\HUD\i_Boots.PCX GROUP="Icons" MIPS=OFF

#exec MESH IMPORT MESH=lboot ANIVFILE=MODELS\boot_a.3D DATAFILE=MODELS\boot_d.3D X=0 Y=0 Z=0
#exec MESH LODPARAMS MESH=lboot STRENGTH=0.3 

#exec MESH ORIGIN MESH=lboot X=-70 Y=150 Z=-50 YAW=64
#exec MESH SEQUENCE MESH=lboot SEQ=All    STARTFRAME=0   NUMFRAMES=1
#exec MESH SEQUENCE MESH=lboot SEQ=Still  STARTFRAME=0   NUMFRAMES=1
#exec TEXTURE IMPORT NAME=Jlboot1 FILE=MODELS\boot.PCX GROUP=Skins
#exec MESHMAP SCALE MESHMAP=lboot X=0.03 Y=0.03 Z=0.06
#exec MESHMAP SETTEXTURE MESHMAP=lboot NUM=1 TEXTURE=Jlboot1 TLOD=5

var int TimeCharge;

function PickupFunction(Pawn Other)
{
    TimeCharge = 0;
    SetTimer(1.0, True);
}

function OwnerJumped()
{
    TimeCharge=0;
    if ( Charge <= 0 ) 
    {
        if ( Owner != None )
        {
            Owner.PlaySound(DeActivateSound);                       
            Pawn(Owner).JumpZ = Pawn(Owner).Default.JumpZ * Level.Game.PlayerJumpZScaling();    
        }       
        UsedUp();
    }
    else
        Owner.PlaySound(sound'BootJmp');                        
    Charge -= 1;
}

function Timer()
{
    if ( !Pawn(Owner).bAutoActivate )
    {   
        TimeCharge++;
        if (TimeCharge>20) OwnerJumped();
    }
}

state Activated
{
    function endstate()
    {
        Pawn(Owner).JumpZ = Pawn(Owner).Default.JumpZ * Level.Game.PlayerJumpZScaling();
        Pawn(Owner).bCountJumps = False;
        bActive = false;        
    }
Begin:
    Pawn(Owner).bCountJumps = True;
    Pawn(Owner).JumpZ = Pawn(Owner).Default.JumpZ * 3;
    Owner.PlaySound(ActivateSound);     
}

state DeActivated
{
Begin:      
}

defaultproperties
{
     ExpireMessage="The Jump Boots have drained"
     bActivatable=True
     bDisplayableInv=True
     PickupMessage="You picked up the jump boots"
     RespawnTime=30.000000
     PickupViewMesh=LodMesh'UnrealI.lboot'
     Charge=3
     MaxDesireability=0.500000
     PickupSound=Sound'UnrealShare.Pickups.GenPickSnd'
     ActivateSound=Sound'UnrealI.Pickups.BootSnd'
     Icon=Texture'UnrealI.Icons.I_Boots'
     RemoteRole=ROLE_DumbProxy
     Mesh=LodMesh'UnrealI.lboot'
     AmbientGlow=64
     CollisionRadius=22.000000
     CollisionHeight=7.000000
}

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