Author Topic: [TUTORIAL] team.cfg's -- have Trem auto-set binds per team in GPP  (Read 5098 times)

Deadbeat Engineer

  • Posts: 105
  • Turrets: +9/-0
This is my first tutorial, hope it is clear & helps...

Ok, so thanks to the god that is Kiwi, I've decided that more people should really know about this.

In the 1.2 GamePlay Preview (GPP) there are a few new cvars, two of them being:
Code: [Select]
cg_alienConfig
and
cg_humanConfig
These aren't set to anything by default. "What do they do?" You ask? Well, when you join the alien team, cg_alienConfig automatically executes whatever .cfg file you have set it to, and respectively with cg_humanConfig

So, to make things simple, we'll name the 2 .cfg's alien.cfg and human.cfg
You'll want to put these two files in the /GPP folder in your fs_homepath. To find out where that is, open Trem and type:
Code: [Select]
\fs_homepath
For Windows XP it's defaulted to C:\Documents and Settings\{username}\Application Data\Tremulous
Linux is usually ~/.Tremulous
And OSX I really have no idea.
EIDT: OSX is ~/Library/Applications Support/Tremulous/ (thanks Superspirality)


Usually, we want evo binds available for the team we're playing, as it's faster and easy. So, for the alien.cfg we'd set it up like this:
Code: [Select]
bind 1 "class builderupg; class builder"
bind 2 "class level0"
bind 3 "class level1"
bind 4 "class level1upg"
bind 5 "class level2"
bind 6 "class level2upg"
bind 7 "class level3"
bind 8 "class level3upg"
bind 9 "class level4"
This makes:
  • 1 -> granger or advanced granger
  • 2 -> dretch
  • 3 -> basilisk
  • 4 -> adv basilisk
  • 5 -> marauder
  • 6 -> adv marauder
  • 7 -> dragoon
  • 8 -> adv dragoon
  • 9 -> tyrant
1 & 2 will spawn you as those if you're currently not spawned

So if we want to use the same technique for human.cfg, we'd set it up like this:
Code: [Select]
bind 1 "class advckit; class ckit; sell weapons; sell battpack; buy advckit; buy ckit"
bind 2 "class rifle; sell weapons; sell upgrades; sell battpack; buy rifle"
bind 3 "sell weapons; sell battpack; buy shotgun; buy rifle"
bind 4 "sell weapons; buy lgun; buy battpack; buy rifle"
bind 5 "sell weapons; buy mdriver; buy battpack; buy rifle"
bind 6 "sell weapons; sell battpack; buy chaingun; buy rifle"
bind 7 "sell weapons; buy prifle; buy battpack; buy rifle"
bind 8 "sell weapons; buy lcannon; buy battpack; buy rifle"
bind 9 "sell bsuit; buy larmour; buy helmet"
bind 0 "sell upgrades; buy bsuit; buy larmour; buy helmet"
This makes:
  • 1 -> construction kit
  • 2 -> rifle and sell everything else
  • 3 -> shotgun
  • 4 -> lasgun
  • 5 -> mass driver
  • 6 -> chaingun
  • 7 -> plasma rifle
  • 8 -> lucifer cannon
  • 9 -> buy light armor and helmet
  • 0 -> buy battlesuit
all buttons sell your current weapon first
buttons 1 & 2 will spawn you as those if you're not spawned yet, any energy weapon will also buy a battpack if you have enough creds for it, battlesuit will sell upgrades and lower armour then buy larmour and helmet if you don't have enough creds for it, and if you don't have enough creds for a gun it buys back the rifle.

------------------------------------------------------
You can set it however you want though, and can even define strings and such there.

All binds and a thorough tutorial on autoexec.cfg can be found here courtesy of Kiwi.

I hope this helps, and if I labeled anything wrong, or if you just wanna comment or something, let me know!
-Deadbeat
« Last Edit: July 18, 2010, 12:29:28 am by Deadbeat Engineer »
I herd u liek maras?

This most definitely. I cannot begin to express how This this is.

F50

  • Posts: 740
  • Turrets: +16/-26
Re: [TUTORIAL] team.cfg's -- have Trem auto-set binds per team in GPP
« Reply #1 on: June 20, 2010, 01:09:19 am »
Cool, I didn't know cg_alienconfig and cg_humanconfig were honored in svn, they aren't set to a value (any value) by default.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


Kiwi

  • Posts: 859
  • Turrets: +29/-9
Re: [TUTORIAL] team.cfg's -- have Trem auto-set binds per team in GPP
« Reply #2 on: June 20, 2010, 02:13:55 am »
Nice tutorial!  I'm sure this is going to help a lot of players get used to the new GPP changes.

Here is some more stuff you can chew on if you want.  You might already know this, but I figured this would be an appropriate place to post it anyway:
When I set up my binds I bind 0-9 to buy my corresponding weapons, like you said, but I also have it buy me light armour, a helmet, and a battpack (if it corresponds to the weapon).  If I press my bind again however, it buys me the corresponding weapon with a battlesuit.  You can achieve such binds by doing something like this:

Code: [Select]
set game3 "class level1; sell weapons; sell upgrades; buy shotgun; buy rifle; buy helmet; buy larmour; bind 3 vstr game32"
set game32 "class level1; sell weapons; sell upgrades; buy shotgun; buy rifle; buy bsuit; buy helmet; buy larmour; bind 3 vstr game3"
bind 3 vstr game3

Keep in mind though, that as of now, these binds can get "off" and buy you a battlesuit before buying you larmour and a helm.  This can be easily fixed once wait works better (in a tremfusion style).
I figured that this might help someone, so have fun with it!
« Last Edit: June 20, 2010, 02:32:44 am by Kiwi »

superspirality

  • Guest
Re: [TUTORIAL] team.cfg's -- have Trem auto-set binds per team in GPP
« Reply #3 on: July 11, 2010, 09:36:38 am »
In OS X the path is ~/Library/Applications Support/Tremulous/.  ;)

Deadbeat Engineer

  • Posts: 105
  • Turrets: +9/-0
Re: [TUTORIAL] team.cfg's -- have Trem auto-set binds per team in GPP
« Reply #4 on: July 18, 2010, 12:28:02 am »
In OS X the path is ~/Library/Applications Support/Tremulous/.  ;)

Thank You!
Yeah, I own multiple Windows & Linux computers, but no macs. I've even played on Mustachio's mac and helped him do stuff like this, but I never remember the path lol.
I herd u liek maras?

This most definitely. I cannot begin to express how This this is.