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: security (15)
mp_kickpercentCategories
Parameters
- percent (0.0-1.0): percentage (0.0=0%, 1.0=100%) of votes needed for a kick
Info
High Security Relevance
This setting is important for the security of your server!
Use it carefully! Wrong settings may make your server vulnerable or limit its functionality or accessibility!
Controls what percentage of all players has to kick-vote the same player in order to get that player kicked by the server.
Set this value to 0 to disable kick-voting completely.
e.g.: with 0.5, 50% or half of all players would have to vote for the same player in order to get that player kicked.
Attention: Make sure that the chosen value is high enough. Otherwise groups of trolls or fake clients might vote-kick innocent players!
Note: In earlier versions only the same team was counted for the percentage and you were only allowed to kick teammates. Now the whole player base is counted and everyone can vote to kick everyone!
Lua Hooks
Lua Commands
Categories
Parameters
- percent (0.0-1.0): percentage (0.0=0%, 1.0=100%) of votes needed for a kick
Info
High Security Relevance
This setting is important for the security of your server!
Use it carefully! Wrong settings may make your server vulnerable or limit its functionality or accessibility!
This setting is important for the security of your server!
Use it carefully! Wrong settings may make your server vulnerable or limit its functionality or accessibility!
Controls what percentage of all players has to kick-vote the same player in order to get that player kicked by the server.
Set this value to 0 to disable kick-voting completely.
e.g.: with 0.5, 50% or half of all players would have to vote for the same player in order to get that player kicked.
Attention: Make sure that the chosen value is high enough. Otherwise groups of trolls or fake clients might vote-kick innocent players!
Note: In earlier versions only the same team was counted for the percentage and you were only allowed to kick teammates. Now the whole player base is counted and everyone can vote to kick everyone!