Help - Search - Members - Calendar
Full Version: welding/firing script?
Unknown Worlds Forums > Natural Selection > Natural Selection Creation > Scripting Discussion
Maverickk
If you're like me and your primary role is to weld or build things, you really get tired of holding down a button for constant periods of time.

I know welding using whatever button you have bound to firing, but is there a way to make a script that once the welder is selected you can just tap that button and have it continue to weld until you tap that button again?
noize
CODE
//noize weld toggle script
//Place this script in your autoexec.cfg or userconfig.cfg please.
alias weldOn "slot5; +attack; alias weldTog weldOff"
alias weldOff "-attack; invprev; alias weldTog weldOn"
alias weldTog "weldOn"

bind "key" "weldTog"  //replace "key" with your prefered Button for welding/toggling welder on/off.

Don't know what slot5 is, but I'm assuming its the welder ^^. Please replace this command to whatever the welder slot is set to.

Please post any bugs thanks.

Maverickk
That, does not work for mp_bs enabled servers.

I was thinking it is possible since, couldn't you just take an old reverse pistol script (the ones that fire when you released the button) and make it do that with a welder instead of a weapon? like the person switches to welder, taps their reverse fire button, let's go of their +attack button, and it welds for them until they say stop?
Joe2
Bind +attack to a keyboard button, and put something heavy on the button (or use something to block the button).
noize
what is mp_bs exactly? The script i made just uses commands you would have to use to play normally.. there aint anything special or forbideen that should be blocked :S
Maverickk
QUOTE(noize @ Jan 21 2007, 03:09 PM) [snapback]1600682[/snapback]

what is mp_bs exactly? The script i made just uses commands you would have to use to play normally.. there aint anything special or forbideen that should be blocked :S



It's a server pluggin / setting that basically blocks most potent scripts. Back in the day you had scripts that would auto fly lerks, auto attack, blink, meta, attack fade scripts etc

You can use some simple scripts with mp_bs but not a ton. I figured since I had seen a few release-toggle pistol scripts there had to be a way to rework that for welding since it also uses firing (+attack) to achieve that function.
GreyFlcn
Well, the real issue is that mp_blockscripts blocks anything with +attack in it.

So I believe you are out of luck.

Maverickk
QUOTE(GreyFlcn @ Jan 21 2007, 05:27 PM) [snapback]1600713[/snapback]

Well, the real issue is that mp_blockscripts blocks anything with +attack in it.

So I believe you are out of luck.



Two questions;

1) if it blocks +attack, it obviously let's your typical bound key for fire through, couldn't you just bypass using an alias and use a standard bind to do a bunch of +attack;wait;+attack's in one bind?

2) is there a link or place where I can find the people that made mp_bs?
GreyFlcn
QUOTE(Maverickk @ Jan 21 2007, 11:28 PM) [snapback]1600723[/snapback]

Two questions;

1) if it blocks +attack, it obviously let's your typical bound key for fire through, couldn't you just bypass using an alias and use a standard bind to do a bunch of +attack;wait;+attack's in one bind?

2) is there a link or place where I can find the people that made mp_bs?

1) Nah, thats what I meant.
You can't make any alias that contains +attack in it.
The only way to use +attack is by the default way.

2) Dunno, but there were threads on it:
http://www.unknownworlds.com/forums/index....mp_blockscripts
http://www.unknownworlds.com/forums/index....hl=blockscripts
http://www.unknownworlds.com/forums/index....hl=blockscripts
http://www.unknownworlds.com/forums/index....hl=blockscripts

3) It would be possible to use a macro program to do it.
For instance http://www.autohotkey.com/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.