Raised This Month: $ Target: $400
 0% 

Set user speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-20-2010 , 19:37   Set user speed
Reply With Quote #1

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.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-20-2010 , 23:33   Re: Set user speed
Reply With Quote #2

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

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-21-2010 , 03:19   Re: Set user speed
Reply With Quote #3

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)

Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-21-2010 , 04:15   Re: Set user speed
Reply With Quote #4

Quote:
Originally Posted by Flipper_SPb View Post
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.
Doc-Holiday is offline
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-21-2010 , 05:42   Re: Set user speed
Reply With Quote #5

With cl_forwardspeed, cl_backspeed, cl_sidespeed = 400?
I'll try
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 03-21-2010 , 06:36   Re: Set user speed
Reply With Quote #6

No.
I set
sv_maxspeed 999
set_user_maxspeed(id, 800.0)

but cl_forwardspeed 400 limits the speed
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-21-2010 , 07:11   Re: Set user speed
Reply With Quote #7

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.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-21-2010 , 13:38   Re: Set user speed
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
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...
Doc-Holiday is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 03-21-2010 , 14:07   Re: Set user speed
Reply With Quote #9

Quote:
Originally Posted by NcB_Sav View Post
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
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-22-2010 , 00:44   Re: Set user speed
Reply With Quote #10

Quote:
Originally Posted by drekes View Post
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.
Doc-Holiday is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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