From: terencehill Date: Sun, 11 Aug 2019 23:49:02 +0000 (+0200) Subject: Bot waypoints: add wpeditor_menu alias to open the waypoint editor quickmenu, allow... X-Git-Tag: xonotic-v0.8.5~1356^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b9ff18419ee3f481f34644bc8b99e9902d46e0e4;p=xonotic%2Fxonotic-data.pk3dir.git Bot waypoints: add wpeditor_menu alias to open the waypoint editor quickmenu, allow to bind it with the key binder in the menu --- diff --git a/qcsrc/menu/xonotic/keybinder.qc b/qcsrc/menu/xonotic/keybinder.qc index 7f6424bfc..b4a259d49 100644 --- a/qcsrc/menu/xonotic/keybinder.qc +++ b/qcsrc/menu/xonotic/keybinder.qc @@ -122,6 +122,7 @@ void KeyBinds_Read() KEYBIND_DEF("kill" , _("respawn")); KEYBIND_DEF("quickmenu" , _("quick menu")); KEYBIND_DEF("menu_showsandboxtools" , _("sandbox menu")); + KEYBIND_DEF("wpeditor_menu" , _("waypoint editor menu")); KEYBIND_DEF("+button8" , _("drag object")); KEYBIND_EMPTY_LINE(); diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 39c2190bf..7c15a64e2 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -270,6 +270,7 @@ void ClientCommand_wpeditor(entity caller, int request, int argc) sprint(caller, " ^5symaxis get|set p1 p2\n"); sprint(caller, " ^7 where p1 p2 ... pX are positions (\"x y z\", z can be omitted) that you know are perfectly symmetrical"); sprint(caller, " ^7 so you can determine origin/axis of symmetry of maps without ctf flags or where flags aren't perfectly symmetrical\n"); + sprint(caller, " See 'wpeditor_menu' for a selectable list of various commands and useful settings to edit waypoints.\n"); return; } } diff --git a/xonotic-client.cfg b/xonotic-client.cfg index 61651320a..65a819c41 100644 --- a/xonotic-client.cfg +++ b/xonotic-client.cfg @@ -234,6 +234,8 @@ cl_movement 1 cl_movement_track_canjump 0 cl_stairsmoothspeed 200 +alias wpeditor_menu "quickmenu file \"\" wpeditor.txt" + alias g_waypointeditor_spawn "wpeditor spawn" alias g_waypointeditor_remove "wpeditor remove" alias g_waypointeditor_relinkall "wpeditor relinkall"