Raised This Month: $ Target: $400
 0% 

(CS) Drawing Spray


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 12-31-2013 , 05:10   Re: (CS) Drawing Spray
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Because you take in account distance to wall ?
Distance from player to wall — 320 units (resolution 640x480, 640/2 = 320).

Thanks for stock. I use it (hope correct):
PHP Code:
public fw_TraceAttack(victimattackerFloat:damageFloat:direction[3], trdamage_type)
{
    new 
Float:rvec[3];
    
pev(attackerpev_v_anglervec);
    
get_aim_origin(attackerrvec);
    
client_print(0print_console"%f %f"rvec[1], rvec[2]);

And first shot got:
PHP Code:
5.581364 0.999273 
Strange why not 0 0, but with this code I got:

Think is not bad result.
Phant is offline
Send a message via ICQ to Phant
 



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