Personalities.oxp
Moderators: winston, another_commander
- Cmdr Wyvern
- ---- E L I T E ----
- Posts: 1649
- Joined: Tue Apr 11, 2006 1:47 am
- Location: Somewhere in the great starry void
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.
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
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
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.
But with a little practice it can be done, and the results can be quite impressive.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
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.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.
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)
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Cmdr Wyvern
- ---- E L I T E ----
- Posts: 1649
- Joined: Tue Apr 11, 2006 1:47 am
- Location: Somewhere in the great starry void
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.Eric Walch wrote: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.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.
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.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)
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
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
- LittleBear
- ---- 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.
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. (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.
- Commander Learner
- Dangerous
- Posts: 123
- Joined: Thu Aug 20, 2009 12:08 pm
- Location: Somewheeeeeere over the rainbooooooooooow~
- Commander McLane
- ---- 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:
You don't see him explode. He stays unharmed by anything. You can't kill a ghost, after all.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.
And for yourself: If you see him dropping a q-bomb: Turn around and RUN!
- Cmdr Wyvern
- ---- E L I T E ----
- Posts: 1649
- Joined: Tue Apr 11, 2006 1:47 am
- Location: Somewhere in the great starry void
That's damn good advice to follow if you see anything dropping a q-bomb.Commander McLane wrote:And for yourself: If you see him dropping a q-bomb: Turn around and RUN!
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
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
- Commander McLane
- ---- 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:
- Commander McLane
- ---- 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:
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Did you get my PM?
As you know (if you got said PM) neither of your new requirements apply do me!
As you know (if you got said PM) neither of your new requirements apply do me!
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Commander McLane
- ---- 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:
Got it. (Downloading right now. A Generation Ship got a little in the way—no wonder, considering its size. )
- Commander McLane
- ---- 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: