Back to Tribes 2

throw weapon script

Historical capture recovered from the Wayback Machine · captured 2011-11-20 · 8 posts
looking for a script that throws your weapon straight down when you toss your weapon



anyone? :3
take a weapon toss script, define a variable for PI, then make pressing the button execute this line

$mvPitch = -$PI;

then make a schedule to the throw command. don't expect your viewpoint to re-center unless you add a schedule to run this line:

$mvPitch = $PI/2;

in conclusion do it your damn self
Originally posted by: Red Shifter

in conclusion do it your damn self


why so hostile
it's 6 in the morning and i can't fucking sleep
Originally posted by: Vaxemous
Originally posted by: Red Shifter

in conclusion do it your damn self


why so hostile


He doesn't want everyone to catch on that he's really a cuddly T2 teddy bear.
Try this...

// #autoload
// #name = DWAF
// #include = support/bind_manager.cs

package DWAF
{

function dropWeaponAtFeet(%val)
{
if(%val)
{
$mvPitch = 2;
schedule(100, 0, throwWeapon, 1);
schedule(350, 0, comeBack, 1);
}
}

function comeBack()
{
$mvPitch = -1.5;
}

};
activatePackage(DWAF);
bindmanager.addBind("\c2WeaponDrop", dropWeaponAtFeet);

This should work. If you're standing in place you'll just pick up the weapon again though. Could add a line to use next weapon also. Support required for the bind.

edit... LOL - I can't read. I thought it said blaster
Fixed.
Post edited by 30sum at 9/2/2011 6:21:11 PM
wow I wish I knew you could do this

But my throw weapon switching after mortar doesn't work any more for some reason
Post edited by selfownage at 9/2/2011 5:09:08 PM
Originally posted by: selfownage
wow I wish I knew you could do this

But my throw weapon switching after mortar doesn't work any more for some reason


Yea, it could clash with other scripts I suppose. I'm not sure why though. The joy of not testing stuff
Do you have a link to the script you're referring to?

8 posts recovered