Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 |
//============================================================================= // UT_jumpBoots //============================================================================= class UT_JumpBoots extends TournamentPickup; #exec AUDIO IMPORT FILE="..\UnrealShare\Sounds\Pickups\BOOTSA1.WAV" NAME="BootSnd" GROUP="Pickups" #exec TEXTURE IMPORT NAME=I_Boots FILE=TEXTURES\HUD\i_Boots.PCX GROUP="Icons" MIPS=OFF #exec MESH IMPORT MESH=jboot ANIVFILE=MODELS\boots_a.3D DATAFILE=MODELS\boots_d.3D #exec MESH ORIGIN MESH=jboot X=0 Y=0 Z=-70 YAW=64 #exec MESH SEQUENCE MESH=jboot SEQ=All STARTFRAME=0 NUMFRAMES=1 #exec MESH SEQUENCE MESH=jboot SEQ=Still STARTFRAME=0 NUMFRAMES=1 #exec TEXTURE IMPORT NAME=Jlboot2 FILE=MODELS\boots.PCX GROUP=Skins LODSET=2 #exec MESHMAP SCALE MESHMAP=jboot X=0.045 Y=0.045 Z=0.09 #exec MESHMAP SETTEXTURE MESHMAP=jboot NUM=1 TEXTURE=Jlboot2 var int TimeCharge; function PickupFunction(Pawn Other) { TimeCharge = 0; SetTimer(1.0, True); } function ResetOwner() { local pawn P; P = Pawn(Owner); P.JumpZ = P.Default.JumpZ * Level.Game.PlayerJumpZScaling(); if ( Level.Game.IsA('DeathMatchPlus') ) P.AirControl = DeathMatchPlus(Level.Game).AirControl; else P.AirControl = P.Default.AirControl; P.bCountJumps = False; } function OwnerJumped() { if ( !Pawn(Owner).bIsWalking ) { TimeCharge=0; if ( Charge <= 0 ) { if ( Owner != None ) { Owner.PlaySound(DeActivateSound); ResetOwner(); } UsedUp(); } else Owner.PlaySound(sound'BootJmp'); Charge -= 1; } if( Inventory != None ) Inventory.OwnerJumped(); } function Timer() { if ( Charge <= 0 ) { if ( Owner != None ) { if ( Owner.Physics == PHYS_Falling ) { SetTimer(0.3, true); return; } Owner.PlaySound(DeActivateSound); ResetOwner(); } UsedUp(); return; } if ( !Pawn(Owner).bAutoActivate ) { TimeCharge++; if (TimeCharge>20) { OwnerJumped(); TimeCharge = 0; } } } state Activated { function endstate() { ResetOwner(); bActive = false; } Begin: Pawn(Owner).bCountJumps = True; Pawn(Owner).AirControl = 1.0; Pawn(Owner).JumpZ = Pawn(Owner).Default.JumpZ * 3; Owner.PlaySound(ActivateSound); } state DeActivated { Begin: } defaultproperties { ExpireMessage="The AntiGrav Boots have drained." bAutoActivate=True bActivatable=True bDisplayableInv=True PickupMessage="You picked up the AntiGrav boots." ItemName="AntiGrav Boots" RespawnTime=30.000000 PickupViewMesh=LodMesh'Botpack.jboot' Charge=3 MaxDesireability=0.500000 PickupSound=Sound'UnrealShare.Pickups.GenPickSnd' ActivateSound=Sound'Botpack.Pickups.BootSnd' Icon=Texture'UnrealI.Icons.I_Boots' RemoteRole=ROLE_DumbProxy Mesh=LodMesh'Botpack.jboot' AmbientGlow=64 CollisionRadius=22.000000 CollisionHeight=14.000000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |