X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fbot.qc;h=ed9070f9cdd60821538da821afdceab6a2405cab;hp=427a229fb0a5b48d59c0c2f8d09495426521202a;hb=c1389c740a4a144e46543e51296ad90ade3c365b;hpb=f8d1d29d782183456e036ff96a2f55080d980247 diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index 427a229fb0..ed9070f9cd 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -72,6 +72,7 @@ void bot_think(entity this) if (!IS_PLAYER(this) || (autocvar_g_campaign && !campaign_bots_may_start)) { + this.movement = '0 0 0'; this.bot_nextthink = time + 0.5; return; } @@ -118,6 +119,7 @@ void bot_think(entity this) // if dead, just wait until we can respawn if (IS_DEAD(this)) { + this.movement = '0 0 0'; if (this.deadflag == DEAD_DEAD) { PHYS_INPUT_BUTTON_JUMP(this) = true; // press jump to respawn @@ -664,7 +666,7 @@ void bot_clear(entity this) void bot_serverframe() { - if (intermission_running) + if (gameover) return; if (time < 2)