Commands/Lua

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

CS2D Command CS2D Console Commands

Category: server (199)

CS2D Command mp_lagcompensationdivisor

Categories

Parameters

  • divisor (1-100): lag compensation divisor (default 16)

Info

CS2D calculates the frame offset which is used for the lag compensation with the calculation frameOffset=Ceil(playerPing/mp_lagcompensationdivisor). A frame commonly takes 16.6 milliseconds(60 FPS, 1000/60) so 16 is the default value for this setting.

Note: This command has originally been implemented for fine tuning. CS2D's target FPS are 60 so it should not be necessary to change this value. It is however possible that you get better results by slightly increasing or decreasing the default value.

Lua Hook Lua Hooks

Lua Command Lua Commands