Personalities.oxp

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Post by Cmdr Wyvern »

A tip to the wise, Learner.

Since we're talking an AI representation of your ingame commander - a "lost twin", as it were - then here's some things to know about AI pilots and q-bombs.

1) The AIs don't actually load q-mines in their stores.
2) If an AI is set to load a certain missile type, then it's stores will be loaded completely with missiles of the set type.

Now here's where things get interesting.
If an AI is carrying an e-bomb, it will get deployed as a q-bomb.
An AI can be made to deploy a q-bomb as a death-action.
In either case, the AI ship can only do it once. Also, AIs tend to be too dumb to run from their own q-bomb blast.

Weird, huh? That's the way Oolite's AI engine runs.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

It depends a little on how far people want to run with this, as pairing up an AI and a JS script can open up a whole world of opportunities (and one or two of them might even be good ones). But it also quickly can become rather complex and convoluted when AI's and scripts start talking with one another.

But with a little practice it can be done, and the results can be quite impressive.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Cmdr Wyvern wrote:
If an AI is carrying an e-bomb, it will get deployed as a q-bomb.
An AI can be made to deploy a q-bomb as a death-action.
In either case, the AI ship can only do it once. Also, AIs tend to be too dumb to run from their own q-bomb blast.

Weird, huh? That's the way Oolite's AI engine runs.
Ships are actually well prepared to not be killed in their own q-bomb blast. The q-bomb for NPC ships has the name energy-bomb for some reason that is unknown to me. When you look in shipdata, this is also one of the roles of the q-bomb. AI can't drop this mine by direct command, but it is part of the performFlee action. That command checks if it has a bomb on board, if it has injectors and if it has fuel left. Only when all three match it has a small chance to drop the bomb and fly away on injectors. And he certainly will escape the blast.

What you are referring to are ships that turn themselves into bombs by using the code of the q-bomb itself. That is just buggy AI as the mechanism to drop true q-bombs by npc was already added with 1.65.

Try random hits. There the boms are correctly defined. Or try pursuing a supercobra. That one can even deploy 2 q-bombs. And to frighten the player is also carries 4 decoys so the player never knows what to do. I normally break of when I see one, keep an eye on it to see how it explodes and when it seemed to be a decoy I again go for the supercobra. (For this behaviour you need at least version 1.3 of this oxp)
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Post by Cmdr Wyvern »

Eric Walch wrote:
Cmdr Wyvern wrote:
If an AI is carrying an e-bomb, it will get deployed as a q-bomb.
An AI can be made to deploy a q-bomb as a death-action.
In either case, the AI ship can only do it once. Also, AIs tend to be too dumb to run from their own q-bomb blast.

Weird, huh? That's the way Oolite's AI engine runs.
Ships are actually well prepared to not be killed in their own q-bomb blast. The q-bomb for NPC ships has the name energy-bomb for some reason that is unknown to me. When you look in shipdata, this is also one of the roles of the q-bomb. AI can't drop this mine by direct command, but it is part of the performFlee action. That command checks if it has a bomb on board, if it has injectors and if it has fuel left. Only when all three match it has a small chance to drop the bomb and fly away on injectors. And he certainly will escape the blast.
Ok, I've seen that happen, but so far successfully only once. Other pirates have dropped the lethal blue, but wound up blowing away their friends and/or themselves with it.
What you are referring to are ships that turn themselves into bombs by using the code of the q-bomb itself. That is just buggy AI as the mechanism to drop true q-bombs by npc was already added with 1.65.

Try random hits. There the boms are correctly defined. Or try pursuing a supercobra. That one can even deploy 2 q-bombs. And to frighten the player is also carries 4 decoys so the player never knows what to do. I normally break of when I see one, keep an eye on it to see how it explodes and when it seemed to be a decoy I again go for the supercobra. (For this behaviour you need at least version 1.3 of this oxp)
It was RH and Renegades that I was referring to in this instance. The targets there tend to leave behind a ticking terror as a parting gift when killed. Never seen them launch one any other time, so I was guessing the bomb was deployed as a scripted death-action.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

RH victims can also drop a q-mine when they flee as well as when they die. Its a random chance though whether a paricular victim is carrying a mine and even if they have a mine, they won't drop it whilst alive unless the ship also has injectors fitted (also a random chance) and fuel to use them. The native code takes care of this as even if a ship has a mine, set with has_energy_bomb in shipdata, it won't use it unless in performFlee. If they know they are about to die and have no pod, they may try to take you with them even if they don't have injectors. :wink: (Done by a random chance of poding, droping a mine or just plain dying when death actions are run). They also always flee if the player (or another NPC) drops a mine. This may not do them any good though if they happen to be out of fuel or their ship doesn't have injectors. They may also try to jump out if a mine is deployed near them (Done with AI and random reactions on spotting a mine with a scanForShipWithAnyRole). Renegades ain't as smart as I wrote that one a long time ago and they only can drop a mine when they die.
Last edited by LittleBear on Thu Oct 08, 2009 11:25 pm, edited 1 time in total.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
Commander Learner
Dangerous
Dangerous
Posts: 123
Joined: Thu Aug 20, 2009 12:08 pm
Location: Somewheeeeeere over the rainbooooooooooow~

Post by Commander Learner »

What about the Flying Dutchman? One of the 'bad luck' in the script is to drop Q-Bomb, and it's very frustrating when you're tailing him and suddenly you just see him explode and you die.
Shooting polygons since 2001
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Commander Learner wrote:
What about the Flying Dutchman? One of the 'bad luck' in the script is to drop Q-Bomb, and it's very frustrating when you're tailing him and suddenly you just see him explode and you die.
You don't see him explode. He stays unharmed by anything. You can't kill a ghost, after all. :wink:

And for yourself: If you see him dropping a q-bomb: Turn around and RUN! :twisted:
User avatar
Cmdr Wyvern
---- E L I T E ----
---- E L I T E ----
Posts: 1649
Joined: Tue Apr 11, 2006 1:47 am
Location: Somewhere in the great starry void

Post by Cmdr Wyvern »

Commander McLane wrote:
And for yourself: If you see him dropping a q-bomb: Turn around and RUN! :twisted:
That's damn good advice to follow if you see anything dropping a q-bomb.
Worry about the change of underwear later, when the azure death is far behind you.
Running Oolite buttery smooth & rock stable w/ tons of eyecandy oxps on:
ASUS Prime X370-A
Ryzen 5 1500X
16GB DDR4 3200MHZ
128GB NVMe M.2 SSD (Boot drive)
1TB Hybrid HDD (For software and games)
EVGA GTX-1070 SC
1080P Samsung large screen monitor
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Cmdr Wyvern wrote:
Commander McLane wrote:
And for yourself: If you see him dropping a q-bomb: Turn around and RUN! :twisted:
That's damn good advice to follow if you see anything dropping a q-bomb.
Worry about the change of underwear later, when the azure death is far behind you.
:lol: :lol: :lol:
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Added two items to the list in the first post:
* the cargo you are most likely to carry (if any),
and
h. victory exclamations (when you killed your opponent),
More characters are welcome! :D
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Did you get my PM?

As you know (if you got said PM) neither of your new requirements apply do me! :wink:
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Got it. (Downloading right now. A Generation Ship got a little in the way—no wonder, considering its size. :wink: )
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Quick question: Quite some people mentioned EQ_MILITARY_MISSILE as the missiles of choice for their characters. Where do I get them? Which OXP are they from?
User avatar
Wolfwood
---- E L I T E ----
---- E L I T E ----
Posts: 735
Joined: Wed Mar 29, 2006 9:53 am
Location: Finland
Contact:

Post by Wolfwood »

Commander McLane wrote:
Quick question: Quite some people mentioned EQ_MILITARY_MISSILE as the missiles of choice for their characters. Where do I get them? Which OXP are they from?
Same as Navy, I presume.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

It seems to stem from the milmissile oxp, which no longer seems to be available on the wiki - or did I get one from Oosat? :?
Post Reply