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

UTGame.UTMutator_SuperBerserk


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
// Copyright 1998-2008 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"
   Begin Object Class=SpriteComponent Name=Sprite ObjName=Sprite Archetype=SpriteComponent'UTGame.Default__UTMutator:Sprite'
      ObjectArchetype=SpriteComponent'UTGame.Default__UTMutator:Sprite'
   End Object
   Components(0)=Sprite
   Name="Default__UTMutator_SuperBerserk"
   ObjectArchetype=UTMutator'UTGame.Default__UTMutator'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: tr 31-1-2018 17:18:40.000 - Creation time: sk 18-3-2018 10:01:22.939 - Created with UnCodeX