Overview | Package | Class | Source | Class tree | Glossary | Deus Ex 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 |
//============================================================================= // AugSpeed. //============================================================================= class AugSpeed extends Augmentation; var float mpAugValue; var float mpEnergyDrain; state Active { Begin: Player.GroundSpeed *= LevelValues[CurrentLevel]; Player.JumpZ *= LevelValues[CurrentLevel]; if ( Level.NetMode != NM_Standalone ) { if ( Human(Player) != None ) Human(Player).UpdateAnimRate( LevelValues[CurrentLevel] ); } } function Deactivate() { Super.Deactivate(); if (( Level.NetMode != NM_Standalone ) && Player.IsA('Human') ) Player.GroundSpeed = Human(Player).Default.mpGroundSpeed; else Player.GroundSpeed = Player.Default.GroundSpeed; Player.JumpZ = Player.Default.JumpZ; if ( Level.NetMode != NM_Standalone ) { if ( Human(Player) != None ) Human(Player).UpdateAnimRate( -1.0 ); } } simulated function PreBeginPlay() { Super.PreBeginPlay(); // If this is a netgame, then override defaults if ( Level.NetMode != NM_StandAlone ) { LevelValues[3] = mpAugValue; EnergyRate = mpEnergyDrain; AugmentationLocation = LOC_Torso; } } defaultproperties { mpAugValue=2.000000 mpEnergyDrain=180.000000 EnergyRate=40.000000 Icon=Texture'DeusExUI.UserInterface.AugIconSpeedJump' smallIcon=Texture'DeusExUI.UserInterface.AugIconSpeedJump_Small' AugmentationName="Speed Enhancement" Description="Ionic polymeric gel myofibrils are woven into the leg muscles, increasing the speed at which an agent can run and climb, the height they can jump, and reducing the damage they receive from falls.|n|nTECH ONE: Speed and jumping are increased slightly, while falling damage is reduced.|n|nTECH TWO: Speed and jumping are increased moderately, while falling damage is further reduced.|n|nTECH THREE: Speed and jumping are increased significantly, while falling damage is substantially reduced.|n|nTECH FOUR: An agent can run like the wind and leap from the tallest building." MPInfo="When active, you move twice as fast and jump twice as high. Energy Drain: Very High" LevelValues(0)=1.200000 LevelValues(1)=1.400000 LevelValues(2)=1.600000 LevelValues(3)=1.800000 AugmentationLocation=LOC_Leg MPConflictSlot=5 } |
Overview | Package | Class | Source | Class tree | Glossary | Deus Ex UnrealScript Documentation |
previous class next class | frames no frames |