def _doAttention(self, index, duration): player = BigWorld.player() if player is not None and player.isTeleport: position = minimap_utils.getPositionByCellIndex(index, *self._boundingBox) result = BigWorld.collide(player.spaceID, (position[0], 1000.0, position[2]), (position[0], -1000.0, position[2])) player.base.vehicle_teleport((position[0], result[0][1], position[2]), 0) return
def _doAttention(self, index, duration): player = BigWorld.player() if player is not None and player.isTeleport: position = minimap_utils.getPositionByCellIndex(index, *self._boundingBox) result = BigWorld.collide(player.spaceID, (position[0], 1000.0, position[2]), (position[0], -1000.0, position[2])) player.base.vehicle_teleport((position[0], result[0][1], position[2]), 0) return
def getMinimapPositionById(self, cellId): sessionProvider = dependency.instance(IBattleSessionProvider) if self._miniMapUi is not None: bottomLeft, upperRight = sessionProvider.arenaVisitor.type.getBoundingBox( ) return minimap_utils.getPositionByCellIndex( cellId, bottomLeft, upperRight, self._miniMapUi.getMinimapDimensions()) else: return