Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WaveMaxMut extends KFMutator;
- function InitMutator( string Options, out string ErrorMessage )
- {
- super.InitMutator( Options, ErrorMessage );
- if ( MyKFGI != None && MyKFGI.GameLength == GL_Long )
- {
- MyKFGI.WaveMax = 12;
- if ( MyKFGI.MyKFGRI != None )
- {
- MyKFGI.MyKFGRI.WaveMax = 255;
- }
- }
- `log("WaveMax mutator initialized");
- }
- simulated event PostBeginPlay()
- {
- super.PostBeginPlay();
- if ( WorldInfo.Game.BaseMutator == None )
- WorldInfo.Game.BaseMutator = Self;
- else WorldInfo.Game.BaseMutator.AddMutator( Self );
- }
- function AddMutator( Mutator M )
- {
- if ( M != Self )
- {
- if ( M.Class == Class )
- M.Destroy();
- else super.AddMutator( M );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement