From: havoc Date: Sun, 27 May 2007 06:42:10 +0000 (+0000) Subject: default sv_gameplayfix_blowupfallenzombies to 0 in -hipnotic mode as it X-Git-Tag: xonotic-v0.1.0preview~3086 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=d49ed2e06b822fe254bb51fe3ecb46d7b7ceb2d6;p=xonotic%2Fdarkplaces.git default sv_gameplayfix_blowupfallenzombies to 0 in -hipnotic mode as it messes up the friendly monsters git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7374 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index e24170ab..9db61cd4 100644 --- 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); }