Recommended settings for final compiles

ZHLT parameters to use for final compilation of maps

Back to the Index

These settings are recommended for each final build of your Half-Life map which is to be released. Compiles using these options will generally take longer than default compiles, so as a rule should only be used for final compiles (except for the options for custom wad files which should always be used when required). You will probably use other switches (e.g. if you use wad config files) in addition to these. A list of all commands for the compile tools can be found in the Command Reference. If you do not need to use your computer while it is compiling, you should use the -high switch with all four compile tools (opt_plns does not share this switch).


The following switch should be used to remove "sticky" corners. However if it causes problems, try a different -cliptype option.

If you are using custom wad files, should also use these switches:

You may also wish to use the texture wad configuration file. It is strongly recommended not to use the -nowadtextures switch.


If you have sticky corners after using -cliptype precise in HLCSG, it is usually caused by bad brushwork, and fixing this may cause the error. For example, with a ramp and a platform at the top of the ramp where there is a clipping error between the two brushes, merging the two into one brush can often solve the problem. See this diagram for an example.

If it is not possible to pin down the source of the clipping errors, as a last resort you can try setting -maxnodeside 8192. It will slow compilation but fixes many errors in the clipping hulls. This should only be used if all else fails, as it can cause problems during VIS.


This setting is a must for final compiles.


This setting is a must for final compiles.

If you are using custom shadows, also use these switches:

If you are using many dynamic lights and are getting the "too many lightstyles" errors, try the following:

Back to the Index