Actually I took on customization Planetary Weapons first as I couldn't use standard weapon modules template. Because of their properties I had to make separate template just for Planetary Weapons. Credits for code to this template goes to JavaByte, I only modified existing weapon module template.
Time to back to customization Ship-Based Weapons.