// (/\) (/\) // //\\ //\\ // ############################################################################ // # \\// \\// # // # (\\) Rapid Fire Script by KingTomato (//) # // # //\\ //\\ # // ############################################################################ // \\// \\// // (//) (\\) // //\\ //\\ // ############################################################################ // # \\// \\// # // # (\\) #### (//) # // # //\\ #### //\\ # // # \\// #### ## \\// # // # (//) #### ## (\\) # // # //\\ ###### #### ## //\\ # // # \\// ## ## #### ## \\// # // # (\\) ## #### ## #### ## (//) # // # //\\ ###### ###### ## #### ## //\\ # // # \\// ## ######## ## #### ## \\// # // # (//) ## ############ ## #### #### (\\) # // # //\\ ## ########## ## #### #### //\\ # // # \\// ## #### ###### #### #### \\// # // # (\\) #### ## ########## #### (//) # // # //\\ #### ###### #### //\\ # // # \\// ###### #### \\// # // # (//) #### #### (\\) # // # //\\ #### ###### //\\ # // # \\// #### ###### ## \\// # // # (\\) #### #### ## (//) # // # //\\ ## #### ## ## //\\ # // # \\// #### ## ## \\// # // # (//) ## ## ## (\\) # // # //\\ ###### #### //\\ # // # \\// ## ## \\// # // # (\\) ## ## (//) # // # //\\ ## ## //\\ # // # \\// ## ## \\// # // # (//) ## ## (\\) # // # //\\ ## #### //\\ # // # \\// #### \\// # // # (\\) (//) # // # //\\ //\\ # // ############################################################################ // \\// \\// // (//) (\\) // //\\ //\\ // ############################################################################ // # \\// \\// # // # (\\) www.kingtomato.org (//) # // # //\\ //\\ # // ############################################################################ // \\// \\// // (\/) (\/) // ############################################################################ // Installation // -- // If You Have The KingTomato Pack: // 1. Put this file (KT_RapidFire.cs) into your KingTomato directory. It can // either be directly in the folder, or you can do as I have done and create // a new folder for it. I have mine in config\kingtomato\paintball, but again // anywhere is fine. // 2. Load tribes! That's it. // // If you DO NOT have my pack, but DO HAVE presto: // 1. Put this file (KT_RapidFire.cs) ito your config directory. // 2. Open autoexec.cs and add the following line to the bottom of the file: // exec("KT_RapidFire.cs"); // 3. Run tribes, and voila! // // If you DO NOT have my back OR presto: // 1. Depending if you have another script or not, in your config directory // there could or could not be a file named autoexec.cs If there is, look at // the "If Autoexec.cs exists" portion of these directions, otherwise continue // reading. // 2. Rename this file to autoexec.cs, and put it into your config directory. // 3. Run tribes, and voila! // // If Autoexec.cs exists: // 1. Put this file (KT_RapidFire.cs) into your config directory. // 2. Add the following line to the bottom of autoexec.cs: // exec("KT_RapidFire.cs"); // // Features: // -- // What's ncie about this is when you are on a player team, the rapid fire will // shoot normally. When you goto observer, it goes back to single click. This // way you don't cycle through all players so fast that you can't observe the // person you want. // // Final Notes: // -- // Incase anyone was wondering, this will work with my ski script, or any other // ski scripts for that matter. I only say this because my ski has the same two // functions, King::PB::Start() and King::PB::Stop(). // // Configuration: // -- // By default the fire button has been bound to left mouse click. If you need to // change this for any reason, do so in the lines listed below. The way it // basically works is look in config.cs (located in tribes\config folder) for // IDACTION_FIRE1. When you find it, it'll be in a line with something like this: // bindAction(, MAKE, ___BUTTON___, TO, IDACTION_FIRE1, 1.0); // Notice the part and what is in place of ___BUTTON__. Take // those two values, and plug them in the same spot (relative) to the commands // in the bind section of this script. // ############################################################################ // ############################################################################ // Bind // Don't touch this vvv EditActionMap("playMap.sae"); // Don't touch this ^^^ bindCommand(mouse0, MAKE, button0, TO, "King::PB::Start(Fire);"); // Replace ^^^^^^ and ^^^^^^^ if necissary bindCommand(mouse0, BREAK, button0, TO, "King::PB::Stop(Fire);"); // Replace ^^^^^^ and ^^^^^^^ if necissary // The keyboard version of the above binds are below, but commented. If you use // a button on the keyboard, prefix both the bind's above with "//" (commenting // them out) then uncomment the below lines, and check the buttons. //bindCommand(keyboard0, MAKE, fire_button, TO, "King::PB::Start(Fire);"); // Replace the following..... ^^^^^^^^^^^ //bindCommand(keyboard0, BREAK, fire_button, TO, "King::PB::Stop(Fire);"); // Replace the following..... ^^^^^^^^^^^ // ############################################################################ // Settings $King::PB::DelayFire = "0.1"; // Delay between shots // Dont touch these $King::PB::["Fire"] = false; // ############################################################################ // Rapid Fire >:P function King::PB::Fire() { if ($King::PB::["Fire"]) { postAction(2048, IDACTION_FIRE1, 1.0); postAction(2048, IDACTION_BREAK1, 1.0); if (Client::GetTeam(getManagerId()) == -1) $King::PB::["Fire"] = false; schedule("King::PB::Fire();", $King::PB::DelayFire); } } // ############################################################################ // Toggles function King::PB::Start(%what) { if (!$King::PB::[%what]) { $King::PB::[%what] = true; eval("King::PB::" @ %what @ "();"); } } function King::PB::Stop(%what) { $King::PB::[%what] = false; }