From: terencehill Date: Sun, 4 Dec 2016 01:47:38 +0000 (+0100) Subject: Block latent bot movement when it's dead or spectating X-Git-Tag: xonotic-v0.8.2~398 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=74db767ab0e25836646f462d7c112c744a468eeb;p=xonotic%2Fxonotic-data.pk3dir.git Block latent bot movement when it's dead or spectating --- diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index 2a7478dee..9d612ea2e 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