示例#1
0
def new_cacheAppearance(base, self, vId, info, *a, **k):
    if g_config.data['enabled']:
        outfit = camouflages.prepareBattleOutfit(info.outfitCD, info.typeDescr,
                                                 vId)
        modelDesc, playerName = getModelDescInfo(vId, info.typeDescr, 'battle')
        applyModelDesc(info.typeDescr, modelDesc, outfit.modelsSet
                       or 'default', playerName)
    return base(self, vId, info, *a, **k)
示例#2
0
def new_cacheAppearance(base, self, vId, info, *a, **k):
    if g_config.data['enabled'] and getattr(info.typeDescr, 'modelDesc',
                                            None) is None:
        outfit = camouflages.prepareBattleOutfit(info.outfitCD, info.typeDescr,
                                                 vId)
        vDesc_process(vId, info.typeDescr, 'battle', outfit.modelsSet
                      or 'default')
    return base(self, vId, info, *a, **k)
示例#3
0
 def __getModels(self):
     outfit = prepareBattleOutfit(self.outfitCD, self.__vehDescr,
                                  self.vehicleID)
     style = outfit.style
     if style is None:
         return (self.__vehDescr.turret.models.exploded,
                 self.__vehDescr.gun.models.exploded)
     else:
         modelsSetParams = ModelsSetParams(style.modelsSet,
                                           ModelStates.EXPLODED, [])
         _, _, turretModel, gunModel = getPartModelsFromDesc(
             self.__vehDescr, modelsSetParams)
         return (turretModel, gunModel)
示例#4
0
 def _prepareOutfit(self, outfitCD):
     outfit = camouflages.prepareBattleOutfit(outfitCD, self.typeDescriptor,
                                              self.id)
     return outfit