Raised This Month: $ Target: $400
 0% 

[Solved for now]Player in duct (?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 06-28-2014 , 22:45   Re: Player in duct (?
Reply With Quote #7

You can quite easily check if a player is in a spot where they can not stand up using a EngFunc_TraceHull call. Simply get the origin and add some amount to the z axis (going upwards) and use that as the trace target. If TR_AllSolid is false and TR_flFraction is smaller than 1.0 the player is in a space where they can not stand up. You maybe have to play around a little with how far you need to move up to accurately detect this.
__________________
In Flames we trust!
Nextra 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 21:15.


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