Wow. Armed acft in the hangar...
no bullet trap...
somehow over-ride the squat switch...
activate the gun without checking all above...
Lot of assumptions there, If it is on maintenance as an example, it may be upon sticks and hence the squat switches do not come into it. you dont have to press the trigger to fire a gun, simply make a circuit somewhere along the line.