Clearing Configs...

nInnIn Join Date: 2004-09-20 Member: 31826Members
I use seperate configs for different lifeforms and I was wondering sometimes when I execute these configs the scripts dont execute in the right way. Like if I go from my skulk.cfg to my marine.cfg my pistol script won't work for some reason? But If I type exec marin.cfg in the console it usually helps.

I was wondering if there was a way to clear out the old settings for keys when you execute a new config.cfg? Like to make sure that the binds will be right for each lifeform?

Any help you can offer in this would be appreciated.

Comments

  • digzdigz be still, maggot Join Date: 2002-05-07 Member: 588Members, NS1 Playtester, Forum Moderators, Constellation
    If you have every key rebound in each config, you can add

    unbindall

    to the beginning of each config file.
  • nInnIn Join Date: 2004-09-20 Member: 31826Members
    that worked thanks squeak
  • MrRadicalEdMrRadicalEd Turrent Master Join Date: 2004-08-13 Member: 30601Members
    edited May 2005
    What I like to do is make aliases that unbind keys that are used in specfic class CFG files, marine, skulk, etc, and have these aliases called before a new CFG is loaded. I don't have to worry about custom binds getting lost due to "unbindall" cause I account for them all.
  • ReKReK Join Date: 2004-08-30 Member: 31058Members, Constellation, Reinforced - Shadow, WC 2013 - Silver
    Ya, I tried unbindall once and, for some stupid reason, forgot to include the rebinds for all my standard keys. Not fun to play with that....

    If you do remember to rebind them, or you only unbind specific keys, it works like a charm.
  • MintmanMintman Join Date: 2003-05-30 Member: 16866Members
    If you want to make sure everything is cleared by using unbindall I would do it this way:

    1. Create a file called "default_controls.cfg" this file contains all your normal binds, which would generally be your wasd/arrow keys, jump, crouch, flashlight etc. Everything that doesn't change between configs.

    2. Then create a config for each lifeform that includes all the things that are different. At the top of these configs put: <!--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-->unbindall
    exec "default_controls.cfg"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
    This will mean that if you ever need to change your default controls, you don't have to go through every config file to change them.
  • nInnIn Join Date: 2004-09-20 Member: 31826Members
  • 2_of_Eight2_of_Eight Join Date: 2003-08-20 Member: 20016Members
    If you want to unbind some keys only, use
    <!--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-->unbind "key"
    unbind "key2"
    unbind "key3"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
    And so on.
Sign In or Register to comment.