]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/aim.qc
Add an option to allow bots to typefrag
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / aim.qc
index 5ad1295f990f0b3d16be6b989e3263e4b17b3466..fde4c0154a6199ebf4174ca23611c21cb7a2e650 100644 (file)
@@ -139,7 +139,7 @@ bool bot_shouldattack(entity this, entity targ)
                return false;
        if (IS_DEAD(targ))
                return false;
-       if (PHYS_INPUT_BUTTON_CHAT(targ))
+       if (PHYS_INPUT_BUTTON_CHAT(targ) && !autocvar_bot_typefrag)
                return false;
        if(targ.flags & FL_NOTARGET)
                return false;