Quick question about the visibilityAtDark setting on armors. If I have mods that add extra aliens, will I have to set this property on their armors to 20 otherwise they will have the default visibility of 9? Or will the game give them a default visibility of 20 in the dark because they are aliens?
Edit: I have another request to improve the AI in a way I think could be added to the ruleset as so not to affect unmodded OpenXcom. The AI at the moment hardly ever uses autoshot. This is even more noticeable when using mods like Xeno operations, where the aliens get the plasma assaulter which has a great autoshot which the aliens refuse to use unless the target is within 3 squares of them.
One solution would be to rewrite the AI to chose the type of shot that gives them the best chance of hitting based on distance (if using ufoextender accuracy). This could easily be calculated, but would change the AI for everyone and some might prefer the vanilla AI that hardly ever uses autoshot.
So instead, perhaps a property could be added to the item. My understanding of the code is that the AI prefers to use autoshot if the target is less than 4 squares from them, prefers to use aimed shot if the target is more than 12 squares from them, and will prefer to use snapshot otherwise. They will only use other types of shot if they don't have enough TUs to use the prefered shot. Could these values come from the ruleset instead? E.g. have an AIAutoRange and an AIAimedRange property on the item, that defaults to 4 and 12. Then this could be modified in a ruleset to allow the AI to use each weapon more effectively.