Replacing stock Q3 weapons with custom ones
Posted: Tue Feb 04, 2014 7:47 pm
I have modeled a few weapons and i'm looking into replacing the stock Q3 ones with mine. However, i noticed that the code responsible for loading weapons is really "coupled" with the stock weapons: there's a lot of switch's and if's depending on the weapon, for loading some parts of the model, or rotating other parts... a real mess.
Does anyone with a better experience with the Q3 codebase could guide me (or point me some tuts/docs) into the job of replacing the weapon models? Which files have weapon-specific loading/switching? For example: to replace the machine gun, i have to alter a few files with MD3 loading of separate parts, and other files to make the weapon rotate (i have to disable that for my model), etc.
Does anyone with a better experience with the Q3 codebase could guide me (or point me some tuts/docs) into the job of replacing the weapon models? Which files have weapon-specific loading/switching? For example: to replace the machine gun, i have to alter a few files with MD3 loading of separate parts, and other files to make the weapon rotate (i have to disable that for my model), etc.