You are viewing our Forum Archives. To view or take place in current topics click here.
Setting Dvars in Realtime C# (XRCP)?
Posted:

Setting Dvars in Realtime C# (XRCP)?Posted:

Xenon4Life
  • Challenger
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 179
Reputation Power: 8
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 179
Reputation Power: 8
Ive done some research and all I can find on this topic is this line of code:
Jtag.Call(0x823FF408, 0, "set Dvar Value; set Dvar Value;");

I've tried making a button, then adding this into the button's code:

Jtag.Call(0x823FF408, 0, "Cbuf_AddText(Hello)");

and things along those lines like

Jtag.Call(0x823FF408, 0, "settimescale, 1");

But none of them work. Apparently 0x823FF408 is a console that you can send dvars too. But i'm a little confused. Can anyone explain what i'd type in exactly to set a dvar? Give an example?
#2. Posted:
uid-545891
  • TTG Addict
Status: Offline
Joined: Sep 02, 201113Year Member
Posts: 2,730
Reputation Power: 150
Status: Offline
Joined: Sep 02, 201113Year Member
Posts: 2,730
Reputation Power: 150
Jtag.Call(0x823FF408, 0, "set dvarname \"dvarvalue\"");
#3. Posted:
Xenon4Life
  • Challenger
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 179
Reputation Power: 8
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 179
Reputation Power: 8
Cent wrote Jtag.Call(0x823FF408, 0, "set dvarname \"dvarvalue\"");

Thanks so i'm trying this:

0x823FF408, 0, "^ 7 \"999\"");


//To set player_sprintTime (%s to set value)
"^ 7 \"%s\""

and nothing happens in game... Could you give me an example of what you'd type in, with a dvar to make it work?
#4. Posted:
uid-545891
  • TTG Addict
Status: Offline
Joined: Sep 02, 201113Year Member
Posts: 2,730
Reputation Power: 150
Status: Offline
Joined: Sep 02, 201113Year Member
Posts: 2,730
Reputation Power: 150
Xenon4Life wrote
Cent wrote Jtag.Call(0x823FF408, 0, "set dvarname \"dvarvalue\"");

Thanks so i'm trying this:

0x823FF408, 0, "^ 7 \"999\"");


//To set player_sprintTime (%s to set value)
"^ 7 \"%s\""

and nothing happens in game... Could you give me an example of what you'd type in, with a dvar to make it work?


Jtag.Call(0x823FF408, 0, "set player_sprintTime \"10\"");
Jtag.Call(0x823FF408, 0, "set cg_fov \"80\"");

There's a few examples. If it doesn't work, make sure you're on the correct TU (tu11).
#5. Posted:
Xenon4Life
  • Challenger
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 179
Reputation Power: 8
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 179
Reputation Power: 8
Cent wrote
Xenon4Life wrote
Cent wrote Jtag.Call(0x823FF408, 0, "set dvarname \"dvarvalue\"");

Thanks so i'm trying this:

0x823FF408, 0, "^ 7 \"999\"");


//To set player_sprintTime (%s to set value)
"^ 7 \"%s\""

and nothing happens in game... Could you give me an example of what you'd type in, with a dvar to make it work?


Jtag.Call(0x823FF408, 0, "set player_sprintTime \"10\"");
Jtag.Call(0x823FF408, 0, "set cg_fov \"80\"");

There's a few examples. If it doesn't work, make sure you're on the correct TU (tu11).

Right. I was on Tu12. Thanks a bunch man +rep
#6. Posted:
uid-545891
  • TTG Addict
Status: Offline
Joined: Sep 02, 201113Year Member
Posts: 2,730
Reputation Power: 150
Status: Offline
Joined: Sep 02, 201113Year Member
Posts: 2,730
Reputation Power: 150
Xenon4Life wrote
Cent wrote
Xenon4Life wrote
Cent wrote Jtag.Call(0x823FF408, 0, "set dvarname \"dvarvalue\"");

Thanks so i'm trying this:

0x823FF408, 0, "^ 7 \"999\"");


//To set player_sprintTime (%s to set value)
"^ 7 \"%s\""

and nothing happens in game... Could you give me an example of what you'd type in, with a dvar to make it work?


Jtag.Call(0x823FF408, 0, "set player_sprintTime \"10\"");
Jtag.Call(0x823FF408, 0, "set cg_fov \"80\"");

There's a few examples. If it doesn't work, make sure you're on the correct TU (tu11).

Right. I was on Tu12. Thanks a bunch man +rep




The TU12 offset is 0x82400AD8.

Jtag.Call(0x82400AD8, 0, "set player_sprintTime \"10\"");
Jtag.Call(0x82400AD8, 0, "set cg_fov \"80\"");
#7. Posted:
Xenon4Life
  • Challenger
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 179
Reputation Power: 8
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 179
Reputation Power: 8
Cent wrote
Xenon4Life wrote
Cent wrote
Xenon4Life wrote
Cent wrote Jtag.Call(0x823FF408, 0, "set dvarname \"dvarvalue\"");

Thanks so i'm trying this:

0x823FF408, 0, "^ 7 \"999\"");


//To set player_sprintTime (%s to set value)
"^ 7 \"%s\""

and nothing happens in game... Could you give me an example of what you'd type in, with a dvar to make it work?


Jtag.Call(0x823FF408, 0, "set player_sprintTime \"10\"");
Jtag.Call(0x823FF408, 0, "set cg_fov \"80\"");

There's a few examples. If it doesn't work, make sure you're on the correct TU (tu11).

Right. I was on Tu12. Thanks a bunch man +rep




The TU12 offset is 0x82400AD8.

Jtag.Call(0x82400AD8, 0, "set player_sprintTime \"10\"");
Jtag.Call(0x82400AD8, 0, "set cg_fov \"80\"");

Hey, could you explain what the offset is for? Is that a console or something?
#8. Posted:
XeXWill_V
  • Challenger
Status: Offline
Joined: Feb 24, 201311Year Member
Posts: 105
Reputation Power: 4
Status: Offline
Joined: Feb 24, 201311Year Member
Posts: 105
Reputation Power: 4
Cent wrote
Xenon4Life wrote
Cent wrote Jtag.Call(0x823FF408, 0, "set dvarname \"dvarvalue\"");

Thanks so i'm trying this:

0x823FF408, 0, "^ 7 \"999\"");


//To set player_sprintTime (%s to set value)
"^ 7 \"%s\""


and nothing happens in game... Could you give me an example of what you'd type in, with a dvar to make it work?


Jtag.Call(0x823FF408, 0, "set player_sprintTime \"10\"");
Jtag.Call(0x823FF408, 0, "set cg_fov \"80\"");

There's a few examples. If it doesn't work, make sure you're on the correct TU (tu11).


\" \" is not needed for int values!
#9. Posted:
Xenon4Life
  • Challenger
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 179
Reputation Power: 8
Status: Offline
Joined: Aug 06, 201014Year Member
Posts: 179
Reputation Power: 8
XeXWill_V wrote
Cent wrote
Xenon4Life wrote
Cent wrote Jtag.Call(0x823FF408, 0, "set dvarname \"dvarvalue\"");

Thanks so i'm trying this:

0x823FF408, 0, "^ 7 \"999\"");


//To set player_sprintTime (%s to set value)
"^ 7 \"%s\""


and nothing happens in game... Could you give me an example of what you'd type in, with a dvar to make it work?


Jtag.Call(0x823FF408, 0, "set player_sprintTime \"10\"");
Jtag.Call(0x823FF408, 0, "set cg_fov \"80\"");

There's a few examples. If it doesn't work, make sure you're on the correct TU (tu11).


\" \" is not needed for int values!

Would it have us for any sort of dvars?
#10. Posted:
RC4
  • Rising Star
Status: Offline
Joined: Feb 18, 201212Year Member
Posts: 773
Reputation Power: 32
Status: Offline
Joined: Feb 18, 201212Year Member
Posts: 773
Reputation Power: 32
Offsets are where functions are located at. 0x823FF408 is the offset to set dvars is located at on Tu11.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.