From: terencehill Date: Thu, 8 Jun 2017 14:57:50 +0000 (+0200) Subject: Add an argument to "sv_cmd trace walk" command, to allow specificifying destination... X-Git-Tag: xonotic-v0.8.5~2378^2~138 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=949958c33ea1643818e988865be2947910f7a9f8;p=xonotic%2Fxonotic-data.pk3dir.git Add an argument to "sv_cmd trace walk" command, to allow specificifying destination height --- diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index 7b33033de..398b4c2c7 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -1564,10 +1564,10 @@ void GameCommand_trace(float request, float argc) case "walk": { - if (argc == 4) + if (argc == 4 || argc == 5) { e = nextent(NULL); - if (tracewalk(e, stov(argv(2)), e.mins, e.maxs, stov(argv(3)), 0, MOVE_NORMAL)) + if (tracewalk(e, stov(argv(2)), e.mins, e.maxs, stov(argv(3)), stof(argv(4)), MOVE_NORMAL)) LOG_INFO("can walk\n"); else LOG_INFO("cannot walk\n");