Пример #1
0
 def setVehicleAttrs(self, vehicleID, attrs):
     if not self.isSelectionStarted() or self.__playerVehicleID != vehicleID:
         return
     newFactors = getVehicleFactors(self.__vehicle)
     newFactors[_EXT_RESPAWN_BOOST] = self.__extData[_EXT_RESPAWN_BOOST]
     newAttrs = dict(attrs)
     newAttrs['circularVisionRadius'] = getCircularVisionRadius(self.__vehicle.descriptor, newFactors)
     self.__sessionProvider.shared.feedback.setVehicleAttrs(self.__playerVehicleID, newAttrs)
Пример #2
0
 def circularVisionRadius(self):
     return round(getCircularVisionRadius(self._itemDescr, self.__factors))
 def circularVisionRadius(self):
     return round(items_utils.getCircularVisionRadius(self._itemDescr, self.__factors))
Пример #4
0
 def __updateFeedbackParams(self, factors):
     feedbackCtrl = self.__sessionProvider.shared.feedback
     newAttrs = feedbackCtrl.getVehicleAttrs()
     newAttrs['circularVisionRadius'] = getCircularVisionRadius(self.__vehicle.descriptor, factors)
     feedbackCtrl.setVehicleAttrs(self.__playerVehicleID, newAttrs)