|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002780||FSSCP||AI||public||2013-01-25 17:07||2013-01-27 04:52|
|Target Version||Fixed in Version|
|Summary||0002780: AI does not ensure clear line of sight when attacking subsystems|
|Description||Since revision 6511, any AI ship ordered to attack a subsystem will do so by getting close enough to the ship and firing in the direction of the subsystem without making any attempt to actually get a clear line of sight of that subsystem.|
|Steps To Reproduce||You can use the attached mission to see this in action. Delta 1, located 3000 meters behind the Orion, has the order to disable it. If played on retail or a revision before 6511, Delta 1 will fly under the Orion where the engine is located. If played on revision 6511 or later, he will simply fly straight into the engine wash and shoot in the direction of the engine. You can also call in Epsilon 1, who will warp in underneath the Orion and actually shoot the engine.|
|Tags||No tags attached.|
|Argh. Though if you narrowed down the behavior to a single revision, this is a very good bug ticket. Do you mean to say that the behavior was as normal in 6510 but changed in 6511?|
Ridiculously simple patch that fixes this is attached.
There might exist balance issues with existing missions which were designed with this bug.
Any such balance issues (I doubt there are any) would be more than outweighed by the breakage to compatibility, not only with retail, but with all missions produced prior to 9/25/2010.
Good catch on the actual cause. I will commit your patch shortly, plus some other fixes that need to be made in that function.
|Fix committed to trunk@9512.|
fs2open: trunk r9512
Timestamp: 2013-01-27 05:28:35
|apply m!m's fix for Mantis 0002780
also correct the off-by-one error in the range check (path_num must < n_paths, not <=)
|mod - /trunk/fs2_open/code/ai/aibig.cpp|
|2013-01-25 17:07||Yarn||New Issue|
|2013-01-25 17:07||Yarn||File Added: SubsystemTest.fs2|
|2013-01-27 03:20||Goober5000||Note Added: 0014660|
|2013-01-27 04:02||m_m||Note Added: 0014661|
|2013-01-27 04:02||m_m||File Added: mantis_2780.patch|
|2013-01-27 04:07||m_m||Assigned To||=> m_m|
|2013-01-27 04:07||m_m||Status||new => feedback|
|2013-01-27 04:40||Goober5000||Note Added: 0014662|
|2013-01-27 04:52||Goober5000||Changeset attached||=> fs2open trunk r9512|
|2013-01-27 04:52||Goober5000||Note Added: 0014663|
|2013-01-27 04:52||Goober5000||Status||feedback => resolved|
|2013-01-27 04:52||Goober5000||Resolution||open => fixed|