From: terencehill Date: Tue, 16 Jul 2019 13:38:53 +0000 (+0200) Subject: Print waypoint type on waypoint creation. Add description to "wpeditor spawn crouch" X-Git-Tag: xonotic-v0.8.5~1356^2~23 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=672f90b2f8b75271fc27d870e97465fd30d30581;p=xonotic%2Fxonotic-data.pk3dir.git Print waypoint type on waypoint creation. Add description to "wpeditor spawn crouch" --- diff --git a/qcsrc/server/bot/default/waypoints.qc b/qcsrc/server/bot/default/waypoints.qc index 160a1694d..91dca6141 100644 --- a/qcsrc/server/bot/default/waypoints.qc +++ b/qcsrc/server/bot/default/waypoints.qc @@ -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) { diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index d79a29017..d0e56e9ea 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -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");