server not allowing to change client dvars

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
pcbouncer
CJ Fan
CJ Fan
Posts: 114
Joined: November 27th, 2012, 10:49 pm

server not allowing to change client dvars

Post by pcbouncer » July 11th, 2013, 6:24 pm

in my script i have like setclientdvar g_speed (whaatever) and it changes in the console, but you dont actually have different gspeed. anyone know how to get around this? please help.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: server not allowing to change client dvars

Post by Drofder2004 » July 11th, 2013, 11:34 pm

g_speed is not a client dvar.

player SetMoveSpeedScale( 1.5 )
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

pcbouncer
CJ Fan
CJ Fan
Posts: 114
Joined: November 27th, 2012, 10:49 pm

Re: server not allowing to change client dvars

Post by pcbouncer » July 12th, 2013, 6:01 pm

i tried that too, and it tries to work but wont. I know its possible because on "tommy"'s cj mod, he has a menu where you can change your gspeed and jumpheight on the players individually

F |Madness| U
CJ G0D!
CJ G0D!
Posts: 1575
Joined: June 3rd, 2009, 9:02 pm
Location: Cardiff University, UK

Re: server not allowing to change client dvars

Post by F |Madness| U » July 12th, 2013, 8:17 pm

Could possibly be a linux server, many different things are possible on those. But as Drof said, gravity and g_speed are server dvars which would affect all players on the server.

I would advise trying to speak to this Tommy guy, and if he's not a dick he should tell you how it can be done.
-

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: server not allowing to change client dvars

Post by Drofder2004 » July 12th, 2013, 11:52 pm

Post your code.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests