X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Faim.qc;h=9ef109e2b585e3c76053c7b183fbc49da22543ff;hb=f2562c4ce3305b5d3724ae03015d35abdaa12b83;hp=1911daf9e6a3ad2f5504995fac11f68b3256f5f1;hpb=ee1bc52fd8269edac22ce73ddecc88583fa1d623;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/aim.qc b/qcsrc/server/bot/aim.qc index 1911daf9e..9ef109e2b 100644 --- a/qcsrc/server/bot/aim.qc +++ b/qcsrc/server/bot/aim.qc @@ -353,18 +353,19 @@ float bot_aim(float shotspeed, float shotspeedupward, float maxshottime, float a { f = bot_aimdir(v - shotorg, r); //dprint("AIM: ");dprint(vtos(self.bot_aimtargorigin));dprint(" + ");dprint(vtos(self.bot_aimtargvelocity));dprint(" * ");dprint(ftos(self.bot_aimlatency + vlen(self.bot_aimtargorigin - shotorg) / shotspeed));dprint(" = ");dprint(vtos(v));dprint(" : aimdir = ");dprint(vtos(normalize(v - shotorg)));dprint(" : ");dprint(vtos(shotdir));dprint("\n"); - traceline(shotorg, shotorg + shotdir * 10000, FALSE, self); - if (trace_ent.takedamage) - if (trace_fraction < 1) - if (!bot_shouldattack(trace_ent)) - return FALSE; + //traceline(shotorg, shotorg + shotdir * 10000, FALSE, self); + //if (trace_ent.takedamage) + //if (trace_fraction < 1) + //if (!bot_shouldattack(trace_ent)) + // return FALSE; traceline(shotorg, self.bot_aimtargorigin, FALSE, self); if (trace_fraction < 1) if (trace_ent != self.enemy) if (!bot_shouldattack(trace_ent)) return FALSE; } - if (r > maxshottime * shotspeed) - return FALSE; - return f; + + //if (r > maxshottime * shotspeed) + // return FALSE; + return TRUE; };