Hey Guys,
I am trying to create a Weapons Menu but I am having a few issues, I'll explain whats happening:
On Shadows of Evil (41 Weapons) Page 1 and Page 2 work but Page 3 doesn't work.
On Revelations (46 Weapons) Page 1 doesn't work but Page 2 does.
On a custom zombies map (64 weapons) all pages work fine.
The reason why I only display 15 weapons + the Page button (16 options total) is due to the limitation, anything above 16 no text will display on the menu.
How can I get around to fix the issue?
Thanks!
I am trying to create a Weapons Menu but I am having a few issues, I'll explain whats happening:
On Shadows of Evil (41 Weapons) Page 1 and Page 2 work but Page 3 doesn't work.
On Revelations (46 Weapons) Page 1 doesn't work but Page 2 does.
On a custom zombies map (64 weapons) all pages work fine.
The reason why I only display 15 weapons + the Page button (16 options total) is due to the limitation, anything above 16 no text will display on the menu.
How can I get around to fix the issue?
Thanks!
C++:
MapWeapons = GetArrayKeys(level.zombie_weapons);
for(i = 0; i < MapWeapons.size; i++)
{
if(i < 16)
{
self AddMenuAction("WeaponsMenu", i, MapWeapons[i].name, ::G_GiveWeapon, MapWeapons[i].name);
}
else break;
}
self AddMenuAction("WeaponsMenu", 16, "^5> ^7Page 2 ", ::SubMenu, "WeaponsMenu2");
AddMenuTitle( "WeaponsMenu2", "Weapons Menu 2");
AddBackToMenu("WeaponsMenu2","WeaponsMenu");
WeaponIndex = 0;
for(i = 16; i < MapWeapons.size; i++)
{
if(i < 32)
{
self AddMenuAction("WeaponsMenu2", WeaponIndex, MapWeapons[i].name, ::G_GiveWeapon, MapWeapons[i].name);
WeaponIndex++;
}
else break;
}
self AddMenuAction("WeaponsMenu2", 16, "^5> ^7Page 3 ", ::SubMenu, "WeaponsMenu3");
AddMenuTitle( "WeaponsMenu3", "Weapons Menu 3");
AddBackToMenu("WeaponsMenu3","WeaponsMenu2");
WeaponIndex2 = 0;
for(i = 32; i < MapWeapons.size; i++)
{
if(i < 48)
{
self AddMenuAction("WeaponsMenu3", WeaponIndex2, MapWeapons[i].name, ::G_GiveWeapon, MapWeapons[i].name);
WeaponIndex2++;
}
else break;
}
self AddMenuAction("WeaponsMenu3", 16, "^5> ^7Page 4 ", ::SubMenu, "WeaponsMenu4");
AddMenuTitle("WeaponsMenu4", "Weapons Menu 4");
AddBackToMenu("WeaponsMenu4","WeaponsMenu3");
WeaponIndex3 = 0;
for(i = 48; i < MapWeapons.size; i++)
{
if(i < 64)
{
self AddMenuAction("WeaponsMenu4", WeaponIndex3, MapWeapons[i].name, ::G_GiveWeapon, MapWeapons[i].name);
WeaponIndex3++;
}
else break;
}