Post: COD4: Edit any Dvar Values In-Game [TUT]
06-26-2012, 06:07 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); hey guys, just like to say a big thanks to 04jberry for giving me the idea, this was ment to be used for printing text ingame through dvars but it seems impossible atm. so enjoy.


1. Your going to use our good old friend, editclanname. so add it to a bind and add another bind inside to activate part 2, for example
    bind DPAD_UP "ui_keyboard MENU_CUSTOMCLASS_KEYBOARD customclass1;bind DPAD_DOWN vstr a"


2. Next your going to use setfromdvar to replace the dvar (change the dvar if needed) value with the clantag value,also vstr to part 3. for example
    set a "wait 1;setfromdvar customclass1 [COLOR="#FF0000"]jump_height[/COLOR];vstr b"


3. Final stage, to reload the value of the jump_height with your clantag. for example
    set b "wait 1;setfromdvar [COLOR="#FF0000"]jump_height[/COLOR] customclass1"


CoD4 Dvar Examples
    motd
jump_height
g_gravity
g_speed
cg_laserforceon
customclass1


Final Code:
    bind DPAD_UP "ui_keyboard MENU_CUSTOMCLASS_KEYBOARD customclass1;bind DPAD_DOWN vstr a"
set a "wait 1;setfromdvar customclass1 jump_height"
set b "wait 1;setfromdvar jump_height customclass1"


Its really that small! and you can edit any 4 digit dvars with only 3 lines of text, its smaller than any GSC dvar editors ive seen in awhile (not hating) so enjoy.

I am aware that i have posted this in both cod4 and W@W sections, this is because its used in both games, no other CoD`s use setfromdvar since it was removed in mw2.

Thanks to Evilmystary for correcting the 'editclanname' error.

CodGlitcher.
(adsbygoogle = window.adsbygoogle || []).push({});

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

04jberry, Harry, Kush Friendly, Cmd-X, Razorcut2015, Taylor
06-26-2012, 06:52 PM #2
04jberry
whoo piece of candy!!!
Originally posted by ViiPeR View Post
hey guys, just like to say a big thanks to 04jberry for giving me the idea, this was ment to be used for printing text ingame through dvars but it seems impossible atm. so enjoy.


1. Your going to use our good old friend, editclanname. so add it to a bind and add another bind inside to activate part 2, for example
    bind DPAD_UP "editclanname;bind DPAD_DOWN vstr a"


2. Next your going to use setfromdvar to replace the dvar (change the dvar if needed) value with the clantag value,also vstr to part 3. for example
    set a "wait 1;setfromdvar [COLOR="#FF0000"]jump_height[/COLOR] clanname;vstr b"


3. Final stage, to reload the value of the jump_height with your clantag. for example
    set b "wait 1;setfromdvar clanname [COLOR="#FF0000"]jump_height[/COLOR]"


CoD4 Dvar Examples
    motd
jump_height
g_gravity
g_speed
cg_laserforceon
customclass1


Final Code:
    bind DPAD_UP "editclanname;bind DPAD_DOWN vstr a"
set a "wait 1;setfromdvar jump_height clanname"
set b "wait 1;setfromdvar clanname jump_height"


Its really that small! and you can edit any 4 digit dvars with only 3 lines of text, its smaller than any GSC dvar editors ive seen in awhile (not hating) so enjoy.

I am aware that i have posted this in both cod4 and W@W sections, this is because its used in both games, no other CoD`s use setfromdvar since it was removed in mw2.

CodGlitcher.


just thought if you need more space you could go
"SetfromDvar customclass1"

i know you have to end the game your in to change but it beats editing the patch lol Smile
06-26-2012, 11:49 PM #3
evilmystery
Save Point
It is possible to print messages in-game.
    bind dpad_up "vstr a"
set a "setfromdvar c1temp customclass1;ui_keyboard MENU_CUSTOMCLASS_KEYBOARD customclass1;bind BUTTON_BACK vstr b"
set b "setfromdvar scr_do_notify customclass1;setfromdvar customclass1 c1temp;bind BUTTON_BACK togglescores"

After you type your message press the back button.

You can also type in your own custom dvars.
    bind dpad_up "vstr a"
set a "setfromdvar c1temp customclass1;ui_keyboard MENU_CUSTOMCLASS_KEYBOARD customclass1;bind BUTTON_BACK vstr b"
set b "vstr customclass1;setfromdvar customclass1 c1temp;bind BUTTON_BACK togglescores"

After you type the dvar then press the back button.
06-26-2012, 11:56 PM #4
04jberry
whoo piece of candy!!!
Originally posted by evilmystery View Post
It is possible to print messages in-game.
    bind dpad_up "vstr a"
set a "setfromdvar c1temp customclass1;ui_keyboard MENU_CUSTOMCLASS_KEYBOARD customclass1;bind BUTTON_BACK vstr b"
set b "setfromdvar scr_do_notify customclass1;setfromdvar customclass1 c1temp;bind BUTTON_BACK togglescores"

After you type your message press the back button.

You can also type in your own custom dvars.
    bind dpad_up "vstr a"
set a "setfromdvar c1temp customclass1;ui_keyboard MENU_CUSTOMCLASS_KEYBOARD customclass1;bind BUTTON_BACK vstr b"
set b "vstr customclass1;setfromdvar customclass1 c1temp;bind BUTTON_BACK togglescores"

After you type the dvar then press the back button.


have u tried it?
06-27-2012, 12:13 AM #5
evilmystery
Save Point
Originally posted by 04jberry View Post
have u tried it?

Yes and no. I have tried it on Xbox and just converted the code for ps3. It does work for xbox I dont know about ps3.
06-27-2012, 11:56 AM #6
Originally posted by evilmystery View Post
It is possible to print messages in-game.
    bind dpad_up "vstr a"
set a "setfromdvar c1temp customclass1;ui_keyboard MENU_CUSTOMCLASS_KEYBOARD customclass1;bind BUTTON_BACK vstr b"
set b "setfromdvar scr_do_notify customclass1;setfromdvar customclass1 c1temp;bind BUTTON_BACK togglescores"

After you type your message press the back button.

You can also type in your own custom dvars.
    bind dpad_up "vstr a"
set a "setfromdvar c1temp customclass1;ui_keyboard MENU_CUSTOMCLASS_KEYBOARD customclass1;bind BUTTON_BACK vstr b"
set b "vstr customclass1;setfromdvar customclass1 c1temp;bind BUTTON_BACK togglescores"

After you type the dvar then press the back button.


you have to have developer enabled which i dont think it works on 1.40, bypassing yes.
06-29-2012, 02:54 PM #7
very nice Winky Winky thank you
06-29-2012, 03:09 PM #8
This has already been done by XeXWill But still nice
06-29-2012, 04:20 PM #9
Originally posted by FanGirl View Post
This has already been done by XeXWill But still nice


may i ask where? can you provide a link please.
06-29-2012, 11:27 PM #10
Harry
Former Staff
wow cod, never fail to impress us! this is an awesome find and keep this stuff up :love:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo