Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: StargateSpankyHam on April 13, 2012, 12:24:51 am

Title: AI Turret Behavior on Player Ships
Post by: StargateSpankyHam on April 13, 2012, 12:24:51 am
I've noticed that turrets on the player's ship only fire on the targeted enemy - which is particularly troubling when flying a bomber with point defense turrets. Is there a way around this? I've heard of some modders experimenting with gunships around the forums, but I don't particularly recall a solution aside from flagging the ship as a cruiser (which would make the AI handle the ship radically differently). Is there perhaps a subsystem flag that allows a turret to manually override its parent ship's target and fire on any suitable target in range?

I could theoretically make all the bombs heat-seekers, which would allow the player to quickly retarget a pursuing ship and use its turrets...although this would be quite a radical deviation from conventional FS1/FS2 bomber gameplay mechanics.
Title: Re: AI Turret Behavior on Player Ships
Post by: Legate Damar on April 13, 2012, 12:38:57 am
Make the turret fire untargeted heat seeker or cluster missiles
Title: Re: AI Turret Behavior on Player Ships
Post by: Fury on April 13, 2012, 12:39:52 am
http://www.hard-light.net/wiki/index.php/Objecttypes.tbl#.24Turrets_prioritize_ship_target: (http://www.hard-light.net/wiki/index.php/Objecttypes.tbl#.24Turrets_prioritize_ship_target:)
Title: Re: AI Turret Behavior on Player Ships
Post by: General Battuta on April 13, 2012, 07:19:07 am
And don't forget to increase the pilot AI level of the player ship.
Title: Re: AI Turret Behavior on Player Ships
Post by: StargateSpankyHam on April 13, 2012, 11:27:54 am
As I was reading through the objecttypes.tbl page, I noticed the $Fog entry - and I cannot help but wonder, does this control the 'fogginess' within a full nebula? Because if so, I've been looking to modify those settings for over a year.

EDIT: Also, just got done making the .tbm file to make fighter and bomber-mounted turrets not prioritize the player's target. It works flawlessly. I might be posting some screenshots of the strategic bombers as soon as I get the rest of the weapons finished.