Files
fs2open.github.com/code
wookieejedi e01bd28e79 Expose Additional Countermeasure Options to Modders
This PR provides modders with additional options to alter countermeasure values. Previously, countermeasures had a fixed, hardcoded fire wait time of 333 milliseconds, regardless of what `$Fire Wait:` was specified. Also, the AI would wait a fixed delay between firing of failed countermeasure launches and successful countermeasure launches. For successful launches the AI would double the fire wait. Also, Friendly ships would only use a fixed constant value for countermeasure firing chance, and not the value based on their class specific AI profile.

This PR exposes those values with the following options:
•	Add main AI table flag: `Friendly Ships Use AI Profile Countermeasures Firing Chance`. This will allow Friendly ships to use their AI class profile countermeasure firing chance instead of the default fixed value from main AI table.
•	Add value in CM section of weapons table: Countermeasures use fire wait time `+Use Fire Wait`. This is a boolean that allows the countermeasure’s fire wait to actually use what is specified in the `$Fire Wait:` section of that weapon.
•	Add value in CM section weapons table: `+Fail Delay Equals Fire Wait`. The delay between failed countermeasure launches is set to use the fire wait value.
•	Add value in CM section weapons table: `+Successful Launch Delay Multiplier`. This allows modders to set the value that is multiplied to fire wait for successful countermeasure launches.
2021-02-04 13:12:02 -05:00
..
2020-10-19 03:31:01 -04:00
2020-09-15 02:36:32 -04:00
2020-11-07 16:45:22 -05:00
2020-12-18 01:32:43 -05:00
2018-07-15 19:37:24 +02:00
2021-02-03 18:18:04 -05:00
2019-07-20 16:12:45 -04:00
2020-06-26 14:47:39 -04:00
2020-09-12 14:28:16 +02:00
2021-01-28 18:25:19 -05:00
2021-01-03 22:51:17 -05:00
2021-01-17 11:21:41 -05:00
2021-01-31 13:57:12 -05:00
2016-08-12 16:13:50 -07:00
2019-11-03 16:27:23 -05:00
2020-11-22 11:58:15 -05:00
2020-09-04 18:04:51 -04:00
2020-06-06 23:24:08 +02:00
2020-10-12 21:01:42 +02:00
2020-10-06 14:31:03 -04:00
2018-04-25 11:57:55 +02:00
2020-07-16 11:52:36 -04:00
2020-10-02 18:49:01 +02:00
2020-11-21 00:57:03 -05:00
2016-07-22 12:07:19 +02:00