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
07-01-2012, 02:49 PM #11
pcfreak30
>> PCFreak30.com Happy<<
So you finally release this aye? Oh and fangirl, xexwill was not the 1st to get this. Many others have known for a while now.

Also codglitcher, I don't see why you couldn't just store it directly to jump height and not use setfromdvar. Though you could just as easily vstr it and have no nee for setfromdvar as well.
07-05-2012, 06:46 PM #12
cool.boyz
Do a barrel roll!
nice dude i wll try
07-06-2012, 12:16 AM #13
thnkx man really help me
keep the work going
07-07-2012, 02:40 AM #14
Originally posted by ViiPeR View Post
may i ask where? can you provide a link please.

You must login or register to view this content.
Don't know if you use 7s so no hate

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo