Default settings for the gib filter (doesn't filter dead bodies), as that's then totally useless with feigning, and we try to keep everyone happy.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1594 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
2e22d7ed34
commit
293ff1ad6d
1 changed files with 6 additions and 2 deletions
|
@ -1955,7 +1955,7 @@ void SV_GibFilterAdd(char *modelname, int min, int max)
|
||||||
gf = Z_Malloc(sizeof(gibfilter_t));
|
gf = Z_Malloc(sizeof(gibfilter_t));
|
||||||
gf->modelindex = i;
|
gf->modelindex = i;
|
||||||
gf->minframe = ((min==-1)?0:min);
|
gf->minframe = ((min==-1)?0:min);
|
||||||
gf->maxframe = ((max==-1)?255:max);
|
gf->maxframe = ((max==-1)?0x80000000:max);
|
||||||
gf->next = gibfilter;
|
gf->next = gibfilter;
|
||||||
gibfilter = gf;
|
gibfilter = gf;
|
||||||
}
|
}
|
||||||
|
@ -1976,7 +1976,11 @@ void SV_GibFilterInit(void)
|
||||||
file = COM_LoadStackFile("gibfiltr.cfg", buffer, sizeof(buffer));
|
file = COM_LoadStackFile("gibfiltr.cfg", buffer, sizeof(buffer));
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
Con_Printf("gibfiltr.cfg file was not found. The gib filter will be disabled\n");
|
Con_Printf("gibfiltr.cfg file was not found. Using defaults\n");
|
||||||
|
SV_GibFilterAdd("progs/gib1.mdl", -1, -1);
|
||||||
|
SV_GibFilterAdd("progs/gib2.mdl", -1, -1);
|
||||||
|
SV_GibFilterAdd("progs/gib3.mdl", -1, -1);
|
||||||
|
SV_GibFilterAdd("progs/h_player.mdl", -1, -1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
while(file)
|
while(file)
|
||||||
|
|
Loading…
Reference in a new issue