More Scripting Help....

BizZy_9mm_MessiahBizZy_9mm_Messiah Old School Member Join Date: 2003-07-25 Member: 18411Members, Constellation
<div class="IPBDescription">Non-Trolling Topic :)</div> I need help with getting 2 seperate configs binded to two different keys. Like say if I joined aliens, I could load my alien config or if I joined marines I could load my marine config. I have keys binded to joining a team, so if I joined a team, could I get the config to automatically load for that team? How would these binds be made and where would they be made? In my autoexec? Please help me.

Comments

  • gazOzzgazOzz Work&#39;s a ... Join Date: 2003-12-25 Member: 24747Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    bind F1 "jointeam1; exec marine.cfg"
    bind F2 "jointeam2; exec alien.cfg"

    Put them in userconfig.cfg... <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
  • BOBDololBOBDolol Join Date: 2003-10-04 Member: 21431Members
    edited May 2004
    <span style='color:white'>Be nice or...</span>

    GET OUT
  • raz0rraz0r Join Date: 2003-07-24 Member: 18395Members
    edited May 2004
    <span style='color:white'>Relevant post nuked.</span>
  • CrSCrS Join Date: 2004-03-03 Member: 27096Members
    edited May 2004
    <span style='color:white'>Relevant post nuked.</span>
  • MintmanMintman Join Date: 2003-05-30 Member: 16866Members
    Bizzy, in future you should probably put any script request thread in the Customisation section. The people there are less likely to flame you and are more likely to be able to help you.
  • HibameHibame Join Date: 2003-11-16 Member: 22974Members, Reinforced - Shadow
    yep yep gazOzz is right

    but make shure you config.cfg is calling userconfig.cfg
  • MavericMaveric Join Date: 2002-08-07 Member: 1101Members
    having 2 different configs for each team really should be put into the actual game itself and not some scripting job.

    like gazOzz said:
    bind F1 "jointeam1; exec marine.cfg"
    bind F2 "jointeam2; exec alien.cfg"

    Put them in userconfig.cfg...
  • ZekZek Join Date: 2002-11-10 Member: 7962Members, NS1 Playtester, Constellation, Reinforced - Shadow
    edited May 2004
    <!--QuoteBegin-CrS+May 29 2004, 10:35 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (CrS @ May 29 2004, 10:35 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <span style='color:white'>Relevant post nuked.</span> <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    Can someone explain to me why it is that Nemesis always says this? Is it because the post is relevant to the one that was nuked first? If so maybe "Related post" would be a little more clear...

    <span style='color:white'>Actually, I was quoting Coils default line. Good point, though.</span>
  • wascally_wabbitwascally_wabbit Join Date: 2003-09-09 Member: 20701Members
    He means that the post is relevant to the one he already nuked.

    post 1: fine
    post 2: nuked
    post 3: about post 1, so fine
    post 4: About post 2... It's relevant to post 2 only, and since post 2 is gone... =P
    post 5: about post 2, relevant to post 2 only, and since post 2 is gone...
  • EpidemicEpidemic Dark Force Gorge Join Date: 2003-06-29 Member: 17781Members
    Scriptor dood, my brother in arms. Keep fighting man..
  • semipsychoticsemipsychotic Join Date: 2003-07-09 Member: 18061Members
    You could do what gaz suggested, or you could go the hard way...

    You could create a gigantic metabind that goes something like this in your autoexec:

    alias marines "bind r +reload; bind mouse1 +attack; bind e +use; ETC"
    alias aliens "more of the same"

    And bind those to your special mode-swapping keys. Of course, it's long and really easy to screw up somewhere in there.
  • HellbillyHellbilly A whole title out of pity... Join Date: 2002-11-02 Member: 3931Members, NS1 Playtester, Constellation
    <!--QuoteBegin-gazOzz+May 29 2004, 02:34 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (gazOzz @ May 29 2004, 02:34 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> bind F1 "jointeam1; exec marine.cfg"
    bind F2 "jointeam2; exec alien.cfg"

    Put them in userconfig.cfg... <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    You don't even have to put them in userconfig.cfg, i have this in my regular config.cfg and it works fine:

    bind "F1" "jointeamone;exec marine.cfg"
    bind "F2" "jointeamtwo;exec alien.cfg"

    Just make sure when you made those config files, you saved them as "All Files.." so it doesn't make it a text file called alien.cfg because that won't work.
Sign In or Register to comment.