Jump to content



Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  kirant : (19 August 2019 - 12:49 PM) Huh. Bothammer time.
@  Elwood : (12 August 2019 - 05:57 AM) Oh, new posts! ...And it's bots. Kinda nostalgic actually.
@  xcrash1998 : (22 June 2019 - 09:24 PM) (Brushes dust of the Shoutbox)
@  Elwood : (17 June 2019 - 06:14 AM) *tumbleweed*
@  Lucina : (16 June 2019 - 09:19 AM) Whew. I haven't been here in forever.
@  Cero : (11 June 2019 - 06:51 PM) oof
@  kirant : (01 June 2019 - 05:54 PM) f
@  Fire Blazer : (30 May 2019 - 03:01 AM) rip
@  Valke : (29 May 2019 - 08:20 AM) bruh i deleted my discord a few months ago,,,,
@  Fire Blazer : (28 May 2019 - 01:59 AM) glad ur alive. join our Discord
@  Fire Blazer : (28 May 2019 - 01:59 AM) yo
@  Valke : (25 May 2019 - 03:08 PM) im alive, college finally gave me breaks (coupled with a few assignments i need to turn next week)
@  Valke : (25 May 2019 - 03:07 PM) hi
@  Valke : (25 May 2019 - 03:07 PM) guys
@  Fire Blazer : (25 March 2019 - 10:43 PM) how things have changed
@  Elwood : (12 March 2019 - 08:31 AM) (a sigh somewhere between small and large)
@  kirant : (12 March 2019 - 05:40 AM) (larger sigh)
@  Fire Blazer : (11 March 2019 - 08:49 PM) (small sigh)
@  Fire Blazer : (25 February 2019 - 05:07 AM)
@  Fire Blazer : (06 February 2019 - 04:34 AM) Cardfight Vanguard X? huh

Photo

TF2 Scripts


  • Please log in to reply
2 replies to this topic

#1 SmashedFish

SmashedFish

    Tom is not for opening

  • Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,858 posts
  • Gender:Not Telling
  • Interests:fictional characters

Posted 10 May 2011 - 05:09 PM

I'm not sure if anyone else even plays TF2, but here are some awesome scripts if you do. Put all this into SteamApps/yourname/team fortress 2/tf/cfg/autoexec.cfg, and make any files/folders that aren't already there.

CODE
alias +cfirepri "slot1; +attack"
alias -cfirepri "-attack; lastinv"

alias +cfiresec "slot2; +attack"
alias -cfiresec "-attack; lastinv"

alias +cfiremel "slot3; +attack"
alias -cfiremel "-attack; lastinv"

bind i +cfirepri
bind o +cfiresec
bind p +cfiremel

alias devtog devtog1
alias devtog1 "developer 1; alias devtog devtog2"
alias devtog2 "developer 0; alias devtog devtog1"

bind [ devtog

alias +rebind "bind 1 cfirepri; bind 2 cfiresec; bind 3 cfiremel"
alias -rebind "bind 1 slot1; bind 2 slot2; bind 3 slot3""

bind shift +rebind


What it does:

Shift: switches 1, 2, and 3 to do something else while Shift is being held. They go back after. Shift can still be bound to something else at the same time.

i or hold Shift and press 1: Takes out your primary and shoots it until you let go. Then it switches back to whatever you were holding before. Doesn't work well for Heavy.

o or hold Shift and press 2: Ditto, with secondary. Good luck with food/thrown secondaries.

p or hold Shift and press 3: Ditto with your melee. That is surprisingly stable.

[: Toggles developer, which overlays the top-left corner of your screen with console text. It can be useful when you're testing scripts, but it's of occasional usability elsewhere.

Images - 11/22 Writing - 5/17 FE: Immortal Shrine
forum_signature__aeiou_by_sakowfniapqf-d

 

Spoiler


Need help with hacking? Post in the subforum, or Skype me (smashedfish76).


#2 Fire Blazer

Fire Blazer

    You ready?

  • Creator
  • 12,103 posts
  • Gender:Male
  • Location:U.S.A.
  • Interests:Too many to list. =P

Posted 10 May 2011 - 07:58 PM

TEAMFORTRESS2

I know some people who play it but I don't. Still, scripting, for a game? Sounds intense. O-o

Bblazer2.png

Signature thanks to Shu.


#3 SmashedFish

SmashedFish

    Tom is not for opening

  • Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,858 posts
  • Gender:Not Telling
  • Interests:fictional characters

Posted 10 May 2011 - 09:00 PM

It's really not, actually. My only prior experience to code when I started doing TF2 scripts was half a year in C++, and I don't even use that.

I'll give you the basics because I'm bored. The basics are as follows:

1. You can put commands into your console or scripts to make them run. If you don't know a certain command, there are a bunch of list to get to know some useful ones.

2. By binding a key to a command, you make it so that hitting the key does the command. (For example, I could type "kill" into the console to die at whim, or I could bind, say, G to kill me whenever I press it.)

3. Then, you can go and make aliases, which are strings of commands that execute in order when the allias is called. (If I had an alias called "lol" which made me taunt and then explode when executed, I could type "lol" into my console or bind a key to lol to execute it whenever.)

Scripting is just making clever aliases and binding them to keys that aren't halfway across the keyboard, all the while learning and following new rules of grammar.

TL;DR Go and read it you nerd, I spent a good five minutes typing that.

Images - 11/22 Writing - 5/17 FE: Immortal Shrine
forum_signature__aeiou_by_sakowfniapqf-d

 

Spoiler


Need help with hacking? Post in the subforum, or Skype me (smashedfish76).





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users