Raised This Month: $ Target: $400
 0% 

block player on ground movement?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SpaceRip
Junior Member
Join Date: Aug 2012
Old 08-22-2012 , 08:59   Re: block player on ground movement?
Reply With Quote #4

Quote:
Originally Posted by jimaway View Post
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?
make traceline on ground playerorigin - groundorigin = tracedistance and

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.
SpaceRip is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode