⌂Starsiege: Tribes Community Archive

KSMG v1.0

by Scriptio
⤓ Download · 1.6 KB
Ski, Grenade, Mine & Healthkit script all packed into one.
Filename
scipt_ksmg.cs
Size
1.6 KB (listed 1.6KB)
Type
CS
Version
1.0
Developer
Scriptio
Date
2009-01-14 (theexiled upload)
Format
ASCII text, with CRLF line terminators
Readme — scipt_ksmg.cs (from the archive itself)
///////////////////////////////////
// Kit, Ski, Mine, Grenade  v1.0 //
///////////////////////////////////
//          By Sciptio           //
///////////////////////////////////
// Just add the line exec("scipt_ksmg.cs"); to your autoexec.cs

// Dont touch the line below
editActionMap("playMap.sae");

///////////////////////////
// Binding & Config Area //
///////////////////////////

//Kit Area
//Repair Kit Key
bindCommand(keyboard0, make, "h", TO, "kit::go();");
bindCommand(keyboard0, break, "h", TO, "");
// Amount of kits to buy
$kit::times = 6;

//Ski Area
//Ski Key
bindCommand(keyboard0, make, "rcontrol", TO, "ski::ski(1);");
bindCommand(keyboard0, break, "rcontrol", TO, "ski::ski(0);");
// Ski jumping delay
$ski::skiDelay = 0.001;

//Mine Area
bindCommand(keyboard0, make, "numpad0", TO, "remoteEval(2048, throwItem, 40, 1000);");
bindCommand(keyboard0, break, "numpad0", TO, "");

//Grenade Area
bindCommand(keyboard0, make, "end", TO, "remoteEval(2048, throwItem, 41, 1000);");
bindCommand(keyboard0, break, "end", TO, "");

//////////////////
// Function Area//
//////////////////

//Kit Function

function kit::go()
{
	for(%kit = 1; %kit <= $kit::times; %kit++) {
	    remoteEval(2048, useItem, 39);
	    remoteEval(2048, buyItem, 39);
	}
}

//Ski Function

function ski::ski(%start)
{
	// Ski Key Pressed 
	if(%start) { 
		if(!$ski::jumping) {
			$ski::jumping = 1;
	        	ski::jumpingo();
		}
	}
	else
		$ski::jumping = 0;
}

function ski::Jumpingo()
{
	if($ski::jumping)
	{
		postAction(2048, IDACTION_MOVEUP, -0);
	    	schedule("ski::Jumpingo();", $ski::skiDelay);
	}
}
kitskiminegrenade
Source: The Exiled — Tribes Repository
Original page: https://library.theexiled.pwnageservers.com/file.php?id=502
Archived source HTML: theexiled/mirror-html/file/502.html