]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
default sv_gameplayfix_blowupfallenzombies to 0 in -hipnotic mode as it
[xonotic/darkplaces.git] / 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);
 }