Raised This Month: $51 Target: $400
 12% 

EngFunc_TraceHull and TR_vecPlaneNormal


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vitorrossi
Senior Member
Join Date: Apr 2012
Location: NY, USA
Old 10-14-2015 , 09:19   EngFunc_TraceHull and TR_vecPlaneNormal
Reply With Quote #1

I use the following code for when a player is stuck in a wall:

PHP Code:
new Float:fOrigin], Float:fNormalVector], trHull;
    
    
trHull create_tr2( );
    
pevidpev_originfOrigin );
    
    
engfuncEngFunc_TraceHullfOriginfOriginDONT_IGNORE_MONSTERSHULL_HUMANidtrHull );
    
    
get_tr2trHullTR_vecPlaneNormalfNormalVector )
    
    
free_tr2trHull 
returns fNormalVector[0] = 0.0, fNormalVector[1] = 0.0, fNormalVector[2] = 0.0
If doing so with a traceline, you actually get the normal vector corresponding to the plane the traceline hits.

How come this is not the case for tracehull, can it be shown from the HLSDK? Is there a way to retrieve the normal to the plane tracehull hits?
vitorrossi is offline
vitorrossi
Senior Member
Join Date: Apr 2012
Location: NY, USA
Old 10-15-2015 , 12:58   Re: EngFunc_TraceHull and TR_vecPlaneNormal
Reply With Quote #2

After checking the amxmodx sdk and the hlsdk I think trace hull is done by tracing a bunch of tracelines from the origin outwards, representing the size of the hull. I think without accessing these functions directly (maybe with orpheus or rage) retrieving the normals can't be done.
vitorrossi is offline
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 08:33.


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