Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Category: all (371)

CS2D Command mp_lagcompensation

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.

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 Hook Lua Hooks

Lua Command Lua Commands