Raised This Month: $ Target: $400
 0% 

Target player closes to crosshair


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-29-2005 , 23:00  
Reply With Quote #8

Code:
    new vec[3]     new aimvec[3]     new raineffvec[3]     new length     new speed = random_num(50,300)     // Get their origin.     get_user_origin(id,vec)     // Get the origin in front of them (I think)     get_user_origin(id,aimvec,get_cvar_num("sv_weather_aim") )     raineffvec[0]=aimvec[0]-vec[0] + random_num(-500,500)     raineffvec[1]=aimvec[1]-vec[1] + random_num(-500,500)     raineffvec[2]=aimvec[2]-vec[2] + random_num(-100,100)     length=sqrt(raineffvec[0]*raineffvec[0]+raineffvec[1]*raineffvec[1]+raineffvec[2]*raineffvec[2])     raineffvec[0]=raineffvec[0]*speed/length     raineffvec[1]=raineffvec[1]*speed/length     raineffvec[2]=raineffvec[2]*speed/length

gets the origins in front of you. But I dont know how to use this to get people.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
 



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 09:58.


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