brush width, height, length | and player dvar/server issues

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

Moderator: Core Staff

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

brush width, height, length | and player dvar/server issues

Post by pcbouncer » August 3rd, 2013, 1:05 am

as simple as it is, i don't know how to get these values.. does anyone know how?

also,
in a recent topic i tried to change player properties like g_speed, and it wouldn't work, does anyone know anything more about this? It shows the value changing in the console but you're locked at the server value.


edit**
the g_speed works in devmap, not in servers. Still, there is a way to change player dvars in a server.

User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

Re: brush width, height, length | and player dvar/server iss

Post by Goro92 » August 3rd, 2013, 8:12 am

pcbouncer wrote:as simple as it is, i don't know how to get these values.. does anyone know how?
Image

CTRL+TAB and get the Z

Image
Image

megazor
CJ Worshipper
CJ Worshipper
Posts: 414
Joined: July 22nd, 2009, 3:02 am
Location: Russia, Vladivostok

Re: brush width, height, length | and player dvar/server iss

Post by megazor » August 3rd, 2013, 8:21 am

Unfortunately, you don't have access to brushes by modding. There are a few functions which can work with brushes, but it's still impossible to get brush vertices by it.

Your second question will be soon answered by someone else.

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

Re: brush width, height, length | and player dvar/server iss

Post by F |Madness| U » August 3rd, 2013, 10:43 am

pcbouncer wrote: the g_speed works in devmap, not in servers. Still, there is a way to change player dvars in a server.
Yes, there is. But g_speed is a server dvar, not a player dvar. So changing it on individual players won't do anything. I'm pretty sure Drofder or somebody answered this before, but if you want to change an individual player's speed, use setMoveSpeedScale(<scale>).
-

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

Re: brush width, height, length | and player dvar/server iss

Post by pcbouncer » August 3rd, 2013, 11:58 am

well ive seen a server mod menu in which you can change your "own" gravity and gspeed based on if you want os and or g speed. there is some way to do it, i just dont know how. And i was talking about the brush width and stuff with script :S

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

Re: brush width, height, length | and player dvar/server iss

Post by F |Madness| U » August 3rd, 2013, 2:17 pm

It might be able to be done with some linux server changes or something. Ask the person who made the mod on that server.
-

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

Re: brush width, height, length | and player dvar/server iss

Post by Drofder2004 » August 3rd, 2013, 2:26 pm

Brushes are not entities and cannot be referenced. The only way you can get a brush width is measuring it, there are ways of doing it, but they involve player interaction and not just script.

Gravity cannot be set on an individual basis - more than likely it was a change in jump_height.

player setMoveSpeedScale(x); for player speed.

(And as Madness above said, there is a chance the binaries were hacked and changed to allow such a possibility - although unlikely).
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: brush width, height, length | and player dvar/server iss

Post by pcbouncer » August 3rd, 2013, 4:19 pm

Yeah but i've tried setmovespeedscale too, servers also dis-allow that :s

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

Re: brush width, height, length | and player dvar/server iss

Post by F |Madness| U » August 3rd, 2013, 4:27 pm

Shouldn't do, plenty of mods use that...

I just tested it and calling a thread on a player with self setMoveSpeedScale(2.0) definitely works.
-

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

Re: brush width, height, length | and player dvar/server iss

Post by Drofder2004 » August 3rd, 2013, 4:30 pm

pcbouncer wrote:Yeah but i've tried setmovespeedscale too, servers also dis-allow that :s
What do you mean by "servers disallow that"?
Something tells me, we are no longer talking about modding...
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

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

Re: brush width, height, length | and player dvar/server iss

Post by F |Madness| U » August 3rd, 2013, 4:34 pm

^Indeed lol..
-

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

Re: brush width, height, length | and player dvar/server iss

Post by pcbouncer » August 4th, 2013, 4:32 am

well i have a script that does just that. and it doesnt work in a server

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

Re: brush width, height, length | and player dvar/server iss

Post by F |Madness| U » August 4th, 2013, 11:58 am

Debug it in the server then. Set developer 2, also put a iPrintLnBold("Debug") next to the setMoveSpeedScale to make sure the code is actually being executed.
-

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

Re: brush width, height, length | and player dvar/server iss

Post by Drofder2004 » August 4th, 2013, 12:21 pm

pcbouncer wrote:well i have a script that does just that. and it doesnt work in a server
Does it work when NOT on a server?
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: brush width, height, length | and player dvar/server iss

Post by pcbouncer » August 4th, 2013, 4:18 pm

yes it does

Post Reply

Who is online

Users browsing this forum: No registered users and 41 guests