If you're not savvy into AI'ing, use Frenzy or THZ. AI the weapon control as "Hammer" and the smartzone as "whipzone".
If, however, you know what you're doing, use Judge.py instead. It's harder to get working, requiring MotorID (the component ID of the motor you're using), StartAngle (the starting angle of the weapon, though you need to get this precise. Usually nose:math.+-pi/2 works fine) and Reload (The time it takes to complete a hammer swing on the main rotation and the return rotation) on the AI line and I believe the control is named "Hammer" again while the smartzone is instead named as "weapon".
Hopefully I haven't buggered up my advice.