You are viewing our Forum Archives. To view or take place in current topics click here.
Setting dvars C# help Mw3
Posted:

Setting dvars C# help Mw3Posted:

XePersha
  • New Member
Status: Offline
Joined: May 15, 201410Year Member
Posts: 31
Reputation Power: 1
Status: Offline
Joined: May 15, 201410Year Member
Posts: 31
Reputation Power: 1
Does anyone know the code for how to set a dvar in mw3 for C#
#2. Posted:
Nissan
  • Ultra Gifter
Status: Offline
Joined: Sep 20, 201212Year Member
Posts: 2,136
Reputation Power: 312
Status: Offline
Joined: Sep 20, 201212Year Member
Posts: 2,136
Reputation Power: 312
XePersha wrote Does anyone know the code for how to set a dvar in mw3 for C#


Here :

Jtag.Call(0x82254940, -1, 0, "s DVARGOESHERE");
#3. Posted:
Botch
  • TTG Senior
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
Status: Offline
Joined: Aug 31, 201212Year Member
Posts: 1,553
Reputation Power: 65
RGHJTAGZ wrote
XePersha wrote Does anyone know the code for how to set a dvar in mw3 for C#


Here :

Jtag.Call(0x82254940, -1, 0, "s DVARGOESHERE");

MW3 uses the 'q' character command for setting dvars, and you posted an MW2 example. Here are some examples of other character commands you can use.

private uint SV = 0x822C9278;
X.Call(SV, new object[] {-1, 1, "q cg_fov 90"}); //sets FOV to 90 for all clients
X.Call(SV, new object[] {-1, 1, "r \"You have been kicked!\""}); //kicks all clients with message (might be missing a quotation mark though)
X.Call(SV, new object[] {-1, 1, "J default_mp"}); //sets default vision for all clients
X.Call(SV, new object[] {-1, 1, "c \"Center text\""}); //center text for all clients (again, might be missing a quotation mark)
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.