Setting a player's speed..is a nightmare.
Greetings,
I'm having an insanely difficult time with setting my speed. Yes I've read the forums and I've gone through about 20 threads, trying different crap and I can't find what I'm doing wrong. Relevant code: nwc.sma PHP Code:
PHP Code:
race_undead_scourge.inl PHP Code:
events.inl PHP Code:
|
Re: Setting a player's speed..is a nightmare.
What are you actually trying to do? To set some different maxspeed to yourself? If so, Ham_CS_Player_ResetMaxSpeed should work fine, but in new versions of Amxmodx. So the working (but not the best) way for me is hooking CurWeapon using set_user_maxspeed() from fun.inc. Will work, but there are better ways which I can't explain in details.
|
Re: Setting a player's speed..is a nightmare.
I literally have the absolute newest dev version of AMXMod. Hooking curweapon does not solve the problem.
*Edit Aaaaaand Cs1.6 is stupid. Nowhere does anyone say anything about sv_maxspeed >:C [/thread] |
Re: Setting a player's speed..is a nightmare.
The issue is not just sv_maxspeed by the way. The client will not attempt to go over a certain speed aswell unless the appropriate cvars are set, those are cl_forwardspeed, cl_sidespeed and cl_backspeed.
|
Re: Setting a player's speed..is a nightmare.
Yeah I'm figuring this all out as I go.
So how am I supposed to do this? If I don't set sv_maxspeed higher than 400, nothing will work. If I set sv_maxspeed higher than 400, but do not set cl_*speed, nothing will work. If I set cl_*speed, apparently that's slowhacking?!? I can't hook cl_*speed because they're client-side commands. What's the correct way to do this? |
Re: Setting a player's speed..is a nightmare.
I believe you can query that cvar, and then inform player to set it higher :)
query_client_cvar. |
Re: Setting a player's speed..is a nightmare.
But when do I call this? I don't want to inform them to set it higher, this would be for a warcraft-style server that needs to have some players running at SPEED_X, some at SPEED_Y, and the rest at SPEED_Z.
I can do a set_task that loops through all players and repeats indefinitely every 3 seconds, I can hook client_think (I really don't want to..)...where's the event for the check? |
Re: Setting a player's speed..is a nightmare.
If you do use amx super, disable it or use the nonspeed version of it.
|
Re: Setting a player's speed..is a nightmare.
I'm not using amx super, I'm making a new warcraft mod from scratch. The only plugins running on my server are the base plugins, logevents, and my warcraft.
|
Re: Setting a player's speed..is a nightmare.
You can't circumvent it. Make sure that the players can't get that fast.
|
| All times are GMT -4. The time now is 12:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.