def METHOD_NAME(self):
    # generate positions
    map = self.map
    blue_cp = []
    green_cp = []
    magnitude = 10
    angle = random.uniform(START_ANGLE, END_ANGLE)
    x, y = (0, random.randrange(64, 512 - 64))
    points = []
    square_1 = range(128)
    square_2 = range(512 - 128, 512)
    while True:
        top = int(y) in square_1
        bottom = int(y) in square_2
        if top:
            angle = limit_angle(angle + FIX_ANGLE)
        elif bottom:
            angle = limit_angle(angle - FIX_ANGLE)
        else:
            angle = limit_angle(angle + random_up_down(DELTA_ANGLE))
        magnitude += random_up_down(2)
        magnitude = min(15, max(5, magnitude))
        x2, y2 = get_point(x, y, magnitude, angle)
        if x2 >= 511:
            break
        x, y = x2, y2
        points.append((int(x), int(y)))
    move = 512 / CP_EXTRA_COUNT
    offset = move / 2
    for i in range(CP_EXTRA_COUNT):
        index = 0
        while True:
            p_x, p_y = points[index]
            index += 1
            if p_x >= offset:
                break
        if i < CP_EXTRA_COUNT / 2:
            blue_cp.append((p_x, p_y))
        else:
            green_cp.append((p_x, p_y))
        offset += move
    # make entities
    index = 0
    entities = []
    for i, (x, y) in enumerate(blue_cp):
        entity = TugTerritory(index, self, *(x, y, map.get_z(x, y)))
        entity.team = self.blue_team
        if i == 0:
            self.blue_team.last_spawn = entity
            entity.id = -1
        else:
            entities.append(entity)
            index += 1
    self.blue_team.cp = entities[-1]
    self.blue_team.cp.disabled = False
    self.blue_team.spawn_cp = entities[-2]
    for i, (x, y) in enumerate(green_cp):
        entity = TugTerritory(index, self, *(x, y, map.get_z(x, y)))
        entity.team = self.green_team
        if i == len(green_cp) - 1:
            self.green_team.last_spawn = entity
            entity.id = index
        else:
            entities.append(entity)
            index += 1
    self.green_team.cp = entities[-CP_COUNT // 2]
    self.green_team.cp.disabled = False
    self.green_team.spawn_cp = entities[-CP_COUNT // 2 + 1]
    return entities