Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move build range overlay creation to post-mod blueprint loading (FAFo…
…rever#6220) <!-- General useful tooling: - [ScreenToGif](https://www.screentogif.com/): Free, open source screen recorder that can export to MP4. If the changes are visual, these can help you tell us exactly what the changes imply! --> <!-- Feel free to remove unused parts of this template. --> ## Issue There are frequently modded games with build range multiplier mods, but the overlay is created before mod loading, so it's not possible to see the new range without UI mods. ## Description of the proposed changes <!-- A clear and concise description (or visuals) of what the changes imply. --> <!-- If it closes an issue, make sure to link the issue by using "(Closes/Fixes/Resolves) #(Issue Number)" in your pull request. --> - Moves the build range overlay to post mod blueprint loading so it is compatible with mods. - Adds engineering pods to the overlay since it shouldn't lag and it is helpful to see their build range. - Excludes engineer stations from the build range overlay since being able to see what they will auto-assist is useful for not getting them stuck on hard to assist things like SMD. - Excludes engineers with air staging from the overlay just in case it ever happens. ## Testing done on the proposed changes <!-- List all relevant testing that you've done to confirm the changes work. --> - Enabled a 1.5x build range mod and made sure that the overlay updated for engineers and not for engineer stations. - Checked that guard scan radius for engineer stations works within the exactly stated radius by disabling the blueprint overlay creation, using the default 25 build range overlay from the blueprint, and placing t1 pd inside/outside that overlay. - Larger build skirts (visible with `dbg grid`) like t1 land facs need to have 2 cells within range of the engineer station. - Also tested placing an SMD nearby outside the guard radius at various places and it has to clearly overlap the radius to be assisted automatically. - Checked that build radius works for engineers with the `MaxBuildDistance+2` range by placing T1 PD 7/8 ogrids away from a t1 engi. It can build land factories even further away (8-9 ogrids away from the build skirt max directly vertically/horizontally, but not diagonally (7-8 max)). ## Checklist - [x] Changes are annotated, including comments where useful - [x] Changes are documented in the changelog for the next game version --------- Co-authored-by: Josh <[email protected]>
- Loading branch information