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
sv_maptransferCategories
Parameters
- transfer (0/1): allow the server to send maps?
Info
Allow (1) or disallow (0) the server to send maps to clients/players who don't have these maps.
Note: This setting controls transfer of all files belonging to a map (map file itself, map briefing, map Lua script, tileset, sprites and sounds used in the map).
Attention: Enabled map transfer can cause additional traffic and higher pings while the server is sending maps!
Attention: With disabled map transfer people not having the right map won't be able to join the server!
Lua Hooks
Lua Commands
Categories
Parameters
- transfer (0/1): allow the server to send maps?
Info
Allow (1) or disallow (0) the server to send maps to clients/players who don't have these maps.
Note: This setting controls transfer of all files belonging to a map (map file itself, map briefing, map Lua script, tileset, sprites and sounds used in the map).
Attention: Enabled map transfer can cause additional traffic and higher pings while the server is sending maps!
Attention: With disabled map transfer people not having the right map won't be able to join the server!