AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Set user speed (https://forums.alliedmods.net/showthread.php?t=121894)

Flipper_SPb 03-20-2010 19:37

Set user speed
 
Is it possible to set user speed without changing client cvars (default cl_sidespeed, cl_forwardspeed, cl_backspeed)?
I want to set player speed higher than 400.

drekes 03-20-2010 23:33

Re: Set user speed
 
doesnt it work with this?
I'm not sure if it changes client cvars but i don't thinks so.
Because else it would be considert slowhacking(I think)

PHP Code:

#include <fun>

#define PLUGIN "speed"
#define VERSION "1.0"
#define AUTHOR "Drekes"

public plugin_init()
{
    
//stuff
}

public 
something(id)
{
    
set_user_maxspeed(id2.0)//double speed



Flipper_SPb 03-21-2010 03:19

Re: Set user speed
 
http://www.amxmodx.org/funcwiki.php?...peed&go=search

Users speed is limited by:
servers max speed cvar - sv_maxspeed
client side max speed cvars - cl_forwardspeed, cl_backspeed, cl_sidespeed (default for cs is 400.0)

:(

Doc-Holiday 03-21-2010 04:15

Re: Set user speed
 
Quote:

Originally Posted by Flipper_SPb (Post 1124090)
http://www.amxmodx.org/funcwiki.php?...peed&go=search

Users speed is limited by:
servers max speed cvar - sv_maxspeed
client side max speed cvars - cl_forwardspeed, cl_backspeed, cl_sidespeed (default for cs is 400.0)

:(


you sure in my battlefield i set maxspeed to 500 and it works fine.

Flipper_SPb 03-21-2010 05:42

Re: Set user speed
 
With cl_forwardspeed, cl_backspeed, cl_sidespeed = 400?
I'll try

Flipper_SPb 03-21-2010 06:36

Re: Set user speed
 
No.
I set
sv_maxspeed 999
set_user_maxspeed(id, 800.0)

but cl_forwardspeed 400 limits the speed

ConnorMcLeod 03-21-2010 07:11

Re: Set user speed
 
I guess you can't.
You should show players a menu so they can accept and create a command so thay can set back their settings.

Doc-Holiday 03-21-2010 13:38

Re: Set user speed
 
Quote:

Originally Posted by ConnorMcLeod (Post 1124219)
I guess you can't.
You should show players a menu so they can accept and create a command so thay can set back their settings.


then how do you explain me being able to shoot my guy up to 500 speeD?

lol...

drekes 03-21-2010 14:07

Re: Set user speed
 
Quote:

Originally Posted by NcB_Sav (Post 1124516)
then how do you explain me being able to shoot my guy up to 500 speeD?

lol...

i think he means that you set his speed using changing the clients cvars but make a menu so the client can reset them afterwards

Doc-Holiday 03-22-2010 00:44

Re: Set user speed
 
Quote:

Originally Posted by drekes (Post 1124551)
i think he means that you set his speed using changing the clients cvars but make a menu so the client can reset them afterwards

set_user_maxspeed allows you to set the players speed within the clamp the engine provides us with. but anything above 450 is WAY to fast. its weird.


All times are GMT -4. The time now is 08:48.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.