From 293ff1ad6dd8d9b98b28867f4aa276b90ec507e6 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 26 Nov 2005 21:16:48 +0000 Subject: [PATCH] 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 --- engine/server/sv_ents.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/server/sv_ents.c b/engine/server/sv_ents.c index 8b463d5ad..2b72fb7ab 100644 --- a/engine/server/sv_ents.c +++ b/engine/server/sv_ents.c @@ -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)