The following code should allow for mission makers to interchange rocket, upk, and fab pylons. Additionally, it is plausible that the Mi-24, Apache, and Supercobra can be edited similarly however due to having a pilot and gunner difficulties emerge.
To summarize what is going on: removeMagazinesTurret and removeWeaponTurret delete the ammo and weapon from the pilot slot [-1]. For copilot/gunner change to . addMagazineTurret and addWeaponTurret create the ammo and weapon for the pilot slot [-1]. removeMagazine and addMagazine change the pylon visually. Note that under cfgmagazines there are unique pods for some weapons that are used instead of the weapon itself.
Finally, included above is only a small sample of what is possible. There are variants of the S8 that are Thermobaric and Tandemheat, FABs in 1/2/4s, UPK 250/500/1000rnds magazines and S5 rockets.