Strange Problem Executing A Couple Of Scripts

c4tc4t Join Date: 2003-09-06 Member: 20619Members Posts: 383
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









QUOTE(obuh @ Mar 23 2005, 06:24 AM)
Cloaking counters fun. lol.

Comments

  • DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow Posts: 6,781 Fully active user
    Try booting up a game of NS and typing 'bind mouse2' in your console, and see what the key is bound to by default. If it's not set to +leap1, then you might need to execute the alien.cfg file again, or you could have an error in your config file (ie: mouse2 could be misspelled, etc.)

    Secondly, you could need a few more waits in your script. Try one of these and see if it works:
    CODE
    alias w2 "wait; wait"
    alias quickleap "weapon_leap; w2; +attack; wait; -attack; w2; weapon_bitegun"
    bind "Key" "quickleap"


    or

    CODE
    alias w2 "wait; wait"
    alias +leap "weapon_leap; w2; +attack"
    alias -leap "-attack; w2; weapon_bitegun"
    bind "key" "+leap"



    As for your lerk scripts, you probably need to add quotation marks to the bind commands so they read:
    CODE
    bind "key" "command"
    I see custom titles. <_< >_>

    QUOTE (DOOManiac @ Jul 10 2005, 07:00 PM)
    I for one can't imagine downloading several gigs of pornography from a typewriter.
  • ReKReK Join Date: 2004-08-30 Member: 31058Members, Constellation, Reinforced - Shadow, WC 2013 - Silver Posts: 708 Advanced user
    Or, one of your other configs could be overwriting the bind. Make sure the exec call for the config with this bind is one of, if not the, last commands called in whatever your setup is.
    Jumping send out a big hank cyclone, it will eddy original location in gallinaceous body, and pinch three times, opponent
  • Krazy_GlueKrazy_Glue Join Date: 2003-05-16 Member: 16393Members Posts: 69
    ya since you can bind it to leap1, that means that the script was executed but mouse2 was rewritten afterwards

    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
  • c4tc4t Join Date: 2003-09-06 Member: 20619Members Posts: 383
    when i did bind mouse2 in consol before it was like mouse2= ""


    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.
    QUOTE(obuh @ Mar 23 2005, 06:24 AM)
    Cloaking counters fun. lol.
Sign In or Register to comment.