home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 58 / pcpp58b_TRIBES.iso / Tribes / base / scripts.vol / sae.cs < prev    next >
Encoding:
Text File  |  1998-12-16  |  4.7 KB  |  99 lines

  1. //
  2. // Actions common to play & PDA modes
  3. //
  4. newActionMap("actionMap.sae");
  5. bindAction(keyboard,    make,    tab,         to,    IDACTION_MENU_PAGE, 1);
  6. bindAction(keyboard,    make,    escape,    TO,    IDACTION_ESCAPE_PRESSED, 0);
  7. bindAction(keyboard,    make,    k,            TO,    IDACTION_MENU_PAGE, 2);
  8.  
  9. bindAction(keyboard,    make,    t,            TO,    IDACTION_CHAT, 0);
  10. bindAction(keyboard,    make,    y,            TO,    IDACTION_CHAT, 1);
  11. bindAction(keyboard,    make,    u,            TO,    IDACTION_CHAT_DISP_SIZE, -1);
  12. bindAction(keyboard,    make,    prior,    TO,    IDACTION_CHAT_DISP_PAGE, -1);
  13. bindAction(keyboard,    make,    next,       TO,    IDACTION_CHAT_DISP_PAGE, 1);
  14.  
  15. bindCommand(keyboard, make, f1, to, "remoteEval(2048, PlayMode);");
  16. bindCommand(keyboard, make, o, to, "remoteEval(2048, ToggleObjectivesMode);");
  17. bindCommand(keyboard, make, i, to, "remoteEval(2048, ToggleInventoryMode);");
  18. bindCommand(keyboard, make, c, to,  "remoteEval(2048, ToggleCommandMode);");
  19.  
  20. bindCommand(keyboard, make, control, x, to, "commandAck();");
  21. bindCommand(keyboard, make, control, d, to, "commandDeclined();");
  22. bindCommand(keyboard, make, control, c, to, "commandCompleted();");
  23.  
  24. //
  25. // Actions bound only in play mode
  26. //
  27. newActionMap("playMap.sae");
  28. bindAction(mouse, xaxis, TO, IDACTION_YAW, scale, 0.001, flip);
  29. bindAction(mouse, yaxis, TO, IDACTION_PITCH, scale, 0.001, flip);
  30. bindAction(keyboard, make, a, to, IDACTION_MOVELEFT, 1.0);
  31. bindAction(keyboard, break, a, to, IDACTION_MOVELEFT, 0.0);
  32. bindAction(keyboard, make, d, to, IDACTION_MOVERIGHT, 1.0);
  33. bindAction(keyboard, break, d, to, IDACTION_MOVERIGHT, 0.0);
  34. bindAction(keyboard, make, s, to, IDACTION_MOVEBACK, 1.0);
  35. bindAction(keyboard, break, s, to, IDACTION_MOVEBACK, 0.0);
  36. bindAction(keyboard, make, w, to, IDACTION_MOVEFORWARD, 1.0);
  37. bindAction(keyboard, break, w, to, IDACTION_MOVEFORWARD, 0.0);
  38.  
  39. bindAction(mouse, make, button1, to, IDACTION_JET, 1.0);
  40. bindAction(mouse, break, button1, to, IDACTION_JET, 0.0);
  41.  
  42. bindAction(mouse, make, button, TO, IDACTION_FIRE1);
  43. bindAction(mouse, break, button, TO, IDACTION_BREAK1);
  44. bindAction(keyboard, make, x, TO, IDACTION_CROUCH);
  45. bindAction(keyboard, break,x, TO, IDACTION_STAND);
  46. bindAction(keyboard, make, r, TO, IDACTION_VIEW);
  47. bindAction(keyboard, make, space, TO, IDACTION_MOVEUP);
  48. bindAction(keyboard, make, e, TO, IDACTION_SNIPER_FOV, 1);
  49. bindAction(keyboard, break,e, TO, IDACTION_SNIPER_FOV, 0);
  50. bindAction(keyboard, make, z, TO, IDACTION_INC_SNIPER_FOV, 1.0);
  51.  
  52. bindCommand(keyboard, make, v, TO, "setCMMode(PlayChatMenu, 2);");
  53. bindCommand(keyboard, make, b, TO, "use(\"Beacon\");");
  54. bindCommand(keyboard, make, m, TO, "throwStart();");
  55. bindCommand(keyboard, break, m, TO, "throwRelease(\"Mine\");");
  56. bindCommand(keyboard, make, g, TO, "throwStart();");
  57. bindCommand(keyboard, break, g, TO, "throwRelease(\"Grenade\");");
  58.  
  59. bindCommand(keyboard, make, 1, to, "use(\"Blaster\");");
  60. bindCommand(keyboard, make, 2, to, "use(\"Plasma Gun\");");
  61. bindCommand(keyboard, make, 3, to, "use(\"Chaingun\");");
  62. bindCommand(keyboard, make, 4, to, "use(\"Disc Launcher\");");
  63. bindCommand(keyboard, make, 5, to, "use(\"Grenade Launcher\");");
  64. bindCommand(keyboard, make, 6, to, "use(\"Laser Rifle\");");
  65. bindCommand(keyboard, make, 7, to, "use(\"ELF gun\");");
  66. bindCommand(keyboard, make, 8, to, "use(\"Mortar\");");
  67. bindCommand(keyboard, make, 9, to, "use(\"Targeting Laser\");");
  68.  
  69. bindAction (keyboard, make,    numpad8,    TO,    IDACTION_LOOKUP,        0.1);
  70. bindAction (keyboard, break,    numpad8,    TO,    IDACTION_LOOKUP,        0.0);
  71. bindAction (keyboard, make,    numpad2,    TO,    IDACTION_LOOKDOWN,     0.1);
  72. bindAction (keyboard, break,    numpad2,    TO,    IDACTION_LOOKDOWN,     0.0);
  73. bindAction (keyboard, make,    numpad6,    TO,    IDACTION_TURNRIGHT,     0.1);
  74. bindAction (keyboard, break,    numpad6,    TO,    IDACTION_TURNRIGHT,     0.0);
  75. bindAction (keyboard, make,    numpad4,    TO,    IDACTION_TURNLEFT,    0.1);
  76. bindAction (keyboard, break,    numpad4,    TO,    IDACTION_TURNLEFT,    0.0);
  77. bindAction (keyboard, make,    numpad5,    TO,    IDACTION_CENTERVIEW);
  78.  
  79. bindCommand(keyboard, make, h, to, "use(\"Repair Kit\");");
  80. bindCommand(keyboard, make, p, to, "use(\"BackPack\");");
  81. bindCommand(keyboard, make, control, p, to, "drop(BackPack);");
  82. bindCommand(keyboard, make, control, w, to, "drop(Weapon);");
  83. bindCommand(keyboard, make, control, a, to, "drop(Ammo);");
  84. bindCommand(keyboard, make, control, f, to, "drop(Flag);");
  85. bindCommand(keyboard, make, control, k, to, "kill();");
  86.  
  87. bindCommand(keyboard, make, q, to, "nextWeapon();");
  88. bindCommand(keyboard, make, shift, q, to, "prevWeapon();");
  89.  
  90. bindCommand(keyboard, make, f, to, "setFreeLook(TRUE);");
  91. bindCommand(keyboard, break, f, to, "setFreeLook(FALSE);");
  92.  
  93. //
  94. // Actions bound only in PDA mode
  95. //
  96. newActionMap("pdaMap.sae");
  97. bindAction(keyboard,    make,    z, TO,    IDACTION_ZOOM_MODE_ON);
  98. bindAction(keyboard,    break,z, TO,    IDACTION_ZOOM_MODE_OFF);
  99.