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
 
 mp_antispeederCategories
 Parameters
-  antispeeder protection (0-6): use protection against speedhackers?
 
Info
AntiSpeeder is a basic protection against speedhackers. It uses a number of different techniques to detect speedhackers. It can be disabled or be enabled with one of 6 different punishments:
- 0 - disabled
 
- 1 - Kick + Tempban
 
- 2 - Kick
 
- 3 - Kill
 
- 4 - Slap with 10 damage
 
- 5 - Slap with 25 damage
 
- 6 - Slap with 50 damage
 
Attention: The detection might fail on servers with a bad connection and a slow system. Massive lags and high packet loss can lead to wrong detections as well.
	
	
	
	
 
 Lua Hooks
 
 Lua Commands
Categories
Parameters
- antispeeder protection (0-6): use protection against speedhackers?
 
Info
AntiSpeeder is a basic protection against speedhackers. It uses a number of different techniques to detect speedhackers. It can be disabled or be enabled with one of 6 different punishments:
- 0 - disabled
 - 1 - Kick + Tempban
 - 2 - Kick
 - 3 - Kill
 - 4 - Slap with 10 damage
 - 5 - Slap with 25 damage
 - 6 - Slap with 50 damage
 
Attention: The detection might fail on servers with a bad connection and a slow system. Massive lags and high packet loss can lead to wrong detections as well.