« Previous12345Next »
RSS Feed

Painless scripting using rads.cfg

#  Dec 28, 2008 at 2:03 PM
Join Date:
Dec 29, 2007
Post Count:
364
 
rads 81639
Loading...
Steam ID: radsmith
BestTF2King Solly
 

To use this script, copy the "rads" folder to your TF2 "cfg" folder. Put exec rads/base.cfg in your autoexec.cfg and exec rads/reset.cfg in each of your class configs (scout.cfg, demoman.cfg, soldier.cfg, etc.) Now you can write your configs. Note that my script does not change anything on its own; it's just a tool to help you write concise class configs.

---

I think everyone should use an auto-heal script and a pistol script, but I hate troubleshooting for people when they can't set it up. So I made a config file that makes those scripts and a few others foolproof.

For example, what if I want to add an auto-heal script and a Medigun/Kritzkrieg toggle to my Medic config? Here's the code:

bind ] "toggle_kritzkrieg"
setup_medic_binds

I want to use a pistol script for the Scout too:

setup_weapon_binds
bind mouse1 "+attack_with_auto_pistol"

But you probably want to auto-reload the scattergun as well:

alias s1 "+reload"
alias s2 "-reload"
setup_weapon_binds
bind mouse1 "+attack_with_auto_pistol"

I like to hide the weapon model on the scattergun, so my Scout config looks like this:

alias s1 "+reload; hide_weapon_model"
alias s2 "-reload; show_weapon_model"
setup_weapon_binds
bind mouse1 "+attack_with_auto_pistol"

With four lines of code, I added an auto-pistol script, auto-reload, and weapon hiding. The cool thing about this config is that you can do anything with it. I know some people like to use a higher sensitivity for their SMG and melee weapon with the Sniper:

alias s1 "sensitivity 2"
alias s2 "sensitivity 4"
setup_weapon_binds

The config also has a crouch jump script (I use it with the Demoman):

bind space "+crouch_jump"
#  Dec 28, 2008 at 2:10 PM
Join Date:
May 21, 2008
Post Count:
628
 
fatalmsg 85065
Loading...
Steam ID: KaptN KaNuckles
GamerTag: KaptN KaNuckles
Clan: <TF2F>(360 division) AXIS
 
Thankyou, i may use this in the future.
#  Dec 28, 2008 at 2:22 PM
Join Date:
Sep 21, 2007
Post Count:
3893
 
Hellblazer 77363
Loading...
Specialty: Engineer
SponsorTech Support Award
 

Wow, thats quite an extensive operation. Thanks for sharing with all of us, I've been looking for a good pistol script for quite a while. I disagree with exploiting the bug to get the weapon model off, so I think Ill delete those lines

#  Dec 30, 2008 at 12:55 AM
Join Date:
Dec 29, 2007
Post Count:
364
 
rads 81639
Loading...
Steam ID: radsmith
BestTF2King Solly
 
There was a bug with the Medic script that's fixed now. Re-download for the updated version. I also have a change history at GitHub.
#  Dec 30, 2008 at 6:44 AM
Join Date:
Aug 04, 2008
Post Count:
1203
 
Drake Matter 87141
Loading...
Specialty: Medic
Steam ID: drakematter
 
These scripts don't work for me. It doesn't seem to affect anything at all in the game, and I followed your instructions to the word.
#  Dec 30, 2008 at 11:39 AM
Join Date:
Dec 29, 2007
Post Count:
364
 
rads 81639
Loading...
Steam ID: radsmith
BestTF2King Solly
 
The script does not do anything on its own. You use the aliases to write your own config. If you tell me what you want to use the script for, I can give you an example.
#  Dec 30, 2008 at 12:51 PM
Join Date:
Jul 13, 2008
Post Count:
1664
 
Koff 86615
Loading...
 
Quote:
Originally Posted by rads
The script does not do anything on its own. You use the aliases to write your own config. If you tell me what you want to use the script for, I can give you an example.
So, in order to make the pistol script work, would I need to write an auto_pistol.cfg?
#  Dec 30, 2008 at 1:26 PM
Join Date:
Oct 16, 2007
Post Count:
3528
 
trainRiderJ 78536
Loading...
Steam ID: trainRiderJ
Clan: {TF2F}
SquigMember
 
To make the pistol script work, either put the rads.cfg file in your cfg folder and add this line to your autoexec.cfg:

exec rads.cfg

OR just copy and paste the relevant parts of his script into your autoexec.fg

Once you've done that, add this line to your scout.cfg:

bind mouse2 "+auto_pistol"

where mouse2 could be any button you want, although I suggest not writing over something important (hint: just use mouse2)
#  Dec 30, 2008 at 1:49 PM
Join Date:
Jul 13, 2008
Post Count:
1664
 
Koff 86615
Loading...
 
Ah, alright, the last post by rads made it seem like the script needed to reference another .cfg file aside from the ones in his zip.
#  Dec 31, 2008 at 1:08 AM
Join Date:
Dec 29, 2007
Post Count:
364
 
rads 81639
Loading...
Steam ID: radsmith
BestTF2King Solly
 
I updated the scripts and the installation instructions. I don't recommend copying and pasting parts of the script; it makes updating much harder.
« Previous12345Next »

Copyright 2007-2008 All Rights Reserved

Team Fortress 2


2 Guys 1 Kill: {TF2F} FlyingPenguin - (102 kill assists)
Captures Blocked: Nimbli Bimbli - (26 captures blocked)
Dominator: {TF2F} Bitch Nasty - (25 dominations)
Flags Captured: Corporal Clegg - (11 flags captured)
Flags Defended: MechaEdd - (12 flags defended)
Physician Assisted Homicide: {TF2F}SME®BUI©K - (271 medic kill assists)
Points Captured: {TF2F}SME®BUI©K - (30 points captured)
Revenger: Count_Flakula - (10 revenges)
Spy Power: Chro - (19 objects killed as spy)
Ubercharger: {TF2F}SME®BUI©K - (89 ubercharges)
Axe Man: {TF2F} Ninja Dude - (18 kills with fireaxe)
Axtinguished: {TF2F} BOOSH Rizzilio - (81 kills with axtinguisher)
Batter Up!: soup! - (16 kills with bat)
Biggest Prick: Sam - ClutchKill.com - (8 kills with syringegun)
Blood Sucker: {TF2F}SME®BUI©K - (30 kills with blutsauger)
Broke Backburner: {TF2F} FlyingPenguin - (223 kills with backburner)
Can You Dig It?: {TF2F}.TüRb!NE. - (3 kills with shovel)
Doctor's Certificate: Maero - (16 kills with bonesaw)
Drunken Brawler: [???] Deviruchi - (4 kills with bottle)
Epic Defender: {TF2F} Spy - (9 kills with wrench)
Fire Spitter: {TF2F}blistering - (100 kills with flamethrower)
Flare Gunner: {TF2F} FlyingPenguin - (12 kills with flare gun)
Grenade Spammer: GeneralSheep - (47 kills with pipe)
Grey Matter: STar - (168 snipings as sniper)
Hadouken Master: Xandier - (1 kills with pyro taunt)
Hot Potato: {TF2F} BOOSH Rizzilio - (4 kills with rocket deflection)
I <3 Sasha: {TF2F} Bitch Nasty - (181 kills with minigun)
Knife Maniac: {TF2F} Dartagnan - (109 knifings)
Last Resort: [Ba-El] BoC - (26 kills with smg)
Manslayer: [FRGT] Klare - (10 kills with machete)
Master Fister: Maero - (3 kills with fists)
Peashooter Marksman: Corporal Clegg - (48 kills with scout pistol)
Pickle Squad Award: [NH]Pitt - (18 pickles man handled)
Rocket Scientist: [TF2F]Lancer - (217 kills with rocket)
Scatter Shot: Corporal Clegg - (147 kills with scattergun)
Sentrygun Master: Numenor - (142 kills with sentrygun)
Spam Blocker: {TF2F} BOOSH Rizzilio - (1 kills with pipe deflection)
Spy Checker: {TF2F} Fanlaen - (5 kills with pistol)
Sticky Explosion: {TF2F}Album - (105 kills with pipe remote)
Ubersawer: Psycholord - (27 kills with ubersaw)
Stats Refreshed 6/24/2008 5:00:03 AM CST
AddThis Social Bookmark Button
Fortcast Podcast
Donate
Welcome, you are not logged in.
Login or Register
Team Fortress 2 Fort Team Fortress 2 Fort