Get Player Shot angle
Hello. I can get player view angle (the result will be two numbers):
Code:
pev(id, pev_v_angle, v_angle)I think vector_to_angle() function can be useful. http://s22.************/bko135gwx/de_nuke0045.jpg Thanks for advice & sorry for my bad English. |
Re: Get Player Shot angle
you mean the rotation of the player model?
|
Re: Get Player Shot angle
Quote:
Another screenshot example: http://3.firepic.org/3/images/2013-0...r15qzg8x5l.jpg |
Re: Get Player Shot angle
Its strange that you guys always show things in picture with 2d( 2 coords numbers.)
This is 3D game so obvious there is more than just 2 float values. ( x, y, z ) |
Re: Get Player Shot angle
Quote:
I want get angle of each weapon shot TraceLine (from player eyes position). I think this is correct and possible, but how :)? |
Re: Get Player Shot angle
Quote:
And also no, it's pitch, yaw, and roll for angles. |
Re: Get Player Shot angle
You should do this :
PHP Code:
PHP Code:
|
Re: Get Player Shot angle
I want get player shot angle (traceline?), not aim/pevs, etc.
I try use (for visualisation): Code:
register_forward(FM_TraceLine, "traceline_forward")Code:
public traceline_forward(Float:start[3], Float:end[3], conditions, id, trace)http://2.firepic.org/2/thumbs/2013-1...5s03wtcjei.jpghttp://2.firepic.org/2/thumbs/2013-1...dnw9tfub2m.jpg |
Re: Get Player Shot angle
Because FM_TraceLine gives you Float vectors not integer vectors. write_coord() is for integer vectors. You need to use EngFunc_WriteCoord .
|
Re: Get Player Shot angle
Quote:
Back to topic. Who can help with getting weapon shot angle (2 Float values)? |
| All times are GMT -4. The time now is 16:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.