Advertisement
keybode

css auto strafe part

Jan 8th, 2016
629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. Vector3 viewangles = cmd->viewangles;
  2.  
  3. if( abs( yaw ) < value )
  4. {
  5.     static bool direction = false;
  6.  
  7.     if( direction )
  8.     {
  9.         viewangles.y -= value;
  10.         cmd->sidemove = -400.0f;
  11.     }
  12.     else
  13.     {
  14.         viewangles.y += value;
  15.         cmd->sidemove = 400.0f;
  16.     }
  17.  
  18.     direction = !direction;
  19. }
  20.  
  21. MovementFix( cmd, viewangles );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement