//=============================================================================// // Map Vote Mutator v0.5 Copyright(C) 2005 Adam Mummery-Smith B.S.E. // //=============================================================================// class MapVoteMutator extends Mutator; //=============================================================================// // Class: MapVoteMutator | Date: December 2005 // //-----------------------------------------------------------------------------// // Project: Map Vote Mutator | Author: Adam Mummery-Smith // //-----------------------------------------------------------------------------// // Description: Map Vote Mutator: adds map voting funtionality to XMP // //-----------------------------------------------------------------------------// // Usage: Run on your server like any other mutator // //-----------------------------------------------------------------------------// // Note: Still very much alpha code, there is no pretty UI or anything // // like that... sorry. // //=============================================================================// simulated function PreBeginPlay() { Log("MapVote: Default Game 03 Mutator functionality loading"); class'Controller'.default.PlayerReplicationInfoClass=class'CheaterPRI'; class'PlayerController'.default.PlayerReplicationInfoClass=class'CheaterPRI'; class'U2PlayerController'.default.PlayerReplicationInfoClass=class'CheaterPRI'; class'MapVoteController'.default.PlayerReplicationInfoClass=class'CheaterPRI'; if (Role == ROLE_Authority) { if( !ClassIsChildOf(Level.Game.PlayerControllerClass, class'MapVoteController') ) Level.Game.PlayerControllerClass = class'MapVoteController'; if( !ClassIsChildOf(Level.Game.GameReplicationInfoClass, class'MapVoteGameReplicationInfo') ) Level.Game.GameReplicationInfoClass = class'MapVoteGameReplicationInfo'; Level.Game.MapListType = "BSEMapVote_0_5.ExtendedMapList"; } Super.PreBeginPlay(); } defaultproperties { FriendlyName="BSE Map Vote 0.5" Description="Allows players to vote for maps." bAlwaysRelevant=True RemoteRole=ROLE_SimulatedProxy }