Post: Change DVARs in game
03-30-2011, 02:46 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Basically, put this in your CFG somewhere. It allows you to actually change any Dvar from any Dvar(jump_height from customclass1, anyone? Happy) which allows you to then change certain Dvars 100% ingame. Here are some examples.

setFromDvar g_speed clanName
setFromDvar jump_height customclass1
setFromDvar g_gravity prestigeclass1
And so forth.


This has been tested on CoD2 PC, and it works 100%. The command exists in MW2/CoD4/WaW so feel free to use it in those games as well.

This is also useful to "shortening" commands, per se, as you can do setFromDvar jump_height jh, and then you can do set jh to change jump_height(in theory). I haven't tested the command shortening, but I'm pretty sure it works.
There is also execNowOnDvarStringValue, which is fairly useless, and I don't know if it works outside of the .menu files.

You could use it like execNowOnDvarStringValue customclass1 whateveryouwanttoexechere and then customclass 1 would exec whatever as long as you define it. It could be useful for extra cfgs, you could make something like "hardcore.cfg" and then "execNowonDvarStringValue customclass1 hardcore" and then set custom class 1's name to hardcore to play hardcore mode. 100% pointless. I could see it being useful, however. FYI, execNowOnDvarStringValue is what causes the button configs to work.

The following 4 users say thank you to ihatecompvir for this useful post:

BuC-ShoTz, GetDeleted -_-, iJokaa, Sigma
03-30-2011, 05:13 AM #11
.JiampyPotter
So Much Win.
Originally posted by DiJiTaLNiCk View Post
his patches are good. but he leeches scripts from other people. *COUGH UNKN0WN COUGH*


ahahaha yeah mossy is very good but leech=FAILSmile
03-31-2011, 03:28 AM #12
Originally posted by JiampyPotter View Post
ahahaha yeah mossy is very good but leech=FAILSmile


lol just had to ask this were did u come into the conversation
03-31-2011, 08:32 PM #13
.JiampyPotter
So Much Win.
Originally posted by Kenny View Post
lol just had to ask this were did u come into the conversation


im like a ghost :p
03-31-2011, 08:44 PM #14
Andrew!
The /̵͇̿̿/'̿'̿ ̿ ◕ lives!
Nice post bro
03-31-2011, 11:45 PM #15
Merkii
Former Staff
inb4 -rep because when mossy sees anything bad about him you get -rep always

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo