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_lagcompensationCategories
Parameters
- max compensation time (0-10): time limit in 1/10 seconds for compensation (default 2)
Info
Compensate high pings of clients by using previous positions of players when checking for hits. Set this setting to 0 to completely disable lag compensation.
Since Beta 0.1.2.5 the default setting is 2 which means that pings up to 200 (0.2 seconds delay) will be compensated. Highest setting is 10 (1 second delay, a ping of 1000). The default setting in prior versions was 5.
Note: The lag compensation is limited to players. There is currently no compensation for other game objects (like NPCs).
Note: Using high values for this setting might lead to weird effects like still being hit (by compensated high ping player shots) after reaching safe cover. This however just looks weird. It does NOT give you a disadvantage.
Lua Hooks
Lua Commands
Categories
Parameters
- max compensation time (0-10): time limit in 1/10 seconds for compensation (default 2)
Info
Compensate high pings of clients by using previous positions of players when checking for hits. Set this setting to 0 to completely disable lag compensation.
Since Beta 0.1.2.5 the default setting is 2 which means that pings up to 200 (0.2 seconds delay) will be compensated. Highest setting is 10 (1 second delay, a ping of 1000). The default setting in prior versions was 5.
Since Beta 0.1.2.5 the default setting is 2 which means that pings up to 200 (0.2 seconds delay) will be compensated. Highest setting is 10 (1 second delay, a ping of 1000). The default setting in prior versions was 5.
Note: The lag compensation is limited to players. There is currently no compensation for other game objects (like NPCs).
Note: Using high values for this setting might lead to weird effects like still being hit (by compensated high ping player shots) after reaching safe cover. This however just looks weird. It does NOT give you a disadvantage.