The setenv console command is created in cl_main.c long *after* {default,q3config,autoexec}.cfg have been read, rendering it rather useless for setting up the environment from inside the engine.
I have a need for it to set the SDL_HAS3BUTTONMOUSE environment variable which will turn of emulation of a second and third mouse button (using Command- and Option-Click) inside SDL on a Macintosh. This coupling of mouse button and modifier isn't useful in a FPS and makes it impossible to assign an independent function to Command or Option without affecting the mouse button (and is different from the original Quake 3).
My workaround is to misuse the activeAction variable in autoexec.cfg:
set activeAction setenv SDL_HAS3BUTTONMOUSE !
The setenv console command is created in cl_main.c long *after* {default,q3config,autoexec}.cfg have been read, rendering it rather useless for setting up the environment from inside the engine. I have a need for it to set the SDL_HAS3BUTTONMOUSE environment variable which will turn of emulation of a second and third mouse button (using Command- and Option-Click) inside SDL on a Macintosh. This coupling of mouse button and modifier isn't useful in a FPS and makes it impossible to assign an independent function to Command or Option without affecting the mouse button (and is different from the original Quake 3). My workaround is to misuse the activeAction variable in autoexec.cfg: set activeAction setenv SDL_HAS3BUTTONMOUSE !