Advertisement
Guest User

Untitled

a guest
Dec 31st, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.58 KB | None | 0 0
  1. function Altimor::ApplyYaw( %yaw )
  2. {
  3.     postAction( 2048, IDACTION_YAW, %yaw );
  4. }
  5.  
  6. function Altimor::LookRight()
  7. {
  8.     Altimor::ApplyYaw( -0.21 );
  9.     schedule( "Altimor::ApplyYaw( -0.21 );", 0.05 );
  10. }
  11.  
  12. function Altimor::LookLeft()
  13. {
  14.     Altimor::ApplyYaw( 0.21 );
  15.     schedule( "Altimor::ApplyYaw( 0.21 );", 0.05 );
  16. }
  17.  
  18. bindCommand( keyboard0, make, "q", TO, "Altimor::LookLeft();" );
  19. bindCommand( keyboard0, break, "q", TO, "Altimor::LookRight();" );
  20.  
  21. bindCommand( keyboard0, make, "e", TO, "Altimor::LookRight();" );
  22. bindCommand( keyboard0, break, "e", TO, "Altimor::LookLeft();" );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement