[Change] Pilots now try to aim somewhat with missiles.

This commit is contained in:
Allanis 2013-08-10 12:58:59 +01:00
parent 91d37766fd
commit 869a6d7dbe

View File

@ -23,7 +23,8 @@ function attack()
second = ai.secondary() -- Get best secondary weapon.
-- Shoot missiles if in range.
if ai.secondary() == "Launcher" and dist < ai.getweaprange(1) then
if ai.secondary() == "Launcher" and
dist < ai.getweaprange(1) and dir < 30 then -- More lenient with aiming.
ai.settarget(target)
ai.shoot(2)
end