Exemplo n.º 1
0
    def get_output(self, packet):
        self.info.read_packet(packet)
        game = self.convert_packet_to_v3(
            packet
        )  #Paul is a V3 Bot, a rework of preprocessing would be needed to re-optimize it
        self.frames = self.frames + 1
        self.renderer.begin_rendering()
        self.renderer.draw_string_2d(50, 50, 5, 5,
                                     str(time.time() - self.yeet_start),
                                     self.renderer.red())
        self.renderer.end_rendering()
        self.fps = self.frames / (time.time() - self.yeet_start)
        output = Bot.Process(self, game, packet, self.info, self.lock)
        controls = self.convert_output_to_v4(output)
        if (packet.game_info.is_kickoff_pause):
            controls = self.yeet_kick_off.get_output(
                packet, self.frames / (time.time() - self.yeet_start))
            self.last_frame = True

            return controls
        else:
            self.kick = True
            self.yeet_kick_off = KickoffAgent('eat ass', self.info.team,
                                              self.info.index)

        return controls
Exemplo n.º 2
0
    def get_output(self, packet):

        game = self.convert_packet_to_v3(packet)#Paul is a V3 Bot, a rework of preprocessing would be needed to re-optimize it
        
        output = Bot.Process(self, game)

        return self.convert_output_to_v4(output)
Exemplo n.º 3
0
    def get_output(self, packet):

        game = self.convert_packet_to_v3(packet)
        output = Bot.Process(self, game)
        rtn = self.convert_output_to_v4(output)
        self.LogAction(packet, rtn)

        return rtn
Exemplo n.º 4
0
    def get_output(self, packet):

        game = self.convert_packet_to_v3(packet)
        output = Bot.Process(self, game)

        return self.convert_output_to_v4(output)
Exemplo n.º 5
0
 def get_output(self, packet: GameTickPacket) -> SimpleControllerState:
     return Bot.Process(self, packet, 4)
Exemplo n.º 6
0
 def get_output_vector(self, game):
     return Bot.Process(self, game.GameTickPacket, 2)
Exemplo n.º 7
0
 def get_output_vector(self, game):
     return Bot.Process(self, game)