How do you get the airboat gun in Half-Life 2?

Quick answer: Keep going in Water Hazard until you escape the Hunter-Chopper into a tunnel and reach a rebel base. A vortigaunt fits the gun to your airboat while you wait.
Show walkthrough
Escape into the tunnel
After the second flood gate, the Hunter-Chopper is still firing on you. Move fast and turn left into the tunnel for cover. Keep going until you reach a rebel base.
Dock at the rebel base
The rebels raise their bridge and let you dock. Go inside and listen to the rebel, then wait until he says it is time to leave. Follow him back to the dock.
Wait for the vortigaunt
A vortigaunt is working on the gun at the dock. Wait for it to finish, then get back in the airboat and wait for the gate to open. Getting the gun unlocks the Heavy Weapons Steam achievement.
How the gun works
The mounted gun has no ammo pickups, and its ammo recharges fairly quickly. Practise on barnacles and junk in the canal. You need it to shoot down the chopper later in the Water Hazard walkthrough.
