X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fdefault%2Fscripting.qc;h=5a13330652f576268b6ce42a2939716d4517a66f;hb=c800330f9439f3421a2ef67661e1e8548a320c8f;hp=c904c5db492fca709df0ec3fa93d94dfc270746f;hpb=8b40f064c770021af83bbb36c48f9cd1f366e0b1;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/default/scripting.qc b/qcsrc/server/bot/default/scripting.qc index c904c5db4..5a1333065 100644 --- a/qcsrc/server/bot/default/scripting.qc +++ b/qcsrc/server/bot/default/scripting.qc @@ -493,8 +493,8 @@ float bot_cmd_impulse(entity this) float bot_cmd_continue(entity this) { - bot_relinkplayerlist(); this.bot_exec_status &= ~BOT_EXEC_STATUS_PAUSED; + bot_relinkplayerlist(); return CMD_STATUS_FINISHED; } @@ -1000,6 +1000,11 @@ float bot_cmd_releasekey(entity this) return bot_cmd_keypress_handler(this, key,false); } +bool bot_ispaused(entity this) +{ + return(this.bot_exec_status & BOT_EXEC_STATUS_PAUSED); +} + float bot_cmd_pause(entity this) { PHYS_INPUT_BUTTON_DRAG(this) = false; @@ -1014,8 +1019,8 @@ float bot_cmd_pause(entity this) CS(this).movement = '0 0 0'; this.bot_cmd_keys = BOT_CMD_KEY_NONE; - bot_clear(this); this.bot_exec_status |= BOT_EXEC_STATUS_PAUSED; + bot_relinkplayerlist(); return CMD_STATUS_FINISHED; }