ioquake / ioq3

The ioquake3 community effort to continue supporting/developing id's Quake III Arena
https://ioquake3.org/
GNU General Public License v2.0
2.42k stars 529 forks source link

Add basegame/mod support to web client and automatically handle branding #670

Closed zturtleman closed 5 months ago

zturtleman commented 5 months ago

This adds support for playing Team Arena and the demo versions of Quake 3 and Team Arena in a web browser using ioquake3.html?fs_game=missionpack and ?com_basegame=demoq3 (or tademo).

This automatically handles branding for the client HTML and JSON filenames (based on CLIENTBIN in make) and the default game directory (BASEGAME). With these changes I was able to run a Star Trek Voyager Elite Force Holomatch project I maintain (Lilium Voyager) in a web browser by only adding the baseEF pk3 file list to code/web/client-config.json, compiling it, and browsing to liliumvoyagerhm.html.

There is also some clean up and reorganization of the emscripten support in the Makefile.