Script Help
Tenken
Join Date: 2005-02-22 Member: 42145Members
i was interested in the pistol script (i can shoot it at max speed, but normally i'm just too lazy <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->) so i followed all the directions on the scripting basics thing and i got the pistol script working. all excited i joined a game online but it had that mp_script thing off, so every time i used mouse1 it would say scriptings not allowed on this server. This happened for every gun regardless of what team i was on, is there anyway to make this only work for pistol, and not for other weapons? I'm using:
alias +pscript "+attack"
alias -pscript "-attack; wait; +attack; wait; -attack;"
bind "MOUSE1" "+pscript"
is there a way to make it so that this only works for the pistol, so i can still play on servers that don't allow scripts? and if so is there a way that i can still fire it normally on those servers without deleting the file? thanks
alias +pscript "+attack"
alias -pscript "-attack; wait; +attack; wait; -attack;"
bind "MOUSE1" "+pscript"
is there a way to make it so that this only works for the pistol, so i can still play on servers that don't allow scripts? and if so is there a way that i can still fire it normally on those servers without deleting the file? thanks
Comments
or if you really want to use it put it in a separate config file named pscript.cfg
then go into your userconfig.cfg (if you dont have one make a config file called that) and put
bind "keyhere" "exec pscript.cfg"
then if you join a server that has blockscripts on make a bind like this
bind "keyhere" "exec config.cfg" and your pistolscript will be tunred off.
basically what this does is you join the server w/o the script on, so if its a blocking server you dont have to worry about turning it off, if you know it doesnt block scripts you can just press your key thats bound to exec config.cfg
Bind +attack mwheelup
bind +attack mwheeldown
[8/code]
best pistolscript ever.
One solution I've seen is to bind both your mouse buttons to +attack. That way, you can easily mash both buttons, without losing as much aim as with mwheel, and still firing quite quickly.
There are tons of server that allow scripts.
My favourite mp_bs 0 server is the SxB one.
208.185.249.146:27015
(Note to mods: I'm not trying to promote one server over another, just mentioning that there are other servers that allow scripting.)
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind "keyhere" "exec pscript.cfg"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
then if you join a server that has blockscripts on make a bind like this:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind "keyhere" "exec config.cfg"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
and your pistolscript will be tunred off.
<!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
No it won't.
The pscript.cfg will "turn on" by modifying your existing config.cfg; changing the bind for mouse1.
Re-excecuting the config.cfg will not do anything at all.
Rather, make a config2.cfg (an exact copy of your current config.cfg,) and execute that instead. THIS will then over-write the pistol-scripted version of config.cfg, taking it back to its original state.
---
ReK, I think that's an over-generalisation. I played on 5 servers yesturday (Pub ownage spree. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->) and only 2 of them blocked scripts. Perhaps NSA is the only decent american server that does not block them.
---
Diablo fx, which mouse *do* you have?
I'm yet to find one I am comfortable scrolling exessively with, and I don't really use the Mx510 (Blue, of course,) to its full potential. I use the 2shot pistol script, with a toggle on Z to alias it out. (Exec'ing multiple configs... man, overkill. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->)
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
[Pressuming you have existing +pscript declared]
alias "normalfire" "bind mouse1 +attack; alias togglefire pscriptfire"
alias "pscriptfire" "bind mouse1 +pscript; alias togglefire normalfire"
alias "togglefire" "pscriptfire"
bind "l" "togglefire"
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->