CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Weapon Menu Map Issue
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vladyeah" data-source="post: 62767" data-attributes="member: 79719"><p>Hey Guys,</p><p></p><p>I am trying to create a Weapons Menu but I am having a few issues, I'll explain whats happening:</p><p></p><p>On Shadows of Evil (41 Weapons) Page 1 and Page 2 work but Page 3 doesn't work.</p><p></p><p>On Revelations (46 Weapons) Page 1 doesn't work but Page 2 does.</p><p></p><p>On a custom zombies map (64 weapons) all pages work fine.</p><p></p><p>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.</p><p></p><p>How can I get around to fix the issue?</p><p></p><p>Thanks! <img src="/styles/default/xenforo/smilies.emoji/people/smile.emoji.svg" class="smilie" loading="lazy" alt=":grinning:" title="Grinning :grinning:" data-shortname=":grinning:" /></p><p></p><p>[CODE=cpp] MapWeapons = GetArrayKeys(level.zombie_weapons);</p><p></p><p> for(i = 0; i < MapWeapons.size; i++)</p><p> {</p><p> if(i < 16)</p><p> {</p><p> self AddMenuAction("WeaponsMenu", i, MapWeapons[i].name, ::G_GiveWeapon, MapWeapons[i].name);</p><p> }</p><p> else break;</p><p> }</p><p> self AddMenuAction("WeaponsMenu", 16, "^5> ^7Page 2 ", ::SubMenu, "WeaponsMenu2");</p><p></p><p> AddMenuTitle( "WeaponsMenu2", "Weapons Menu 2");</p><p> AddBackToMenu("WeaponsMenu2","WeaponsMenu");</p><p> WeaponIndex = 0;</p><p> for(i = 16; i < MapWeapons.size; i++)</p><p> {</p><p> if(i < 32)</p><p> {</p><p> self AddMenuAction("WeaponsMenu2", WeaponIndex, MapWeapons[i].name, ::G_GiveWeapon, MapWeapons[i].name);</p><p> WeaponIndex++;</p><p> }</p><p> else break;</p><p> }</p><p> self AddMenuAction("WeaponsMenu2", 16, "^5> ^7Page 3 ", ::SubMenu, "WeaponsMenu3");</p><p></p><p> AddMenuTitle( "WeaponsMenu3", "Weapons Menu 3");</p><p> AddBackToMenu("WeaponsMenu3","WeaponsMenu2");</p><p> WeaponIndex2 = 0;</p><p> for(i = 32; i < MapWeapons.size; i++)</p><p> {</p><p> if(i < 48)</p><p> {</p><p> self AddMenuAction("WeaponsMenu3", WeaponIndex2, MapWeapons[i].name, ::G_GiveWeapon, MapWeapons[i].name);</p><p> WeaponIndex2++;</p><p> }</p><p> else break;</p><p> }</p><p> self AddMenuAction("WeaponsMenu3", 16, "^5> ^7Page 4 ", ::SubMenu, "WeaponsMenu4");</p><p></p><p> AddMenuTitle("WeaponsMenu4", "Weapons Menu 4");</p><p> AddBackToMenu("WeaponsMenu4","WeaponsMenu3");</p><p> WeaponIndex3 = 0;</p><p> for(i = 48; i < MapWeapons.size; i++)</p><p> {</p><p> if(i < 64)</p><p> {</p><p> self AddMenuAction("WeaponsMenu4", WeaponIndex3, MapWeapons[i].name, ::G_GiveWeapon, MapWeapons[i].name);</p><p> WeaponIndex3++;</p><p> }</p><p> else break;</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="vladyeah, post: 62767, member: 79719"] 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! :grinning: [CODE=cpp] 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; }[/CODE] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Weapon Menu Map Issue
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top