def __init__(self): BigWorld.Entity.__init__(self) FlockLike.__init__(self) CallbackDelayer.__init__(self) self.flightAngleMin = math.radians(self.flightAngleMin) self.flightAngleMax = math.radians(self.flightAngleMax) self.__isTriggered = False self.__models = []
def onLeaveWorld(self): self.models = [] if self.__checkTriggerCallbackId is not None: BigWorld.cancelCallback(self.__checkTriggerCallbackId) self.__checkTriggerCallbackId = None if self.__respawnCallbackId is not None: BigWorld.cancelCallback(self.__respawnCallbackId) self.__respawnCallbackId = None FlockLike.destroy(self)
def onLeaveWorld(self): self.models = [] if self.__checkTriggerCallbackId is not None: BigWorld.cancelCallback(self.__checkTriggerCallbackId) self.__checkTriggerCallbackId = None if self.__respawnCallbackId is not None: BigWorld.cancelCallback(self.__respawnCallbackId) self.__respawnCallbackId = None FlockLike.destroy(self) return
def __init__(self): BigWorld.Entity.__init__(self) FlockLike.__init__(self) CallbackDelayer.__init__(self) self.flightAngleMin = math.radians(self.flightAngleMin) self.flightAngleMax = math.radians(self.flightAngleMax) if self.flightAngleMin < 0: self.flightAngleMin += math.ceil(abs(self.flightAngleMin) / (math.pi * 2)) * math.pi * 2 elif self.flightAngleMin > math.pi * 2: self.flightAngleMin -= math.floor(self.flightAngleMin / (math.pi * 2)) * math.pi * 2 self.__isTriggered = False
def __init__(self): BigWorld.Entity.__init__(self) FlockLike.__init__(self) self.__checkTriggerCallbackId = None self.__respawnCallbackId = None self.__motors = [] self.flightAngleMin = math.radians(self.flightAngleMin) self.flightAngleMax = math.radians(self.flightAngleMax) if self.flightAngleMin < 0: self.flightAngleMin += math.ceil(abs(self.flightAngleMin) / (math.pi * 2)) * math.pi * 2 elif self.flightAngleMin > math.pi * 2: self.flightAngleMin -= math.floor(self.flightAngleMin / (math.pi * 2)) * math.pi * 2
def __init__(self): BigWorld.Entity.__init__(self) FlockLike.__init__(self) CallbackDelayer.__init__(self) self.flightAngleMin = math.radians(self.flightAngleMin) self.flightAngleMax = math.radians(self.flightAngleMax) if self.flightAngleMax < self.flightAngleMin: self.flightAngleMax, self.flightAngleMin = self.flightAngleMin, self.flightAngleMax if self.flightAngleMax - self.flightAngleMin > _MATH_2PI: LOG_ERROR( 'flightAngleMax or flightAngleMin have incorrect values: arc greater than 2*pi' ) self.__isTriggered = False self.__models = []
def __init__(self): BigWorld.Entity.__init__(self) FlockLike.__init__(self) self.__checkTriggerCallbackId = None self.__respawnCallbackId = None self.__motors = [] self.flightAngleMin = math.radians(self.flightAngleMin) self.flightAngleMax = math.radians(self.flightAngleMax) if self.flightAngleMin < 0: self.flightAngleMin += math.ceil( abs(self.flightAngleMin) / (math.pi * 2)) * math.pi * 2 elif self.flightAngleMin > math.pi * 2: self.flightAngleMin -= math.floor(self.flightAngleMin / (math.pi * 2)) * math.pi * 2 return
def onLeaveWorld(self): self.__models = [] self.models = [] FlockLike.destroy(self) CallbackDelayer.destroy(self)
def onLeaveWorld(self): self.__removeModels() FlockLike.destroy(self) self.__models = [] self.models = [] CallbackDelayer.destroy(self)