Strange Problem Executing A Couple Of Scripts
c4t
Join Date: 2003-09-06 Member: 20619Members
i could really use some help because im stumped
these problems may be easily fixed
i made a couple tiny scripts to help my skulk and lerk game.
first i made a leap script just because since i use q to lastinv, i couldnt leap then strafe hard left in the air because at somepoint i would have to let go of a and hit q to switch to bite, so i figured why not make a script that leaps then switches to bite for me, and i came up with this
alias +leap1 "slot3;wait;+attack"
alias -leap1 "-attack;wait;slot1"
bind "mouse2" "+leap1"
so, i put this in a config called alien.cfg which is what i use for all my separate alien tweaks. problem is when i join a game and load up the config the script doesnt execute. i press mouse2 and nothing happens. to get it to work in the consol i have to manually type bind mouse2 +leap1
i would really like to know why it is doing this?
this goes as well with my two lerk scripts. which are in a separate config as well.
alias +umbra "slot3;wait;+attack"
alias -umbra "-attack;wait;lastinv"
bind "mouse2" +umbra
alias +scream "slot4;wait;+attack"
alias -scream "-attack;wait;lastinv"
bind shift +scream
these problems may be easily fixed
i made a couple tiny scripts to help my skulk and lerk game.
first i made a leap script just because since i use q to lastinv, i couldnt leap then strafe hard left in the air because at somepoint i would have to let go of a and hit q to switch to bite, so i figured why not make a script that leaps then switches to bite for me, and i came up with this
alias +leap1 "slot3;wait;+attack"
alias -leap1 "-attack;wait;slot1"
bind "mouse2" "+leap1"
so, i put this in a config called alien.cfg which is what i use for all my separate alien tweaks. problem is when i join a game and load up the config the script doesnt execute. i press mouse2 and nothing happens. to get it to work in the consol i have to manually type bind mouse2 +leap1
i would really like to know why it is doing this?
this goes as well with my two lerk scripts. which are in a separate config as well.
alias +umbra "slot3;wait;+attack"
alias -umbra "-attack;wait;lastinv"
bind "mouse2" +umbra
alias +scream "slot4;wait;+attack"
alias -scream "-attack;wait;lastinv"
bind shift +scream
Comments
Secondly, you could need a few more waits in your script. Try one of these and see if it works:
<!--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-->alias w2 "wait; wait"
alias quickleap "weapon_leap; w2; +attack; wait; -attack; w2; weapon_bitegun"
bind "Key" "quickleap"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
or
<!--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-->alias w2 "wait; wait"
alias +leap "weapon_leap; w2; +attack"
alias -leap "-attack; w2; weapon_bitegun"
bind "key" "+leap"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
As for your lerk scripts, you probably need to add quotation marks to the bind commands so they read:
<!--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 "key" "command"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
check your alien config and make sure there isnt another place where mouse2 is bound
also see if another config is executed after your alien, and again check to see if mouse2 is bound
same with your lerk scripts
anyway, i ended up remaking all my configs, and putting all the commands i wanted executed in every config into userconfig.cfg then just putting specific tweaks in my separate configs. anyway, it fixed it.
thanks hart.