Jump to content
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    Bot cs: source


    El-Mira

    Recommended Posts

    • 8 months later...

    Salut à tous.

    Moi j'aimerai avoir 4 bots en permanence sur mon serveur et quand un joueur se connecte un bot se déconnecte. En fait je veux ca :

    - 0 vrai joueur = 4 bots

    - 1 vrai joueur = 3 bots

    - 2 vrais joueurs = 2 bots

    - 3 vrais joueurs = 1 bot

    - 4 vrais joueurs = 0 bot

    - 5 vrais joueurs = 0 bot

    - etc.....

     

    J'ai mis ces lignes dans mon server.cfg

    bot_kick

    bot_auto_vacate 1

    bot_join_after_player 0

    bot_chatter off

    bot_allow_snipers 0

    bot_defer_to_human 0

    bot_add

    bot_add

    bot_add

    bot_add

     

    Mais les bots ne se deconnectent pas quand un joueur se connecte. Où ai je oublié quelque chose ?

    ++

    Link to comment
    Share on other sites

    • 1 month later...

    Dans ton fichier autoexec.cfg , ajoutes cette ligne exec bot.cfg .

    Puis sous games/halflife_source/cstrike/cfg , tu créés un fichier bot.cfg .

    A l'intérieur de celui-ci , tu peux mettre ceci :

     

    echo "Loading CS:S bot config..."

    //General

    //Control how bots talk. Allowed values: 'off', 'radio', 'minimal', or 'normal'.

    bot_chatter off

     

    //Set to 0 to let bots complete map objectives. 0/1

    bot_defer_to_human 1

     

    //0 is Easy, 1 is Normal, 2 is Hard, & 3 is Expert.

    bot_difficulty 3

     

    //Bots wait for a human to join before joining. 0/1

    bot_join_after_player 0

     

    //Add bot(s) to a specific team. any/CT/T or Adds a bot to whichever team has fewer players.

    //bot_join_team:

    //bot_add

    //bot_add_ct

    //bot_add_t

     

    //Kicks the specified bot, or all bots if no name is given

    //bot_kick

     

    //Kills the specified bot, or all bots if no name is given

    //bot_kill

     

    //Defines a Prefix for all bot's names.

    bot_prefix "[boT]"

     

    //Set to min # of bots allowed on server

    bot_quota 4

     

    //Reports on the bots' memory usage

    //bot_memory_usage

     

    //Restricts the bots to particular weapons

    //bot_knives_only

    //bot_pistols_only

    //bot_snipers_only

    bot_all_weapons

     

    //Weapon Control 0/1

    bot_allow_grenades 1

    bot_allow_machine_guns 1

    bot_allow_pistols 1

    bot_allow_rifles 1

    bot_allow_rogues 1

    bot_allow_shotguns 1

    bot_allow_snipers 0

    bot_allow_sub_machine_guns 1

     

    //Bots with high co-op may automatically follow a nearby human player. 0/1

    bot_auto_follow 1

     

    //Bots will automatically leave to make room for human players. 0/1

    bot_auto_vacate 1

     

    //Bots will not buy if their money falls below this amount.

    bot_eco_limit "800"

     

    //Determines the type of quota.

    //Allowed values: 'normal' and 'fill'.

    //If 'fill', the server will adjust bots to keep N players in the game, where N is bot_quota.

    bot_quota_mode "fill"

     

     

     

    Voilà , tu auras un fichiers configurable à souhait et qui fonctionne sans aucun problème , @++ .

    Link to comment
    Share on other sites

    • 2 weeks later...

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...