def showSixthSenseIndicator(self, isShow): if isShow and SpotMessanger.isActive: player = BattleUtils.getPlayer() position = MinimapUtils.getOwnPos(player) text = SpotMessanger.myconfig['ImSpotted'] controller = SpotMessanger.getController(player) SpotMessanger.mySendMessage(controller,text.replace("{pos}", position+"")) SpotMessanger.myDoPing(controller,position) SpotMessanger.myCallHelp(controller) return oldShowSixthSenseIndicatorFromSpotMessanger(self,isShow)
def showSixthSenseIndicator(self, isShow): if isShow and SpotMessanger.isActive: player = BattleUtils.getPlayer() position = MinimapUtils.getOwnPos(player) text = SpotMessanger.myConf['ImSpotted'] controller = SpotMessanger.getController(player) SpotMessanger.mySendMessage(controller, text.replace("{pos}", position + "")) SpotMessanger.myDoPing(controller, position) SpotMessanger.myCallHelp(controller) return oldShowSixthSenseIndicatorFromSpotMessanger(self, isShow)
def myDoPing(controller,position): if controller and SpotMessanger.myconfig['DoPing']: IngameMessanger().doPing(controller,MinimapUtils.name2cell(position))
def myDoPing(controller, position): if controller and SpotMessanger.myConf['DoPing']: IngameMessanger().doPing(controller, MinimapUtils.name2cell(position))