id Tech 2 engine, modified for portability