Results 1 to 10 of 22

Thread: TestClients

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    What about on map change?

    I tried adding test clients using addTestClient() (which, I think, is a stock function). The bot connects, gets to the spectators team, has a 999 ping, no problem there, since I have the rest of the functions to spawn it and make it play the game.
    On map change, they just have the connecting status (with -1 ping). I can kick them, but they won't join, and I can't access them (they are not included in the list of players anymore). Can I do something here to access them? I'm thinking about kicking and re-adding them on every map start if there's no better solution.
    set logfile 2

  2. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Map change is done (in bot-mods without libcod) tis way:

    - kick all player, but let them /reconnect automatically after a few seconds (execClientCommand()-hack)
    - kill the server (removes the bots)
    - retsart the server with your new map
    - now the players start to reconnect

    you can have a peek on cod2/cod4 bot mods for this
    iirc here is likely a thread abut this already

  3. The Following User Says Thank You to serthy For This Useful Post:

    guiismiti (21st March 2017)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •