Post: I need help
10-24-2014, 12:28 PM #1
Scouse Power
Knowledge is power
(adsbygoogle = window.adsbygoogle || []).push({}); How would I change/set a DVAR in Black Ops 1 Multi-player for each client in the game depending on there ID. I would also like to set lobby DVAR's such jump_height.

I was using
    
public void SetStringDvar(uint client, String DvarName, String value) {
SV_SendServerCommand((uint)client, "v " + DvarName + " " + value + "");
}
public static void SV_SendServerCommand(uint client, string command) {
RPC.Call(0x009149E0, (uint)client, 0, command);
}


I call it using RPC.SetStringDvar(1, "jump_height", "9999");
I've also tried RPC.SetStringDvar(1, "cg_laserForceOn", "1");
(1 = client id)

Both freeze my PS3.

Thanks,
Kieran
(adsbygoogle = window.adsbygoogle || []).push({});
01-08-2015, 02:26 AM #2
Originally posted by KieranR View Post
How would I change/set a DVAR in Black Ops 1 Multi-player for each client in the game depending on there ID. I would also like to set lobby DVAR's such jump_height.

I was using
    
public void SetStringDvar(uint client, String DvarName, String value) {
SV_SendServerCommand((uint)client, "v " + DvarName + " " + value + "");
}
public static void SV_SendServerCommand(uint client, string command) {
RPC.Call(0x009149E0, (uint)client, 0, command);
}


I call it using RPC.SetStringDvar(1, "jump_height", "9999");
I've also tried RPC.SetStringDvar(1, "cg_laserForceOn", "1");
(1 = client id)

Both freeze my PS3.

Thanks,
Kieran


I don't know if you fixed this. But I recommend using Cbuf_addtext for using dvars unless you want to Set all client dvars.

Rpc.Call(Cbuf_AddText, 0, "set jump_height 1000");
01-08-2015, 07:26 AM #3
makeabce
I defeated!
Originally posted by KieranR View Post
How would I change/set a DVAR in Black Ops 1 Multi-player for each client in the game depending on there ID. I would also like to set lobby DVAR's such jump_height.

I was using
    
public void SetStringDvar(uint client, String DvarName, String value) {
SV_SendServerCommand((uint)client, "v " + DvarName + " " + value + "");
}
public static void SV_SendServerCommand(uint client, string command) {
RPC.Call(0x009149E0, (uint)client, 0, command);
}


I call it using RPC.SetStringDvar(1, "jump_height", "9999");
I've also tried RPC.SetStringDvar(1, "cg_laserForceOn", "1");
(1 = client id)

Both freeze my PS3.

Thanks,
Kieran


Both of those dvars are cheat protected, thats why your ps3 will freeze.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo