It appears you have not registered with our community. To register please click here ...
def cod7maprotate(self): self.debug('COD7MAPROTATE: next map will be %s at %s' % (self._nextmap7[0], self._nextmap7[1])) # Set the playlist thus changing the gametype self.console.write('setadmindvar playlist %s' % self._cod7Playlists[self._slot_num][self._game_mode][self._nextmap7[0]]) # Build a map exclusion rule then apply it. Will exclude every map except the next one. exclusion = copy.copy (self._cod7Maps) exclusion.remove (self._nextmap7[1]) self.console.write ('setadmindvar playlist_excludeMap "%s"' % ' '.join(exclusion)) # Keep playlist_excludeGametypeMap empty, I'm in charge here! # If next map is in this dvar, server will keep not changing maps until it recieves something that's not restricted self.console.write ('setadmindvar playlist_excludeGametypeMap ""')
self.console.write('setadmindvar playlist %s' % self._cod7Playlists[self._slot_num][self._game_mode][self._nextmap7[0]])
self.console.write ('setadmindvar playlist_excludeMap "%s"' % ' '.join(exclusion))
self.console.write ('setadmindvar playlist_excludeGametypeMap ""')