]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a couple compatibility issues with Nehahra
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 May 2009 18:22:37 +0000 (18:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 May 2009 18:22:37 +0000 (18:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8943 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 495afebc594a42a3cf5dff83f149c409d5950a67..6e47d014bcee131cf86cbc973eae7f68c1052859 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -444,6 +444,13 @@ void SV_Init (void)
        Cvar_RegisterVariable (&halflifebsp);
 
        // any special defaults for gamemodes go here
+       if (gamemode == GAME_NEHAHRA)
+       {
+               // Nehahra pushable crates malfunction in some levels if this is on
+               Cvar_SetValueQuick (&sv_gameplayfix_upwardvelocityclearsongroundflag, 0);
+               // Nehahra NPC AI is confused by this feature
+               Cvar_SetValueQuick (&sv_gameplayfix_blowupfallenzombies, 0);
+       }
        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.