block player on ground movement?
is it possible to make player move on ground same way as in air? (get speed by air-strafing)
i did something like this just by changing players Z velocity 5 units higher froum ground in prethink, but this way there are some bugs (getting stuck in ceiling in tight places etc), and by trying to fix them the code is getting rather large in prethink what is a bad idea. so i tried to remove FL_ONGROUND flag in prethink, but that didnt do anything, would something like blocking touch with floor entity work or is orpheu needed for this (if even possible with orpheu) |
Re: block player on ground movement?
set move type fly
or play with gravity, just set_pev( id, pev_gravity, 0.000001 ) and then set z velocity to 0 |
Re: block player on ground movement?
gravity wont work if youre on ground, and if you hit a ramp with gravity, you will float in the air with no way getting back down, and wont move type fly cause no clip type movement?
|
Re: block player on ground movement?
Quote:
get player min/max if (playerorigin + min[2]) - tracedistance[] < 2.0 setgravity normal else setgravity 0.0001, setorigin[2] + 0.1 anyway you get my idea. |
Re: block player on ground movement?
i started out with something like that, and it will make player have this "bouncing effect" (constantly setting z origin little higher at some point) also it has the same problem: player will get stuck in ceiling in tight places
dont try to give me alternatives, i just want to know if its possible to make player have same movement as in air, on ground |
Re: block player on ground movement?
bump
|
| All times are GMT -4. The time now is 05:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.