changing user velocity
I am looking to change a users velocity if he touches a certain entity and it will boost him forward.
__-```-__ this is normal jump __---````````````---__ this is boost jump after touch entity Get the idea ? I have this already maybe im stupid on my code. Code:
|
Re: changing user velocity
Wtf is that???
use pev_velocity , velocity_by_aim and set_pev |
Re: changing user velocity
what are you talking about ?
|
Re: changing user velocity
post #2 doesnt know what fakemeta is, and I am not good enough to help you.
|
Re: changing user velocity
Now that I look at it...I think he does know what he's talking about...but he just kinda told me to use stuff like i was stupid.
Well in this case I am...because I looked up what he said velocity_by_aim but I dont know HOW to use this function. They give an example, but i am still unclear. Quote:
|
Re: changing user velocity
I didn't give a detailed explanation because I made the assumption you AREN'T stupid and could figure out what I meant. This should work for you fine. the *A* means you are going to have to figure out how to classify your entity since it probably wont be func_wall. You have cvars for how fast (speed), how high you want them (speed_height) and how long you want the boost to last (speed_time).
Code:
If you want the height to just be normal jump height just remove the speed_height cvar in plugin_init and change Code:
veloc2[id][2] = get_cvar_float("speed_height");Code:
veloc2[id][2] = veloc1[id][2]; |
Re: changing user velocity
no errors or anything...but does nothing.
|
Re: changing user velocity
Wow I don't even remember posting last night, yet I got one (two?) posts deleted.. strange. Anyway, if it doesn't work its because you hhave to change func_wall to whatever your entitiy is.
|
| All times are GMT -4. The time now is 21:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.