X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fbot.qc;fp=qcsrc%2Fserver%2Fbot%2Fdefault%2Fbot.qc;h=59ff81df94678b5f744c0da45e617019e56416a7;hb=68049a125cf7c4680ef38d80eb1fb744349a6f34;hp=b9d468fbf1002e07cd53b6cd102cab9eb67be3c7;hpb=bee54f50a9b23fa73a00c4cf4945bff53ce9176c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index b9d468fbf..59ff81df9 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -123,9 +123,14 @@ void bot_think(entity this) return; if (IS_DEAD(this)) { - PHYS_INPUT_BUTTON_JUMP(this) = true; // press jump to respawn if (!navigation_goalrating_timeout(this)) navigation_goalrating_timeout_force(this); + // jump must not be pressed for at least one frame in order for + // PlayerThink to detect the key down event + if (this.deadflag == DEAD_DYING) + PHYS_INPUT_BUTTON_JUMP(this) = false; + else if (this.deadflag == DEAD_DEAD) + PHYS_INPUT_BUTTON_JUMP(this) = true; // press jump to respawn } } else if(this.aistatus & AI_STATUS_STUCK)