Post: Using an IF statement [Config]
07-17-2013, 09:58 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello everyone, its been awhile since a cod related release so I thought i'd share this with the community, This has been kept quiet for quite some time now, but i want to give a shout out the all the people who got involved and helped me with a few things related to black ops (Choco, BucShotz and anyone else i may have forgot) so i hope you enjoy this little release, hey! it could be handy in the near future Winky Winky

    if ( dvarstring( "DvarOrVstrHere" ) == "2" ) //edit DvarOrVstrHere to an existing dvar or vstr function


For Dvars,

    if ( dvarstring( "ui_mapname" ) == "mp_idgafos" ) //replace with a real value 

Too add functions after it,for example,

if ( dvarstring( "ui_mapname" ) == "mp_idgafos" ) bind DPAD_UP "ufo" //would activate the dpad when on that specific map


For Custom Functions,

    bind DPAD_UP "set menuA 1" //value must be added
if ( dvarstring( "MenuA" ) == "1" ) bind DPAD_DOWN "stuff"


A little project that's been sitting in my folders for a long time, untested but its a config menu :p also yours too tweak.

    bind DPAD_UP "bind DPAD_UP setfromdvar Menu demo_enabled;setfromdvar MenuA demo_enabled;setfromdvar MenuB demo_enabled;setfromdvar MenuC demo_enabled;setfromdvar MenuD demo_enabled"
bind DPAD_DOWN "bind DPAD_DOWN Menu 1;menuB"
if ( dvarstring( "MenuA" ) == "2" ) bind DPAD_DOWN "menuB 3;Menu 2"
if ( dvarstring( "MenuB" ) == "3" ) bind DPAD_DOWN "menuC 4;Menu 3"
if ( dvarstring( "MenuC" ) == "4" ) bind DPAD_DOWN "menuD 5;Menu 4"
if ( dvarstring( "MenuD" ) == "5" ) bind DPAD_DOWN "menuA 2;Menu 1"
if ( dvarstring( "Menu" ) == "1" ) bind BUTTON_A "+stance;Option-A;ufo"
if ( dvarstring( "Menu" ) == "2" ) bind BUTTON_A "+stance;Option-B;ufo"
if ( dvarstring( "Menu" ) == "3" ) bind BUTTON_A "+stance;Option-C;ufo"
if ( dvarstring( "Menu" ) == "4" ) bind BUTTON_A "+stance;Option-D;ufo"


IF this has been posted in the past a moderator can happily close the thread Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 10 users say thank you to Uk_ViiPeR for this useful post:

BadChoicesZ, Harry, JLM, rimka06510, SC58, TheUnexpected, Vectriixx
07-21-2013, 04:17 PM #11
Originally posted by ViiPeR View Post
Hello everyone, its been awhile since a cod related release so I thought i'd share this with the community, This has been kept quiet for quite some time now, but i want to give a shout out the all the people who got involved and helped me with a few things related to black ops (Choco, BucShotz and anyone else i may have forgot) so i hope you enjoy this little release, hey! it could be handy in the near future Winky Winky

    if ( dvarstring( "DvarOrVstrHere" ) == "2" ) //edit DvarOrVstrHere to an existing dvar or vstr function


For Dvars,

    if ( dvarstring( "ui_mapname" ) == "mp_idgafos" ) //replace with a real value 

Too add functions after it,for example,

if ( dvarstring( "ui_mapname" ) == "mp_idgafos" ) bind DPAD_UP "ufo" //would activate the dpad when on that specific map


For Custom Functions,

    bind DPAD_UP "set menuA 1" //value must be added
if ( dvarstring( "MenuA" ) == "1" ) bind DPAD_DOWN "stuff"


A little project that's been sitting in my folders for a long time, untested but its a config menu :p also yours too tweak.

    bind DPAD_UP "bind DPAD_UP setfromdvar Menu demo_enabled;setfromdvar MenuA demo_enabled;setfromdvar MenuB demo_enabled;setfromdvar MenuC demo_enabled;setfromdvar MenuD demo_enabled"
bind DPAD_DOWN "bind DPAD_DOWN Menu 1;menuB"
if ( dvarstring( "MenuA" ) == "2" ) bind DPAD_DOWN "menuB 3;Menu 2"
if ( dvarstring( "MenuB" ) == "3" ) bind DPAD_DOWN "menuC 4;Menu 3"
if ( dvarstring( "MenuC" ) == "4" ) bind DPAD_DOWN "menuD 5;Menu 4"
if ( dvarstring( "MenuD" ) == "5" ) bind DPAD_DOWN "menuA 2;Menu 1"
if ( dvarstring( "Menu" ) == "1" ) bind BUTTON_A "+stance;Option-A;ufo"
if ( dvarstring( "Menu" ) == "2" ) bind BUTTON_A "+stance;Option-B;ufo"
if ( dvarstring( "Menu" ) == "3" ) bind BUTTON_A "+stance;Option-C;ufo"
if ( dvarstring( "Menu" ) == "4" ) bind BUTTON_A "+stance;Option-D;ufo"


IF this has been posted in the past a moderator can happily close the thread Smile


You're always finding crazy weird shit man haha..

hows project storm coming along?
07-21-2013, 04:18 PM #12
Originally posted by xSonoro View Post
You should find a way to patch SV_referencedFFChecksums in the elf or most likely in the .zone.
There's already been a patch :p it only works on debug ff's though, well you can sign for 3.55 elf files and run on 4.41cfw
07-21-2013, 04:33 PM #13
Originally posted by Jake625 View Post
There's already been a patch :p it only works on debug ff's though, well you can sign for 3.55 elf files and run on 4.41cfw


It's going good, just finishing singleplayer now so i hope to get a preview up soon Smile

The following user thanked Uk_ViiPeR for this useful post:

07-21-2013, 05:50 PM #14
Originally posted by ViiPeR View Post
It's going good, just finishing singleplayer now so i hope to get a preview up soon Smile


shit man, it's been like 3 years, I've been waiting so long :fyea:
07-21-2013, 05:56 PM #15
Originally posted by Jake625 View Post
shit man, it's been like 3 years, I've been waiting so long :fyea:


It's only been a year since the re-build, the old project OS was really buggy! :p
07-22-2013, 01:59 AM #16
Kush Friendly
League Champion
Originally posted by ViiPeR View Post
As i posted in the title (Config), its a gsc function which works for configs :p


Lol I know I can read, I was just saying.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo