def __createDropModel(self, dropModelObject, hardpoints, resourceName): variant = 'OWN' if self.__context.isPlayer else 'OTHER' effectDB = db.DBLogic.g_instance.getEffectDataVariant(Effects.getEffectId('FALLING_OUT_PART'), variant) hierarchy = [(-1, Math.Matrix())] if 'HP_hit' in hardpoints: hierarchy.append((0, hardpoints['HP_hit'])) particleList = [(1, True, effectDB['particleFile'])] else: particleList = [] matrix = BigWorld.DropMatrixProvider() matrixProviders = [(0, matrix)] modelList = [(0, True, resourceName)] self.__compoundsForLoad += 1 cid = CompoundSystem.addDynamicModel(hierarchy, matrixProviders, modelList, particleList, [], self.__onCompoundLoaded) dropModelObject.cid = cid dropModelObject.matrix = matrix