If you need sv_maxspeed to be set to a certain minimum value for a given
operation (i.e. the addition of a certain velocity), you can always do

if (CVAR_GET_FLOAT("sv_maxspeed") < 800.0)
    CVAR_SET_FLOAT("sv_maxspeed", 800.0)

although as botman said, the server op can always set it back down. You
might try setting up a global minimum velocity variable, and adding a check
like the one above in StartFrame().

----- Original Message -----
From: "botman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 8:51 AM
Subject: Re: [hlcoders] sv_maxspeed


> > Is it possible to hard code it to a value, so it can't be changed?
>
> Not really, but you can keep setting it to a value that you want it to be.
> If you set this value every 1.0 seconds, a server operator can change the
> server value to a higher or lower number and clients will use that value
for
> a brief period of time (until your code resets the value back to what you
> want it to be).  It's a pretty ugly hack, but there's no simple way to
> intercept the console changing this server CVAR.
>
> Jeffrey "botman" Broome
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to