[Mod Utility] Reflexive Fire System
Posted: Sun Apr 08, 2018 12:50 am
WHAT IS REFLEXIVE FIRE?
Reflexive Fire is a mod that I, with the help of Lemonymous and KartoFlane, have made to allow modders to create custom Vek that can take reaction shots on the player turn much like XCOM's overwatch system. The system is simple for modders to implement, and players can get the hang of it's rules relatively easily.
THIS MOD DOES NOTHING ON ITS OWN. It must be combined with another mod that makes use of it's framework, such as my Evolved Vek mod: viewtopic.php?f=25&p=116549
HOW DOES IT WORK?
In a pawn template, modders can define an array, Overwatch, with the three parameters Range, Shots Per Turn, Shots Per Pawn, and WeaponSlot. The Vek must also have a ranged weapon equipped in a slot (assigned with WeaponSlot) that fires immediately, with no queued damage. Modders should also set the weapon's targeting AI so it never fires on the enemy turn (unless you desire an enemy that attacks both on the enemy turn and on the player turn). There is currently no visual feedback for Shots Per Turn and Shots Per Pawn, so it is recommended that modders place such information in their weapon descriptions.
In mission, Vek with Overwatch arrays in their templates will have blue Reflex Marked icons drawn on the tiles that they can hit according to their Range. Tiles that the Vek cannot see, such as tiles behind mountains, buildings, or other units, will not be marked. If a Mech ends it's move, or is pushed into, one of these marked tiles, the Vek will fire it's equipped weapon at the Mech. If the Mech is moved again into a marked tile through use of pilot abilities or weapon push, the Vek will fire if it's Shots Per Pawn is above 1. If a different Mech moves into a marked tile, the Vek will fire if it's Shots Per Turn is above 1. On the enemy turn, Reflex Fire is disabled and the Vek's ammo, both per-pawn and per-turn, will be replenished.
(This is an old image, Line of Sight is now blocked by smoke)
INSTALLATION GUIDE
STEP 1: Install KartoFlane's Mod Loader here (scroll down for installation instructions): https://github.com/kartoFlane/ITB-ModLoader
STEP 2: Download Reflexive Fire here: https://www.dropbox.com/s/jg1tqmvzg51yd ... e.zip?dl=1
STEP 3: Move reflexivefire.zip into your Mods folder and extract it so that the file path looks like this:
Now open Into the Breach, go to the Mod Content button on the main menu, then click Configure Mods. If Reflexive Fire shows up in the list, you've installed it correctly.
VERSION HISTORY
1.0.0 - Initial release
1.0.1 - Bugfixes
1.0.2 - Added weapon slot system and blocking with smoke
1.0.3 - Bugfixes and "Reflex Firing!" popup
FREQUENTLY ASKED QUESTIONS
Q: Can I make a Mech or a Pilot with Reflex Fire?
A: As of right now, no. The system works by detecting the MoveSkill that all Mechs use, and Vek use some type of hardcoded movement ability that we can't track. I'm told KartoFlane's working on it, though.
Q: I'm a modder and I didn't understand your instructions at all.
A: In the mod folder, there's a folder named Examples with a pawn and a weapon fully set up to use Reflex Fire. I've also added handy comments that explain what's going on. Check it out.
Q: What the heck are those cool sneks in the images?
A: They're Cobras from my Evolved Vek mod. Download here: viewtopic.php?f=25&t=32984
Q: How the heck did you make this thing?!
A: With the help of a lot of people on the ITB Discord! Come and discuss modding with us: https://discord.gg/bzz6csg
THANKS
To Subset Games, for making Into the Breach
To Lemonymous for making Reflex Fire work with Undo Move and Reset Turn
To KartoFlane for creating the ModApiExtension that this mod couldn't exist without
Reflexive Fire is a mod that I, with the help of Lemonymous and KartoFlane, have made to allow modders to create custom Vek that can take reaction shots on the player turn much like XCOM's overwatch system. The system is simple for modders to implement, and players can get the hang of it's rules relatively easily.
THIS MOD DOES NOTHING ON ITS OWN. It must be combined with another mod that makes use of it's framework, such as my Evolved Vek mod: viewtopic.php?f=25&p=116549
HOW DOES IT WORK?
In a pawn template, modders can define an array, Overwatch, with the three parameters Range, Shots Per Turn, Shots Per Pawn, and WeaponSlot. The Vek must also have a ranged weapon equipped in a slot (assigned with WeaponSlot) that fires immediately, with no queued damage. Modders should also set the weapon's targeting AI so it never fires on the enemy turn (unless you desire an enemy that attacks both on the enemy turn and on the player turn). There is currently no visual feedback for Shots Per Turn and Shots Per Pawn, so it is recommended that modders place such information in their weapon descriptions.
In mission, Vek with Overwatch arrays in their templates will have blue Reflex Marked icons drawn on the tiles that they can hit according to their Range. Tiles that the Vek cannot see, such as tiles behind mountains, buildings, or other units, will not be marked. If a Mech ends it's move, or is pushed into, one of these marked tiles, the Vek will fire it's equipped weapon at the Mech. If the Mech is moved again into a marked tile through use of pilot abilities or weapon push, the Vek will fire if it's Shots Per Pawn is above 1. If a different Mech moves into a marked tile, the Vek will fire if it's Shots Per Turn is above 1. On the enemy turn, Reflex Fire is disabled and the Vek's ammo, both per-pawn and per-turn, will be replenished.
(This is an old image, Line of Sight is now blocked by smoke)
INSTALLATION GUIDE
STEP 1: Install KartoFlane's Mod Loader here (scroll down for installation instructions): https://github.com/kartoFlane/ITB-ModLoader
STEP 2: Download Reflexive Fire here: https://www.dropbox.com/s/jg1tqmvzg51yd ... e.zip?dl=1
STEP 3: Move reflexivefire.zip into your Mods folder and extract it so that the file path looks like this:
Now open Into the Breach, go to the Mod Content button on the main menu, then click Configure Mods. If Reflexive Fire shows up in the list, you've installed it correctly.
VERSION HISTORY
1.0.0 - Initial release
1.0.1 - Bugfixes
1.0.2 - Added weapon slot system and blocking with smoke
1.0.3 - Bugfixes and "Reflex Firing!" popup
FREQUENTLY ASKED QUESTIONS
Q: Can I make a Mech or a Pilot with Reflex Fire?
A: As of right now, no. The system works by detecting the MoveSkill that all Mechs use, and Vek use some type of hardcoded movement ability that we can't track. I'm told KartoFlane's working on it, though.
Q: I'm a modder and I didn't understand your instructions at all.
A: In the mod folder, there's a folder named Examples with a pawn and a weapon fully set up to use Reflex Fire. I've also added handy comments that explain what's going on. Check it out.
Q: What the heck are those cool sneks in the images?
A: They're Cobras from my Evolved Vek mod. Download here: viewtopic.php?f=25&t=32984
Q: How the heck did you make this thing?!
A: With the help of a lot of people on the ITB Discord! Come and discuss modding with us: https://discord.gg/bzz6csg
THANKS
To Subset Games, for making Into the Breach
To Lemonymous for making Reflex Fire work with Undo Move and Reset Turn
To KartoFlane for creating the ModApiExtension that this mod couldn't exist without