[Request] Chain Spin by syndrome_x - Page 2 - TribalWar Forums
Click Here to find great hosting deals from Branzone.com


Go Back   TribalWar Forums > Current Gaming > Tribes Scripting and Modifying
Reload this Page [Request] Chain Spin
Page 2 of 2
Thread Tools
S_hift
VeteranX
Old
21 - 10-05-2016, 15:52
Reply With Quote
any chance of using "GetItemCount" instead of "GetMountedItem"

Code:
editActionMap("playMap.sae");

bindCommand(keyboard0, make, "space", TO, "z0ddzoomsnipe::doSnipe();");
bindCommand(keyboard0, break, "space", TO, "z0ddzoomsnipe::unDoSnipe();");

$z0ddzoomsnipe::switchBackToWpn = 0;
$z0ddzoomsnipe::autoCrouch = 0;
$z0ddzoomsnipe::crouchWithoutRifle = 1;
$z0ddzoomsnipe::alwaysZoom = 1;

function z0ddzoomsnipe::getCurrentWpn()
{
	%wpn = getMountedItem(0);

	if (%wpn == 21)
		return "Disc Launcher";
	else if (%wpn == 11)
		return "Blaster";
	else if (%wpn == 13)
		return "Chaingun";
	else if (%wpn == 15)
		return "Plasma Gun";
	else if (%wpn == 17)
		return "Grenade Launcher";
	else if (%wpn == 24)
		return "ELF Gun";
	else if (%wpn == 23)
		return "Targeting Laser";
	else
		return "";
}

   
function z0ddzoomsnipe::doSnipe()
{
	if(getItemCount("Grenade Launcher")) {
		$z0ddzoomsnipe::ownsLR = 1;		
		if($z0ddzoomsnipe::autoCrouch)
			postAction(2048, IDACTION_CROUCH, 1);
		if($z0ddzoomsnipe::switchBackToWpn)
			$z0ddzoomsnipe::prevWpn = z0ddzoomsnipe::getCurrentWpn();
		use("Grenade Launcher");
		postAction(2048, IDACTION_SNIPER_FOV, 1.000000);
	}
 
S_hift is offline
 
Sponsored Links
machine88aus
Veteran²
Old
22 - 10-05-2016, 16:23
Reply With Quote
**** script on 250 ping
 
machine88aus is offline
 
Exodus
VeteranXX
Old
23 - 03-09-2017, 02:29
Reply With Quote
Kudos.
 
Exodus is offline
 
Page 2 of 2
Reply


Go Back   TribalWar Forums > Current Gaming > Tribes Scripting and Modifying
Reload this Page [Request] Chain Spin

Social Website Bullshit


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


AGENT: claudebot / Y
All times are GMT -4. The time now is 01:27.