Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Rotate angle vector


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-20-2018 , 18:05   [ H3LP ] Rotate angle vector
Reply With Quote #1

Hello, I want to set view angle in player relative to wall angle. I tried with GL_trace_plane_normal, it's working but not as an I want. I want to aim in wall direction, not in oposite direction of wall. How I can rotate this vector to opositional direction?

Code:
new Float:vPlane[3], Float:vAngles[3]; get_global_vector(GL_trace_plane_normal, vPlane); vector_to_angle(vPlane, vAngles); set_entvar(this, var_v_angle, vAngles); set_entvar(this, var_fixangle, 1);
__________________









Last edited by CrazY.; 06-21-2018 at 09:29.
CrazY. is offline
 


Thread Tools
Display Modes

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