Commands/Lua

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

CS2D Command CS2D Console Commands

Category: all (370)

CS2D Command download

Categories

Parameters

  • mode (0-10): Which files can be downloaded?

Info

Controls which files the client accepts when the server is trying to send missing files (like sprites and sounds used by Lua scripts).

  • 0 - accept no files

  • 1 - accept all files (max. 16 mb)

  • 2 - accept all images (max. 16 mb)

  • 3 - accept all sounds (max. 16 mb)

  • 4 - accept all files with a size of less than 50 kb

  • 5 - accept all files with a size of less than 100 kb

  • 6 - accept all files with a size of less than 250 kb, default

  • 7 - accept all files with a size of less than 500 kb

  • 8 - accept all files with a size of less than 1 mb

  • 9 - accept all files with a size of less than 2 mb

  • 10 - accept all files with a size of less than 3 mb


Note: By default files with a size of up to 250 kb are downloaded (mode 6). Therefore it is highly recommended to keep all files smaller than that so clients with default settings will be able to download them!

Note: Some essential files (map, tileset, briefing) will always be downloaded, no matter how big they are. The only way to prevent downloading these files is setting download to 0.

Lua Hook Lua Hooks

Lua Command Lua Commands