Post: [Release] Edit DVAR's In-Game
03-05-2010, 09:33 PM #1
Fionn
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); This is my first thread in the premium section , and as Cpt.S made me premium for the Mw2 Hacks , Here's the first one.

You can change the dvar and the value you want to increase or decrease to whatever you want , You will see some of them in the video.

You need to add

    self thread increaseDvar();
self thread decreaseDvar()


To onPlayerSpawned() or where ever you want to call it from

    increaseDvar()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
self waittill( "dpad_up" );
value = getDvarInt( "g_speed" ); //gets dvar value
value = value + 20; //increases dvar value by 20(change 20 to whatever you want)
setDvar( "g_speed", value ); //sets dvar
self iPrintlnBold( "g_speed = ", value );
self thread increaseDvar();
}

decreaseDvar()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
self waittill( "dpad_down" );
value = getDvarInt( "g_speed" );
value = value - 20; //decreases dvar value by 20(change 20 to whatever you want)
setDvar( "g_speed", value );
self iPrintlnBold( "g_speed = ", value );
self thread decreaseDvar();
}


[ame="https://www.youtube.com/watch?v=UigQvcQBGe0"]YouTube- MW2 - Editing dvars in-game[/ame]
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Fionn for this useful post:

Cpt.S
03-05-2010, 10:54 PM #2
TriipDaKiiNG
taylordtriplett
wait, can you do a video tut, i dont understand for im new to these hacks
03-06-2010, 12:37 AM #3
iDave
Banned
EDIT: Xbox, lawl. Work online? Help us out..
03-06-2010, 12:51 AM #4
Fionn
Banned
You just copy these into your Patch_MP
This is just the code for the dvar menu and layout
I have the gravity one here

    g_gravity "800"


    increaseDvar()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
self waittill( "dpad_up" );
value = getDvarInt( "g_gravity" );
value = value + 20;
setDvar( "g_gravity", value );
self iPrintlnBold( "g_gravity = ", value );
self thread increaseDvar();
}

decreaseDvar()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
self waittill( "dpad_down" );
value = getDvarInt( "g_gravity" );
value = value - 20;
setDvar( "g_gravity", value );
self iPrintlnBold( "g_gravity = ", value );
self thread decreaseDvar();
}


Also , I have just edited the jump height one too.

    increaseDvar()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
self waittill( "dpad_up" );
value = getDvarInt( "g_jumpheight" );
value = value + 20;
setDvar( "g_jumpheight", value );
self iPrintlnBold( "g_height = ", value );
self thread increaseDvar();
}

decreaseDvar()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
self waittill( "dpad_down" );
value = getDvarInt( "g_jumpheight" );
value = value - 30;
setDvar( "g_jumpheight", value );
self iPrintlnBold( "g_jumpheight = ", value );
self thread decreaseDvar();
}
03-06-2010, 02:39 AM #5
Natious
Custom User Title
You should really put xbx in the title.
03-06-2010, 02:53 AM #6
Fionn
Banned
Originally posted by Natious View Post
You should really put xbx in the title.


I should of , I'll ask a Mod to edit it
03-06-2010, 03:22 AM #7
leukotic
Climbing up the ladder
Well, at least it's better than what I thought. I figured this was some complicated PC hack only that required you to have superior knowledge of hacking. Didn't think it was as easy as pasting in a MP file, nice! Any chance of something like this working on the PS3?
03-06-2010, 03:24 AM #8
Fionn
Banned
Originally posted by leukotic View Post
Well, at least it's better than what I thought. I figured this was some complicated PC hack only that required you to have superior knowledge of hacking. Didn't think it was as easy as pasting in a MP file, nice! Any chance of something like this working on the PS3?


Haha , Easier than it looks!
As i've said in threads before , Coudl it be possible in PS3?
I don't own one so I can't try
03-06-2010, 03:30 AM #9
leukotic
Climbing up the ladder
Is this for a JTAG 360 only? Or can anybody simply paste this into their patch_MP file and have all this awesome stuff?

It's gotta be more complicated than a simple copy and paste. I will try this out later on some MW2 PS3 files to see if I can get anywhere as long as this is as simple as I think it is (Not having to use a JTAG for example).
03-06-2010, 03:34 AM #10
Fionn
Banned
Originally posted by leukotic View Post
Is this for a JTAG 360 only? Or can anybody simply paste this into their patch_MP file and have all this awesome stuff?

It's gotta be more complicated than a simple copy and paste. I will try this out later on some MW2 PS3 files to see if I can get anywhere as long as this is as simple as I think it is (Not having to use a JTAG for example).


Online this is a jtag online and needs to be installed directly.
That's a bit more complicated.

The Campaign/Spec-ops is just a simple Copy and Paste. You just have to know where to put it.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo