X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fcommand%2Fsv_cmd.qc;h=b2bf9d9b97aa6bb2a9b92433299234c351f01b28;hb=90f566a9f86ebddd3410a4127e9c04f37e410634;hp=269b69fc873b98a0993c8ec79a56a996a4f4cf74;hpb=ecf8a2ba1caa9fe51bb1083659b4db88ee6a6645;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index 269b69fc8..b2bf9d9b9 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -329,6 +329,17 @@ void GameCommand_bot_cmd(float request, float argc, string command) bot_resetqueues(); return; } + else if(argv(1) == "setbots") + { + cvar_settemp("bot_vs_human", "0"); + cvar_settemp("minplayers", "0"); + cvar_settemp("bot_number", "0"); + bot_fixcount(); + cvar_settemp("bot_number", argv(2)); + if(!bot_fixcount()) + print("Sorry, could not set requested bot count\n"); + return; + } else if(argv(1) == "load" && argc == 3) { float fh, i; @@ -353,7 +364,10 @@ void GameCommand_bot_cmd(float request, float argc, string command) } else if(argv(2) == "setbots") { + cvar_settemp("bot_vs_human", "0"); cvar_settemp("minplayers", "0"); + cvar_settemp("bot_number", "0"); + bot_fixcount(); cvar_settemp("bot_number", argv(3)); if(!bot_fixcount()) print("Sorry, could not set requested bot count\n");