Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
Category: bots (17)
bot_keepfreeslotsCategories
Parameters
- keep free slots (0/1): automatically keep 1-2 slots free (1) or not (0)
Info
This setting affects auto filling (bot_autofill). The server will try to keep 1-2 free slots to allow players to join if it is enabled. It will automatically kick bots to achieve this.
bot_keepfreeslots kicks just one bot if the server is full but it also tries to keep the game balanced. So if kicking one bot leads to an imbalanced game it may also kick another one to keep the team sizes equal. This leads to the fact that this command may keep 1 or 2 player slots free.
Note: bot_keepfreeslots has no effect unless bot_autofill is enabled
Attention: bot_keepfreeslots does not affect bot_count
Lua Hooks
Lua Commands
Categories
Parameters
- keep free slots (0/1): automatically keep 1-2 slots free (1) or not (0)
Info
This setting affects auto filling (bot_autofill). The server will try to keep 1-2 free slots to allow players to join if it is enabled. It will automatically kick bots to achieve this.
bot_keepfreeslots kicks just one bot if the server is full but it also tries to keep the game balanced. So if kicking one bot leads to an imbalanced game it may also kick another one to keep the team sizes equal. This leads to the fact that this command may keep 1 or 2 player slots free.
bot_keepfreeslots kicks just one bot if the server is full but it also tries to keep the game balanced. So if kicking one bot leads to an imbalanced game it may also kick another one to keep the team sizes equal. This leads to the fact that this command may keep 1 or 2 player slots free.
Note: bot_keepfreeslots has no effect unless bot_autofill is enabled
Attention: bot_keepfreeslots does not affect bot_count