Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- CS2D Console Commands can be entered in the console, executed with key-binds, configuration (cfg) files or in Lua with parse
- Lua Hooks are used to execute Lua scripts when certain things happen - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data and to modify/extend the game
CS2D Console Commands
Category: server (198)
mp_pinglimitCategories
Parameters
- limit (0-10000): maximum allowed ping
Info
Use this setting to automatically kick all players who have a high ping.
Set it to 0 if you don't want to kick players because of their ping.
The ping is the time a UDP internet packet needs to be sent from the client to the server and back. Measured in milliseconds (1000 ms = 1 second). Pings around 100 and below are required for a good game experience. Otherwise everything will be delayed too much and you won't hit enemies properly.
Players with high pings are also harder to hit for players with good pings because they may "lag around" (movement isn't smooth). For that reason it can be a good idea to kick players with high pings. That's why this setting exists.
Lua Hooks
Lua Commands
Categories
Parameters
- limit (0-10000): maximum allowed ping
Info
Use this setting to automatically kick all players who have a high ping.
Set it to 0 if you don't want to kick players because of their ping.
The ping is the time a UDP internet packet needs to be sent from the client to the server and back. Measured in milliseconds (1000 ms = 1 second). Pings around 100 and below are required for a good game experience. Otherwise everything will be delayed too much and you won't hit enemies properly.
Players with high pings are also harder to hit for players with good pings because they may "lag around" (movement isn't smooth). For that reason it can be a good idea to kick players with high pings. That's why this setting exists.
Set it to 0 if you don't want to kick players because of their ping.
The ping is the time a UDP internet packet needs to be sent from the client to the server and back. Measured in milliseconds (1000 ms = 1 second). Pings around 100 and below are required for a good game experience. Otherwise everything will be delayed too much and you won't hit enemies properly.
Players with high pings are also harder to hit for players with good pings because they may "lag around" (movement isn't smooth). For that reason it can be a good idea to kick players with high pings. That's why this setting exists.



