This question has been preserved for historical reasons, but it is not considered on-topic, so don't use it as an excuse to post something similar.
More info at https://stackoverflow.com/faq.
For me to read code and learn, not to play...
...of course ;-)
Quake (1,2 and 3) and DukeNukem 3D source code is available under the GPL.