AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ H3LP ] Get wall angle? (https://forums.alliedmods.net/showthread.php?t=299670)

CrazY. 07-22-2017 14:50

[ H3LP ] Get wall angle?
 
Hello, how I can get the angle of wall (worldspawn, func_wall, func_breakable) on post touch forward?

Didn't work with [pev|vec]_angle.

I will try this: https://forums.alliedmods.net/showthread.php?t=262138

RAW_192 08-04-2017 01:13

Re: [ H3LP ] Get wall angle?
 
Did you find any solution ?
@CrazY.

CrazY. 08-04-2017 20:51

Re: [ H3LP ] Get wall angle?
 
No... I'm still trying to solve this.

klippy 08-05-2017 06:11

Re: [ H3LP ] Get wall angle?
 
You can do a TraceLine that hits the wall and then retrieve TR_vecPlaneNormal. I believe the plane(surface) normal is what you want and best describes wall's "angle".

PRoSToTeM@ 08-05-2017 19:41

Re: [ H3LP ] Get wall angle?
 
On touch you can use global trace result via GL_trace_* or glb_trace_*.


All times are GMT -4. The time now is 22:44.

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