Scripting Help?
Raiden333
Join Date: 2003-03-22 Member: 14770Members
<div class="IPBDescription">Specifically, naming .cfg files...</div> I want to make some scripts for certain classes (Like for lerk, just tapping e switch to umbra, fire it off, and switch back to bite), but I want to use the same key for the class specific bind. Back when I used to play TFC, it was easy because each team/class had its own .cfg file. Does this hold true in NS? If I make a file called "marines.cfg", will it automatically execute when I join marines?
Comments
bind o "jointeamone ; exec marines.cfg"
bind p "jointeamtwo ; exec aliens.cfg"
that will join the team of your choice, and execute your CFG <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
I used to have q bound to "slot3; wait; wait; wait; wait; wait; wait; wait; wait; +attack; wait; -attack; wait; lastinv" so that it would leap/web/umbra/blink/charge but then I was scared by script-hating people and decided to learn to play "normally" <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
i can imagine a script based game, one hand one the muse one on the script bound button.
bind e evolve to gorge and build three dcs then teamsay saving for a hive then proceed to another hive and build rt's along the way then build hive 2 and go fade then teamsay fade rush marines before they take a hive and then rocket spam the marine spawn then run in and claw IP's to deatht then use pg to get into the hive base and kill that with other fades skulks and lerks.
Have different script for every map <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
You do realize that scripts don't actually play the game right? I mean, some people even think scripts can do the aiming for you. Ridiculous!
Stop generalizing scripting. It just brings about really bad accusations and falsifications (e.g. "Let a script play it for you: badbad.").
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias lerkcfg "exec lerk.cfg"
alias skulkcfg "exec skulk.cfg"
alias gorgecfg "exec gorge.cfg"
alias fadecfg "exec fade.cfg"
alias onoscfg "exec onos.cfg"
alias marinecfg "exec marine.cfg"
alias commcfg "exec comm.cfg"
alias cfgchoose "rebindnumber; menuecho"
alias rebindnumber "bind 1 lerkcfg; bind 2 skulkcfg; bind 3 gorgecfg; bind 4 fadecfg; bind 5 onoscfg; bind 6 marinecfg; bind 7 commcfg"
alias menuecho "developer 1; echo 1-Lerk 2-skulk 3-gorge 4-fade 5-onos 6-marine 7-comm; developer 0"
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
Ok it's late here and I can't be assed to see if I made errors. If someone sees any, feel free to correct them.
make 1 cfg file for each class and put them in your \ns folder. copy and paste the above code in autoexec.cfg
In each config, remember to bind a key to cfgchoose. If possible, try to find one key common for each config <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
alias "+cfgchoose" "rebindnumber; menuecho"
alias "-cfgchoose" "bind 1 slot1; bind 2 slot2; bind 3 slot3....etc"
Then you just bind to +cfgchoose. Hold the key to get the cfg switch options, release to go back to normal binds.
Either way works.
And if I am correct, scripts can easily turn your hand gun into a rail gun, I would try it out but it would go againist my non-using scripts and lazyness.
its bound to 1 and 2,
and another script for when im a skulk and i dont want to attack the marines, it automatically attacks until im out of energy
and another that when im a marine and dont want to listen to commander it auto rambos and humps the armory till im full <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
seriously!
then i learned how to play w/o them and w/o voogs plugins <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
Ego
[FACT] - I AM ON THIN FREAKING ICE!
hud_fastswitch 1 (i swear to the almighty jesus, if someone says I am exploiting for using <i>that</i> command, I am gonna start hunting people down....)
That command makes it so you dont have to click to select a weapon. All you do is press 1, 2, 3, or 4 and the weapon is instantly selected. If you have your movement keys bound to WSAD it makes it very very easy to switch between bite, and umbra...acid rocket and blink, leap and bite, whatever you choose =)
The day anti-scripters stop commenting/complaining/flaming out of sheer unadulterated ignorance is the day hell freezes over.
I use a toggle-use script (so I dont have to leave e pressed for +using, and so type while +using)
a toggle-walk script (blah-blah for +speed)
a toggle-forward (blah-blah for +forward so I can type while walking)
a toggle-duck script (blah blah for +duck)
a chuckle script <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> (I never use it because I prefer spamming chuckle and the script spams text as well)
a kewl menu for HLamp (not mine, HLamp's menu)
I have been using a message menu (similar to CS's commandmenu messages)
Are these useful? yes.
Do I need them? not really
Is it cheating? definitely not. It's just preventing me from having sore fingers <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->