Raised This Month: $ Target: $400
 0% 

Getting brush entity height


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-25-2013 , 12:38   Getting brush entity height
Reply With Quote #1

Hello Allied Modders!
Im trying to get nonsolid brush entity height but...

Code:
PHP Code:
        pevidpev_origino1 )
        static 
Float:end[3], Float:end2[3], trFloat:dd
        xs_vec_sub
o1Float:{ 0.00.0, -9999.0 }, end )
        
engfuncEngFunc_TraceLineo1endIGNORE_MONSTERS0tr )
        
get_tr2trTR_vecEndPosend )
        
set_peventpev_movetypeMOVETYPE_TOSS )
        
set_peventpev_solidSOLID_BBOX )
        
set_peventpev_originFloat:{ 0.00.00.0 } )
        
        
xs_vec_subendFloat:{ 0.00.09999.0 }, end2 )
        
engfuncEngFunc_TraceLineendend2IGNORE_MONSTERS0tr )
        
get_tr2trTR_vecEndPosend2 )
        
dd end2[2] - o1[2]
        
pn_print1"dist:%f org: %f/%f/%f"ddend[2], end2[2], o1[2] )
        
entity_set_int(entEV_INT_solidSOLID_TRIGGER)
        
entity_set_int(entEV_INT_movetypeMOVETYPE_NOCLIP)
        
set_peventpev_originFloat:{ 0.00.00.0 } ) 
Last traceline go through the entity...
Mayby someone can correct my code and tell me what i did wrong.
And as always, thanks!

Last edited by .Dare Devil.; 05-25-2013 at 12:38.
.Dare Devil. 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 16:26.


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