Exemple #1
0
 def requestCredentials(self, reset = 0):
     provider = self.provider()
     actionID = _ACTIONS.GET_VOIP_CREDENTIALS
     if reset:
         provider.clearActionCoolDown(actionID)
     success, reqID = provider.doAction(actionID, messageArgs(int32Arg1=reset), True)
     if reqID:
         self.pushRq(reqID, actionID)
     if success:
         provider.setActionCoolDown(actionID, _LIMITS.VOIP_CREDENTIALS_REQUEST_COOLDOWN_SEC)
Exemple #2
0
 def requestCredentials(self, reset = 0):
     provider = self.provider()
     actionID = _ACTIONS.GET_VOIP_CREDENTIALS
     if reset:
         provider.clearActionCoolDown(actionID)
     success, reqID = provider.doAction(actionID, messageArgs(int32Arg1=reset), True)
     if reqID:
         self.pushRq(reqID, actionID)
     if success:
         provider.setActionCoolDown(actionID, _LIMITS.VOIP_CREDENTIALS_REQUEST_COOLDOWN_SEC)
Exemple #3
0
 def __onVehicleKilled(self, victimID, *args):
     provider = self.provider()
     if victimID in self.__targetIDs:
         self.__targetIDs.remove(victimID)
         for actionID in self.__factory.getEnemyTargetCommandsIDs():
             provider.clearActionCoolDown(actionID)
Exemple #4
0
 def __onVehicleKilled(self, victimID, *args):
     provider = self.provider()
     if victimID in self.__targetIDs:
         self.__targetIDs.remove(victimID)
         for actionID in self.__factory.getEnemyTargetCommandsIDs():
             provider.clearActionCoolDown(actionID)