//=======================================================================================
// Jump and jet combined - by Mental Trousers as part of the Tribes scripting documents
// at http://planetstarsiege.com/mt/
//=======================================================================================
//
// Heres one for those that are lazy, like me :) Very simple. Simple binds 2 actions to
// a single key ie jump and jet. The end
//
//=======================================================================================

//bind the space bar to be the combined key
EditActionMap("playMap.sae");
bindCommand(keyboard0, make, "space", TO, "JumpJet::jumpAndJet ();");
bindAction(keyboard0, break, "space", TO, IDACTION_JET, 0.000000);


//=======================================================================================
// A single key to jump and fly.
//=======================================================================================

function JumpJet::jumpAndJet ()
{
//	echo ("function JumpJet::jumpAndJet ()");

	//post the 2 actions. Theres no delay between the 2 because this way you gain maximum
	//height and isn't jet response.
	postAction(2048, IDACTION_MOVEUP, 1.000);
	postAction(2048, IDACTION_JET, 1.000);
	return;
}
