Post: Help with BO2 - Zombies .GSC Coding ....
02-22-2018, 08:21 PM #1
x360iso
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); Hey, i'm having some problems understanding this source code... What does the void_handler and the number next to it mean? I want to build on it, but i can't because i can't understand the void_handler and the number next to it... How am i supposed to add any new options?

    OptionsInit()
{
vending_triggers = getentarray( "zombie_vending", "targetname" );
CreateRoot("Mod Menu");
AddSubMenu("Main Menu", 1);
AddOption("God Mode", ::void_handler, 0);
AddOption("Unlimited Ammo", ::void_handler, 1);
AddOption("Unlimited Sprint", ::void_handler, 167);
AddOption("Toggle Aimbot", ::void_handler, Cool Man (aka Tustin);
AddOption("Invisibility", ::void_handler, 3);
AddOption("No Clip", ::void_handler, 179);
AddOption("No Target", ::void_handler, 2);
AddOption("Ghost Walker", ::void_handler, 156);
AddOption("Third Person", ::void_handler, 7);
AddOption("Kill Yourself", ::void_handler, 13);
AddOption("Revive Yourself", ::void_handler, 10);
CloseSubMenu();
Last edited by x360iso ; 02-22-2018 at 08:23 PM.

The following user groaned x360iso for this awful post:

anthonything
02-25-2018, 01:36 PM #11
anthonything
Space Ninja
Originally posted by x360iso View Post
Thanks guys, but which number will give me the derank option?


This menu incorporates an enumeration of menu options instead of using new function references. This is only a design choice of this particular menu to save string ref space. To add functions to Iconic SENTINEL, find the host function "void_handler" and add an if statement to the bottom with a unique ID that will be used to call that particular set of instructions. If you were just using the base, you wouldn't have this problem.

If you are just trying to add custom options to the menu its self, try Iconic V3's configuration files. They allow you to append your own options to the menu without needing to build your own menu.

Here is a link to Iconic V3:

Here is a link to the config tutorial:

The following user groaned anthonything for this awful post:

DF_AUS
03-26-2018, 09:28 PM #12
Okay, so your functions run through the void_handler function. What you need to do is find the void_handler script, then look at how the options are defined. So for example:

addOption(menu, "Derank", ::void_handler, 199);

then in void_handler you would do something like:

case 199:
DerankPlayers();
break;


As I don't have the code, Idk if that's right, but the consept should be the same.
03-28-2018, 07:26 PM #13
anthonything
Space Ninja
Originally posted by ProjectSynergy View Post
Okay, so your functions run through the void_handler function. What you need to do is find the void_handler script, then look at how the options are defined. So for example:

addOption(menu, "Derank", ::void_handler, 199);

then in void_handler you would do something like:

case 199:
DerankPlayers();
break;


As I don't have the code, Idk if that's right, but the consept should be the same.


No. Iconic doesnt use switch statements because the compiler doesnt handle them correctly on console.
It uses if statements, and i would assume from everyone elses replies he understands that.

Also, your addoption code is wrong. This isnt a shark base edit.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo