home *** CD-ROM | disk | FTP | other *** search
/ Classic Fond 54 / ClassicFond54.iso / games / stars.rar / keyMaps / MW.cs < prev    next >
Text File  |  1999-02-19  |  8KB  |  144 lines

  1. #------------------------------------------------------------------------------
  2. #    Mech Warrior Controls (aprox)
  3. #------------------------------------------------------------------------------
  4.  
  5. # include generic game actions
  6. exec( "_gameActions.cs" );
  7. #------------------------------------------------------------------------------
  8. #    include generic keyboard controls
  9. #------------------------------------------------------------------------------
  10. exec( "_defKeyboard.cs" );
  11.  
  12. #------------------------------------------------------------------------------
  13. # include generic camera controls
  14. #------------------------------------------------------------------------------
  15. exec( "_defCamera.cs" );
  16.  
  17. #==============================================================================
  18. #    OrbitCam controls
  19. #==============================================================================
  20. editActionMap( CameraOrbit );
  21. #------- Joystick Controls
  22. bindAction( joystick0, zaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square, flip );
  23. bindAction( joystick0, ypov, TO, IDACTION_PITCH, center );
  24. bindAction( joystick0, xpov, TO, IDACTION_YAW, center );
  25.  
  26. bindAction( keyboard, make, z, TO, IDACTION_SPEED, -1.0 );
  27. bindAction( keyboard, break, z, TO, IDACTION_SPEED, 0.0 );
  28. bindAction( keyboard, make, shift, z, TO, IDACTION_SPEED, "+1.0" );
  29. bindAction( keyboard, break, shift, z, TO, IDACTION_SPEED, 0.0 );
  30. bindAction( keyboard, make, control, left, TO, IDACTION_YAW, "+1.0" );
  31. bindAction( keyboard, make, control, right, TO, IDACTION_YAW, -1.0 );
  32. bindAction( keyboard, break, control, left, TO, IDACTION_YAW, 0.0 );
  33. bindAction( keyboard, break, control, right, TO, IDACTION_YAW, 0.0 );
  34. bindAction( joystick0, make,  button0, TO, IDACTION_ZOOM_MODE, 1.0 );
  35. bindAction( joystick0, break, button0, TO, IDACTION_ZOOM_MODE, 0.0 );
  36.  
  37. #==============================================================================
  38. #    Herc controls
  39. #==============================================================================
  40.  
  41. editActionMap( Herc );
  42.  
  43. #------------------------------------------------------------------------------
  44. #    Joystick controls
  45. #------------------------------------------------------------------------------
  46. bindAction( joystick, xaxis, TO, IDACTION_YAW, deadzone, 0.1, center, square, flip );
  47. bindAction( joystick, xpov, TO, IDACTION_LOOK_X, flip, center );
  48. bindAction( joystick, ypov, TO, IDACTION_LOOK_Y, center );
  49. bindAction( joystick, yaxis, TO, IDACTION_SPEED, deadzone, 0.1, center, square, flip );
  50. bindAction( joystick, make, button0, TO, IDACTION_FIRE, 1.0 );
  51. bindAction( joystick, break, button0, TO, IDACTION_FIRE, 0.0 );
  52. bindAction( joystick, make, button1, TO, IDACTION_TARGET_SELECTED );
  53. bindAction( joystick, make, button2, TO, IDACTION_CAMOUFLAGE );
  54. bindAction( joystick, make, button3, TO, IDACTION_WEAPON_MODE_SELECT );
  55. bindAction( joystick, make, button4, TO, IDACTION_WEAPON_ADJ, -1.0 );
  56. bindAction( joystick, make, button5, TO, IDACTION_WEAPON_ADJ, "+1.0" );
  57. bindAction( joystick, make, button6, TO, IDACTION_SHIELD_TRACK );
  58. bindAction( joystick, make, button7, TO, IDACTION_CROUCH, 1.0 );
  59. bindAction( joystick, break, button7, TO, IDACTION_CROUCH, 0.0 );
  60.  
  61. #------------------------------------------------------------------------------
  62. #    Mouse controls
  63. #------------------------------------------------------------------------------
  64. bindAction( mouse0, xaxis, TO, IDACTION_LOOK_X, scale, 0.5 );
  65. bindAction( mouse0, yaxis, TO, IDACTION_LOOK_Y, scale, 0.5, flip );
  66. bindAction( mouse0, make, button0, TO, IDACTION_FIRE, 1.0 );
  67. bindAction( mouse0, break, button0, TO, IDACTION_FIRE, 0.0 );
  68. bindAction( mouse0, make, button1, TO, IDACTION_TARGET_SELECTED );
  69.  
  70. #--------------------------------------------------------------------
  71. #    Keyboard movement controls
  72. #--------------------------------------------------------------------  
  73. bindAction( keyboard, make, up, TO, IDACTION_LOOK_Y, -1.0 );
  74. bindAction( keyboard, break, up, TO, IDACTION_LOOK_Y, 0.0 );
  75. bindAction( keyboard, make, down, TO, IDACTION_LOOK_Y, "+1.0" );
  76. bindAction( keyboard, break, down, TO, IDACTION_LOOK_Y, 0.0 );
  77. bindAction( keyboard, make, left, TO, IDACTION_YAW, "+1.0" );
  78. bindAction( keyboard, break, left, TO, IDACTION_YAW, 0.0 );
  79. bindAction( keyboard, make, right, TO, IDACTION_YAW, -1.0 );
  80. bindAction( keyboard, break, right, TO, IDACTION_YAW, 0.0 );
  81.  
  82. bindAction( keyboard, make, tab, TO, IDACTION_CROUCH, 1.0 );
  83. bindAction( keyboard, break, tab, TO, IDACTION_CROUCH, 0.0 );
  84.  
  85. bindAction( keyboard, make, enter, TO, IDACTION_WEAPON_ADJ, 1.0 );
  86. bindAction( keyboard, make, space, TO, IDACTION_FIRE, 1.0 );
  87. bindAction( keyboard, break, space, TO, IDACTION_FIRE, 0.0 );
  88. bindAction( keyboard, make, "\\", TO, IDACTION_WEAPON_MODE_SELECT);
  89.  
  90. bindAction( keyboard, make, 1, TO, IDACTION_STOP );
  91. bindAction( keyboard, make, 2, TO, IDACTION_SPEED, 0.2 );
  92. bindAction( keyboard, make, 3, TO, IDACTION_SPEED, 0.3 );
  93. bindAction( keyboard, make, 4, TO, IDACTION_SPEED, 0.4 );
  94. bindAction( keyboard, make, 5, TO, IDACTION_SPEED, 0.5 );
  95. bindAction( keyboard, make, 6, TO, IDACTION_SPEED, 0.6 );
  96. bindAction( keyboard, make, 7, TO, IDACTION_SPEED, 0.7 );
  97. bindAction( keyboard, make, 8, TO, IDACTION_SPEED, 0.8 );
  98. bindAction( keyboard, make, 9, TO, IDACTION_SPEED, 0.9 );
  99. bindAction( keyboard, make, 0, TO, IDACTION_SPEED, 1.0 );
  100. bindAction( keyboard, make, "=", TO, IDACTION_SPEED, "+1.0" );
  101. bindAction( keyboard, break, "=", TO, IDACTION_SPEED, 0.0 );
  102. bindAction( keyboard, make, "-", TO, IDACTION_SPEED, -1.0 );
  103. bindAction( keyboard, break, "-", TO, IDACTION_SPEED, 0.0 );
  104. bindAction( keyboard, make, s, TO, IDACTION_REACTOR );
  105.  
  106.  
  107.  
  108. #--------------------------------------------------------------------
  109. #    Shield controls
  110. #--------------------------------------------------------------------          
  111. bindAction( keyboard, make, prior, TO, IDACTION_SHIELD_TRACK, 0.0 );
  112. bindAction( keyboard, make, numpad5, TO, IDACTION_SHIELD_FOCUS_SET );
  113. bindAction( keyboard, make, home, TO, IDACTION_SHIELD_FOCUS_ADJ, 0.125 );
  114. bindAction( keyboard, make, insert, TO, IDACTION_SHIELD_FOCUS_ADJ, -0.125 );
  115. bindAction( keyboard, make, end, TO, IDACTION_SHIELD_ROTATION_ADJ, 0.125 );
  116. bindAction( keyboard, make, delete, TO, IDACTION_SHIELD_ROTATION_ADJ, -0.125 );
  117. bindAction( keyboard, make, numpad0, TO, IDACTION_SHIELD );
  118.  
  119. #--------------------------------------------------------------------
  120. #    Weapon controls
  121. #--------------------------------------------------------------------
  122. bindaction( keyboard, make,  alt, 1, TO, IDACTION_WEAPON_GROUP_SELECT, 0 );   
  123. bindaction( keyboard, make,  alt, 2, TO, IDACTION_WEAPON_GROUP_SELECT, 1 );   
  124. bindaction( keyboard, make,  alt, 3, TO, IDACTION_WEAPON_GROUP_SELECT, 2 );   
  125.  
  126. bindAction( keyboard, make, t, TO, IDACTION_TARGET_ADJ_ENEMY, 1.0 );
  127. bindAction( keyboard, make, r, TO, IDACTION_TARGET_ADJ_ENEMY, -1.0 );
  128. bindAction( keyboard, make, e, TO, IDACTION_TARGET_CLOSEST_ENEMY );
  129. bindAction( keyboard, make, q, TO, IDACTION_TARGET_SELECTED );
  130. bindAction( keyboard, make, shift, r, TO, IDACTION_SENSOR_RANGE_TOGGLE );
  131.  
  132. #--------------------------------------------------------------------
  133. #    Misc.
  134. #--------------------------------------------------------------------
  135. bindAction( keyboard, make, n, TO, IDACTION_NAVPOINT_NEXT );
  136. bindAction( keyboard, make, v, TO, IDACTION_NAVPOINT_PREV );
  137. bindAction( keyboard, make, b, TO, IDACTION_NAVPOINT_SET, -1 );
  138. bindaction( keyboard, make, alt, 7, TO, IDACTION_USE_SPECIAL , 0 );
  139. bindaction( keyboard, make, alt, 8, TO, IDACTION_USE_SPECIAL , 1 );
  140. bindaction( keyboard, make, alt, 9, TO, IDACTION_USE_SPECIAL , 2 );
  141. bindaction( keyboard, make, alt, 0, TO, IDACTION_USE_SPECIAL , 3 );
  142.  
  143.  
  144.