Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. Autoload( "Core/*.cs" );
  2. Autoload( "Modules/*.acs.cs" );
  3.  
  4. $net::InterpolateTime = 0;
  5. $net::PredictForwardTimeMethod = 0;
  6.  
  7. $Fullscreen::Doit = true;
  8. function setFullScreen(%gui)
  9. {
  10. if($Fullscreen::Doit)
  11. {
  12. $pref::VideoFullScreen = "True";
  13. OptionsVideo::apply();
  14. $Fullscreen::Doit = false;
  15. }
  16. }
  17.  
  18. Event::Attach(eventGuiOpen, setFullScreen);
  19.  
  20.  
  21. function TossLoop( %item ) {
  22.  
  23. throwrelease( %item );
  24. schedule::add( "tossloop( " @ %item @ ");", 0.2, %item );
  25.  
  26. }
  27.  
  28. function TossUnloop( %item ) {
  29.  
  30. schedule::cancel( %item );
  31.  
  32. }
  33.  
  34. function Tosser::InitBinds()
  35. after GameBinds::Init {
  36.  
  37. $GameBinds::CurrentMapHandle = GameBinds::GetActionMap2( "playMap.sae" );
  38. $GameBinds::CurrentMap = "playMap.sae";
  39. GameBinds::addBindCommand( "Toss Grenades", "TossLoop('Grenade');", "TossUnLoop('Grenade');" );
  40. GameBinds::addBindCommand( "Toss Mines", "TossLoop('Mine');", "TossUnLoop('Mine');" );
  41.  
  42. }
  43.  
  44. // File: ChainSpin.cs
  45. // Delay Adjustment:
  46. $CG::Delay = 0.35; // Adjust this number to your liking!
  47. // Fire key: Default is left mouse
  48. $Fire::Key = "button0";
  49. // Next Weapon:
  50. $NextWep::Key = "q";
  51. // Previous Weapon: The 'shift' key plus keybind below.
  52. $PrevWep::Key = "q";
  53.  
  54. function cg::loop(){
  55. postAction(2048, IDACTION_BREAK1, -0);
  56. schedule("cg::start();", $CG::Delay);}
  57. function cg::start(){
  58. if($Firing::On == 0)
  59. if (getMountedItem(0) == 13){
  60. postAction(2048, IDACTION_FIRE1, 1);
  61. schedule("cg::loop();", 0.02);}}
  62. function cg::redo()
  63. {schedule("cg::start();", 2);}
  64.  
  65.  
  66. editActionMap("playMap.sae");
  67. bindCommand(mouse0, make, $Fire::Key, TO, "FireOn();");
  68. bindCommand(mouse0, break, $Fire::Key, TO, "FireOff();");
  69. bindCommand(keyboard0,make,$NextWep::Key,TO,"nextWep();");
  70. bindCommand(keyboard0,make,shift,$PrevWep::Key,TO,"prevWep();");
  71.  
  72. function nextWep()
  73. {remoteEval(2048,nextWeap on);
  74. $Firing::On = 0;
  75. cg::redo();}
  76.  
  77. function prevWep()
  78. {remoteEval(2048,prevWeap on);
  79. $Firing::On = 0;
  80. cg::redo();}
  81.  
  82. function FireOn()
  83. {postAction(2048, IDACTION_FIRE1, 1);
  84. $Firing::On = 1;}
  85.  
  86. function FireOff()
  87. {postAction(2048, IDACTION_BREAK1, 1);
  88. $Firing::On = 0;
  89. cg::redo();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement