Botpack
Class InstantRockets

source: e:\games\UnrealTournament\Botpack\Classes\InstantRockets.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Info
         |
         +--Engine.Mutator
            |
            +--Botpack.InstantRockets
Direct Known Subclasses:None

class InstantRockets
extends Engine.Mutator

//============================================================================= // InstantRockets. // rocket launchers always instant fire //=============================================================================

Function Summary
 bool AlwaysKeep(Actor Other)
 bool CheckReplacement(Actor Other, out byte)



Source Code


00001	//=============================================================================
00002	// InstantRockets.
00003	// rocket launchers always instant fire
00004	//=============================================================================
00005	
00006	class InstantRockets expands Mutator;
00007	
00008	function bool AlwaysKeep(Actor Other)
00009	{
00010		if ( Other.IsA('UT_Eightball') )
00011			UT_Eightball(Other).bAlwaysInstant = true;
00012		if ( NextMutator != None )
00013			return ( NextMutator.AlwaysKeep(Other) );
00014		return false;
00015	}
00016	
00017	function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
00018	{
00019		if ( Other.IsA('UT_Eightball') )
00020			UT_Eightball(Other).bAlwaysInstant = true;
00021		return true; 
00022	}
00023	
00024	defaultproperties
00025	{
00026	}

End Source Code