From 3af216004c747297ef2dd05d1ac4b8e354b34fdb Mon Sep 17 00:00:00 2001 From: Louvenarde Date: Sun, 26 Nov 2023 10:50:56 +0100 Subject: [PATCH] Bump GModelIndex limit even more --- src/Components/Modules/Weapon.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Components/Modules/Weapon.hpp b/src/Components/Modules/Weapon.hpp index cc92d59d..60c17c60 100644 --- a/src/Components/Modules/Weapon.hpp +++ b/src/Components/Modules/Weapon.hpp @@ -4,7 +4,11 @@ // Was 1200 before #define WEAPON_LIMIT 2400 #define MAX_CONFIGSTRINGS (4139 - 1200 + WEAPON_LIMIT) -#define G_MODELINDEX_LIMIT (526 + WEAPON_LIMIT - 1200) + +// Double the limit to allow loading of some heavy-duty MW3 maps +#define ADDITIONAL_GMODELS 512 + +#define G_MODELINDEX_LIMIT (512 + WEAPON_LIMIT - 1200 + ADDITIONAL_GMODELS) namespace Components {