brush width, height, length | and player dvar/server issues
Moderator: Core Staff
brush width, height, length | and player dvar/server issues
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.
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.
Re: brush width, height, length | and player dvar/server iss
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.
Your second question will be soon answered by someone else.
-
- 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
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 wrote: the g_speed works in devmap, not in servers. Still, there is a way to change player dvars in a server.
-
Re: brush width, height, length | and player dvar/server iss
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
-
- 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
It might be able to be done with some linux server changes or something. Ask the person who made the mod on that server.
-
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: brush width, height, length | and player dvar/server iss
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).
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).
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
Re: brush width, height, length | and player dvar/server iss
Yeah but i've tried setmovespeedscale too, servers also dis-allow that :s
-
- 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
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.
I just tested it and calling a thread on a player with self setMoveSpeedScale(2.0) definitely works.
-
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: brush width, height, length | and player dvar/server iss
What do you mean by "servers disallow that"?pcbouncer wrote:Yeah but i've tried setmovespeedscale too, servers also dis-allow that :s
Something tells me, we are no longer talking about modding...
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
-
- 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
well i have a script that does just that. and it doesnt work in a server
-
- 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
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.
-
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: brush width, height, length | and player dvar/server iss
Does it work when NOT on a server?pcbouncer wrote:well i have a script that does just that. and it doesnt work in a server
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
Who is online
Users browsing this forum: No registered users and 1 guest