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-22-2018, 08:36 PM #2
whats so hard on it if you want i can help you
02-22-2018, 08:41 PM #3
x360iso
Save Point
Originally posted by darkghost197709 View Post
whats so hard on it if you want i can help you



I'm trying to add more options, but i don't understand the "void_handler" functions....
For example if i want to add the function to Drop Weapons do i type AddOption("Drop Weapons", ::void_handler, ???);

but what is the void_handler code for drop weapons? I just don't understand this coding...
02-22-2018, 08:45 PM #4
you using project iconic menu right
02-22-2018, 08:48 PM #5
x360iso
Save Point
Why you asking if you already checked the source code in sentinel yourself?
02-22-2018, 08:54 PM #6
bc that menu i think has already drop weapons
02-22-2018, 08:59 PM #7
x360iso
Save Point
Originally posted by darkghost197709 View Post
bc that menu i think has already drop weapons




I know, but it was just an example. I would like to understand the void_handler functions / what the number next to it does... I want to add a derank option....
Last edited by x360iso ; 02-22-2018 at 09:01 PM.
02-22-2018, 11:51 PM #8
Patrick
League Champion
Originally posted by x360iso View Post
~Snip


It basically a function with a bunch of if statements and it checks if the parameter is equal to x and if it is it will run the code inside of that if statement.
That is the understanding i got from just looking at the code you provided since i don't have the source.
02-23-2018, 05:24 PM #9
the number redirect you to the actual function
02-24-2018, 03:16 PM #10
x360iso
Save Point
Thanks guys, but which number will give me the derank option?

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo