kuertee / x4-mod-da-ku-ai-tweaks

deadairaitweaks + kuertee attack ai tweaks
17 stars 4 forks source link

DA6.2 #12

Closed DeadAirRT closed 10 months ago

DeadAirRT commented 10 months ago

Updated lib.target.selection.dat, interrupt.attacked, move.attack.object.capital, move.flee, and move.seekenemies.

lib.target.selection.dat - There is something strange with the vanilla scripts right now. Several of the scripts had a patch previously that set targetclasses to [class.ship, class.station] but were changed more recently to exclude class.ship_xs which would explain why ships refuse to target laser towers. Changed my script to the old inclusive version.

interrupt.attacked and move.flee - minor updates to xpath syntax for 6.2

move.attack.object.capital - merged Kuertee changes to debug with my version. Fixed potential cause of unknown ship name (this.assignedcontrolled.name vs this.assignedcontrolled.knownname)

move.seekenemies - Fixed xpath broken in 6.2 update. Added missing check that may have prevented patrol ships from assisting same owner assets in sector owned by separate faction.