Q-Bomb warning message for AI

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
skypatrikelite
Poor
Poor
Posts: 5
Joined: Sun Oct 12, 2008 8:22 pm
Contact:

Q-Bomb warning message for AI

Post by skypatrikelite »

Someone can program a Q-Bomb warning message like "missile incoming" or "Q-Bomb incoming"? Maybe it's fun to watch the other ship run away from the sphere.... :)
I've played to Elite in the 1988.
Now I play Oolite.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Missile warnings are already in place. Eric's Missile Analyser OXP does that (unless the missile is a standard one, which gets ignored) and my Anti-Missile System (which I'm just final-testing, for release probably sometime next week) will do it for any incoming missile, and fire off an interceptor dart to try and destroy it.

Q-Bombs are usually quite obvious when they go off, the big blue sphere is a bit of a clue ;) But I guess to detect their actual launch would be a possible extension to MA (and perhaps AMS) too, although it would have to be done in a different way (by timed scan). Both MA and AMS use an existing event for missile detection, which doesn't cover Q-bombs.
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 »

Just adding a conslemessage or comms message to the ENTER state of the timebombAI would do it. The bomb sends a message "Warning Q Bomb Active" or whatever and 5 seconds later it blows. The q-mines dropped by victims in random hits send a randomised taunt before exploding. If you wanted to replace the native timebombAI with the randomhitstimebombAI then all mines in the game would do this.
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
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Wouldn't that risk rogue console/comms messages if an NPC decides to drop a Q-bomb anywhere in the system though?
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 »

Think it would be OK as the bomb only has the default scanner range of 25km so the player only recives the comms message if the bomb is on his scanner (which would be when you want the warning). I think the bug with Thargoid death cries appearing from ships the player can't see and with no ship IDed on the Comms Log is due to Bugs having a scanner range of 50kms. So a dying thargoid out of scanner range still sends the player his last words! Not 100% on this though. I'll just switch it on my system and see what happens. :wink: I guess it will mean your own bomb also warns you its about to explode. Damm the Galatic Heath and Saftey Executive with their stupid mandatory warnings!
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
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 »

LittleBear wrote:
I think the bug with Thargoid death cries appearing from ships the player can't see and with no ship IDed on the Comms Log is due to Bugs having a scanner range of 50kms.
No the but with thargoids was that they used

Code: Select all

this.shipDied = function ()
{
	player.commsMessage(expandDescription("[thargoid_curses]"));
}
to broadcast its message. By doing it this way, it is always the player hat broadcasts the message. And than it is very logical the player alse received it always. With 1.72 you can use:

Code: Select all

this.shipDied = function ()
{
	this.ship.commsMessage(expandDescription("[thargoid_curses]"));
}
I would have thought the thargoid script would have also been changed this way. But it is not, the bug with the thargoid messages is still in!
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Eric Walch wrote:
I would have thought the thargoid script would have also been changed this way. But it is not, the bug with the thargoid messages is still in!
Not anymore.
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 »

As it is, dropped mines are silent, the red/yellow flashing blip on the scanner being the only warning before they go off, except for the Random Hits mines cussing you then going off.
I'm thinking maybe a dropped mine - ANY mine, not just q-bombs; there's some mines in the M&B OXP, after all - should sound the ships alarm and flash a HUD warning, same as missiles do. Sort of like:

Vroop! Vroop!
"DANGER! Live mine detected!"

It's likely that can't be done just by modifying the AI.
Last edited by Cmdr Wyvern on Mon Nov 17, 2008 9:13 pm, edited 1 time in total.
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 »

The only problem with that is a lot of recent equipment (including a lot of my own) uses a mine as a method of triggering. Examples being fuel tank, probe, drones, ECD (from my energy equipment). We'd need some way around that as NPCs can also use some of these too.
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 »

hmmm....
Maybe a not_weapon key for the equipment.plist, to be used on those non-explosive mines, ie droptanks, ECDs, drones, ect?
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
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:
As it is, dropped mines are silent, the red/yellow flashing blip on the scanner being the only warning before they go off, except for the Random Hits mines cussing you then going off.
I think that is the purpose of most mines: Stay undetected until it is to late while missiles try not to hide but surprise their target with speed. (In that definition are cruise-missiles not fitting as missiles but as mines.)
Post Reply