Author Topic: Overwriting wing orders for individual ships  (Read 4155 times)

0 Members and 1 Guest are viewing this topic.

Offline ReeNoiP

  • 27
  • I FRED
Overwriting wing orders for individual ships
Is is possible to have ships in a wing act individually?

Basically I want each ship to follow its own waypoint path while still being in the wing. I tried upping the priority of the order (for the individual ships, no wing orders), but they still fly in formation along the same path.
Uncharted Territory is released. But I still need voice actors

 

Offline Sushi

  • Art Critic
  • 211
Re: Overwriting wing orders for individual ships
Is is possible to have ships in a wing act individually?

Basically I want each ship to follow its own waypoint path while still being in the wing. I tried upping the priority of the order (for the individual ships, no wing orders), but they still fly in formation along the same path.

IIRC this is the way the waypoint-follow code was "designed". Not sure what the best workaround is.

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Overwriting wing orders for individual ships
Uhm, just use add-goal for that and check priorities accordingly. Even if grouped in a single wing, fighters and bombers can eventually become "independent" thanks to a wise use of SEXPs. For example, you can order Alpha 2 to cover Alpha 1 while Alphas 3 and 4 disarm a target.

If you want fighters/bombers to follow waypoint paths independently, don't use wing orders.
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline Scotty

  • 1.21 gigawatts!
  • 211
  • Guns, guns, guns.
Re: Overwriting wing orders for individual ships
Have each ship in the "wing" actually be a ship just named what number you want it to be, with a phantom "wing" in the far off distance.  Use Check-Hits and Set-Subsystem-Strength with a high repeat count and a low repeat delay to make the ships in the wingman display stay the same color as they would be normally.  Disable orders to the phantom wing, enable orders for each individual ship.  The only way to tell that there's a difference is that the individual ships won't show up as a Wing option in the Comms menu.

 

Offline ReeNoiP

  • 27
  • I FRED
Re: Overwriting wing orders for individual ships
I gave each individual ship (drones) the goal to follow their respective waypoints 5 seconds into the mission instead of using initial orders. They still fly in formation following the drone 1. Could this have something to do with me using fury AI?

The reason I want them in a wing is so that they are easily targeted with F10, so I can't really use Scotty's suggestion.
Uncharted Territory is released. But I still need voice actors

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Overwriting wing orders for individual ships
I gave each individual ship (drones) the goal to follow their respective waypoints 5 seconds into the mission instead of using initial orders. They still fly in formation following the drone 1. Could this have something to do with me using fury AI?

The reason I want them in a wing is so that they are easily targeted with F10, so I can't really use Scotty's suggestion.

Well you can hotkey individual ships as F10 so that's not a worry.

But no, Fury AI should not change this. You should be able to give individual orders to each ship that supercede wing orders. Try hitting them with a clear-orders SEXP just before you add the new ones?

 

Offline ReeNoiP

  • 27
  • I FRED
Re: Overwriting wing orders for individual ships
Quote
Well you can hotkey individual ships as F10 so that's not a worry.

But no, Fury AI should not change this. You should be able to give individual orders to each ship that supercede wing orders. Try hitting them with a clear-orders SEXP just before you add the new ones?

Well silly me. Somehow I thought hotkeys could only be assigned to single entities (one ship/one wing). That solves my problem, I will just disband the wing.
Uncharted Territory is released. But I still need voice actors

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Overwriting wing orders for individual ships
Quote
Well you can hotkey individual ships as F10 so that's not a worry.

But no, Fury AI should not change this. You should be able to give individual orders to each ship that supercede wing orders. Try hitting them with a clear-orders SEXP just before you add the new ones?

Well silly me. Somehow I thought hotkeys could only be assigned to single entities (one ship/one wing). That solves my problem, I will just disband the wing.

But you shouldn't have to, and players won't be able to give orders to the wing (well actually you could fake it, but it'd be complex.)  :(

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Overwriting wing orders for individual ships
Meh. I remember having this problem once too. It's only with waypoints- with other orders like attack or defend, you can split up a wing. Just not with waypoints. You can fake them being in a wing- which you'll probably have to- but IIRC there's nothing in the code for members of a wing following different waypoints.

Wait, these are drones? Are they friendly or hostile? (That is, can the player see what their orders are)?

 

Offline ReeNoiP

  • 27
  • I FRED
Re: Overwriting wing orders for individual ships
Meh. I remember having this problem once too. It's only with waypoints- with other orders like attack or defend, you can split up a wing. Just not with waypoints. You can fake them being in a wing- which you'll probably have to- but IIRC there's nothing in the code for members of a wing following different waypoints.

Wait, these are drones? Are they friendly or hostile? (That is, can the player see what their orders are)?

They are "sneaky", an IFF I added myself. The player can't see their orders.
Uncharted Territory is released. But I still need voice actors

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Overwriting wing orders for individual ships
OK then, put some ships that are invisible to the player but visible to the drones (beyond the player's maximum radar range, keeping the range sufficient to see everything on the battlefield) beyond the waypoints and have the drones attack them. Remove the drones' afterburner capability and there will be no difference between this and using waypoints, except that it will work correctly.

 

Offline ReeNoiP

  • 27
  • I FRED
Re: Overwriting wing orders for individual ships
OK then, put some ships that are invisible to the player but visible to the drones (beyond the player's maximum radar range, keeping the range sufficient to see everything on the battlefield) beyond the waypoints and have the drones attack them. Remove the drones' afterburner capability and there will be no difference between this and using waypoints, except that it will work correctly.

That could probably work. But since the main issue is hotkeying them, disbanding the wing is a lot easier.
Uncharted Territory is released. But I still need voice actors

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Overwriting wing orders for individual ships
Does anyone know of a way to force one one member of a wing (without disbanding or faking one) to depart via a fighterbay?  I encountered this quite some time ago while trying to update Den5's TBP campaign "In The Beginning".  It was during the capture of Sinclair, and I wanted his ship to depart into the Minbari cruiser's fighterbay, rather than simply vanish via ship-vanish.  Obviously, an ai-warpout use would do it if it was a warpout, but since it has to be a fighterbay, then it doesn't work.  I would suggest an adjustment to the ai-warpout sexp, so include an option to select a ship, fighterbay, and perhaps even a path.
The Trivial Psychic Strikes Again!

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Overwriting wing orders for individual ships
Try setting the no-subspace-drive flag on that ship.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Overwriting wing orders for individual ships
No there isn't as departures are set for the whole wing.  You might (although not a very good idea) be able to get away with setting the departure target in notepad.  That does work for the warpout order.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Overwriting wing orders for individual ships
But it is possible to set ship flags on a per-ship scenario, and the no-subspace-drive code should handle departing to hangars.  So for TP's very specific scenario, he might be able to get something to work.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Overwriting wing orders for individual ships
How would the game know which fighterbay to depart through though?
The Trivial Psychic Strikes Again!

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Overwriting wing orders for individual ships
Magic? :nervous:

Or simply finding the closest ship on the same team with a fighterbay.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Overwriting wing orders for individual ships
But in that scenario, the target fighterbay would be an enemy ship.
The Trivial Psychic Strikes Again!

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Overwriting wing orders for individual ships
Uh, you want a fighter to, essentially, turn traitor, but still keep the same IFF?

Why not do a change-iff before calling ai-warpout?