Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Autoload( "Core/*.cs" );
- Autoload( "Modules/*.acs.cs" );
- $net::InterpolateTime = 0;
- $net::PredictForwardTimeMethod = 0;
- $Fullscreen::Doit = true;
- function setFullScreen(%gui)
- {
- if($Fullscreen::Doit)
- {
- $pref::VideoFullScreen = "True";
- OptionsVideo::apply();
- $Fullscreen::Doit = false;
- }
- }
- Event::Attach(eventGuiOpen, setFullScreen);
- function TossLoop( %item ) {
- throwrelease( %item );
- schedule::add( "tossloop( " @ %item @ ");", 0.2, %item );
- }
- function TossUnloop( %item ) {
- schedule::cancel( %item );
- }
- function Tosser::InitBinds()
- after GameBinds::Init {
- $GameBinds::CurrentMapHandle = GameBinds::GetActionMap2( "playMap.sae" );
- $GameBinds::CurrentMap = "playMap.sae";
- GameBinds::addBindCommand( "Toss Grenades", "TossLoop('Grenade');", "TossUnLoop('Grenade');" );
- GameBinds::addBindCommand( "Toss Mines", "TossLoop('Mine');", "TossUnLoop('Mine');" );
- }
- // File: ChainSpin.cs
- // Delay Adjustment:
- $CG::Delay = 0.35; // Adjust this number to your liking!
- // Fire key: Default is left mouse
- $Fire::Key = "button0";
- // Next Weapon:
- $NextWep::Key = "q";
- // Previous Weapon: The 'shift' key plus keybind below.
- $PrevWep::Key = "q";
- function cg::loop(){
- postAction(2048, IDACTION_BREAK1, -0);
- schedule("cg::start();", $CG::Delay);}
- function cg::start(){
- if($Firing::On == 0)
- if (getMountedItem(0) == 13){
- postAction(2048, IDACTION_FIRE1, 1);
- schedule("cg::loop();", 0.02);}}
- function cg::redo()
- {schedule("cg::start();", 2);}
- editActionMap("playMap.sae");
- bindCommand(mouse0, make, $Fire::Key, TO, "FireOn();");
- bindCommand(mouse0, break, $Fire::Key, TO, "FireOff();");
- bindCommand(keyboard0,make,$NextWep::Key,TO,"nextWep();");
- bindCommand(keyboard0,make,shift,$PrevWep::Key,TO,"prevWep();");
- function nextWep()
- {remoteEval(2048,nextWeap on);
- $Firing::On = 0;
- cg::redo();}
- function prevWep()
- {remoteEval(2048,prevWeap on);
- $Firing::On = 0;
- cg::redo();}
- function FireOn()
- {postAction(2048, IDACTION_FIRE1, 1);
- $Firing::On = 1;}
- function FireOff()
- {postAction(2048, IDACTION_BREAK1, 1);
- $Firing::On = 0;
- cg::redo();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement