[Change] Pilots now try to aim somewhat with missiles.
This commit is contained in:
parent
91d37766fd
commit
869a6d7dbe
@ -23,7 +23,8 @@ function attack()
|
|||||||
second = ai.secondary() -- Get best secondary weapon.
|
second = ai.secondary() -- Get best secondary weapon.
|
||||||
|
|
||||||
-- Shoot missiles if in range.
|
-- 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.settarget(target)
|
||||||
ai.shoot(2)
|
ai.shoot(2)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user