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-17-2013, 10:07 PM #2
Very nice release.
07-17-2013, 10:19 PM #3
Harry
Former Staff
Old but Gold my friend Winky Winky.
07-18-2013, 02:04 AM #4
SC58
Former Staff
nice release,just remove the ban on bo1 and host gsc online no ban but only cfw 2 cfw but it would be possible to get a retail person to connect but it take alot of time and work to make that happen
07-18-2013, 10:27 PM #5
Sonoro
I like anteaters
Originally posted by SC58 View Post
nice release,just remove the ban on bo1 and host gsc online no ban but only cfw 2 cfw but it would be possible to get a retail person to connect but it take alot of time and work to make that happen



You should find a way to patch SV_referencedFFChecksums in the elf or most likely in the .zone.
07-18-2013, 10:47 PM #6
MoTmrD
Banned
Originally posted by SC58 View Post
nice release,just remove the ban on bo1 and host gsc online no ban but only cfw 2 cfw but it would be possible to get a retail person to connect but it take alot of time and work to make that happen



I want the way to lift ban black ops 1
07-19-2013, 02:11 AM #7
x5150xiZombie
I defeated!
What is this for?
07-19-2013, 01:56 PM #8
Originally posted by zombieman12
What is this for?


if Dvar/String = true, > then this will happen
07-20-2013, 11:48 PM #9
Kush Friendly
League Champion
Originally posted by ViiPeR View Post
if Dvar/String = true, > then this will happen


I might be wrong, but I think hes asking if its for .GSC or .CFG.
07-21-2013, 03:45 PM #10
Originally posted by Kush
I might be wrong, but I think hes asking if its for .GSC or .CFG.


As i posted in the title (Config), its a gsc function which works for configs :p

The following user thanked Uk_ViiPeR for this useful post:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo