set_user_maxspeed() not work
I'm editing my deathrun server and I want to set speed of terrorists to the 550. But with no help. Here is parth of the code from deathrun.sma:
PHP Code:
Note: server cvar sv_maxspeed is 900 client cvars cl_forwardspeed, cl_backspeed, cl_sidespeed are all set to 4000 Compilation proceed without any error or even warning. I also have a SuperHero server, where I use set_user_maxspeed and it works well. Where is the problem? |
Re: set_user_maxspeed() not work
Quote:
And the default speed should be 250.0 not 0.0 |
Re: set_user_maxspeed() not work
I set 0.0 cause in docs it says "If you set a user's maxspeed to 0.0 they will be able to run normal speed."
|
Re: set_user_maxspeed() not work
Speed gets reset when a user changes weapons so you can't just set it and forget it.
Try this: If you want a players speed to be normal again at new round then you need to set g_bPlayersSpeedSet[ pid ] = false at spawn or new round. Let me know and I can set it up for you. PHP Code:
|
Re: set_user_maxspeed() not work
I guess you need to make a code for all time with switching guns speed. For reset speed max.
|
Re: set_user_maxspeed() not work
Oh yes, right. I'm trying your code Bugsy, but I have problem with RegisterHam. I should put it into the plugin_init() function, I guess, but it tells me, that variable Ham_CS_Player_ResetMaxSpeed is undefined.
|
Re: set_user_maxspeed() not work
You need the new ham module that comes with 1.8.3. Or just replace Ham_CS_Player_ResetMaxSpeed with Ham_Item_PreFrame.
|
Re: set_user_maxspeed() not work
That Ham_Item_PreFrame thing worked! And now, the speed boost for terrorists works like I wanted, thanks a lot guys for help!
|
| All times are GMT -4. The time now is 09:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.