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

UT2004RPG.AbilityJumpZ


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
class AbilityJumpZ extends RPGAbility
    abstract;

static simulated function int Cost(RPGPlayerDataObject Data, int CurrentLevel)
{
    if (Data.Level < 10 * (CurrentLevel + 1))
        return 0;
    else
        return Super.Cost(Data, CurrentLevel);
}

static simulated function ModifyPawn(Pawn Other, int AbilityLevel)
{
    Other.JumpZ = Other.default.JumpZ * (1.0 + 0.1 * float(AbilityLevel));
}

defaultproperties
{
    AbilityName="Power Jump"
    Description="Increases your jumping height by 10% per level. The Speed adrenaline combo will stack with this effect. You must be a Level equal to ten times the ability level you wish to have before you can purchase it. (Max Level: 3)"
    StartingCost=15
    CostAddPerLevel=5
    MaxLevel=3
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mon 24/7/2006 19:49:20.000 - Creation time: Wed 7/2/2007 19:16:32.093 - Created with UnCodeX