Pyro scripts

From TF2 Wiki

Share/Save/Bookmark
Jump to: navigation, search
Community script navigation
General scripts
Weapon scripts
General class scripts
Collection scripts
Class scripts
Scout scripts
Soldier scripts
Pyro scripts
Engineer scripts
Heavy scripts
Demoman scripts
Medic scripts
Sniper scripts
Spy scripts


Contents

Easier swapping and Fast Secondary Fire

By Multioakers
Scrolling the mouse wheel up will cause you to pull out your secondary weapon, keep scrolling and you will shoot
Scrolling the mouse wheel down will result in you pulling out your melee.
when not using the primary weapon and pressing the right click will bring up your primary weapon.

//Compression blast then swap to flare or reserve shooter
alias "+SWAP" "slot2; wait 10; +attack; wait 10; -attack"
alias "-SWAP" "-attack"
bind "mwheelup" "+SWAP"
//Switches to axe and swings
alias "+axe" "slot3; +attack"
alias "-axe" "-attack"
bind "mwheeldown" "+axe"

//Switch to flamethrower
alias +fire "slot1; +attack2"
alias -fire "slot1; -attack2"
bind mouse2 "+fire"

Quick Axtinguishing

Here´s what it does:

Q = changes between the flamethrower and the shotgun/flaregun
mousewheelup/down = same as q
mouse2 = switch to the Axe and start fireing until release then change back to the last weapon
mouse4 = +attack2 (airblast)
mouse5 = +attack2 (airblast) ________________________________________________________________________________________________

To change any of the keybinds write your own keys in the "//Keybinds" area. ________________________________________________________________________________________________

If you wish to make changes to my scripts or use any of them in another code or something please let me know (and credit me of course :P). Posted by Searz

Put this in pyro.cfg

//Quick axtinguishing by Searz
alias +axe "slot3; +attack"
alias -axe "-attack; LW"

alias w1 "slot1; alias QW w2; alias LW w1"
alias w2 "slot2; alias QW w1; alias LW w2"
w1

//Keybinds
bind mouse2 "+axe"
bind mouse4 "+attack2"
bind mouse5 "+attack2"
bind mwheelup "QW"
bind mwheeldown "QW"
bind 1 "w1"
bind 2 "w2"
bind q "QW"

To change the other classes´ binds back to normal, add this to their respective cfgs

//Re-bind
bind mouse2 "+attack2"
unbind mouse4
unbind mouse5
bind mwheeldown "invnext"
bind mwheelup "invprev"
bind 1 "slot1"
bind 2 "slot2"
bind q "lastinv"

Auto-Flamer Weapon Switch/Flambe`

This is a modification of the Auto Spin Script for the Heavy to allow you the use of the Mouse3 button to switch to your Flame thrower and keep a constant torch. With another click, the script stops. Switching weapons will cause continual firing.
Posted by Shifty54
alias +toggleburn "+flame"
alias -toggleburn "-flame"
alias toggle "stop"
alias start "alias toggle stop; alias -toggleburn -flame"
alias stop "alias toggle start; alias -toggleburn -stop1"
alias +flame "use tf_weapon_flamethrower"
alias -flame "+attack;toggle"
alias -stop1 "-attack;toggle"
bind "MOUSE3" "+toggleburn"


Quickax By CupOfTea - - - (µÞ{}fT¡34¡™

  • This script attacks for a very short period with the flame thrower, and then switches to melee and starts attacking. When you stop holding the button you will go back to primary. Very usefull when you have the axtinguisher equiped. You will set an enemy on fire and then ax him.
  • P.S. This script is designed for fast weapon switch ON!
  • Posted by CupOfTea
//Quickax By CupOfTea
alias "+quickax" "+attack; wait 5; -attack; wait; slot3; wait; +attack; developer 1; echo Quickaxing..."
alias "-quickax" "-attack; wait; slot1; wait; +attack; wait; -attack; developer 0"
bind "mouse3" "+quickax"
  • Use this if you have fast weapon switch OFF.
  • You can do this in any script designed for fast weapon switch ON. just add hud_fastswitch 1 at the beginning off the alias, and hud_fastswitch 0 add the end of it.
alias "+quickax" "hud_fastswitch 1;+attack; wait 5; -attack; wait; slot3; wait; +attack; developer 1; echo Quickaxing..."
alias "-quickax" "-attack; wait; slot1; wait; +attack; wait; -attack; developer 0; hud_fastswitch 0"
bind "mouse3" "+quickax"

Quickchop

This script whips out the axe for a quick chop then switches to previous weapon.
Best used when behind an unsuspecting enemy to whack off a chunk of health then finish off with flamethrower. Often they don't notice the initial chop. The downside is, if they start running away from you and they are a fast class like Sniper or demo, you probably won't get a chance to flame them... unless you keep running forward after the chop. Then again, sometimes the chop is all you need.
Note -- you need to wait until the axe chop animation is done before attacking again, or it won't work. The timing isn't that hard though, still, for more automation check out my next script...
Posted by Eddycurrents 10:21, 30 December 2007 (CST)
//Quickchop -- by Eddy Currents (eddy_currents@yahoo.com)
//Tap key for quick chop with axe, then switches to previous weapon
//Start quickchop a few steps from target
//Wait until animation for axe is done before next attack
//Note: the "wait 12" is delay for weapon switch animation,
//and the "wait 120" is delay for axe attack animation:
//Try shortening if you want, but too short and nothing works
alias +quickchop "use tf_weapon_fireaxe; wait 12; +attack"
alias -quickchop "wait 120; -attack; lastinv"
bind "w" "+quickchop"


Pyrostab

A natural evolution of the Quickchop. This script whips out the axe for a quick chop then switches to previous weapon, then starts auto-attacking with it. A second tap of the bound key toggles the attack off.
Use when behind an enemy to whack off a chunk of health then finish off with flamethrower. Often they don't notice the initial chop. The downside is, if they start running away from you and they are a fast class like Sniper or demo, you probably won't get a chance to flame them... unless you keep running forward after the chop. Then again, sometimes the chop is all you need.
Posted by Eddycurrents 10:21, 30 December 2007 (CST)
//Pyrostab -- by Eddy Currents (eddy_currents@yahoo.com)
//Tap key for quick chop with axe, switch to previous weapon (preferably flamer), then roast 'em
//Tap key again to stop attack
//Start pyrostab a few steps from target
//Note: the "wait 12" is delay for weapon switch animation,
//and the "wait 120" is delay for axe attack animation:
//Try shortening if you want, but too short and nothing works
alias +pyrostabtoggleon "+quickchop"
alias -pyrostabtoggleon "-quickchop; alias +pyrostabtoggle +pyrostabtoggleoff; alias -pyrostabtoggle -pyrostabtoggleoff"
alias +pyrostabtoggleoff "-attack"
alias -pyrostabtoggleoff "alias +pyrostabtoggle +pyrostabtoggleon; alias -pyrostabtoggle -pyrostabtoggleon"
alias +pyrostabtoggle "+pyrostabtoggleon"
alias -pyrostabtoggle "-pyrostabtoggleon"
alias +quickchop "use tf_weapon_fireaxe; wait 12; +attack"
alias -quickchop "wait 120; -attack; lastinv; wait 12; +attack"
bind "w" "+pyrostabtoggle"


Pyro Panic Button

From http://www.fpsbanana.com/scripting/2978. "This script is very funny and works great in combat. While you press and hold the panic button, you will spin around

extremely fast and attack with your flamethrower. This will quickly and easily ignite all enemies around you. It's perfect if you get completely surrounded by several enemies from multiple directions. This will increase your chances of getting those valuble kill points from enemies burning to death after you are killed, and it's pretty entertaining too. I highly recommend it for anyone who loves using the Pyro.

Installation: View this tutorial http://www.fpsbanana.com/tuts/4646

Note: For those of you who know about scripting, feel free to edit the code and customize it for your panic button key preference (Or PM me and I'll do it for you). The script works for other classes too, so don't be afraid to try it with the Heavy's machine gun ;)

Thanks for choosing my script, feedback is appreciated. If you liked this script, check out my other ones too. Enjoy!"

Posted by NiteCyper
//Pyro Panic Button v1.0
//Code:

alias "battlecry" "voicemenu 2 1";
alias "+panic" "battlecry; cl_yawspeed 3000; +right; +attack";
alias "-panic" "-attack; -right; cl_yawspeed 210";
bind "mouse4" "+panic";

//End of code

Pyro Panic Button Alternate Controls

Hi guys, I editted NiteCyper's Pyro Panic (All Credit to him) so it's a bit more convenient.

Pressing Mouse 1 will attack and REBIND SHIFT to make you spin when you press shift Releasing Mouse 1 will make you stop attacking and REBIND SHIFT to +duck (I use shift for DUCK, edit accordingly) Pressing SHIFT WITHOUT MOUSE1 will make you duck or whatever your control for it is. (Basically normal)

Credits to NiteCyper and my friend Nori for helping me out. (First time scripting)

P.S. Do not release MOUSE1 without releasing SHIFT, it will make you continue spinning. To stop the spin pressing MOUSE1 again then release shift(I think, or just mash MOUSE1 and shift or whatever). If you are an experienced scripter and you know how to stop this, please feel free to edit this. Just please leave a phrase or something saying you edited it.

//Pyro Panic Button Alternate Controls
//Code:

alias "battlecry" "voicemenu 2 1;
alias +panic	 "battlecry; cl_yawspeed 3000; +right";
alias -panic 	 "-right; cl_yawspeed 210";

alias +pyro_panic 	"+attack; bind SHIFT +panic";
alias -pyro_panic 	"-attack; bind SHIFT +duck";

bind "MOUSE1" 		"+pyro_panic"

//Done Executing

//End of code

Pyro Panic Reduex

Used the above and the competitive TF2 configs to whip up togglers and connection to HLSS. Thanks to the above for posting this so my friend could see it to give me inspiration! I can (and did) edit this to work with the competitive tf2 scripts (http://code.google.com/p/tf2compconfiguration/) so if you want that let me know. I included some sound files in the .rar for your Spy checking experience. Copy the code below into your autoexec.cfg file. Questions? Ask!

// -----------
//Pyro Panic
//  -- Pyro's last moments (and finest)
// ===========

//---------------------
//pt1 SOUND
// -- This works with hlss to play music while panicing
// if you dont know what this is, tough
//=====================
alias +panic_sound ""
alias -panic_sound ""

//toggle
alias toggle_panic_sound_on "panic_sound_on; alias panic_sound_activator panic_sound_activator_on; alias toggle_panic_sound toggle_panic_sound_off; echo Panic Sound ON"
alias toggle_panic_sound_off "hlss-STOP; panic_sound_off; alias panic_sound_activator panic_sound_activator_off; alias toggle_panic_sound toggle_panic_sound_on; echo Panic Sound OFF"

// storage of selection for toggle
alias panic_sound_activator_on panic_sound_on
alias panic_sound_activator_off panic_sound_off

alias panic_sound
alias panic_sound_on "alias +panic_sound hlss-START; alias -panic_sound hlss-STOP";
alias panic_sound_off "alias +panicsound ""; alias -panic_sound """;
//----------
//pt2 PANIC
// -- SPY ROUND HERE
//==========
alias "battlecry" "voicemenu 2 1";
alias "+panic" "+panic_sound; battlecry; cl_yawspeed 3000;  +right; +class_attack";
alias "-panic" "-panic_sound; -class_attack; -right; cl_yawspeed 210";

//toggle
alias toggle_panic_on "panic_on; alias panic_activator panic_activator_on; alias toggle_panic toggle_panic_off; echo Panic ON"
alias toggle_panic_off "panic_off; alias panic_activator panic_activator_off; alias toggle_panic toggle_panic_on; echo Panic OFF"

// storage of selection for toggle
alias panic_activator_on panic_on
alias panic_activator_off panic_off

alias panic
alias panic_on "alias +panic_key "+panic"; alias -panic_key "-panic""
alias panic_off "alias +panic_key ""; alias -panic_key """

//----------
//pt3 BINDS
// --change the keys here :D
//==========

bind [ "toggle_panic"
bind ] "toggle_panic_sound"
bind f "+panic_key"

//pt4 DEFAULTS
toggle_panic_off
toggle_panic_sound_off

RAR with .cfg and .wav's for HLSS (http://filebeam.com/fabf952d447c2f68c51d51119d98d865) Vote Tron Paul 2012

Posted by Tron Paul

Total Weapon Interface Redesign

This is a total redesign of the weapons interface.
Features:
1: Mouse2 pulls flamethrower and then re-binds to fire it
2: Mouse1 pulls shotty if on flamethrower and re-binds to fire it
3: 'Q' Swaps the current Mouse1 weapon between shotty and axe
  • Note: Mouse1 will still swap to shotty from flamethrower, however 'Q' swaps to axe from flamethrower.
This script could use some more management modifications as it's still not as clean as I would like it to be and I think some of it could be scripted a little cleaner/better. However the interface itself works and I am of the impression that this is the single most efficient way to play the Pyro class. It saves both time and effort when playing and is a very natural weapons interface.
  • Note: I also am making use of an outside .cfg to clear key input it is defined below
// clear.cfg
// for remapping binds and cleaning things up
// you can exec autoexec as well but I like to keep things simple
bind "MOUSE5" ""
bind "MOUSE3" ""
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "q" "lastinv"
// Pyro.cfg remap -> Provided by Mordentral / M72 The LAW-BOOM BOOM

// Remap defaults
exec clear.cfg

// This is the alias to swap to slot 1 and remap the attack key
alias +swap1 "slot1; +attack; alias +m1bind +swap2; alias -m1bind -swap2; alias +m2bind +attack; alias -m2bind -attack"
alias -swap1 "-attack"

// This swaps and remaps mouse2 for the flamethrower
alias "+m2bind" "+swap1"
alias "-m2bind" "-swap1"
bind "MOUSE2" "+m2bind"

// This is the alias to swap to slot2 and remap the attack key
// Note, this also used to contain an auto reload script, thus the attkreload name
alias +swap2 "slot2; +attack; alias +sht1 +swap3; alias -sht1 -swap3; alias +m1bind +normaatkkreload; alias -m1bind -normaatkkreload; alias +m2bind +swap1; alias -m2bind -swap1"
alias -swap2 "-attack"
alias +normaatkkreload "+attack"
alias -normaatkkreload "-attack"

// This handles swapping the weapons for mouse1
alias "+m1bind" "+swap2"
alias "-m1bind" "-swap2"
bind "MOUSE1" "+m1bind"

// This handles the melee rebinding
alias +swap3 "slot3; +attack; alias +m1bind +attack; alias -m1bind -attack; alias +sht1 +swap2; alias -sht1 -swap2; alias +m2bind +swap1; alias -m2bind -swap1"
alias -swap3 "-attack"

// For 'Q's use
alias "+sht1" "+swap3"
alias "-sht1" "-swap3"

bind "q" "+sht1;"
Posted by mordentral

Total Weapon Interface Redesign v2

A re-coded and cleaner version of the above script, slightly different function, as I didn't like how the above works. Credits for original concept go to Mordentral
Features:
Mouse 1 swaps to flamethrower and fires it.
Mouse 2 swaps to flaregun/shotgun or melee and fires it.
"q" swaps Mouse 2 between switching to slot2, and switching to slot3.
Mouse 5 is airblast, whichever wep you are using, and then swaps back to last weapon when released. If last weapon was flamethrower, it sticks with that. Hold to keep airblasting, release to stop and switch back
  • Note: you need to hold down this bind for a second or so, for the airblast to fire.
Mouse 4 is melee, whichever wep you are using, and then swaps back to last weapon when released. If last weapon was melee, it sticks with melee. Hold to keep swinging, release to stop and switch back

A clear is necessary, just like the above, if you are using this in pyro.cfg only

// clear.cfg
// resets the binds to default
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "MOUSE3" ""
bind "MOUSE4" ""
bind "MOUSE5" ""
bind "q" "lastinv"
// Pyro.cfg remap by CyberWalrus, based on the functionality of Mordentral's script. Credits for original concept go to him/her

//clear
exec clear.cfg

// This is the alias to swap to slot 1 and attack
alias +swap1 "slot1; +attack; alias "lastwep" "+swap1""
alias -swap1 "-attack"

// This is the alias to swap to slot 2 and attack
alias +swap2 "slot2; +attack; alias "lastwep" "+swap23"
alias -swap2 "-attack"

// This is the alias to swap to slot 3 and attack
alias +swap3 "slot3; +attack; alias "lastwep" "+swap23"
alias -swap3 "-attack"

// aliases for wep2/wep3 mapped to mouse 2 toggle
// 1st alias is the one that will change, based on the status of the toggle. will be +swap2, or +swap3
alias "+swap23" "+swap2"
alias "-swap23" "-swap2"

// these 3 aliases provide toggle functionality, changing the function of the above alias
alias "togglewep" "set3"
alias "set3" "alias "+swap23" "+swap3"; alias "-swap23" "-swap3"; alias "togglewep" "set2"" 
alias "set2" "alias "+swap23" "+swap2"; alias "-swap23" "-swap2"; alias "togglewep" "set3"" 

//alias for airblast
alias "+airblast" "slot1; +attack2"
alias "-airblast" "-attack2; lastwep; -attack"

//alias for quick melee
alias "+qmelee" "slot3; +attack"
alias "-qmelee" "-attack; lastwep; -attack"

//binds
bind "q" "togglewep"
bind "MOUSE2" "+swap23"
bind "MOUSE1" "+swap1"
bind "MOUSE5" "+airblast"
bind "MOUSE4" "+qmelee"
  • Note: If your mouse is stupid, and its mouse4/5 buttons don't support hold click (I'm looking at you, logitech) then if you can, in your mouse's settings,

set the buttons to a keypress, "[" and "]" work well for this. then just change the bindings.

This is, in my opinion, the best way to play pyro, capable of airblast and melee at any time, without interrupting your "style"

Posted by CyberWalrus

Wait-independent Quick-Axtinguish

Fires a quick puff of flame and switches to Axtinguisher, pressing the key again switches back to FT.

alias melee1 "slot1;+attack"
alias melee2 "slot3;+attack; alias -meleekill melee3"
alias melee3 "-attack;slot1; alias -meleekill melee2"
alias "+meleekill" "melee1"
alias "-meleekill" "melee2"
bind "SHIFT" "+meleekill"

Weapon Switching Script

This simple script allows for quick and easy weapon switching, which in my opinion is an essential for the pyro (especially if using the degreaser).

Holding mouse 4 pulls out the secondary weapon, and switches back to primary on release.
Holding mouse 5 pulls out the melee weapon, and switches back to primary on release.

(Mouse buttons 4 and 5 are the side buttons on most 5 button-mice) This makes it easy to pop off a quick flare or shotgun shot, then switch back to the flamethrower. I found it especially useful as I started using viewmodel_fov 0, as it helps keep track of which weapon is out.

//Secondary weapon
alias +secondary "slot2"
alias -secondary "slot1"

//Melee weapon
alias +melee "slot3"
alias -melee "slot1"

//Binds
bind "mouse4" "+secondary"
bind "mouse5" "+melee"

If you are using this exclusively in your pyro config, add these lines to your other class configs.

bind "mouse4" ""
bind "mouse5" ""

This is my (abridged) version of the script with viewmodel_fov 0 for the primary and secondary weapon, and viewmodel_fov 85 for the melee weapon. In case you didn't know, setting your viewmodel field of view to 0 removes the flames and compression blast visual effects, as well as the viewmodels for all weapons. Again, if using the script only in pyro.cfg, you'll want to add viewmodel_fov xx to your other class configs, "xx" being your desired viewmodel field of view.

//On execution
viewmodel_fov 0

//Secondary weapon
alias +secondary "slot2;viewmodel_fov 0"
alias -secondary "slot1;viewmodel_fov 0"

//Melee weapon
alias +melee "slot3;viewmodel_fov 85"
alias -melee "slot1;viewmodel_fov 0"

//Binds
bind "mouse4" "+secondary"
bind "mouse5" "+melee"


Personal tools