How many missiles can a NPC ships have?

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
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

How many missiles can a NPC ships have?

Post by Lestradae »

Hi,

player ships can have a maximum of 16 missiles. (In RS, a ship with 16 missiles will be 340% as expensive as a comparable ship with 4 missiles due to this fact).

My question is, can NPC ships via

Code: Select all

<key>missiles</key>
<integer>X</integer>
... have X>16 missile racks?

This would enable a few ... interesting ... strategical developments to torture players :twisted:

Can someone who knows the internal workings of the core game please have a look or knows already - tell me?

Thanks in advance :)

L
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: How many missiles can a NPC ships have?

Post by Eric Walch »

Lestradae wrote:
player ships can have a maximum of 16 missiles. ...My question is, can NPC ships via... have X>16 missile racks?

As far as I know there is no limit to the number of missiles. Above that, ships with more missiles are also more likely to fire them.

It is up to the programmer to give them a realistic amount.
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 »

Hi!

Good news ... that`s one possibility to give big carrier and trader vessels a dangerous note they didn`t have before ...

Is there a way to give NPC ships specific missiles, i.e. not the standard ones but for example some of those from "Missiles & Bombs" oxp?
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 »

Yes by adding in shipdata:-

<key>missile_role</key>
<string>EQ_HARDENED_MISSILE</string>

In this example the ship will always have hardheads. If you wanted a custom missile (or one from missiles & bombs) then you need to put its equipment role here. This would mean the player would need M&Bs OXP installed as well though. If you do not specify a missile_role then Oolite randomly picks one from all the missile types from any OXPs the player has installed, but with the odds rather weighted in favour of a cheap missile. Once you specify a missile_role key though the ship always has missiles of that type, rather than the variety you get with leaving Oolite to pick one itself.
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

Re: ...

Post by Eric Walch »

Lestradae wrote:
Good news ... that`s one possibility to give big carrier and trader vessels a dangerous note they didn`t have before ...
Take note that regular traders with an escort will never fight back. They send the escorts after the attacker and always flee themselves. I think they do send a missile away when they have a minimum amount on board.
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 »

Once you specify a missile_role key though the ship always has missiles of that type, rather than the variety you get with leaving Oolite to pick one itself.
Take note that regular traders with an escort will never fight back. They send the escorts after the attacker and always flee themselves.
OK, both noted.

My idea is to install big and really dangerous missile racks on battleships anyways, everywhere else they would not make a lot of sense.

The trader (can it be termed to be one?) I had in mind was the Dredger - it could make sense to give that one of the extremely large cargo bay and sitting duck persuasion something to strike back with.

A Condor Flagship that, once attacked, fires thirty missiles at the player just to be nuked by activating ECM all at once is not the ultra-fearsome enemy I have in mind for it to be ...

Thanks for the infos, most helpful :)

L
User avatar
Cmdr. Maegil
Sword-toting nut-job
Sword-toting nut-job
Posts: 1294
Joined: Tue Feb 27, 2007 10:28 pm
Location: On the mend in Western Africa

Re: ...

Post by Cmdr. Maegil »

Lestradae wrote:
My idea is to install big and really dangerous missile racks on battleships anyways, everywhere else they would not make a lot of sense.
Don't forget about missile gunships - anything between 20 to 50 tons of cargo and a decent prime mover could be fitted with a military missile reloader and fire several murderous barrages, one after the other...
(if refreshing the missile racks in-flight is possible at all, code-wise :?
And, of course, you'd have to be able to store the missiles on the cargo hold, only to dispense them at the proper moment - IIRC, the cargo handlers are quite limited)
The trader (can it be termed to be one?) I had in mind was the Dredger - it could make sense to give that one of the extremely large cargo bay and sitting duck persuasion something to strike back with.

A Condor Flagship that, once attacked, fires thirty missiles at the player just to be nuked by activating ECM all at once is not the ultra-fearsome enemy I have in mind for it to be ...
As above, giving them a limited rack and a reloader could make them fire waves of only so many missiles at a time, but still give them a nearly inexhaustible supply.
You know those who, having been mugged and stabbed, fired, dog run over, house burned down, wife eloped with best friend, daughters becoming prostitutes and their countries invaded - still say that "all is well"?
I'm obviously not one of them.
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 »

I know it's possible to make subents that fire lasers, and turret subents packing plasma cannons.
I wonder if it's possible to make missile launching subents? If so, someone can make one heck of a missile frigate, with multiple subents throwing swarms of hardheads and plasma rounds.
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 »


And a subsequent question, can NPC ships only fire one type of missile? I've got a scenario in mind for my upcoming (at some point this century) Thargoid OXP, including a new item (a Thargon controller) which basically acts like a non-firing or moving but fairly well shielded Thargoid mothership, to keep launched thargons active and fighting after the main mothership has been nuked.

Just to make thing a little more interesting of course, but it would make most sense if the thargons could be launched (as missiles iirc from the code) but then have the controller launched at the end of the salvo.

The other way I can see to do it would be to make the controller launch (generation) a death action from the main mothership, but if possible I think I prefer the launched as missile option, then it makes the controllers appearance a little more sneaky. :twisted:
Post Reply