View Single Post
panxiaohai
Senior Member
Join Date: Mar 2010
Old 07-07-2011 , 04:39   Re: [L4D & L4D2] Climb Everywhere
Reply With Quote #22

Quote:
Originally Posted by blackalegator View Post
Nice plugin! Looked at the code, but it is pretty hard to understand it for me now. I am really new to sourcepawn, anddunno any of the props. Still... 950 lines of code!

Edit: Huh? Found some really handy functions for myself. Thank you!

PS what is that line doing? Float:f=GetAngle(normal, up)*180/Pai; ?
I thought GetAngle returns degrees, not radians
My English is bad ,I am hard to describe my code ,so I never made comments , but today I spend an hour to comment my code, please download again.
/*
* angle between x1 and x2
*/
Float:GetAngle(Float1[3], Float2[3])
{
return ArcCosine(GetVectorDotProduct(x1,x2)/(GetVectorLength(x1)*GetVectorLength(x2)));
}
It return radians not degree.
panxiaohai is offline