]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Recognise mod Arcane Dimensions
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 7 May 2024 09:14:18 +0000 (19:14 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 9 May 2024 03:07:38 +0000 (13:07 +1000)
Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
cmd.c
com_game.c
com_game.h

diff --git a/cmd.c b/cmd.c
index 4f9f3e489588214ea0cb8e2fc877b44217f3d32b..de0ae7fed6cc3120f7270ad0573fef2bd19364c3 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -548,8 +548,6 @@ static void Cmd_Exec(cmd_state_t *cmd, const char *filename)
        if (isdefaultcfg)
        {
                // special defaults for specific games go here, these execute before default.cfg
-               // Nehahra pushable crates malfunction in some levels if this is on
-               // Nehahra NPC AI is confused by blowupfallenzombies
                switch(gamemode)
                {
                case GAME_NORMAL:
@@ -577,6 +575,8 @@ static void Cmd_Exec(cmd_state_t *cmd, const char *filename)
 "csqc_polygons_defaultmaterial_nocullface 0\n"
                                );
                        break;
+               // Nehahra pushable crates malfunction in some levels if this is on
+               // Nehahra NPC AI is confused by blowupfallenzombies
                case GAME_NEHAHRA:
                        Cbuf_InsertText(cmd, "\n"
 "sv_gameplayfix_blowupfallenzombies 0\n"
@@ -752,6 +752,13 @@ static void Cmd_Exec(cmd_state_t *cmd, const char *filename)
 "sv_gameplayfix_unstickentities 1\n"
                        );
                        break;
+               // Arcane Dimensions V1.80 Patch 1 assumes engines that don't pass values to CSQC_Init() are DP,
+               // instead of doing a workaround there we can give it what it really wants (fixes offscreen HUD).
+               case GAME_AD:
+                       Cbuf_InsertText(cmd, "\n"
+"csqc_lowres 1\n"
+                       );
+                       break;
                default:
                        Cbuf_InsertText(cmd, "\n"
 "sv_gameplayfix_blowupfallenzombies 1\n"
index 2969d3913a7b73a9de30d7ba2b909f83c22507a3..2bfaf927ac3caa6e660e3713976a600e78873dc8 100644 (file)
@@ -87,6 +87,7 @@ static const gamemode_info_t gamemode_info [GAME_COUNT] =
 { GAME_DOOMBRINGER,                            GAME_DOOMBRINGER,                       "doombringer",                  "-doombringer",                         "DOOMBRINGER",                          "DOOMBRINGER",                          "dbdata",       NULL,                   "doombringer",          "doombringer"                   }, // COMMANDLINEOPTION: Game: -doombringer runs the game DOOMBRINGER
 { GAME_BATTLEMETAL,                            GAME_NORMAL,                            "battlemetal",                  "-battlemetal",                         "battlemetal",                          "battlemetal",                          "metaldata",    NULL,           "battlemetal",          "battlemetal"                   }, // COMMANDLINEOPTION: Game: -battlemetal runs the game battleMETAL
 { GAME_QUAKE15,                                        GAME_NORMAL,                            "quake15",                              "-quake15",                                     "Quake 1.5",                            "Quake_1.5",                            "id1",          "quake15",              "quake15",                      "darkplaces"                    }, // COMMANDLINEOPTION: Game: -quake15 runs the Quake 1.5 or Quake Combat+ mod
+{ GAME_AD,                                             GAME_NORMAL,                            "ad",                                   "-ad",                                          "Arcane Dimensions",            "Arcane_Dimensions",            "id1",          "ad",                   "ad",                           "darkplaces"                    }, // COMMANDLINEOPTION: Game: -ad runs the Arcane Dimensions mod
 };
 
 static void COM_SetGameType(int index);
index 43bac1da4c54a8861ae9c71e7affd267e08bd2cb..2d4d04301d15783aadbf6a2f6ea1cba717f1332c 100644 (file)
@@ -61,6 +61,7 @@ typedef enum gamemode_e
        GAME_DOOMBRINGER, // added by Cloudwalk for kristus
        GAME_BATTLEMETAL, // added by Cloudwalk for Subject9x
        GAME_QUAKE15, // added by bones_was_here as it depends on an old bug and a workaround
+       GAME_AD, // added by bones_was_here as it depends on old DP behaviour or csqc_lowres
        GAME_COUNT
 }
 gamemode_t;