1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2005-11-26 21:16:48 +00:00
parent 2e22d7ed34
commit 293ff1ad6d

View file

@ -1955,7 +1955,7 @@ void SV_GibFilterAdd(char *modelname, int min, int max)
gf = Z_Malloc(sizeof(gibfilter_t));
gf->modelindex = i;
gf->minframe = ((min==-1)?0:min);
gf->maxframe = ((max==-1)?255:max);
gf->maxframe = ((max==-1)?0x80000000:max);
gf->next = gibfilter;
gibfilter = gf;
}
@ -1976,7 +1976,11 @@ void SV_GibFilterInit(void)
file = COM_LoadStackFile("gibfiltr.cfg", buffer, sizeof(buffer));
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;
}
while(file)