Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Rotate angle vector


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-21-2018 , 02:37   Re: [ H3LP ] Rotate angle vector
Reply With Quote #3

PHP Code:
get_tr2(traceTR_flFractionfraction)
    
// If we didn't hit anything, then we won't get a valid TR_vecPlaneNormal.
    
if (fraction == 1.0) return
    
    new 
Float:normal[3]
    
get_tr2(traceTR_vecPlaneNormalnormal)
    
// We'll multiply the the normal vector by a scalar to make it longer.
    
normal[0] *= 400.0 // Mathematically, we multiplied the length of the vector by 400*(3)^(1/2),
    
normal[1] *= 400.0 // or, in words, four hundred times root three.
    
normal[2] *= 400.0 
You might get false result because you are not checking if the trace hit something transfer the vector into angles and it should give you the angles of the wall.

If i am wrong can you explain more of what are you doing?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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


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