|Anonymous | Login | Signup for a new account||May 26, 2013 1:42 am|
|Main | My View | View Issues | Vote Tallies | FAQ|
|View Issue Details|
|ID||Project||Category||Date Submitted||Last Update|
|0006024||AI War||Suggestion - Unit Abilities And Behaviors||Feb 19, 2012 4:38 pm||Feb 22, 2012 5:07 pm|
|Fixed in Version|
|Summary||0006024: Units ejected from maws, and freed from tractorship should retain their previous orders|
|Description||As the title suggests, I'd like to see units that were interrupted--either from maws or tractor beams, to resume their previous orders before the swallow/tractored state. If they had no previous orders, I'd like for them to return to their positions prior.|
|Tags||No tags attached.|
|Internal Weight||Feature Suggestion|
Feb 20, 2012 12:25 pm
Two cases to considers:
What if the ship was moved to another planet during that time? Should it try to move back to its original planet?
What if it was an attack order on a target that no longer exists by the time they are freed? (If they had multiple orders, they should just move on to the next order, and repeat this. If not, then what?)
Feb 20, 2012 1:17 pm
They should return to its original planet and if possible to their original location or order, yes. That's when everyone loses track of where those ships are and assume they were lost.
As for the latter, then I suppose it should move back to its original position--that's what I would prefer it to do.
In case there's a rally point fanatic who puts one on each planet, perhaps a CTRL option should be provided to override this default behavior and force the ships to return to the nearest rally point.
Feb 20, 2012 2:22 pm
boolean doAutoMoveAnyways = s.orders.isAutoOrder; //If the current order was automatically obtained, like shooting at the guy who tractored me, then go ahead and try to move back anyways
if(!s.DoOrders() || doAutoMoveAnyways) //Causes s to process its order queue, executing the actions in order, just like normal. Returns true if at least one order was valid and executed
//No orders done, add a default action, move to planet, or move to coordinate if already on that planet
//Always use current planet rally post control option
if(Controls.getForPlayer( s.player).alwaysUseCurrentPlanetRallyOnCaptivityFree && s.planet.ContainsRallyPost())
else if(s.preCaptivePlanet != null && s.planet != s.preCaptivePlanet)
s.orders.Add(new PlanetMoveOrder(s.preCaptivePlanet, s.preCaptiveMoveType));
if(Controls.getForPlayer( s.player).alwaysUseOriginalPlanetRallyOnCaptivityFree) && s.preCaptivePlanet != null && s.preCaptivePlanet.ContainsRallyPost())
s.orders.Add(new RallyPostOrder(s.preCaptivePlanet.GetRandomRallyPost()); //Note, by the time this order executes, the ship is already on the pre captive planet
else if(s.preCaptiveCoordinates != null)
s.orders.Add(new MoveOrder(s.preCaptiveCoordinates, s.preCaptiveMoveType); //Note, by the time this order executes, the ship is already on the pre captive planet
Feb 20, 2012 2:26 pm
Now, I of course don't have AI war's class structure in front of me, so I am guessing wildly on method and property names.
Also, the "preCaptiveX" properties will need to be added for this suggestion to work. Basically, everytime a ship is tractored or eaten, these properties will need to be updated.
Not sure about the "when to clear" policies of these new properties should be. Maybe once they get back to their original planet?
Feb 22, 2012 5:07 pm
|can't believe I didn't think of putting this on mantis before. released ships from maws just doing nothing has always bugged me. I always have to reselect my ships in order to let them do what I want... and then they get eaten again -.- kinda annoying.|
|Only registered users can voice their support. Click here to register, or here to log in.|
|Supporters:||TechSY730 HellishFiend zoutzakje|
|Opponents:||No one explicitly opposes this issue yet.|
|Feb 19, 2012 4:38 pm||Spikey00||New Issue|
|Feb 20, 2012 9:40 am||tigersfan||Internal Weight||=> Feature Suggestion|
|Feb 20, 2012 9:40 am||tigersfan||Status||new => considering|
|Feb 20, 2012 12:25 pm||TechSY730||Note Added: 0019461|
|Feb 20, 2012 1:17 pm||Spikey00||Note Added: 0019465|
|Feb 20, 2012 2:22 pm||TechSY730||Note Added: 0019469|
|Feb 20, 2012 2:26 pm||TechSY730||Note Added: 0019470|
|Feb 22, 2012 5:07 pm||zoutzakje||Note Added: 0019613|
|Copyright © 2000 - 2011 MantisBT Group|