-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gponick-add-dashed-option'
* gponick-add-dashed-option: cleanup variable names and code for obstructed line changes, and add option to disable indirect LoF feature, plus add a thickness setting for the obstructed line Refactor based on PR comments. Add dash thickness also. Add option to modify obstructed lines, both the first half and second. Defaults to only second half, purple-ish. Refactor to keep the lerping. Add a dashed option and code paths. Tested.
- Loading branch information
Showing
4 changed files
with
162 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,43 @@ | ||
# BTMLColorLOSMod | ||
BattleTech Mod (using [BTML](https://github.com/Mpstark/BattleTechModLoader) and [ModTek](https://github.com/Mpstark/ModTek)) that changes the color of indirect firing lines in battle to a different color from direct. | ||
|
||
## Installing | ||
After [installing BTML and Modtek](https://github.com/Mpstark/ModTek/wiki/The-Drop-Dead-Simple-Guide-to-Installing-BTML-&-ModTek-&-ModTek-mods), put into `\BATTLETECH\Mods\BTMLColorLOSMod` folder and launch the game. | ||
|
||
## Features | ||
- Make the line drawn between your currently controlled mech and an enemy in your firing arc with indirect-fire only a different color | ||
|
||
## Settings | ||
Setting | Type | Default | Description | ||
--- | --- | --- | --- | ||
indirectLineOfFireArcColor | float[4] | default [1, 0.5, 0, 1] (an orange-ish color) | the default in vanilla is [1, 0, 0, 1]. | ||
|
||
Note that the last number controls alpha transparency, so if you make it a zero you will probably not have an indirect firing line at all. All numbers should be between 0 and 1. | ||
- Change the color of indirect line of fire indicator drawn between the currently controlled mech and enemy targets | ||
- Add dashes to the indirect line of fire indicator drawn between the currently controlled mech and enemy targets | ||
- Change the color of the line of fire indicator for obstructed targets on the attacker and target sides of the obstruction | ||
|
||
## Download | ||
Downloads can be found on [github](https://github.com/janxious/BTMLColorLOSMod/releases). | ||
Downloads can be found on [Github](https://github.com/janxious/BTMLColorLOSMod/releases) and on [Nexus](https://www.nexusmods.com/battletech/mods/135). | ||
|
||
## Install | ||
- [Install BTML and Modtek](https://github.com/Mpstark/ModTek/wiki/The-Drop-Dead-Simple-Guide-to-Installing-BTML-&-ModTek-&-ModTek-mods). | ||
- Put the `BTMLColorLOSMod.dll` and `mod.json` files into `\BATTLETECH\Mods\BTMLColorLOSMod` folder. | ||
- If you want to change the settings do so in the mod.json. | ||
- Start the game. | ||
|
||
## Settings | ||
Setting | Type | Default | Description | ||
--- | --- | --- | --- | ||
`indirectLineOfFireArcActive` | `bool` | `true` | change the look of the indirect firing line arc | ||
`indirectLineOfFireArcColor` | `float[4]` | `[1, 0.5, 0, 1]` (orange) | the color of the indirect firing line arc. The default in vanilla is `[1, 0, 0, 1]` (red). | ||
`indirectLineOfFireArcDashed` | `bool` | `false` | make the indirect firing line arc a dashed line | ||
`indirectLineOfFireArcDashedThicknessMultiplier` | `float` | `1.75` | change how thick the indirect firing line looks when dashed | ||
`obstructedLineOfFireAttackerSideActive` | `bool` | false | change the look of the line of fire indicator when obstructed on the side nearest the attacker | ||
`obstructedLineOfFireAttackerSideColor` | `float[4]` | `[0, 0.25, 1, 1]` (blue) | line of fire color nearest the attacker when fire is obstructed | ||
`obstructedLineOfFireTargetSideActive` | `bool` | true | change the look of the line of fire indicator when obstructed on the side nearest the target | ||
`obstructedLineOfFireTargetSideColor` | `float[4]` | `[0.6, 0, 1, 0.9]` (purple) | line of fire color nearest the target when fire is obstructed | ||
`obstructedLineOfFireTargetSiteThicknessMultiplier` | `float` | `1.25` | change how thick the obstructed firing line looks on the target side | ||
|
||
Note that the last number in the above `float[4]` controls alpha transparency, so if you make it a `0` you will probably not have an indirect firing line at all. All numbers should be between `0` and `1`. | ||
|
||
## Special Thanks | ||
|
||
HBS, @Mpstark, @Morphyum, @gponick | ||
|
||
|
||
## New HBS Patch Instructions | ||
## Maintainer Notes: New HBS Patch Instructions | ||
|
||
* pop open VS | ||
* grab the latest version of the assembly | ||
* copy the new version of the methods in `original_src` over the existing ones | ||
* see if anything important changed via git | ||
* see if anything important changed via git |