phpBB Forum
 
It is currently Thu Mar 26, 2020 8:12 am




Post new topic Reply to topic  [ 8 posts ] 
Useful scripts 
Author Message
HH Donor
HH Donor
User avatar

Joined: Sun Mar 23, 2008 11:44 pm
Posts: 3761
Location: Leicester, UK
STEAM_0:0:15279954
Post Useful scripts
These go in C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\cfg

By default, when you tap A and then D (or is it A then D then A, I forget...) your movement stops. This script rebinds your WASD keys to stop this from happening:

autoexec.cfg
Code:
//strafe fix
bind w +mfwd
bind s +mback
bind a +mleft
bind d +mright
alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""


This 'radar' script for the medic displays a heal icon for nearby teammates, even through walls. Pretty useful when you're stuck by yourself in enemy territory. It works by temporarily raising the auto-call health percentage. It's bound to alt, but you can change that.

medic.cfg
Code:
//Radar
alias +radar "hud_medicautocallersthreshold 450"
alias -radar "hud_medicautocallersthreshold 60"
bind ALT +radar


Engineer script that binds the F1-F4 keys to build/destroy for sentry, dispenser etc.

engineer.cfg
Code:
// Destroying and building
alias dbsentry "destroy 2; build 2"
alias dbdispenser "destroy 0; build 0"
alias dbentrance "destroy 1; build 1"
alias dbexit "destroy 3; build 3"

bind f1 dbsentry
bind f2 dbdispenser
bind f3 dbentrance
bind f4 dbexit


Another engi script that binds Alt to destroy old sentry then build new sentry. Really good for gunslinger engis.

engineer.cfg
Code:
// ALT+M1 = new sentry
alias +quicksentry "destroy 2; build 2"
alias -quicksentry lastinv
bind ALT +quicksentry


Last edited by Sam on Mon Nov 04, 2013 4:23 pm, edited 1 time in total.



Mon Nov 04, 2013 2:16 am
Profile E-mail WWW
Post Re: Useful scripts
Is this not sort of hacking ???


Mon Nov 04, 2013 12:04 pm
HH Donor
HH Donor
User avatar

Joined: Tue Dec 25, 2007 12:08 am
Posts: 6095
STEAM_0:0:16743808
MCID: frog
Post Re: Useful scripts
Learn something from the official TF2 wiki. It's been built into the game since day 1.
http://wiki.teamfortress.com/wiki/Scripting

Thread derailment ends here. No reply necessary.


Sam wrote:
....

Nice one Sam! :)


Chris' competitive medic script can be found at https://github.com/tf2configs/tf2config ... ster/medic
It's used by loads of medics in competitive TF2 leagues, it's pretty useful and features the following binds.
Code:
F1 = Tap twice to move to new spawn room
F2 = Have all teammates nearby show their location
M1 = Medi gun/kritzkrieg
M2 = Syringe gun/blutsauger, when getting out will make all teammates call out
M3 = Bonesaw/ubersaw
M4 = Charge, will switch to medi gun/kritzkrieg automatically, will drop any intelligence being carried, and will also mask the "go go go" voice trigger
C = Vocalise fake ubercharge


Mon Nov 04, 2013 12:13 pm
Profile E-mail
HH Donor
HH Donor
User avatar

Joined: Sun Nov 07, 2010 12:14 pm
Posts: 1573
Location: Denmark
STEAM_0:1:7861982
MCID: Akisumo
BattleTag: Akisumo#2975
Post Re: Useful scripts
A crouch jump script is always useful.

Code:
//Highjump
alias "+jumpeh" "+jump; +duck"
alias "-jumpeh" "-duck; -jump"
bind "space" "+jumpeh"


I will add more scripts when I get back to my PC, as I'm currently out of town right now.

_________________
Fluffy wrote:
Poopenschnitzel.

Fluffy wrote:
I SAID POOPENSCHNITZEL!!

Tank driver in Battlefield 3 wrote:
My cheese's mad funkies, yo

Quake 3 hit sound
Download and save to steam\steamapps\yoursteamaccountnamehere\team fortress 2\tf\sound\ui


Last edited by iRPAx on Tue Nov 05, 2013 1:47 am, edited 1 time in total.



Mon Nov 04, 2013 12:54 pm
Profile E-mail
HH Donor
HH Donor
User avatar

Joined: Sun Mar 23, 2008 11:44 pm
Posts: 3761
Location: Leicester, UK
STEAM_0:0:15279954
Post Re: Useful scripts
Ooh yes, I use the crouch jump one for scout and sniper. Pretty good if you miss an enemy sniper and you want to avoid a headshot, as I think crouch jumping messes up the hitboxes.

I disable it when playing other classes because it gives less control over rocket/sticky jumps and targe jumps. You can do this by making a new config called clear.cfg and adding:

Code:
bind space "+jump"


Then at the start of each class config:

Code:
exec clear


Mon Nov 04, 2013 1:06 pm
Profile E-mail WWW
HH Donor
HH Donor
User avatar

Joined: Sun Nov 07, 2010 12:14 pm
Posts: 1573
Location: Denmark
STEAM_0:1:7861982
MCID: Akisumo
BattleTag: Akisumo#2975
Post Re: Useful scripts
Change your sensitivity in-game
Code:
alias "aim"    "+aim"
alias "+aim"   "sensitivity 0.83; alias aim -aim"     // High sensitivity
alias "-aim"   "sensitivity 0.32; alias aim +aim"     // Low sensitivity
bind  "f" "aim"    // Pressing 'f' toggles between high and low sensitivity


Toggle viewmodel
Code:
bind "t" "r_drawviewmodel 0"


Tue Nov 05, 2013 1:50 am
Profile E-mail
@H|H Reg
@H|H Reg

Joined: Thu Nov 22, 2012 5:57 pm
Posts: 114
STEAM_0:1:5303813
Post Re: Useful scripts
ok ppl I hope you won't abuse this but I'll sahre my quicksentry script with you :evil:

Code:
alias "+quick_sentry" "destroy 2; build 2; wait 10; +attack"
alias "-quick_sentry" "-attack; lastinv"


you have to bind it to a button like this (you can replace MOUSE5 by some other button):

Code:
bind "MOUSE5" "+quick_sentry"


You will see it's amazing for gunslinger engies :)
It might not work on every server, depending on tickrate and whether the wait command is disabled or not but on HH it works perfectly!


Tue Nov 05, 2013 7:59 pm
Profile
HH Donor
HH Donor
User avatar

Joined: Sun Mar 23, 2008 11:44 pm
Posts: 3761
Location: Leicester, UK
STEAM_0:0:15279954
Post Re: Useful scripts
Bumping this as it's still a useful thread.

Any other scripts that people use?


Mon Mar 02, 2015 2:21 pm
Profile E-mail WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forum/DivisionCore.