Raised This Month: $ Target: $400
 0% 

(CS) Drawing Spray


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 12-30-2013 , 17:21   (CS) Drawing Spray
Reply With Quote #1

I have this screenshot:


And use this code for collect bullet hits coordinates (X/Y):
PHP Code:
public fw_TraceAttack(victimattackerFloat:damageFloat:direction[3], trdamage_type)
{
    new 
Float:endPos[3];
    
get_tr2(trTR_vecEndPosendPos);
    
client_print(0print_console"%f %f"endPos[1], endPos[2]);

After I add dots on screenshot by this coordinates:


It's okay, but I want add dot of crosshair (actually pev_v_angles look at 0 0 coordinates, but I want draw pev_punchangle). I change code on this:
PHP Code:
public fw_TraceAttack(victimattackerFloat:damageFloat:direction[3], trdamage_type)
{
    new 
Float:rvec[3];
    
pev(attackerpev_punchanglervec);
    
client_print(0print_console"%f %f"rvec[0], rvec[1]);

Collect coordinates, and got:

Why punch coordinates so small?

If I multiply coordinates on 12, this seems better:

But why 12? How I can calculate correct multiply value for punch?

Last edited by Phant; 12-30-2013 at 17:22.
Phant is offline
Send a message via ICQ to Phant
 


Thread Tools
Display Modes

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 10:07.


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