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

Angle of the wall


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
theqramboq
Junior Member
Join Date: Apr 2021
Old 12-11-2022 , 13:50   Angle of the wall
Reply With Quote #1

Is it possible to get the angle of the worldspawn wall? if possible how can i get it?
theqramboq is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-11-2022 , 19:08   Re: Angle of the wall
Reply With Quote #2

according to what? player view ?

You can use a traceline and get the Plane of the trace, will return the view of the wall.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 12-11-2022 at 19:09.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
theqramboq
Junior Member
Join Date: Apr 2021
Old 12-12-2022 , 08:51   Re: Angle of the wall
Reply With Quote #3

I'll take a look at your advice and need some code like below?

Code:
new Float:vPlane[3], WallAngles[3]
		
get_global_vector(GL_trace_plane_normal, vPlane)
				
vector_to_angle(vPlane, WallAngles)
theqramboq is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-12-2022 , 12:41   Re: Angle of the wall
Reply With Quote #4

Quote:
Originally Posted by theqramboq View Post
I'll take a look at your advice and need some code like below?

Code:
new Float:vPlane[3], WallAngles[3]
		
get_global_vector(GL_trace_plane_normal, vPlane)
				
vector_to_angle(vPlane, WallAngles)
Yes but you need coordinates, an start position and an end position, then you execute a traceline using either fakemeta or engine modules.
__________________
@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
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 21:36.


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