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_hovertextCategories
Parameters
- Hover Text (0-31): display hover texts?
Info
This server setting controls the visibility of certain texts which appear when you hover game objects in-game. The parameter must be the sum of the codes for all the texts which are supposed to be visible. Use 0 if you want to hide all texts or 31 to show all texts.
The codes are the following:
1 - Player names
2 - Player health
4 - Hostages
8 - Dynamic Objects (Buildings/NPCs/...)
16 - Items
The default value for this setting is
1+2+4+8+16 = 31, which means that all texts are visible
Lua Hooks
Lua Commands
Categories
Parameters
- Hover Text (0-31): display hover texts?
Info
This server setting controls the visibility of certain texts which appear when you hover game objects in-game. The parameter must be the sum of the codes for all the texts which are supposed to be visible. Use 0 if you want to hide all texts or 31 to show all texts.
The codes are the following:
1 - Player names
2 - Player health
4 - Hostages
8 - Dynamic Objects (Buildings/NPCs/...)
16 - Items
The default value for this setting is
1+2+4+8+16 = 31, which means that all texts are visible
The codes are the following:
1 - Player names
2 - Player health
4 - Hostages
8 - Dynamic Objects (Buildings/NPCs/...)
16 - Items
The default value for this setting is
1+2+4+8+16 = 31, which means that all texts are visible