Raised This Month: $ Target: $400
 0% 

Get Player Shot angle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 10-14-2013 , 06:08   Re: Get Player Shot angle
Reply With Quote #1

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:
Phant is offline
Send a message via ICQ to Phant
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:18.


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