]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Print waypoint type on waypoint creation. Add description to "wpeditor spawn crouch"
authorterencehill <piuntn@gmail.com>
Tue, 16 Jul 2019 13:38:53 +0000 (15:38 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 16 Jul 2019 13:38:53 +0000 (15:38 +0200)
qcsrc/server/bot/default/waypoints.qc
qcsrc/server/command/cmd.qc

index 160a1694d732b91ba2a4ae4ba031f319e2ddeb75..91dca6141cf07aa961be583a68acdc53cd1a1464 100644 (file)
@@ -650,7 +650,13 @@ void waypoint_spawn_fromeditor(entity pl, bool at_crosshair, bool is_jump_wp, bo
 
        if (!(jp || is_jump_wp || start_wp_is_hardwired))
                waypoint_schedulerelink(e);
-       bprint(strcat("Waypoint spawned at ", vtos(e.origin), "\n"));
+
+       string wp_type_str = "Waypoint";
+       if (is_crouch_wp)               wp_type_str = "Crouch waypoint";
+       else if (is_jump_wp)    wp_type_str = "Jump waypoint";
+       else if (jp)                    wp_type_str = "Custom jumppad waypoint";
+
+       bprint(strcat(wp_type_str, " spawned at ", vtos(e.origin), "\n"));
 
        if (start_wp_is_spawned)
        {
index d79a290174a34198ebdc87e9f0cfabd1a8152ab5..d0e56e9ea1a525d61dbcc62315599b8ad29f1c66 100644 (file)
@@ -253,6 +253,7 @@ void ClientCommand_wpeditor(entity caller, int request, int argc)
                        sprint(caller, "   ^5relinkall^7: relink all waypoints as if they were respawned\n");
                        sprint(caller, "   ^5spawn crosshair^7: spawns a waypoint at crosshair's position (useful to spawn custom jumppad waypoints (spawn another waypoint to create destination))\n");
                        sprint(caller, "   ^5spawn jump^7: spawns a jump waypoint (spawn another waypoint to create destination)\n");
+                       sprint(caller, "   ^5spawn crouch^7: spawns a crouch waypoint\n");
                        sprint(caller, "   ^5hardwire^7: marks the nearest waypoint as origin of a new hardwired link (spawn another waypoint over an existing one to create destination)\n");
                        sprint(caller, "   ^5symorigin get|set\n");
                        sprint(caller, "   ^5symorigin get|set p1 p2 ... pX\n");