Draft: Improvements to model system
this merge request makes some improvements to how the models system works
NOTE: No changes were made to how the model definitions themselves work and as such is compatible with all models.dat files made without this branch in mind
changes:
- replaced calls for specific sprites and skins with one single call to reload models.dat on addon load (without clearing the existing model table contents)
- adds support for C-style line comments
//
and#include
statements to model definition file syntax - model reloading on command + filenames other than models.dat through cvar
In progress:
-
loading models/model defs from a pk3(?)(out of scope of this MR) -
allow changing the filename the game looks for (only affects calls that would normally request models.dat) -
reload models.dat upon command -
reload models.dat upon switching to OGL from software
the attached zip file contains 2 .dat files, place these where your models.dat would be. if you have the full jeck model pack (which is what these defs are based on) then everything should work fine. including adding addons post startup.
Edited by ashi