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
transfer_speedCategories
Parameters
- speed (1-500): upload speed in kb/s
Info
This is a server setting!
Control the upload speed (kilobytes per second) for the map- and file-transfer.
The default value is 25 kilobytes per second. Make sure to keep this setting lower than the upload speed of the server.
Note: Low values will make all transfers take longer but ensure that playing can go on without lags.
Attention: Too high values may lead to lags for people playing while someone downloads files from the server. In worst case it can even lead to a complete loss of the connection (disconnect/ping timeout).
Lua Hooks
Lua Commands
Categories
Parameters
- speed (1-500): upload speed in kb/s
Info
This is a server setting!
Control the upload speed (kilobytes per second) for the map- and file-transfer.
The default value is 25 kilobytes per second. Make sure to keep this setting lower than the upload speed of the server.
Control the upload speed (kilobytes per second) for the map- and file-transfer.
The default value is 25 kilobytes per second. Make sure to keep this setting lower than the upload speed of the server.
Note: Low values will make all transfers take longer but ensure that playing can go on without lags.
Attention: Too high values may lead to lags for people playing while someone downloads files from the server. In worst case it can even lead to a complete loss of the connection (disconnect/ping timeout).