Raised This Month: $ Target: $400
 0% 

Surfing detection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 11-08-2007 , 18:51   Re: Surfing detection
Reply With Quote #1

Hawk552: Touch might work with func_friction thing but this is more about world brushes with slope faces (> 45 degrees I think). You can't stand or walk on them. As soon as you touch one, entity flag will change to 8 (which is exactly the same value as during falling).

Wilson: Whatever player is pressing and his speed is will not help in distinguishing falling state from sliding. But trace_hull idea sounds interesting. I'll be right back.

Thank you both.

UPDATE:

Trace_hull with with large_hull almost did the job. But then I've noticed that the states where player is in the air + ducked + few units above ground and the state when player is touching a brush (possibly slope) + is above ground are identical in the engine. So another problem - and I don't see a way through trace_hull anymore. This problem is more complicated than I expected.

I possibly have a solution but that includes a bit of vector algebra ... and lot of optimalisations.
Garh >_<
__________________

Last edited by alien; 11-08-2007 at 19:27.
alien is offline
Send a message via ICQ to alien
Reply



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 01:12.


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