]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/midi2cfg-ng.pl
midi2cfg: generate setbots command to help automated recording
[xonotic/xonotic.git] / misc / tools / midi2cfg-ng.pl
index ad06b746807b931b671d7a59cd148cb38f0cd8dc..3e178a24d3463aab4e021da807f0d16d541799f6 100755 (executable)
@@ -993,6 +993,8 @@ for(;;)
                my @preallocate_new = map { $_->{classname} } @busybots_allocated;
                if(@preallocate_new == @preallocate)
                {
+                       print "sv_cmd bot_cmd reset\n";
+                       print "sv_cmd bot_cmd setbots @{[scalar @preallocate_new]}\n";
                        print "$precommands$commands";
                        exit 0;
                }