]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot waypoints: add wpeditor_menu alias to open the waypoint editor quickmenu, allow...
authorterencehill <piuntn@gmail.com>
Sun, 11 Aug 2019 23:49:02 +0000 (01:49 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 11 Aug 2019 23:49:02 +0000 (01:49 +0200)
qcsrc/menu/xonotic/keybinder.qc
qcsrc/server/command/cmd.qc
xonotic-client.cfg

index 7f6424bfce34156201ef4bdcca93befc48813ef8..b4a259d49fa4199e31e498a0596bf10604c82a13 100644 (file)
@@ -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();
 
index 39c2190bf299969f251f5a8c5e65bdc2b854348c..7c15a64e2f319241c35a7e7428cfc3b17497b8b3 100644 (file)
@@ -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;
                }
        }
index 61651320af290c4d91acda0ec9afc7c3a7691b24..65a819c416d4f49a578eb991779626811bc30ce5 100644 (file)
@@ -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"