예제 #1
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _CTFCheckPoint.__init__(self, self._RADIUS_MODEL_NAME)
     _CTFPointFlag.__init__(self, self._FLAG_MODEL_NAME, self.position)
     LOG_DEBUG('RepairPoint ', self.position, self.radius)
     if self.__isVisibleForCurrentArena():
         self._createTerrainSelectedArea(self.position, self.radius * 2.0, self._OVER_TERRAIN_HEIGHT, self._COLOR)
         self._createFlag()
예제 #2
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _CTFCheckPoint.__init__(self, self._RADIUS_MODEL_NAME)
     _CTFPointFlag.__init__(self, self._FLAG_MODEL_NAME, self.position)
     LOG_DEBUG('RepairPoint ', self.position, self.radius)
     if self.__isVisibleForCurrentArena():
         self._createTerrainSelectedArea(self.position, self.radius * 2.0, self._OVER_TERRAIN_HEIGHT, self._COLOR)
         self._createFlag()
예제 #3
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     LOG_DEBUG('ResourcePoint ', self.guid, self.position, self.radius, self.team)
     self.__isVisible = self.__isVisibleForCurrentArena()
     if not self.__isVisible:
         return
     _CTFCheckPoint.__init__(self, self._RADIUS_MODEL_NAME)
     _CTFResourcePointModel.__init__(self, self._MODEL_NAME, self._EFFECT_NAME)
     self._createTerrainSelectedArea(self.position, self.radius * 2.0, self._OVER_TERRAIN_HEIGHT, self._COLOR)
     self._createPoint()
예제 #4
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _CTFCheckPoint.__init__(self, self._RADIUS_MODEL_NAME)
     LOG_DEBUG('FlagAbsorptionPoint ', self.position, self.radius, self.team)
     teamParams = self._TEAM_PARAMS[BigWorld.player().team == self.team]
     flagModelName = teamParams[0]
     color = teamParams[1]
     _CTFPointFlag.__init__(self, flagModelName, self.position)
     if self.__isVisibleForCurrentArena():
         self._createTerrainSelectedArea(self.position, self.radius * 2.0, self._OVER_TERRAIN_HEIGHT, color)
         self._createFlag()
예제 #5
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _UDOAttributeChecker.__init__(self)
     self.checkAttribute('radiusModel')
     self.checkAttribute('flagModel')
     LOG_DEBUG('RepairPoint ', self.position, self.radius)
     _CTFCheckPoint.__init__(self, self.radiusModel)
     _CTFPointFlag.__init__(self, self.flagModel, self.position)
     if self.__isVisibleForCurrentArena():
         self._createTerrainSelectedArea(self.position, self.radius * 2.0, self._OVER_TERRAIN_HEIGHT, self._COLOR)
         self._createFlag()
예제 #6
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     LOG_DEBUG('ResourcePoint ', self.guid, self.position, self.radius,
               self.team)
     self.__isVisible = self.__isVisibleForCurrentArena()
     if not self.__isVisible:
         return
     _CTFCheckPoint.__init__(self, self._RADIUS_MODEL_NAME)
     _CTFResourcePointModel.__init__(self, self._MODEL_NAME,
                                     self._EFFECT_NAME)
     self._createTerrainSelectedArea(self.position, self.radius * 2.0,
                                     self._OVER_TERRAIN_HEIGHT, self._COLOR)
     self._createPoint()
예제 #7
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _UDOAttributeChecker.__init__(self)
     self.__isVisible = self.__isVisibleForCurrentArena()
     if not self.__isVisible:
         return
     self.checkAttribute('radiusModel')
     self.checkAttribute('pointModel')
     self.checkAttribute('pointEffect')
     LOG_DEBUG('ResourcePoint ', self.guid, self.position, self.radius, self.team)
     _CTFCheckPoint.__init__(self, self.radiusModel)
     _CTFResourcePointModel.__init__(self, self.pointModel, self.pointEffect)
     self._createTerrainSelectedArea(self.position, self.radius * 2.0, self._OVER_TERRAIN_HEIGHT, self._COLOR)
     self._createPoint()
예제 #8
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _UDOAttributeChecker.__init__(self)
     self.__isVisible = self.__isVisibleForCurrentArena()
     if not self.__isVisible:
         return
     self.checkAttribute('radiusModel')
     self.checkAttribute('pointModel')
     self.checkAttribute('pointEffect')
     LOG_DEBUG('ResourcePoint ', self.guid, self.position, self.radius, self.team)
     _CTFCheckPoint.__init__(self, self.radiusModel)
     _CTFResourcePointModel.__init__(self, self.pointModel, self.pointEffect)
     self._createTerrainSelectedArea(self.position, self.radius * 2.0, self._OVER_TERRAIN_HEIGHT, self._COLOR)
     self._createPoint()
예제 #9
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _UDOAttributeChecker.__init__(self)
     self.checkAttribute('radiusModel')
     self.checkAttribute('flagModel')
     LOG_DEBUG('RepairPoint ', self.position, self.radius)
     _CTFCheckPoint.__init__(self, self.radiusModel)
     _CTFPointFlag.__init__(self, self.flagModel, self.position)
     if self.__isVisibleForCurrentArena():
         if self.heightOver > 0.0:
             self._createTerrainSelectedArea(self.position, self.radius * 2.0, self.heightOver, self._COLOR, False)
         else:
             self._createTerrainSelectedArea(self.position, self.radius * 2.0, self._OVER_TERRAIN_HEIGHT, self._COLOR, True)
         self._createFlag()
예제 #10
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _CTFCheckPoint.__init__(self, self._RADIUS_MODEL_NAME)
     LOG_DEBUG('FlagAbsorptionPoint ', self.position, self.radius,
               self.team)
     teamParams = self._TEAM_PARAMS[self.team in (0,
                                                  BigWorld.player().team)]
     flagModelName = teamParams[0]
     color = teamParams[1]
     _CTFPointFlag.__init__(self, flagModelName, self.position)
     if self.__isVisibleForCurrentArena():
         self._createTerrainSelectedArea(self.position, self.radius * 2.0,
                                         self._OVER_TERRAIN_HEIGHT, color)
         self._createFlag(self.applyOverlay > 0)
예제 #11
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _UDOAttributeChecker.__init__(self)
     self.checkAttribute("radiusModel")
     self.checkAttribute("flagModel")
     LOG_DEBUG("RepairPoint ", self.position, self.radius)
     _CTFCheckPoint.__init__(self, self.radiusModel)
     _CTFPointFlag.__init__(self, self.flagModel, self.position)
     if self.__isVisibleForCurrentArena():
         if self.heightOver > 0.0:
             self._createTerrainSelectedArea(self.position, self.radius * 2.0, self.heightOver, self._COLOR, False)
         else:
             self._createTerrainSelectedArea(
                 self.position, self.radius * 2.0, self._OVER_TERRAIN_HEIGHT, self._COLOR, True
             )
         self._createFlag()
예제 #12
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _UDOAttributeChecker.__init__(self)
     self.checkAttribute('radiusModel')
     self.checkAttribute('greenFlagModel')
     self.checkAttribute('redFlagModel')
     LOG_DEBUG('FlagAbsorptionPoint ', self.position, self.radius, self.team)
     _CTFCheckPoint.__init__(self, self.radiusModel)
     teamParams = self._TEAM_PARAMS[self.team in (0, BigWorld.player().team)]
     flagModelName = getattr(self, teamParams[0], None)
     color = teamParams[1]
     _CTFPointFlag.__init__(self, flagModelName, self.position)
     if self.__isVisibleForCurrentArena():
         self._createTerrainSelectedArea(self.position, self.radius * 2.0, self._OVER_TERRAIN_HEIGHT, color)
         self._createFlag(self.applyOverlay > 0)
     return
예제 #13
0
 def __init__(self):
     BigWorld.UserDataObject.__init__(self)
     _UDOAttributeChecker.__init__(self)
     self.checkAttribute('radiusModel')
     self.checkAttribute('greenFlagModel')
     self.checkAttribute('redFlagModel')
     LOG_DEBUG('FlagAbsorptionPoint ', self.position, self.radius,
               self.team)
     _CTFCheckPoint.__init__(self, self.radiusModel)
     player = BigWorld.player()
     if player is not None:
         teamParams = self._TEAM_PARAMS[self.team in (0, player.team)]
     else:
         teamParams = self._TEAM_PARAMS[0]
     flagModelName = getattr(self, teamParams[0], None)
     color = teamParams[1]
     _CTFPointFlag.__init__(self, flagModelName, self.position)
     if self.__isVisibleForCurrentArena():
         self._createTerrainSelectedArea(self.position, self.radius * 2.0,
                                         self._OVER_TERRAIN_HEIGHT, color)
         self._createFlag(self.applyOverlay > 0)
     return