예제 #1
0
 def write(self, player_configuration: PlayerConfiguration,
           name_dict: dict):
     # This is a dirty trick. With bot = False and rlbot_controlled = True, we have a "party member bot"
     # which is not supported in RLBot.exe anymore and will just get skipped over. That's what we want.
     player_configuration.bot = False
     player_configuration.rlbot_controlled = True
     player_configuration.spawn_id = -1
     player_configuration.name = ""
예제 #2
0
    def write(self, player_configuration: PlayerConfiguration, name_dict: dict):
        player_configuration.bot = self.bot
        player_configuration.rlbot_controlled = self.rlbot_controlled
        player_configuration.bot_skill = self.bot_skill or 0
        player_configuration.human_index = self.human_index or 0
        player_configuration.name = get_sanitized_bot_name(name_dict, self.name)
        player_configuration.team = self.team

        if self.loadout_config:
            self.loadout_config.write(player_configuration)
예제 #3
0
    def write(self, player_configuration: PlayerConfiguration,
              name_dict: dict):
        player_configuration.bot = self.bot
        player_configuration.rlbot_controlled = self.rlbot_controlled
        player_configuration.bot_skill = self.bot_skill or 0
        player_configuration.human_index = self.human_index or 0
        player_configuration.name = get_sanitized_bot_name(
            name_dict, self.name)
        player_configuration.team = self.team
        player_configuration.spawn_id = self.spawn_id or randint(
            1, FLATBUFFER_MAX_INT)

        if self.loadout_config:
            self.loadout_config.write(player_configuration)