]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
default sv_gameplayfix_blowupfallenzombies to 0 in -hipnotic mode as it
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 May 2007 06:42:10 +0000 (06:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 May 2007 06:42:10 +0000 (06:42 +0000)
messes up the friendly monsters

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7374 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index e24170ab436e319a84e730dac25f878b1dcd3e0c..9db61cd4667843b4ea1454dae915060a58e4d1e6 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -413,6 +413,13 @@ void SV_Init (void)
        }
        Cvar_RegisterVariable (&cutscene); // for Nehahra but useful to other mods as well
 
+       // any special defaults for gamemodes go here
+       if (gamemode == GAME_HIPNOTIC)
+       {
+               // hipnotic mission pack has issues in their 'friendly monster' ai, which seem to attempt to attack themselves for some reason when findradius() returns non-solid entities.
+               Cvar_SetValueQuick (&sv_gameplayfix_blowupfallenzombies, 0);
+       }
+
        sv_mempool = Mem_AllocPool("server", 0, NULL);
 }