Raised This Month: $ Target: $400
 0% 

[2 Problems] func_wall and velocity_by_aim


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 03-03-2010 , 17:36   Re: [2 Problems] func_wall and velocity_by_aim
Reply With Quote #8

ty

This is my current code
PHP Code:
enum _:Angle_t Float:PitchFloat:YawFloat:Roll }
enum _:Coord_t Float:xFloat:yFloat:}

new 
Float:viewAnglesAngle_t ]
new 
Float:aim_velocity]
new 
Float:forwardDirCoord_t ]
        
pevplayerpev_v_angleviewAngles )

engfuncEngFunc_MakeVectorsviewAngles )
global_getglb_v_forwardforwardDir )
        
aim_velocity] = forwardDir] * 1200
aim_velocity
] = forwardDir] * 1200
aim_velocity
] = forwardDir] * 1200
        
set_pev
playerpev_velocityaim_velocity 
Velocity works but not going the same direction. Meaning I wanted it to stay on the moving position even the mouse is moved.
EDIT: pev_angles also does the same thing as pev_v_angle

Last edited by Excalibur.007; 03-03-2010 at 17:44.
Excalibur.007 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:36.


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