by necros » Tue Dec 06, 2011 3:52 pm
ceriux and nahuel have the right idea i think.
if you're still interested in .rc and .cfg files...
.rc is the only config file hard coded by the engine to run. if you open up pak0.pak, there's a quake.rc file in there and if you open that, you can see it is actually running the exec config.cfg and exec autoexec.cfg files in there.
the reason they are saying to edit that rather than autoexec or config is that almost all players have their own custom autoexecs and configs (for key binds or alias scripts, especially with modern engines) so you don't want to annoy players by either wiping out their binds or forcing them to merge theirs with yours.
by editing the quake.rc file, you can add another exec myconfig.cfg line where you put in all the extra stuff you want for your own mod, without messing with anyone elses.
on top of that, you can even control when your config file is run in relation to command line arguments. the 'stuffcmds' line is where the engine is given all the command line arguments the user used to launch the engine (like +map) so you could always make your mod start on a certain map, for example, regardless of what the user typed as long as you put your command after stuffcmds.