]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blob - Programming-Tips.md
Update Programming Tips
[xonotic/xonotic.wiki.git] / Programming-Tips.md
1 ### Debug prints
2
3 You can show text anywhere on the map using `debug_text_3d(world_coords, message);` from `common/debug.qh`.
4
5 ### Multiple clients + clean config
6
7 If you need 2 players for debugging, you can launch another client locally:
8  - use -sessionid (e.g. `./all run -sessionid testing`) to keep your config
9  - use -userdir (e.g. `./all run -userdir ~/.xonotic-testing +name tester +cl_allow_uid2name 0`) to get a clean config (`+` sets cvars to avoid annoying popups)
10
11 ### Testing with bots
12
13 You can prevent bots from firing (`bot_nofire 1`) or stop them completely (`bot_cmd * pause`). With `sv_cheats 1` (takes effect next match), you can drag them around (default V or drag object in menu).