
ty
This is my current code
PHP Code:
enum _:Angle_t { Float:Pitch, Float:Yaw, Float:Roll }
enum _:Coord_t { Float:x, Float:y, Float:z }
new Float:viewAngles[ Angle_t ]
new Float:aim_velocity[ 3 ]
new Float:forwardDir[ Coord_t ]
pev( player, pev_v_angle, viewAngles )
engfunc( EngFunc_MakeVectors, viewAngles )
global_get( glb_v_forward, forwardDir )
aim_velocity[ 0 ] = forwardDir[ 0 ] * 1200
aim_velocity[ 1 ] = forwardDir[ 1 ] * 1200
aim_velocity[ 2 ] = forwardDir[ 2 ] * 1200
set_pev( player, pev_velocity, aim_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