Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: elorran on April 24, 2009, 06:39:51 pm

Title: Weapon table flags list?
Post by: elorran on April 24, 2009, 06:39:51 pm
It's been some time since I meddled with the tables.  At one point there was a list somewhere of all the alterations and additional features the FSO team added to the engine that you could use to pruce up weapons.  I've spent the better part of the last half hour searching for such a list without luck.

Can someone point me in the right direction, assuming such a list still exists, please?
Title: Re: Weapon table flags list?
Post by: FUBAR-BDHR on April 24, 2009, 06:41:11 pm
Check the Wiki:  http://www.hard-light.net/wiki/index.php/Weapons.tbl
Title: Re: Weapon table flags list?
Post by: elorran on April 24, 2009, 06:53:01 pm
Thanks, thats somewhat helpful.  Though it seems a lot shorter than I remember.  Were a lot of the flag abilities removed or is there an expanded list anywhere that you know of?  I'm looking for a specific flag command that allows the shots from primaries to spread over an angle.
Title: Re: Weapon table flags list?
Post by: Flaming_Sword on April 24, 2009, 07:16:30 pm
That's not a flag. Look for $FOF:
Title: Re: Weapon table flags list?
Post by: Spoon on April 25, 2009, 04:11:42 am
Check the Wiki:  http://www.hard-light.net/wiki/index.php/Weapons.tbl
This confuses me:
 "Puncture"

    * Reduces hull damage by 25%

 "puncture"

    * Reduces hull damage by 75%

So which is it?
Title: Re: Weapon table flags list?
Post by: FUBAR-BDHR on April 25, 2009, 02:54:31 pm
Code: [Select]
if (Weapon_info[weapon_info_index].wi_flags & WIF_PUNCTURE) {
damage /= 4;
}

So it would  cause only 25% to the hull or or reduce the damage by 75%.  Of course that's if I'm reading that correctly.
Title: Re: Weapon table flags list?
Post by: Aardwolf on April 25, 2009, 05:18:06 pm
Code: [Select]
if (Weapon_info[weapon_info_index].wi_flags & WIF_PUNCTURE) {
damage /= 4;
}

So it would  cause only 25% to the hull or or reduce the damage by 75%.  Of course that's if I'm reading that correctly.

Fixed for readability.
Title: Re: Weapon table flags list?
Post by: elorran on April 26, 2009, 05:49:13 am
Thanks for pointing that out Flaming.  Its been a while since I touched the tables as you can see :)