]> git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
Update Programming Tips
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 7 Mar 2019 21:30:23 +0000 (21:30 +0000)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 7 Mar 2019 21:30:23 +0000 (21:30 +0000)
Programming-Tips.md

index 95a1ff6b464cc1196381f1b4127256d32b56cb42..601447242f3d40c417d53eb1f3fe9a0fefe35a2c 100644 (file)
@@ -1,9 +1,13 @@
+### Debug prints
+
+You can show text anywhere on the map using `debug_text_3d(world_coords, message);` from `common/debug.qh`.
+
 ### Multiple clients + clean config
 
 If you need 2 players for debugging, you can launch another client locally:
  - use -sessionid (e.g. `./all run -sessionid testing`) to keep your config
  - 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)
 
-### Debug prints
+### Testing with bots
 
-You can show text anywhere on the map using `debug_text_3d(position, message);` from `common/debug.qh`.
+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).