mirror of
https://github.com/nzp-team/glquake.git
synced 2025-02-16 00:41:17 +00:00
Override Mustang & Sally sides to both use the same texture
This commit is contained in:
parent
2b32a88271
commit
95fccd695e
1 changed files with 21 additions and 0 deletions
|
@ -1640,6 +1640,27 @@ void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype)
|
||||||
|
|
||||||
s = pheader->skinwidth * pheader->skinheight;
|
s = pheader->skinwidth * pheader->skinheight;
|
||||||
|
|
||||||
|
//
|
||||||
|
// General texture override stuff.
|
||||||
|
//
|
||||||
|
|
||||||
|
// Mustang & Sally // v_biatch
|
||||||
|
if (strcmp(loadmodel->name, "models/weapons/m1911/v_biatch_left.mdl") == 0 ||
|
||||||
|
strcmp(loadmodel->name, "models/weapons/m1911/v_biatch_right.mdl") == 0) {
|
||||||
|
pheader->gl_texturenum[0][0] =
|
||||||
|
pheader->gl_texturenum[0][1] =
|
||||||
|
pheader->gl_texturenum[0][2] =
|
||||||
|
pheader->gl_texturenum[0][3] = loadtextureimage("models/weapons/m1911/v_biatch.mdl_0", 0, 0, qtrue, qtrue);
|
||||||
|
|
||||||
|
pheader->gl_texturenum[1][0] =
|
||||||
|
pheader->gl_texturenum[1][1] =
|
||||||
|
pheader->gl_texturenum[1][2] =
|
||||||
|
pheader->gl_texturenum[1][3] = loadtextureimage("models/weapons/m1911/v_biatch.mdl_0", 0, 0, qtrue, qtrue);
|
||||||
|
|
||||||
|
pskintype = (daliasskintype_t *)((byte *)(pskintype+1) + s);
|
||||||
|
return (void *)pskintype;
|
||||||
|
}
|
||||||
|
|
||||||
for (i=0 ; i<numskins ; i++)
|
for (i=0 ; i<numskins ; i++)
|
||||||
{
|
{
|
||||||
if (pskintype->type == ALIAS_SKIN_SINGLE) {
|
if (pskintype->type == ALIAS_SKIN_SINGLE) {
|
||||||
|
|
Loading…
Reference in a new issue