传染病

传染病

评价数不足
Adding survivor bots (new) & callvote commands
由 Zatchel 制作
How to add some fake AI friends, since you have no one else.
   
奖励
收藏
已收藏
取消收藏
Botting up
Pretty straightforward just in case someone was wondering. Once you start your solo server run the next commands on the console:

sb_enabled 1; (this allows bots to be spawned)
sb_add; (add as many as needed)


Do not use these old commands, will likely crash your game as they use the old l4d2 bots, the new ones are based on Counter strike GO.

This is the new command you should use to add a bot once the round has already started (this is to allow you to spawn bots):

bot_ai2

Then to add 1 bot each time use the command:

bot_add


Credits to @Hellektronic. You can set the bots difficulty using the next command:
bot_difficulty 0-3
0 being easy and 3 expert.


You are also able to kick bots (just keep in mind, each kick takes one bot out, if you kick a bot and add one back, they will either come back as zombies or a cockroach depending on your host rules, so this basically kills the bot, you wont be able to just kick the dead ones out to add new alive ones):

bot_kick


Pretty fun for practicing the game when people aren't around to play or to make solo a bit easier.
Also a great help to obtain a couple of achievements easier.

Callvote commands
All servers now allow you to vote on a lot of things by using the command "callvote"

If you press ESC there is already a menu option to use callvote with the UI.
But if you need the commands (for whatever reason) here is how to manually use them in console:


callvote changelevel "Level name"
Example: callvote changelevel cx_biotec

So you can start a vote to change the level to a specific one.



callvote ChangeDifficulty "Difficulty ID"
Example: callvote ChangeDifficulty 3

So you can increase or decrease the map difficulty (Needs a restart of the level)

callvote RestartGame

So you can vote to start again since it all went to hell.


callvote Kick <userID>

So you can kick a player trollong/griefing etc.


8 条留言
Zatchel  [作者] 7 月 3 日 下午 12:07 
@DF^2 Depends on the language of your keyboard.

If its an US keyboard, the "~" or "`" key below the ESC key should open it by default

You can also try to change the console key to something more comfortable for you, but you need to edit the config file for contagion "Contagion\Contagion\cfg\config.cfg"
DF^2 7 月 3 日 上午 6:06 
how can I open console?
Hellektronic 2 月 9 日 上午 11:52 
Actually it's 0-3, 0 is easy, 3 is expert
Zatchel  [作者] 2 月 9 日 上午 11:50 
@hellektronic Thanks, I will add it dude
Hellektronic 2 月 8 日 下午 7:37 
bot_difficulty 1-3
Zatchel  [作者] 2 月 4 日 上午 10:30 
@Hellektronic Not sure if there exist a command for the new bots to set their difficulty, a lot of the commands have changed with each patch.
Hellektronic 2 月 3 日 下午 2:28 
Hm... can you edit their skill level? That's an option when hosting a MP server with bots
späik 2020 年 12 月 28 日 下午 2:27 
Bots, a new players best friend.