Example #1
0
def deinit():
    bf2.triggerManager.destroyAllTriggers()
    global g_controlPoints
    g_controlPoints = []
    host.unregisterGameStatusHandler(onGameStatusChanged)
    if g_debug:
        print "gpm_cq.py uninitialized"
Example #2
0
def deinit():
    bf2.triggerManager.destroyAllTriggers()
    global g_plugin
    global g_controlPoints
    g_controlPoints = []
    host.unregisterGameStatusHandler(onGameStatusChanged)
    if g_debug: print "gpm_cq.py uninitialized"
    if g_plugin: g_plugin.bf2_deinit()
Example #3
0
    def shutdown(self):
        """Shutdown and stop processing."""

        # Unregister game handlers and do any other
        # other actions to ensure your module no longer affects
        # the game in anyway
        host.unregisterGameStatusHandler(self.onGameStatusChanged)

        # Flag as shutdown as there is currently way to do this
        self.__state = 2
    def shutdown(self):
        """Shutdown and stop processing."""

        # Unregister our game handlers
        host.unregisterGameStatusHandler(self.onGameStatusChanged)

        if self.updateTimer:
            self.updateTimer.destroy()
            self.updateTimer = None

        # Flag as shutdown as there is currently way to do this
        self.__state = 2
Example #5
0
	def shutdown( self ):
		"""Shutdown and stop processing."""

		# Unregister our game handlers
		host.unregisterGameStatusHandler( self.onGameStatusChanged )

		if self.updateTimer:
			self.updateTimer.destroy()
			self.updateTimer = None

		# Flag as shutdown as there is currently way to do this
		self.__state = 2
Example #6
0
	def shutdown( self ):
		"""Shutdown the Module manager and all modules."""
		self.info( 'ModManager shutting down' )

		# Save the config if required
		if self.autoSave:
			self.__saveConfig()

		shutdown = 0
		for module_name in self.__modules:
			shutdown += self.__shutdownModule( module_name )
		self.info( "%d modules shutdown" % shutdown )

		host.unregisterGameStatusHandler( self.onGameStatusChanged )
Example #7
0
	def shutdown( self ):
		"""Shutdown and stop processing."""

		# Unregister game handlers and do any other
		# other actions to ensure your module no longer affects
		# the game in anyway

		# Unregister our game handlers
		host.unregisterGameStatusHandler( self.onGameStatusChanged )
		self.mm.unregisterRconCmdHandler( 'bm' )

		# Flag as shutdown as there is currently way to:
		# host.unregisterHandler
		self.__state = 2
Example #8
0
    def shutdown(self):
        """Shutdown and stop processing."""

        # destroy our timers
        self.__checkTimer.destroy()
        self.__checkTimer = None

        # Clear players
        for player in bf2.playerManager.getPlayers():
            del player.mmKickerInfo

        # Unregister our handlers
        host.unregisterGameStatusHandler(self.onGameStatusChanged)
        self.mm.unregisterRconCmdHandler('kicker')

        # Unregister our game handlers
        # Flag as shutdown as there is currently way to do this
        self.__state = 2
Example #9
0
	def shutdown( self ):
		"""Shutdown and stop processing."""

		# destroy our timers
		self.__checkTimer.destroy()
		self.__checkTimer = None

		# Clear players
		for player in bf2.playerManager.getPlayers():
			del player.mmKickerInfo

		# Unregister our handlers
		host.unregisterGameStatusHandler( self.onGameStatusChanged )
		self.mm.unregisterRconCmdHandler( 'kicker' )

		# Unregister our game handlers
		# Flag as shutdown as there is currently way to do this
		self.__state = 2
 def shutdown(self):
     host.unregisterGameStatusHandler(self.onGameStatusChanged)
     self._state = 2
Example #11
0
def deinit():
    host.unregisterGameStatusHandler(onGameStatusChanged)
Example #12
0
def deinit():
    host.unregisterGameStatusHandler(onGameStatusChanged)
Example #13
0
 def shutdown( self ):
     host.unregisterGameStatusHandler(self.onGameStatusChanged)
     self._state = 2
Example #14
0
def deinit():
    global g_squad_monitor_enabled

    g_squad_monitor_enabled = False
    destroySquadCheckTimer()
    host.unregisterGameStatusHandler(onGameStatusChanged)
Example #15
0
 def shutdown(self):
     """Shutdown and stop processing."""
     host.unregisterGameStatusHandler(self.onGameStatusChanged)
     self.__state = 2
Example #16
0
    def shutdown(self):
        self.Debug("shutdown")
        host.unregisterHandler(self.onPlayerSpawn)
        host.unregisterGameStatusHandler(self.onGameStatusChanged)

        self.__state = 2