Scripts
Here you will find some
basic scripts.
Put these in
you class.cfg files. Please email
Rim
and he will remove/add any scripts that dont work or are not currently
on this page.
Demoman:
//detpack switcher
alias d20 "bind PGDN detme20; bind PGUP d50; echo 20 sec detpack
selected"
alias d50 "bind PGDN detme50; bind PGUP d5; echo 50 sec detpack
selected"
alias d5 "bind PGDN detme5; bind PGUP d20; echo 5 sec detpack
selected"
alias "detme5" "+det5; ds"
alias "detme20" "+det20; ds"
alias "detme50" "+det50; ds"
alias "ds" "bind PGDN detstop"
//weapon switcher
alias weaponswitch2 "tf_weapon_gl; bind mouse2 weaponswitch1"
alias weaponswitch1 "tf_weapon_pl; bind mouse2 weaponswitch2"
//pitchdown scriptheh
alias pd "cl_pitchdown 108; bind mouse3 pd1; echo Pitchdown 108"
alias pd1 "cl_pitchdown 90; bind mouse3 pd; echo Pitchdown 90"
//pj script
alias +pj "+jump ; wait; +duck; detpipe"
alias -pj "-jump; -duck"
//jump pipedown
alias +jpipedown "cl_pitchspeed 999999;+jump;wait;+duck;cl_pitchdown 108;+lookdown;wait;pipe;-lookdown;force_centerview;cl_pitchspeed
225;cl_pitchdown 90"
alias -jpipedown "-jump; -duck"
alias pipe "+attack;wait;-attack"
//pipedown
alias +pipedown "cl_pitchspeed 999999;cl_pitchdown 108;+lookdown;wait;pipe;-lookdown;force_centerview;cl_pitchspeed
225;cl_pitchdown 90"
Demoman
Here's a
bind that may be useful, especially to Slim3r and Slick. Not long ago
Slick taught me to bind my green pipe det command to my mousewheel. The
deal was to bind "mwheelup" to the pipe jump script and "mwheeldown"
to detpipes.
I really like this setup; itz got just one problem. While using mwheelup
to pipe jump is very effective, it's not good for detting the pipes,
only for pipe jumping.
On my mouse, the wheel makes it so the first det is easy, but if I have
to fire a pipe and immediately det it RIGHT after I just detted the
first group, I'm SLOWER because I have to reset my finger to flick the
mousewheel down again.
The following bind allows you to have your cake and eat it too. The
default setup lets you use either "mwheelup" OR "mwheeldown"
to det your pipes. When you press the capslock, however, "mwheelup"
is rebound to the pipejump script. So it's a toggle switch; as long as
the capslock is on, "mwheelup" will make you pipe jump. But
when the capslock is off, both "mwheelup" AND "mwheeldown"
will det the pipes.
This is surprisingly effective. Just pushing the mouse wheel up and down
gaurantees that you never have to reset your finger to det a pipe
(shaving off that precious half-second) and ensures that any airborne
green will always explode as early as possible (if that's what you
need).
bind "mwheelup" "special"
bind capslock jumpswitch1
alias jumpswitch1 "bind mwheelup YourPipeJumpScript; bind capslock
jumpswitch2"
alias jumpswitch2 "bind mwheelup special; bind capslock
jumpswitch1"
The neat thing about using the capslock as that you always know which
setting your on because of the capslock light. Lemme know if you guys
think this is any good.
Man right
after I wrote this post I realized that my script could be simplified
even more. I have it set up now so that I press a button it bind "mwheelup"
to the pipe jump script, and after I pj, the script AUTOMATICALLY
rebinds "mwheelup" to detpipes. Simple and easy.
bind X pjready
alias pjready "bind mwheelup pj"
alias pj "+jump; wait; wait; wait; wait; wait; detpipe;
-jump; bind mwheelup special"
Notice the last part of the pipe jump alias: it rebinds "mwheelup"
to detpipes as soon as you've pipejumped.
Demoman
Here's a little engy
anti-sol tactic that could come in useful sometimes.
bind X +dispshield
alias +dispshield "detdispenser; build 1"
alias -dispshield "build 1"
What this command does is start building a dispenser when you press the X key.
As long as you hold the X key, the dispenser continues to be built--unless you
let go before the disp is completed, in which case the disp vanishes.
The usefulness of this is that *while* the disp is being built, you have
something right in front of you. The dispenser obstructs nearly the whole front
of your body except your head. But the best part is that while the dispenser is
being built, it can't be destroyed, because it hasn't been built yet.
Ergo, when soldiers fire rockets at you, they do significantly less damage to
you than if they had fired at you WITHOUT a dispenser shielding your nuts.
So, say you're an engy running up the 2fort spiral. You see a soldier. Usually
you're dead, right? Well, try this:
Instantly start priming a grenade, then build a dispenser. The dispenser appears
in front of you immediately. The sol's rocket hits the dispenser rather than
you. The dispenser takes no damage because it hasn't been built yet. You release
the X key, the dispenser disappears and you throw the grenade at him.
Not only does this have a heck of a surprise value, but it really works. I
tested it with BlueGuy the other day. Itz not a tactic you'll use everyday but
sometimes it can be damned useful.
The same tactic doesn't work as well for SGs, because with SGs you start
building a base first, then the SG turret appears last. You're much more
vulnerible due to the inferior coverage.
Final note: I think I've finally gotten my new demoman configs down. Slick,
thanks again for those changes, they really help. In fact, their how I
discovered this whole thing in the first place. Due to some global config
changes I accidentally built a dispenser in front of three soldiers rather than
throwing an EMP. They all fired at me at point blank range and they only took me
down by half health.
P.S. Hey BlueGuy, I tried to get those red pipebombs to work, but you're right.
The latest version of TFC disallows it. I could do it in LAN mode but the server
wouldn't let me in.
Oh, well.
Reset Script:
This is a script for executing any - aliases that didn't execute before
you died. Add any - aliases you created yourself to the end of this
file.
-attack
-attack2
-showscores
-gren1
-gren2
-reload
-jump
-duck
-forward
-back
-moveup
-movedown
-moveleft
-moveright
-strafe
-left
-right
-det5
-det20
-det50
-lookdown
-lookup
-klook
Prez:
This is a small communications script for use with the civilian class (aka
prez). Save it as prez.cfg in your TFC folder. This class config will
not automatically execute like the other class configs, so to execute it
type:
exec prez.cfg
Change the "x" for the key that you want to hold to rebind
your number keys to the messages and the "y" for the key for
the help me message.
bind "x" "+prezmes"
alias +prezmes "bind 1 pm1;bind 2 pm2;bind 3 pm3;bind 4 pm4;bind 5
pm5;bind 6 pm6;bind 7 pm7;bind 8 pm8;bind 9 pm9;developer 1;echo 1=Safe?
2=Doors 3=Escort 4=Vent 5=Conc/Gren/Rocket 6=Med room"
alias -prezmes "developer 0;rbw"
alias rbw "bind 1 slot1;bind 2 slot2;bind 3 slot3;bind 4 slot4;bind
5 slot5;bind 6 slot6;bind 7 slot7;bind 8 slot8;bind 9 slot9"
alias pm1 "say_team Is it safe to come out?"
alias pm2 "say_team Open the doors, I am in position"
alias pm3 "say_team Need an escort!"
alias pm4 "say_team Can someone help me into the ventilation
shaft?"
alias pm5 "say_team Now throw a conc/grenade/rocket in for me"
alias pm6 "say_team I'm hiding in the medical room"
bind "y" "say_team Help!!! I'm under attack!!!"
Communications:
This is a communications script that works very similarly to the spy
script. Hold down "x" and a menu appears and your number keys
are bound to certain messages. Select a certain message with a number
key (again, not the number pad) and the message will be sent to your
team mates. Hold the "y" key and your number keys are bound to
messages that say Incoming ENEMY (eg. 1=Scout 2=Sniper etc) If you press
8 (Spy), press the number coressponding to the class the spy is
disguised as (while holding down "y") and you will say
Incoming ENEMY SPY disguised as ENGINEER (if you have pressed 8 then 9)
Replace the "x" and "y" keys with keys of your
choice.
NB:You may want to edit the messages in this config, especially the ones
concerning ICQ number and clan websites.
bind "x" "+comms"
alias +comms "bind 1 m11;bind 2 m12;bind 3 m13;bind 4 m14;bind 5
m15;bind 6 m16;bind 7 m17;bind 8 m18;bind 9 m19;developer 1; echo
1=Cover my return 2=Defend 3=Flag location 4=SG down 5=No prob 6=Sorry
m8 7=I'm infected 8=[MA]'s website 9=ICQ number"
alias -comms "developer 0;rbw"
alias rbw "rbw0;rbw1"
alias rbw0 "bind 1 slot1;bind 2 slot2;bind 3 slot3;bind 4
slot4;bind 5 slot5;rbw1"
alias rbw1 "bind 6 slot6;bind 7 slot7;bind 8 slot8;bind 9
slot9"
alias m11 "say_team I am about to get the flag/key. Cover my return
to base!"
alias m12 "say_team Defend the flag/key/command point!"
alias m13 "say_team Where is the flag/key?"
alias m14 "say_team Enemy sentry gun destroyed"
alias m15 "say_team No problem m8"
alias m16 "say_team Sorry m8"
alias m17 "say_team Stay away from me, I'm INFECTED"
alias m18 "say Interested in joining [MA]?;say Check out [MA]'s
website at www.mallosworld.co.uk"
alias m19 "say My ICQ number is INSERT ICQ NUMBER HERE"
bind "y" "+incoming"
alias +incoming "bind 1 m1;bind 2 m2;bind 3 m3;bind 4 m4;bind 5
m5;bind 6 m6;bind 7 m7;bind 8 m8;bind 9 m9"
alias -incoming "developer 0;rbw"
alias m1 "say_team Incoming ENEMY SCOUT"
alias m2 "say_team Incoming ENEMY SNIPER"
alias m3 "say_team Incoming ENEMY SOLDIER"
alias m4 "say_team Incoming ENEMY DEMOMAN"
alias m5 "say_team Incoming ENEMY MEDIC"
alias m6 "say_team Incoming ENEMY HW GUY"
alias m7 "say_team Incoming ENEMY PYRO"
alias m8 "bind 1 m81;bind 2 m82;bind 3 m83;bind 4 m84;bind 5
m85;bind 6 m86;bind 7 m87;bind 8 m88;bind 9 m89;bind 0 m80"
alias m81 "say_team Incoming ENEMY SPY disguised as SCOUT"
alias m82 "say_team Incoming ENEMY SPY disguised as SNIPER"
alias m83 "say_team Incoming ENEMY SPY disguised as SOLDIER"
alias m84 "say_team Incoming ENEMY SPY disguised as DEMOMAN"
alias m85 "say_team Incoming ENEMY SPY disguised as MEDIC"
alias m86 "say_team Incoming ENEMY SPY disguised as HW GUY"
alias m87 "say_team Incoming ENEMY SPY disguised as PYRO"
alias m88 "say_team Incoming ENEMY SPY disguised as SPY"
alias m89 "say_team Incoming ENEMY SPY disguised as ENGINEER"
alias m80 "say_team Incoming ENEMY SPY disguised as
UNDISGUISED"
alias m9 "say_team Incoming ENEMY ENGINEER"
Engineer:
This engineer script allows you to build a sentry by holding down
"w" and if you release it, it stops building. "x"
rotates the sentry through 180 degrees, "y" rotates it through
45 degrees and "z" detonates the sentry.
The "a" key builds a dispenser and the "b" key
detonates it.
The "c" key is a message saying your SG is under attack and
the "d" key toggles between the wrench and the super-shotgun.
Replace these keys with the ones you want to use.
alias +sgbuild "build 2"
alias -sgbuild "build 2"
bind "w" "+sgbuild"
bind "x" "rotatesentry180"
bind "y" "rotatesentry"
bind "z" "detsentry"
alias +disbuild "build 1"
alias -disbuild "build 1"
bind "a" "+disbuild"
bind "b" "detdispenser"
bind "d" "togshotg"
alias togshotg "slot3;bind d togwrench"
alias togwrench "slot1;bind d togshotg"
bind "c" "say_team My sentry gun is under attack!"
Spy
This is one of the more complex scripts I have. It is based on
Icepik-TPF-'s spy script. The "x" key is held down and then a
small menu comes up. While that key is held down, the number keys (not
the number pad) are bound to disguise as enemies. The menu tells you
which key is which class. The "y" key is exactly the same, but
you disguise as a friend, not an enemy. It looks a little suspicious, a
blue soldier coming out of red respawn
In both cases, friendly and enemy, you also tell your team what you are
disguising as.
I have also added a realistic feign button which drops a backpack and
the flag if you are holding it. This only works convincingly if you are
looking horizontally: look up and the backpack ends over on the other
side of the room, look down and your "body" will collect it!
Replace the "x" with a key of your choice to activate the
enemy disguise menu, replace the "y" with a key of your choice
to activate the friendly disguise menu and replace the "z"
with the key you wish to use for the realistic feign.
alias ld2 "cl_pitchspeed 1350;+lookdown;wait"
alias unld2 "-lookdown;wait;+lookup;wait;-lookup;cl_pitchspeed
225;"
alias rfeign "ld2;discard;dropitems;feign;unld2"
bind "z" "rfeign"
bind "x" "+ndis"
bind "y" "+fdis"
alias enemyecho "developer 1;echo Disguise as ENEMY...1=Scout
2=Sniper 3=Soldier 4=Demoman 5=Medic 6=HW Guy 7=Pyro 8=Spy
9=Engineer"
alias +ndis "bind 1 ndisg1; bind 2 ndisg2; bind 3 ndisg3; bind 4
ndisg4; bind 5 ndisg5; bind 6 ndisg6; bind 7 ndisg7; bind 8 ndisg8; bind
9 ndisg9;enemyecho"
alias -ndis "developer 0;rbw"
alias friendecho "developer 1;echo Disguise as FRIENDLY...1=Scout
2=Sniper 3=Soldier 4=Demoman 5=Medic 6=HW Guy 7=Pyro 8=Spy
9=Engineer"
alias +fdis "bind 1 fdisg1; bind 2 fdisg2; bind 3 fdisg3; bind 4
fdisg4; bind 5 fdisg5; bind 6 fdisg6; bind 7 fdisg7; bind 8 fdisg8; bind
9 fdisg9;friendecho"
alias -fdis "developer 0;rbw"
alias ndisg1 "+commandmenu 7 1 1 .; say_team Disguising to ENEMY
SCOUT"
alias ndisg2 "+commandmenu 7 1 2 .; say_team Disguising to ENEMY
SNIPER"
alias ndisg3 "+commandmenu 7 1 3 .; say_team Disguising to ENEMY
SOLDIER"
alias ndisg4 "+commandmenu 7 1 4 .; say_team Disguising to ENEMY
DEMOMAN"
alias ndisg5 "+commandmenu 7 1 5 .; say_team Disguising to ENEMY
MEDIC"
alias ndisg6 "+commandmenu 7 1 6 .; say_team Disguising to ENEMY
HWGUY"
alias ndisg7 "+commandmenu 7 1 7 .; say_team Disguising to ENEMY
PYRO"
alias ndisg8 "+commandmenu 7 1 8 .; say_team Disguising to ENEMY
SPY"
alias ndisg9 "+commandmenu 7 1 9 .; say_team Disguising to ENEMY
ENGINEER"
alias fdisg1 "+commandmenu 7 2 1 .; say_team Disguising to FRIENDLY
SCOUT"
alias fdisg2 "+commandmenu 7 2 2 .; say_team Disguising to FRIENDLY
SNIPER"
alias fdisg3 "+commandmenu 7 2 3 .; say_team Disguising to FRIENDLY
SOLDIER"
alias fdisg4 "+commandmenu 7 2 4 .; say_team Disguising to FRIENDLY
DEMOMAN"
alias fdisg5 "+commandmenu 7 2 5 .; say_team Disguising to FRIENDLY
MEDIC"
alias fdisg6 "+commandmenu 7 2 6 .; say_team Disguising to FRIENDLY
HWGUY"
alias fdisg7 "+commandmenu 7 2 7 .; say_team Disguising to FRIENDLY
PYRO"
alias fdisg8 "+commandmenu 7 2 8 .; say_team Disguising to FRIENDLY
SPY"
alias fdisg9 "+commandmenu 7 2 9 .; say_team Disguising to FRIENDLY
ENGINEER"
alias rbw "bind 1 slot1;bind 2 slot2;bind 3 slot3;bind 4 slot4;bind
5 slot5;bind 6 slot6;bind 7 slot7;bind 8 slot8;bind 9 slot9"
-------------------------------------------------------------
Spy
script 2:
This script is the same as the above script, but with a few alterations.
Instead of the script telling your team what you are disguising as every
time you disguise, it binds the "w" key to say a message
telling them your current disguise. This is a better script than the
other one because this one won't annoy your team mates so much as they
don't always need to know your current disguise
Also, whenever you attack, the "w" key will be set to friendly
spy as you always lose your disguise when attacking. Clever eh?
A big addition to this one is the addition of a speed change script. I
used to have it set up so there's a speed for each class, but it's a bit
excessive. Now I've just got a toggle key to go between the Spy's normal
speed and a slower speed (For when you want to disguise as a HW Guy or
Soldier)
The "x" key is held down and then a small menu comes up. While
that key is held down, the number keys (not the number pad) are bound to
disguise as enemies. The menu tells you which key is which class. The
"y" key is exactly the same, but you disguise as a friend, not
an enemy. It looks a little suspicious, a blue soldier coming out of red
respawn
In both cases, friendly and enemy, you bind the "w" key to
tell your team what you are disguised as.
The realistic feign from above is still in there too and is activated
with the "z" key.
Replace the "x" with a key of your choice to activate the
enemy disguise menu, replace the "y" with a key of your choice
to activate the friendly disguise menu, replace the "w" with
the key for telling your team your disguise and replace the
"z" with the key you wish to use for the realistic feign.
Replace the "MOUSE1" with your normal attack key and the
"a" with the key you want to use for the speed toggle.
bind "x" "+ndis"
bind "y" "+fdis"
bind "z" "rfeign"
bind "MOUSE1" "+attackspy"
bind "a" "sptog"
alias enemyecho "developer 1;echo Disguise as ENEMY...1=Scout
2=Sniper 3=Soldier 4=Demoman 5=Medic 6=HW Guy 7=Pyro 8=Spy 9=Engineer;developer
0"
alias +ndis "bind 1 ndisg1; bind 2 ndisg2; bind 3 ndisg3; bind 4
ndisg4; bind 5 ndisg5; bind 6 ndisg6; bind 7 ndisg7; bind 8 ndisg8; bind
9 ndisg9;enemyecho"
alias -ndis "rbw"
alias friendecho "developer 1;echo Disguise as FRIENDLY...1=Scout
2=Sniper 3=Soldier 4=Demoman 5=Medic 6=HW Guy 7=Pyro 8=Spy 9=Engineer;developer
0"
alias +fdis "bind 1 fdisg1; bind 2 fdisg2; bind 3 fdisg3; bind 4
fdisg4; bind 5 fdisg5; bind 6 fdisg6; bind 7 fdisg7; bind 8 fdisg8; bind
9 fdisg9;friendecho"
alias -fdis "rbw"
alias rbw "bind 1 slot1;bind 2 slot2;bind 3 slot3;bind 4 slot4;bind
5 slot5;bind 6 slot6;bind 7 slot7;bind 8 slot8;bind 9 slot9;bind 0
slot10"
alias ndisg1 "+commandmenu 7 1 1 .; bind w nmescout"
alias ndisg2 "+commandmenu 7 1 2 .; bind w nmesniper"
alias ndisg3 "+commandmenu 7 1 3 .; bind w nmesoldier"
alias ndisg4 "+commandmenu 7 1 4 .; bind w nmedemo"
alias ndisg5 "+commandmenu 7 1 5 .; bind w nmemedic"
alias ndisg6 "+commandmenu 7 1 6 .; bind w nmehw"
alias ndisg7 "+commandmenu 7 1 7 .; bind w nmepyro"
alias ndisg8 "+commandmenu 7 1 8 .; bind w nmespy"
alias ndisg9 "+commandmenu 7 1 9 .; bind w nmeengy"
alias fdisg1 "+commandmenu 7 2 1 .; bind w friscout"
alias fdisg2 "+commandmenu 7 2 2 .; bind w frisniper"
alias fdisg3 "+commandmenu 7 2 3 .; bind w frisoldier"
alias fdisg4 "+commandmenu 7 2 4 .; bind w fridemo"
alias fdisg5 "+commandmenu 7 2 5 .; bind w frimedic"
alias fdisg6 "+commandmenu 7 2 6 .; bind w frihw"
alias fdisg7 "+commandmenu 7 2 7 .; bind w fripyro"
alias fdisg8 "+commandmenu 7 2 8 .; bind w frispy"
alias fdisg9 "+commandmenu 7 2 9 .; bind w friengy"
alias nmescout "say_team Disguised as ENEMY SCOUT"
alias nmesniper "say_team Disguised as ENEMY SNIPER"
alias nmesoldier "say_team Disguised as ENEMY SOLDIER"
alias nmedemo "say_team Disguised as ENEMY DEMOMAN"
alias nmemedic "say_team Disguised as ENEMY MEDIC"
alias nmehw "say_team Disguised as ENEMY HWGUY"
alias nmepyro "say_team Disguised as ENEMY PYRO"
alias nmespy "say_team Disguised as ENEMY SPY"
alias nmeengy "say_team Disguised as ENEMY ENGINEER"
alias friscout "say_team Disguised as FRIENDLY SCOUT"
alias frisniper "say_team Disguised as FRIENDLY SNIPER"
alias frisoldier "say_team Disguised as FRIENDLY SOLDIER"
alias fridemo "say_team Disguised as FRIENDLY DEMOMAN"
alias frimedic "say_team Disguised as FRIENDLY MEDIC"
alias frihw "say_team Disguised as FRIENDLY HWGUY"
alias fripyro "say_team Disguised as FRIENDLY PYRO"
alias frispy "say_team Disguised as FRIENDLY SPY"
alias friengy "say_team Disguised as FRIENDLY ENGINEER"
alias ld2 "cl_pitchspeed 1350;+lookdown;wait"
alias unld2 "-lookdown;wait;+lookup;wait;-lookup;cl_pitchspeed
225"
alias rfeign "ld2;discard;dropitems;feign;unld2"
alias +attackspy "bind w frispy;+attack"
alias -attackspy "-attack"
alias sptog "sptog1"
alias sptog1 "cl_forwardspeed 400;cl_backspeed 400;cl_sidespeed
400;developer 1;echo Going NORMAL speed;developer 0;alias sptog
sptog2"
alias sptog2 "cl_forwardspeed 230;cl_backspeed 300;cl_sidespeed
300;developer 1;echo Going SLOW speed;developer 0;alias sptog
sptog1"
Medic:
This is a simple script that allows you to toggle between your medikit
and your super-shotgun by pressing a key. There are also a couple of
useful message binds in there that are self explainatory. (The last one
tells the person you last had in your crosshairs to wait if they want to
be healed.)
Replace the "x" with a key of your choice to toggle between
the medikit and the super-shotgun, replace the y, z and w keys with the
keys you want for the messages.
alias togmed "slot1;bind x togshot"
alias togshot "slot3;bind x togmed"
bind "x" "togmed"
bind "y" "say_team Call medic if you are infected,
hallucinating, on fire, concussed, have a leg injury or low
health;say_team Say medic in team chat if I am not nearby and GIVE YOUR
LOCATION"
bind "w" "say_team I am a medic. Where are you?"
bind "z" "say_team Wait %i and I will heal you!"
Demoman:
This script allows you to plant a detpack of any time length (5, 20 or
50 seconds) by having one key toggle the fuse time and the other key
plant the detpack for that amount of time. This script also allows you
to toggle between pipe bombs and grenades with one button.
Replace the "x"'s with a key of your choice to toggle the fuse
time and the "y"'s with your usual set detpack key and z's
with the key of your choice to toggle between pipes and grenades.
alias tog20 "bind y +det20;bind x tog50;speak twenty;developer
1;echo Detpack timer set to 20 seconds;developer 0"
alias tog50 "bind y +det50;bind x tog5;speak fifty;developer 1;echo
Detpack timer set to 50 seconds;developer 0"
alias tog5 "bind y +det5;bind x tog20;speak five;developer 1;echo
Detpack timer set to 5 seconds;developer 0"
bind "x" "tog20"
alias togy "slot5;bind z togb"
alias togb "slot4;bind z togy"
bind "z" "togy"
Soldier:
This script is for a rocket jump given to me by [FOoM]Fornaught,
allowing you to jump higher than usual by firing your rocket launcher at
the ground and jumping simultaneously at the touch of a button. Watch
that health though!
Replace the "x" with a key of your choice to activate the
rocket jump.
bind "x" "+rjmp"
alias ld "cl_pitchspeed 9999;+lookdown;wait"
alias unld "-lookdown;cl_pitchup 1;+lookup;wait;-lookup;cl_pitchup
89;wait;cl_pitchspeed 225"
alias +rjmp "ld;+jump;+attack;wait;-attack;-jump;unld;+duck"
alias -rjmp "-duck"
This is an auto-reload script for the soldier's rocket launcher. To turn
it on, press "y", to turn it off press "y" again.
I've also made it compatible with my weapon toggle aliases, so if you
press "y" to switch to the shotgun, it will automatically turn
the script off.
To respawn, just tap the toggle button "z" or "y"
followed by your +attack key.
Replace the "y" with the key of your choice to turn
auto-reload on or off and replace the "z" with the key you
want to use as the shotgun/rocketlaucher toggle key.
alias rel "rel1"
alias rel1 "+reload;developer 1;echo Auto reload ON;developer
0;alias rel rel2"
alias rel2 "-reload;developer 1;echo Auto reload OFF;developer
0;alias rel rel1"
bind "y" "rel"
alias sollytog "sollytog1"
alias sollytog1 "slot3;rel2;alias sollytog sollytog2"
alias sollytog2 "slot5;rel1;alias sollytog sollytog1"
bind "z" "sollytog"
Sniper:
This script allows you to switch from the sniper rifle to the auto rifle
and begin firing when you are in trouble at close range. Pressing the
button selects the auto rifle and begins firing, releasing it stops
firing and re-selects the sniper rifle.
Replace the "x" with a key of your choice to activate the
attack.
alias +sniperattack "slot3;+attack"
alias -sniperattack "-attack;slot2"
bind "x" "+sniperattack"
Grenade Click-Prime, Click-Fire:
alias newMethod1 "bind f primeTheGren1"
alias throwTheGren1 "throwgren; bind f primeTheGren1"
alias primeTheGren1 "primeone; bind f throwTheGren1"
alias newMethod2 "bind g primeTheGren2"
alias throwTheGren2 "throwgren; bind g primeTheGren2"
alias primeTheGren2 "primetwo; bind g throwTheGren2"
alias oldMethod "bind f +gren1; bind g +gren2"
alias switchToNew "newMethod1; newMethod2; bind / switchToOld"
alias switchToOld "oldMethod; bind / switchToNew"
bind / switchToOld
newMethod1
newMethod2
Press your grenade key to prime, then press again to release grenade.
Press '/' to alternate between normal method and click-prime,
click-fire.
Sniper Rifle Click-Charge, Click-Fire:
bind / "TurnOnCharge"
alias TurnOnCharge "bind MOUSE1 startCharging; bind / TurnOffCharge"
alias TurnOffCharge "bind MOUSE1 +attack; bind / TurnOnCharge"
alias startCharging "+attack; bind MOUSE1 stopCharging"
alias stopCharging "-attack; bind MOUSE1 startCharging"
TurnOffCharge
Click to charge the sniper rifle. Click again to fire. Press / to
alternate between normal and two click.
Quick Weapon Switch:
Requires wheel mouse
This script allows you to switch weapons just by moving your mouse wheel
up or down. You don't have to watch the HUD come up and then click to
select.
alias aXswitchdn "invnext;+attack;wait;-attack"
alias aXswitchup "invprev;+attack;wait;-attack"
bind "MWHEELUP" aXswitchup
bind "MWHEELDOWN" aXswitchdn
Mouse Wheel Zoom:
Requires at least a 3 button wheel mouse
Works in concert with the Quick Weapon Switch script. Press the mouse
wheel (or whatever button 3 is on your mouse) once to enter zoom mode.
Move the mouse wheel up or down to zoom in or out. Press again to return
the mouse wheel to normal operation. The script "remembers"
what zoom you were on, and will return to it next time you press the
mouse wheel.
alias aXzoom aXzoomon
alias aXzoomon "bind MWHEELDOWN aXzoomout; bind MWHEELUP aXzoomin;
alias aXzoom aXzoomoff; aXzoomin; aXzoomout"
alias aXzoomoff "fov 90; bind MWHEELUP aXswitchup; bind MWHEELDOWN
aXswitchdn; alias aXzoom aXzoomon"
alias aXzoomout fov135
alias aXzoomin fov45
alias fov180 "fov 180; alias aXzoomin fov160"
alias fov160 "fov 160; alias aXzoomin fov135; alias aXzoomout
fov180"
alias fov135 "fov 135; alias aXzoomin fov90; alias aXzoomout
fov160"
alias fov90 "fov 90; alias aXzoomin fov45; alias aXzoomout
fov135"
alias fov45 "fov 45; alias aXzoomin fov30; alias aXzoomout
fov90"
alias fov30 "fov 30; alias aXzoomin fov15; alias aXzoomout
fov45"
alias fov15 "fov 15; alias aXzoomin fov10; alias aXzoomout
fov30"
alias fov10 "fov 10; alias aXzoomout fov15"
bind "MOUSE3" "aXzoom"
Speed Impersonation:
For spies. Press SHIFT (or whatever key you change it to) to slow to
about the speed of a soldier or HWGuy. Press SHIFT again to return to
normal speed. You may want to put the bind commands in your spy.cfg.
alias aXspyslowdown "cl_forwardspeed 200; alias aXspyspeed
aXspyspeedup"
alias aXspyspeedup "cl_forwardspeed 400; alias aXspyspeed
aXspyslowdown"
alias aXspyspeed aXspyslowdown
bind "SHIFT" "aXspyspeed"
Primed gren script:
alias timersound_type2 "play timer2.wav"
alias prime1 "primeone; wait; bind f toss1; timersound_type 2"
alias toss1 "throwgren; bind f prime1"
bind f prime1
alias prime2 "primetwo; wait; bind g toss2 ; timersound_type
2"
alias toss2 "throwgren; bind g prime2"
bind g prime2
Primary and Secondary Weapons, Rocketlauncher and
Supershotgun.
alias +qw1 "slot3; bind q +qw2"
alias +qw2 "slot5; bind q +qw1"
bind q +qw1
Quick spy disguise:
bind 1 "disguise 1 3" //disguise = blue soldier
bind 2 "disguise 1 5" //disguise = blue medic
bind 3 "disguise 1 9" //disguise = blue engineer
bind 4 "disguise 2 3" //disguise = red soldier
bind 5 "disguise 2 5" //disguise = red medic
bind 6 "disguise 2 9" //disguise = red engineer
Incoming spy alert:
/META so my number keys can call class of incoming spies
bind "ALT" "+metaspyalert"
alias +metaspyalert "bind 1 scoutspy; bind 2 sniperspy; bind 3
soldierspy; bind 4 demospy; bind 5 medicspy; bind 6 hwspy; bind 7
pyrospy; bind 8 spyspy; bind 9 engspy; devOn; echo INCOMING SPY CALL;
devOff"
alias -metaspyalert slotreset
alias scoutspy "say_team SPY!! Last seen disguised as a
SCOUT."
alias sniperspy "say_team SPY!! Last seen disguised as a
SNIPER."
alias soldierspy "say_team SPY!! Last seen disguised as a
SOLDIER."
alias demospy "say_team SPY!! Last seen disguised as a DEMOMAN."
alias medicspy "say_team SPY!! Last seen disguised as a
MEDIC."
alias hwspy "say_team SPY!! Last seen disguised as a HWGUY."
alias pyrospy "say_team SPY!! Last seen disguised as a PYRO."
alias spyspy "say_team SPY!! Last seen UNDISGUISED."
alias engspy "say_team SPY!! Last seen disguised as an
ENGINEER."
Turn back on weapon selection
alias slotreset "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4
slot4; bind 5 slot5; bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9
slot9; bind 0 slot10; devOn; echo NUMBER KEYS RESET; devOff"
Spy disguise:
alias une "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4;
bind 5 slot5; uned2"
alias uned2 "bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9
slot9"
alias e1 "disguise_enemy 1; say_team Disguising as enemy SCOUT; une"
alias e2 "disguise_enemy 2; say_team Disguising as enemy SNIPER;
une"
alias e3 "disguise_enemy 3; say_team Disguising as enemy SOLDIER;
une"
alias e4 "disguise_enemy 4; say_team Disguising as enemy DEMOMAN;
une"
alias e5 "disguise_enemy 5; say_team Disguising as enemy MEDIC; une"
alias e6 "disguise_enemy 6; say_team Disguising as enemy HWGUY; ue"
alias e7 "disguise_enemy 7; say_team Disguising as enemy PYRO; une"
alias e8 "disguise_enemy 8; say_team Disguising as enemy SPY; une"
alias e9 "disguise_enemy 9; say_team Disguising as enemy ENGINEER;
une"
alias e "bind 1 e1; bind 2 e2; bind 3 e3;bind 4 e4; bind 5 e5;
ed2"
alias ed2 "bind 6 e6; bind 7 e7; bind 8 e8; bind 9 e9"
bind "[" "e"
alias unf "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4;
bind 5 slot5; unfd2"
alias unfd2 "bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9
slot9"
alias f1 "disguise_friendly 1; say_team Disguising as friendly
SCOUT; unf"
alias f2 "disguise_friendly 2; say_team Disguising as friendly
SNIPER; unf"
alias f3 "disguise_friendly 3; say_team Disguising as friendly
SOLDIER; unf"
alias f4 "disguise_friendly 4; say_team Disguising as friendly
DEMOMAN; unf"
alias f5 "disguise_friendly 5; say_team Disguising as friendly
MEDIC; unf"
alias f6 "disguise_friendly 6; say_team Disguising as friendly
HWGUY; uf"
alias f7 "disguise_friendly 7; say_team Disguising as friendly PYRO;
unf"
alias f8 "disguise_friendly 8; say_team Disguising as friendly SPY;
unf"
alias f9 "disguise_friendly 9; say_team Disguising as friendly
ENGINEER; unf"
alias f "bind 1 f1; bind 2 f2; bind 3 f3;bind 4 f4; bind 5 f5;
fd2"
alias fd2 "bind 6 f6; bind 7 f7; bind 8 f8; bind 9 f9"
bind "]" "f"
Weapons off:
alias wep_on "r_drawviewmodel 1; wait2; alias wepview1 wep_off"
alias wep_off "r_drawviewmodel 0; wait2; alias wepview1 wep_on"
alias wepview1 wep_on
Multiple binds per key:
bind "MOUSE5" "+gren1;say_team MOVE YOU
ASS"
Low rocket jump:
alias w20 "wait; wait; wait; wait; wait; wait; wait; wait; wait;
wait; wait;
wait; wait"
alias +jumpzor "+jump; wait; +duck; -jump; w20; +icanjumplikeamofo;
-duck"
alias +icanjumplikeamofo "cl_pitchspeed 10000; cl_pitchdown 115;
+jump;
+duck; +lookdown; +attack; wait;
force_centerview; -attack; -jump; -lookdown; cl_pitchspeed 150;
cl_pitchdown
89"
alias -icanjumplikeamofo "-duck"
bind "x" "+jumpzor"
Spy disguise:
alias enemysoldier "disguise 1 3;say_team i'm disguising as an
enemy
soldier"
bind kp_pgdn enemysoldier
i recommend the keypad keys (on the right of your keyboard, under the
numlock) for your disguises. those keys are:
1 kp_end
2 kp_downarrow
3 kp_pgdn
4 kp_leftarrow
5 kp_5
6 kp_rightarrow
7 kp_home
8 kp_uparrow
9 kp_pgup
and so on....
SOLDIER
ROCKET JUMPS
------------------------------------
Random sources-
---------------------------------
Double
alias w1 "wait"
alias w2 "w1;w1"
alias +rjmkII "cl_pitchdown 89; cl_pitchspeed 9999; +lookdown; w2; +jump; +attack; w2; cl_pitchdown 68"
alias -rjmkII "-attack; -jump; cl_pitchspeed 150; -lookdown; force_centerview; cl_pitchdown 89"
--------------------------------------
Single
alias w1 "wait"
alias w2 "w1;w1"
alias rjmkI "cl_pitchspeed 10000; +lookdown; wait; +jump; w2; +attack; wait; -attack; -jump; -lookdown; cl_pitchspeed 150; force_centerview"
bind "x" "rjmkI"
-----------------------------------------
Rocket Jump Variations
Choose your jump type depending on the situation.
// Standard Rocket Jump: You can use 3 Standard jumps without dying
alias +RocketJump "cl_pitchspeed 10000; +lookdown; wait; +jump; +attack; +duck; wait; -attack; -jump; -lookdown; cl_pitchspeed 150; force_centerview"
alias -RocketJump "-duck"
// Long rocket jump: Takes a smaller amount of armor and health,
// press it when your on the run to escape enamys or to reach your
// destination faster. You can use 6 long jumps without dying
alias +LongRocketJump "cl_pitchspeed 10000; cl_pitchdown 115; +jump; +duck; +lookdown; +attack; wait; force_centerview; -attack; -jump; -lookdown; cl_pitchspeed 150; cl_pitchdown 89"
alias -LongRocketJump "-duck"
// High rocket junp: You should use this while running and when fairly
// close to your target. You can use 3 high jumps without dying.
alias +HighRocketJump "cl_pitchspeed 10000; cl_pitchdown 75; +lookdown; wait; +jump; +attack; +duck; wait; -attack; -jump; -lookdown; cl_pitchspeed 150; cl_pitchdown 89; force_centerview"
alias -HighRocketJump "-duck"
bind "x" "+RocketJump"
bind "y" "+LongRocketJump"
bind "z" "+HighRocketJump"
// Double Jump
alias +hijump "+jump;wait;wait;wait;+duck;-jump"
alias -hijump "-duck"
alias +drj "cl_pitchdown 89; cl_pitchspeed 9999; +lookdown; wait; wait; +hijump; +attack; wait; wait; cl_pitchdown 68"
alias -drj "-attack; -hijump; cl_pitchspeed 150; -lookdown; force_centerview; cl_pitchdown 89"
unbind "alt"
bind "alt" "rj4"
alias rj4 "unbind alt; wait; bind alt +drj; wait; devon; echo Double Rocket Jump; devoff"
alias rjump "dv1; echo NWTFC: Rocket/Pipe Jumping.; dv0; +jump; +attack; detpipe; w; -attack; -jump"
alias +rj "cl_pitchspeed 9999; +lookdown; w; rjump; -lookdown; force_centerview; w; cl_pitchspeed 150; +duck"
alias -rj "-duck"
alias +HighRocketJump "cl_pitchspeed 10000; cl_pitchdown 75; +lookdown; wait; +jump; +attack; +duck; wait; -attack; -jump; -lookdown; cl_pitchspeed 150; cl_pitchdown 89; force_centerview"
alias -HighRocketJump "-duck"
bind <key> "+highrocketjump"