You can have your worm state forward events for your weapon states.
Worm mid air -> player presses fire -> worm State says this is possible for the worm but doesn't know for weapon -> forwards event to FSM for current weapon -> weapon checks if capable of firing -> if capable move to firing state otherwise nothing.