]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
midi2cfg: generate setbots command to help automated recording
authorRudolf Polzer <divverent@xonotic.org>
Sat, 15 Oct 2011 12:42:20 +0000 (14:42 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 15 Oct 2011 12:42:20 +0000 (14:42 +0200)
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;
                }