DirectX requires 3d_antialiasing to be set before the video device is opened. Thus, under C-Script the solution by Emre is indeed the best.