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 |
// Copyright 1998-2011 Epic Games, Inc. All Rights Reserved. class UTMutator_SuperBerserk extends UTMutator; /* called by GameInfo.RestartPlayer() change the players jumpz, etc. here */ function ModifyPlayer(Pawn Other) { local UTPawn P; //@todo: we used to just give the Berserk powerup here, so then it would be limited time unless you killed people, // plus there were lots of powerups falling everywhere, which was cool // but we can't afford the Berserk being in memory all the time on console // maybe still do it on PC though? //P.CreateInventory(class'UTGame.UTBerserk'); P = UTPawn(Other); if (P != None) { P.FireRateMultiplier *= 0.5; } Super.ModifyPlayer(Other); } /** * Max out UTWeapon ammo */ function bool CheckReplacement(Actor Other) { local UTWeapon W; W = UTWeapon(Other); if ( (W != None) && !W.bSuperWeapon ) { W.Loaded(true); } return true; } defaultproperties { GroupNames[0]="FIRINGSPEED" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |