speed to angles
There is a code in standart amxx how to make angles in needed speed.
Now i'm wondering how to get angles from speed?
P.S. If noone knows, maybe eDark can help me in this one? It's just a calculation code. =)
I dunno exactly what you're asking, but I'm sure I would have an answer for you if I did. Perhaps velocity_by_aim, or get_view_pos are what you're looking for, gimme more info and I'll try to help you out.
nvm. Figured out a way how to detect movment angles by old origin & new origin (I think it will be more currect then bugged velocity). Just finished vertical angle detection - horizontal tomorrow.
try looking at positions where ct is and where it was maybe it will help you..
vector_to_angle(velocity, angles) is the bugged thing? So velocity is not accurate in the engine or ... ?
If velocity is bugged and you are trying to get an angle you could do smth like this:
difference[0] = current_origin[0] - past_origin[0]
difference[1] = current_origin[1] - past_origin[1]
difference[2] = current_origin[2] - past_origin[2]
vector_to_angles(difference, your_angles)
I am making smth now with that vector_to_angles(velocity...) function... I would be interested to know why is it bugged.
Please log in to post replies.