There are list variables that tell the AI which weapon to use as primary, heavy, and so on. The variables can be changed in the source [Empire]_Main_Script.txt file. Any changes require the script to be re-compiled and then added to the appropriate Empire folder to take affect.