Increase player surf speed
Hey,
How can I detect if a player is surfing and then increase his surfing speed? Thanks in advance. |
Re: Increase player surf speed
I think you are banned on Google. Anyway :
https://forums.alliedmods.net/showpo...45&postcount=6 Velocity with entity_set_vector function. |
Re: Increase player surf speed
Quote:
|
Re: Increase player surf speed
Quote:
|
Re: Increase player surf speed
Yes but I am really begginer here . I made a plugin for surf boost for my server and I used that stock and velocity but when I pressed space it threw me sometimes out of surface so let more experienced scripter to answer here how to set velocity correctly so that player had the same moving direction afterwards.
I've made lot of plugins , maybe I'll post them.One of them is speed boost on surf by pressing space, I think the same plugin you are looking for. |
Re: Increase player surf speed
Quote:
but I never used those functions before and I'm not sure how should I deal with it. Anyway, thanks for your response. |
Re: Increase player surf speed
How I prommised , my boost plugin:
PHP Code:
add // before (comment) if you want player get the boost message instantly after respawn. //#define ACCESS ADMIN_KICK Uncomment it and define acces if you want boost were only for admins. Cvars: amx_boost "1" - Activate/Deactivate plugin amx_boost_interval "7" - Time after you can boost again. (Once in 7 seconds) amx_boost_hud_delay "3" - If DELAYED_EFFECT is defined then you can adjust delay time of the hud boost message Commands: say /boosthud - Activate/Deactivate HUD Boost Message ////////////////////////////////// About the velocity,I used this : static Float:fVelocity[3] pev(id, pev_velocity, fVelocity) fVelocity[0] *= 10.0 fVelocity[1] *= 2.0 fVelocity[2] *= 2.0 set_pev(id, pev_velocity, fVelocity) I got the current velocity and multiplied but not the all 3 directions with the same factor otherwise it will through you out of surf. I tried different values and these are the most acceptable. Maybe more experienced scripter shows how to perfectly multiply these values so that you won't be thrown out of surf. |
Re: Increase player surf speed
Quote:
Also a great thanks for the great explanation. I'm really really grateful for this. |
| All times are GMT -4. The time now is 18:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.