AlliedModders

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

rodrigo286 01-04-2011 22:04

+speed
 
I place high value but the character continues with the standard speed.
[IMG]http://img695.**************/img695/990/rapido.png[/IMG]
What am I doing wrong?

Thanks!

infek 01-05-2011 01:05

Re: +speed
 
Try something like this
http://www.amxmodx.org/funcwiki.php?go=func&id=123

Elusive138 01-05-2011 01:55

Re: +speed
 
Quote:

Originally Posted by infek (Post 1386341)

That's what he's using...

Make sure your sv_maxspeed (server cvar) is high enough. Default is 320.
Make sure your cl_forwardspeed, cl_backspeed and cl_sidespeed (client cvars) are high enough. I think the default was 320.
When a player switches weapons, speed gets reset... You can counter that by setting the speed up again using this.

Good luck.

GXLZPGX 01-05-2011 04:42

Re: +speed
 
Quote:

Originally Posted by Elusive138 (Post 1386351)
That's what he's using...

Make sure your sv_maxspeed (server cvar) is high enough. Default is 320.
Make sure your cl_forwardspeed, cl_backspeed and cl_sidespeed (client cvars) are high enough. I think the default was 320.
When a player switches weapons, speed gets reset... You can counter that by setting the speed up again using this.

Good luck.

You're asking him to do way more than he needs to. He should never have to change client cvars or server cvars. He can use fakemeta to change the speed efficiently:

set_pev( index, pev_maxspeed, Float:0.0 )

^ The 3RD parameter HAS to be a float.

abdul-rehman 01-05-2011 05:50

Re: +speed
 
Quote:

Originally Posted by GXLZPGX (Post 1386400)

set_pev( index, pev_maxspeed, Float:0.0 )

^ The 3RD parameter HAS to be a float.

FM is not da solution to all your problems, he is using da correct native a beginner is supposed to use to set speed

Btw you can try hooking Ham_Item_PreFrame and set players speed thier
but if u r using ZP with this plugin then it wont work cause ZP sets users speed in Player_Prethink so the speed will be reset everytime you try to set it

rodrigo286 01-05-2011 10:05

Re: +speed
 
did not work, can someone show me how is the code?

abdul-rehman 01-05-2011 12:14

Re: +speed
 
Quote:

Originally Posted by abdul-rehman (Post 1386423)
if u r using ZP with this plugin then it wont work cause ZP sets users speed in Player_Prethink so the speed will be reset everytime you try to set it

Atleast answer my question first !

Pinatz 01-05-2011 12:46

Re: +speed
 
You are changing the speed only one time. After the player changes his weapon the speed will be 320 again.
And I may be wrong but you have to force the client cvar to 800 (cl_forwardspeed 800, cl_sidespeed 800, cl_backspeed 800).

SnoW 01-05-2011 12:48

Re: +speed
 
Quote:

Originally Posted by abdul-rehman (Post 1386631)
Atleast answer my question first !

You asked no question, sir.

rodrigo286 01-05-2011 13:16

Re: +speed
 
I put in autoexec.cfg

cl_forwardspeed 800
cl_sidespeed 800
cl_backspeed 800

It did not work.

Thanks!


All times are GMT -4. The time now is 02:00.

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