
[Add] Bomber attack routines. [Fix] Bug with AI forgetting about you if another enemy attacks.
37 lines
722 B
Lua
37 lines
722 B
Lua
include("../scripts/ai/tpl/generic.lua")
|
|
|
|
-- Settings.
|
|
aggressive = true
|
|
safe_distance = 500
|
|
armour_run = 80
|
|
armour_return = 100
|
|
|
|
function create()
|
|
ai.setcredits(ai.shipprice()/1000, ai.shipprice()/100)
|
|
end
|
|
|
|
function taunt(target, offense)
|
|
-- Only 50% of actually taunting.
|
|
if rnd.int(0,1) == 0 then
|
|
return
|
|
end
|
|
|
|
-- Some taunts.
|
|
if offense then
|
|
taunts = {
|
|
"Prepare to be boarded!",
|
|
"Yohoho!",
|
|
"What's a pretty ship like you doing in a place like this?!"
|
|
}
|
|
else
|
|
taunts = {
|
|
"You dare attack me?!",
|
|
"You think that you can take me on?!",
|
|
"JUST!! DIE!!",
|
|
"You'll regret this!"
|
|
}
|
|
end
|
|
ai.comm(target, taunts[rnd.int(1, #taunts)])
|
|
end
|
|
|