Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: krevett62 on December 13, 2014, 02:03:41 pm

Title: "Huge" weapons
Post by: krevett62 on December 13, 2014, 02:03:41 pm
Hi, sorry if this question as been asked but is there a way to make a weapon able to damage ships with the "Big Damage" flag also useable by the AI on small ships like fighters and bombers? I know about the "Huge" flag but it prevents AI from using this kind of weapon on small ships.
Title: Re: "Huge" weapons
Post by: AdmiralRalwood on December 13, 2014, 02:26:28 pm
Hi, sorry if this question as been asked but is there a way to make a weapon able to damage ships with the "Big Damage" flag also useable by the AI on small ships like fighters and bombers? I know about the "Huge" flag but it prevents AI from using this kind of weapon on small ships.
Nope. It looks like it would be rather easy to add, though; could probably stick it into the last WIF_* slot and then add it to the WIF_HURTS_BIG_SHIPS define for a really low-effort addition.
Title: Re: "Huge" weapons
Post by: Fury on December 14, 2014, 02:14:51 am
As a matter of fact, there is.
http://www.hard-light.net/wiki/index.php/Ai_profiles.tbl#.24disable_weapon_damage_scaling: (http://www.hard-light.net/wiki/index.php/Ai_profiles.tbl#.24disable_weapon_damage_scaling:)
Title: Re: "Huge" weapons
Post by: AdmiralRalwood on December 14, 2014, 02:42:07 am
Although that effectively gives every weapon the Huge/Supercap flags, which may not be the desired behavior.
Title: Re: "Huge" weapons
Post by: krevett62 on December 14, 2014, 02:54:29 am
Yes, in fact I'd like this behavior only for specific weapons. Also the "Disable weapon damage scaling" won't make AI use the weapons with "Huge" flag on smaller craft and that is my main problem ;). I still want "Huge" weapons (ie that damage large ships and not fired on smaller crafts) but I'd want "Large" weapons (that damage large ships and that can be fired at smaller crafts in the same time) for some turrets.
Title: Re: "Huge" weapons
Post by: Fury on December 14, 2014, 03:37:12 am
In that case you can use http://www.hard-light.net/wiki/index.php/Ai_profiles.tbl#.24smart_primary_weapon_selection: (http://www.hard-light.net/wiki/index.php/Ai_profiles.tbl#.24smart_primary_weapon_selection:).
As long as the weapon is otherwise primary compatible, the AI will use the weapon even if it has huge flag.

There's also equivalent flag for secondaries.
Title: Re: "Huge" weapons
Post by: krevett62 on December 14, 2014, 03:48:14 am
These are already set to yes in my aiprofile table, but the turrets with "Huge" flag set on capship still won't fire at small ships... It's not related to primary or secondary selection as it is mainly for capship big laser turrets...
Title: Re: "Huge" weapons
Post by: Fury on December 14, 2014, 04:44:34 am
What? But that's completely different from what you posted originally. Make up your mind.
Title: Re: "Huge" weapons
Post by: krevett62 on December 14, 2014, 05:29:17 am
That's exactly what I was asking it was just mispelled, instead of also useable by AI on small ships, I should have said useable by AI to also target small ships...sorry