[T1]Script Request

Pages : [1] 2

UniX
02-15-2003, 10:08 PM
When you start to repair I want it to auto switch to the next weapon so when I stop repairing it changes to the weapon.

UniX
02-15-2003, 10:09 PM
For presto plz.

·liquid·
02-15-2003, 11:09 PM
I know this isn't exactly what you want, though it is what I use in my personal config. I ripped it from Stripped (only thing I liked in Stripped.. sorry, pewpz) and edited it a little.

editActionMap("playMap.sae");
bindCommand(keyboard0, make, "numpad4", TO, "PC::UsePack();");
bindCommand(keyboard0, break, "numpad4", TO, "PC::Release();");

function PC::UsePack() {
if(getMountedItem(1) == 30) {
%prevWep = getMountedItem(0);
useItem(26);
postAction(2048, IDACTION_FIRE1, 1);
schedule("useItem("@ %prevWep @");", 0.6);
$PC::Repairing = 1;
}
else
useItem(26);
}

function PC::Release() {
if($PC::Repairing) {
postAction(2048, IDACTION_BREAK1, 1);
$PC::Repairing = 0;
}
}
Bind to your "use pack" key and when you press it it'll mount the repairgun and start repairing and keep doing so as long as you have the key held. When you release it stops repairing and switches back to your previous weapon. Nice. :D

UniX
02-16-2003, 12:02 PM
Sorry thats not what im looking for... I play a mod with a repair gun as one of the weapons so that wont work for me.Thanx anyways though.

GiftOfTheGame
02-16-2003, 12:03 PM
:rofl:

-kllr2001-
02-16-2003, 12:43 PM
All you gotta do is find the Item number for the Repair Pack in the Mod and replace it in the code where "30" is

JimmyCarter
02-16-2003, 12:46 PM
Originally posted by UniX
Sorry thats not what im looking for... I play a mod with a repair gun as one of the weapons so that wont work for me.Thanx anyways though.


:huh: :jester:

ItzBen
02-16-2003, 03:48 PM
:rofl:

cyclonite
02-16-2003, 06:27 PM
I couldn't resist...
http://www.tribalwar.com/forums/images/smilies/rofl.gif

TooSmoothe
02-16-2003, 10:33 PM
ok...im not understanding what ure saying...but while using the repair gun just press the "next weapon" button u have. The second u stop repairing it switches to that weapon

UniX
02-16-2003, 10:42 PM
Right but I want a script that will do it for me :)

TooSmoothe
02-17-2003, 12:13 AM
u dont have the mental capacity to press one button while holding down your mouse key?

·liquid·
02-17-2003, 01:12 AM
Originally posted by TooSmoothe
u dont have the mental capacity to press one button while holding down your mouse key?

He already said he knows how to do that. It's just that he doesn't have the physical dexterity to do so. ;)

Anyway, you should be able to replace the item numbers in the script with the ones from the mod you're playing.

NOVA|lam
02-17-2003, 01:30 AM
bindCommand(keyboard0, make, "your repair pack key", TO, "use(\"Backpack\");");
bindCommand(keyboard0, break, "your repair pack key", TO, "nextWeapon();");


add to config.cs

UniX
02-17-2003, 05:50 PM
No that didnt help all I want is when I start to repair it switches to the next weapon so when I stop repairing it switches by its self and if you can I would also like when I run out of ammo on a weapon it changes to next weapon :) like in stripted.

Limited 404
04-15-2003, 06:28 PM
function Draw(%client, %msg) {

if(Match::String(%msg, "AutoRepair On") && getItemCount("Repair Pack")
|| Match::String(%msg, "Repairing *") && getItemCount("Repair Pack"))

{

nextWeapon();

}
}

Event::Attach(eventClient Message, Draw);

this what u wanted?

nhopliz
04-15-2003, 10:54 PM
*sigh*, if anyone would read my threads, i made that script and put it on this forum, the title of the tread is [T1]Auto Repair Switch..

Shinigami
04-15-2003, 11:06 PM
*sigh*, if anyone would read my threads, i made that script and put it on this forum, the title of the tread is [T1]Auto Repair Switch..

*sigh* If anyone would read dates on threads...

Limited 404
04-15-2003, 11:53 PM
you aware that your links are broken nhopliz

and yes i noticed the date but ive been without a pc for a few months

Shinigami
04-16-2003, 12:02 AM
I was referring to the person I was quoting.