I want get player shot angle (traceline?), not aim/pevs, etc.
I try use (for visualisation):
Code:
register_forward(FM_TraceLine, "traceline_forward")
With:
Code:
public traceline_forward(Float:start[3], Float:end[3], conditions, id, trace)
{
if(trace != 1241012)
{
client_print(0, print_chat, "%f %f %f / %f %f %f", start[0], start[1], start[2], end[0], end[1], end[2])
new Float:k_origin[3]
get_user_origin(id,k_origin)
message_begin(MSG_ONE, SVC_TEMPENTITY,{0,0,0}, id)
write_byte( TE_BEAMPOINTS )
write_coord(k_origin[0])
write_coord(k_origin[1])
write_coord(k_origin[2])
write_coord(end[0])
write_coord(end[1])
write_coord(end[2])
write_short( m_spriteTexture )
write_byte( 1 ) // framestart
write_byte( 1 ) // framerate
write_byte( 100 ) // life in 0.1's
write_byte( 5 ) // width
write_byte( 0 ) // noise
write_byte( 0 ) // r, g, b
write_byte( 0 ) // r, g, b
write_byte( 255 ) // r, g, b
write_byte( 255 ) // brightness
write_byte( 0 ) // speed
message_end()
}
}
But it's wrong:
