Raised This Month: $ Target: $400
 0% 

Why is pev_v_angle so choppy?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Drak
Veteran Member
Join Date: Jul 2005
Old 01-05-2008 , 23:27   Re: Why is pev_v_angle so choppy?
Reply With Quote #2

It's most likely caused when using "server_frame()". Also, the way you're using "get_players()" it would only return the first player it finds.
Code:
//anges stuff new Float:angles[100][3]; new angleCurrent = 0; //player stuff new Players[32] new playerCount new inAttack=0; public server_frame() {     get_players(Players,playerCount,"c");     for(new i;i<playerCount;i++)     {         new playerID = Players[i]         pev(playerID, pev_v_angle, angles[angleCurrent])         if(get_user_button(playerID) & IN_ATTACK)         {             inAttack=1;                         }         else if(inAttack ==1)         {             //here the attack button has been clicked and released             //record the data             recordAngles();             inAttack=0;             client_print(playerID, print_chat, "Recorded Aim Vectors");         }                 angleCurrent++;         if(angleCurrent > 99)             angleCurrent=0;                         } }
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
 



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 11:08.


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