From: Martin Taibr Date: Thu, 7 Mar 2019 21:30:23 +0000 (+0000) Subject: Update Programming Tips X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=887ffd437109acc6fd6ae29fe3513306e4a333a7;p=xonotic%2Fxonotic.wiki.git Update Programming Tips --- diff --git a/Programming-Tips.md b/Programming-Tips.md index 95a1ff6..6014472 100644 --- a/Programming-Tips.md +++ b/Programming-Tips.md @@ -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).