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_recoilCategories
Parameters
- dynamic recoil (0/1): disabled (0) or enabled (1)
Info
Controls if the dynamic recoil system is enabled or disabled.
If dynamic recoil is disabled (mp_recoil 0, default), all weapons will just have a random precision. Firing long bursts or single shots makes no difference for the precision.
With dynamic recoil enabled (mp_recoil 1), weapons get less precise when you hold the trigger instead of firing single shots. Precision will increase again after a very short cool down.
The crosshair adjusts automatically depending on the precision.
Lua Hooks
Lua Commands
Categories
Parameters
- dynamic recoil (0/1): disabled (0) or enabled (1)
Info
Controls if the dynamic recoil system is enabled or disabled.
If dynamic recoil is disabled (mp_recoil 0, default), all weapons will just have a random precision. Firing long bursts or single shots makes no difference for the precision.
With dynamic recoil enabled (mp_recoil 1), weapons get less precise when you hold the trigger instead of firing single shots. Precision will increase again after a very short cool down.
The crosshair adjusts automatically depending on the precision.
If dynamic recoil is disabled (mp_recoil 0, default), all weapons will just have a random precision. Firing long bursts or single shots makes no difference for the precision.
With dynamic recoil enabled (mp_recoil 1), weapons get less precise when you hold the trigger instead of firing single shots. Precision will increase again after a very short cool down.
The crosshair adjusts automatically depending on the precision.