models: add mda file to override list

This commit is contained in:
Denis Pauk 2024-09-14 00:11:42 +03:00
parent 1aadd6e404
commit dcf411bb11
2 changed files with 16 additions and 2 deletions

View file

@ -81,6 +81,8 @@ Note:
with tranparency or some animations flags and properties. with tranparency or some animations flags and properties.
* If you like support some other maps type, create pull request for Mod_Load2QBSP * If you like support some other maps type, create pull request for Mod_Load2QBSP
function and provide a link to demo maps. function and provide a link to demo maps.
* Use `maptype 1` before load any Heretic 2 maps. Look to
[maptype_t](src/common/header/cmodel.h#L42) for more info.
Games: Games:
@ -120,14 +122,15 @@ Goals:
* [x] suport Daikatana/SiN .pak/.sin format from pakextract, * [x] suport Daikatana/SiN .pak/.sin format from pakextract,
* [x] Support flow/scale flags for Q64 maps, * [x] Support flow/scale flags for Q64 maps,
* [x] Add debug progress loading code for maps, * [x] Add debug progress loading code for maps,
* [x] MDR model format in Star Trek: Voyager Elite Force, * [x] MDR model format from Star Trek: Voyager Elite Force,
* [ ] MDA entity format from Anachronox,
* [x] RGB particles support instead palette based one, * [x] RGB particles support instead palette based one,
* [x] Get rid of VID_PaletteColor client internal api use, * [x] Get rid of VID_PaletteColor client internal api use,
* [x] Broken maps groups from base2 to next, * [x] Broken maps groups from base2 to next,
* [ ] Single player ReRelease support, * [ ] Single player ReRelease support,
* [ ] Support effects and additional flags for ReRelease when possible. * [ ] Support effects and additional flags for ReRelease when possible.
* [ ] Use shared model cache in client code insted reimplemnet in each render, * [ ] Use shared model cache in client code insted reimplemnet in each render,
* [ ] Check load soft colormap as 24bit color, * [x] Check load soft colormap as 24bit color from loaded image,
* [ ] Fix transparent textures in Daikatana/SiN maps, * [ ] Fix transparent textures in Daikatana/SiN maps,
* [ ] Use separete texture hi-color buffer for ui in soft render, * [ ] Use separete texture hi-color buffer for ui in soft render,
* [ ] Cleanup function declarations in game save code, * [ ] Cleanup function declarations in game save code,

View file

@ -225,6 +225,7 @@ Mod_LoadFileWithoutExt(const char *namewe, void **buffer, const char* ext)
if (!strcmp(ext, "fm") || if (!strcmp(ext, "fm") ||
!strcmp(ext, "def") || !strcmp(ext, "def") ||
!strcmp(ext, "dkm") || !strcmp(ext, "dkm") ||
!strcmp(ext, "mda") ||
!strcmp(ext, "md2") || !strcmp(ext, "md2") ||
!strcmp(ext, "md3") || !strcmp(ext, "md3") ||
!strcmp(ext, "mdr") || !strcmp(ext, "mdr") ||
@ -296,6 +297,16 @@ Mod_LoadFileWithoutExt(const char *namewe, void **buffer, const char* ext)
return filesize; return filesize;
} }
/* Check Anachronox model definition */
Q_strlcpy(newname + tlen, ".mda", sizeof(newname));
filesize = FS_LoadFile(newname, buffer);
if (filesize > 0)
{
Com_DPrintf("%s: %s loaded as mda (Anachronox)\n",
__func__, namewe);
return filesize;
}
/* Check Kingpin model */ /* Check Kingpin model */
Q_strlcpy(newname + tlen, ".mdx", sizeof(newname)); Q_strlcpy(newname + tlen, ".mdx", sizeof(newname));
filesize = FS_LoadFile(newname, buffer); filesize = FS_LoadFile(newname, buffer);