Military Energy Unit

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
Murgh
---- E L I T E ----
---- E L I T E ----
Posts: 454
Joined: Fri Sep 03, 2004 6:19 am
Location: Terra Firma

Post by Murgh »

kaypy wrote:
the regular missiles keep coming, because the AI tells it to do so in a few cases.
My problem isnt with it launching missiles too fast (although that needs tweaking too) its that regular thargoids launch tharglets with the same command, but its hardwired for role="thargoid" (and defense ships dont seem to stay just "thargoid" even if they are summonded with that role.
that's what I mean though. regular as in reg'lar, common missiles. not fast.

although Thargoids launch thargons when normal ships would do missiles, this is restricted to the shipdata. nowhere in thargoidAI does it command to use missiles. if it did, thargoids would launch reg'lar missiles too. that's what I think anyway..
in your case it is leftovers from the behemoth's carrierAI that checks group odds and launches missiles in any event ;)

no, the howto texture nor any specific texturemap advice, isn't there yet on the wiki, but something like this could be a good tutorial example..
The man next to you is your lunch
kaypy
Above Average
Above Average
Posts: 19
Joined: Sat Nov 19, 2005 5:16 am

Post by kaypy »

I didnt think that was the case, but just to be sure, I added fireMissile into the default thargoidAI...

For them, it worked as I expected: they now launch drones immediately rather than waiting until it is too late to do any good (pretty much what I was aiming for)
kaypy
Above Average
Above Average
Posts: 19
Joined: Sat Nov 19, 2005 5:16 am

Post by kaypy »

Is there any way to create a ship and its escorts from a script? Everything I put in seems to wind up friendless...
User avatar
Murgh
---- E L I T E ----
---- E L I T E ----
Posts: 454
Joined: Fri Sep 03, 2004 6:19 am
Location: Terra Firma

Post by Murgh »

no. setUpEscorts goes into the AI. magically produces them if a ship is alone.

of course you could add the escorts in the script, but it's no guarantee they'll "marry" the intended escortmother.
The man next to you is your lunch
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post by Arexack_Heretic »

fireMissile --I didnt know that method.
If you find any new methods, please let us know, so we can add them to the wiki. :)

Do thargoid-ships have missiles so they will keep launching thargons or because if they launch a missile, it changes into a thargon?
Riding the Rocket!
kaypy
Above Average
Above Average
Posts: 19
Joined: Sat Nov 19, 2005 5:16 am

Post by kaypy »

The thargoid warship carries 5 "missiles", but when it tries to fire one, the fireMissile command notices that it is role="thargoid" and launches a tharglet instead (via the fireTharglet command).
Post Reply