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 |
class AbilityReduceFallDamage extends RPGAbility abstract; static simulated function int Cost(RPGPlayerDataObject Data, int CurrentLevel) { if (Data.HealthBonus < 50) return 0; else return Super.Cost(Data, CurrentLevel); } static simulated function ModifyPawn(Pawn Other, int AbilityLevel) { Other.MaxFallSpeed = Other.default.MaxFallSpeed * (1.0 + 0.25 * float(AbilityLevel)); } defaultproperties { AbilityName="Iron Legs" Description="Increases the distance you can safely fall by 25% per level and reduces fall damage for distances still beyond your capacity to handle. Your Health Bonus stat must be at least 50 to purchase this ability. (Max Level: 4)" StartingCost=10 CostAddPerLevel=5 MaxLevel=4 BotChance=6 //slightly higher because it makes the bots willing to take more paths } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |