Raised This Month: $ Target: $400
 0% 

How to give a player a velocity to left / right


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
cs1.7
Senior Member
Join Date: Oct 2008
Old 03-04-2010 , 23:56   Re: How to give a player a velocity to left / right
Reply With Quote #3

Thanks,

the link was really good.


I'm trying to get the forward movement to work before i try with the sides but it aint easy.




PHP Code:
public Forward_move_function(id)
{
    static 
Float:fVelocity[3];
    
pev(idpev_anglesfVelocity)

    static 
Float:client_origin[3];
    
pev(idpev_originclient_origin);
   
    new 
Float:velocity[3];

    
velocity[0] = fVelocity[0] + 600;
    
velocity[1] = fVelocity[1] + 600;
    
velocity[2] = fVelocity[2] + 600;

Is it maybe because i have to define the above function in Prethink?
cs1.7 is offline
 



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


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