Alien, Rine,cfg's
mirrodin
Join Date: 2004-06-29 Member: 29621Members
in Tech Support
<div class="IPBDescription">Help!</div> Lets say I make two files called marine.cfg & alien.cfg. They have different mouse sensivity settings. And the alien one has a script that the marine one would have trouble doing (ie impossible). So to activate the cfg's do I have to do it manually from the console? "exec alien/marine.cfg" or is there are way to make it automatically run when I join a team.
IE. (I am code illiterate, bear with)
If playerteam = teamtwo
exec alien.cfg
Plz don't laugh. I learned Turbo Pascal a few months back so...ya. Help plz!
IE. (I am code illiterate, bear with)
If playerteam = teamtwo
exec alien.cfg
Plz don't laugh. I learned Turbo Pascal a few months back so...ya. Help plz!
Comments
As for the problem.
This might work:
bind f1 "jointeamone; exec rine.cfg"
bind f2 "jointeamtwo; exec alien.cfg"
or try:
alias "rines" "jointeamone; exec rine.cfg"
alias "aliens" "jointeamtwo; exec alien.cfg"
bind f1 rines
bind f2 aliens
and one of those 2 into userconfig.cfg (this used to be known as autoexec.cfg, but nolonger)
for a quick test, add this code to the top of your cfgs.
developer 1
echo "ALIENS" //or "MARINES" for the proper cfg
developer 0
NOTE:
The reason why these could possibly fail is b/c NS Dosn't realy like scripting that much, it is designed to kill some abusive scripts. However, in doing so some legal scripts get killed also. Then again, it is a SVar to turn it on/off.
Good luck <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->