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_wpndmg_z1Categories
Parameters
- name (text): in-game name of a weapon
- damage (0-100000): z1 damage for this weapon
Info
Changes the "z1"-damage of a weapon. The "z1" damage is used for several different things:
- Damage caused by weapons with scope/zoom in zoom/scope level 1
- Damage caused by melee weapons with secondary attack
- Damage caused by weapons in burst mode (burst means 3 shots at a time, so damage will be multiplied with up to 3! Default is mp_wpndmg * 0.65 if this is set to 0)
- Damage caused by weapons in silenced mode (they cause mp_wpndmg by default / when set to 0)
Weapon and item names:
Note: Since Beta 0.1.2.6 this setting can also affect weapons with burst mode and silencer!
Note: This setting has no effect for weapons which have no alternative fire mode / secondary attack.
Lua Hooks
Lua Commands
Categories
Parameters
- name (text): in-game name of a weapon
- damage (0-100000): z1 damage for this weapon
Info
Changes the "z1"-damage of a weapon. The "z1" damage is used for several different things:
Weapon and item names:
- Damage caused by weapons with scope/zoom in zoom/scope level 1
- Damage caused by melee weapons with secondary attack
- Damage caused by weapons in burst mode (burst means 3 shots at a time, so damage will be multiplied with up to 3! Default is mp_wpndmg * 0.65 if this is set to 0)
- Damage caused by weapons in silenced mode (they cause mp_wpndmg by default / when set to 0)
Weapon and item names:
Note: Since Beta 0.1.2.6 this setting can also affect weapons with burst mode and silencer!
Note: This setting has no effect for weapons which have no alternative fire mode / secondary attack.