23.11.09

Prop-Hunt Script

Prop-Hunt is a gamemode in TF2 that has some kind of "hide and seek" gameplay. RED team are disguised as "props" (common objects in TF2 maps, like trees, tables, barrels,  and so much more) while BLU team are a group of pyros and heavies trying to find and eliminate them. To find a Prop-Hunt server use this page.


Anyone who played this mode knows that when you're on RED, you can freeze yourself by holding mouse2 (right-click). Unfortunately, as a RED player you will find yourself freezing most of the time. Here comes my simple scripts- right-click once to freeze, right-click again to unfreeze.


Put the following in the autoexec.cfg file:


//Prop Freeze
alias propi "propon";
alias propon "+attack2;  alias propi propoff;"
alias propoff "-attack2;  alias propi propon;"
bind mouse2 +attack2


alias propih "prophon";
alias prophon "say_team Prop bind is ON; bind mouse2 propi; alias propih prophoff"
alias prophoff "say_team Prop bind is OFF; bind mouse2 +attack2; alias propih prophon; propoff;"
bind "'" "propih";


In the last line, change the bind to a free key anywhere on your keyboard. When you join a Prop-Hunt server, hit it to turn on the mouse2 toggle. When you want to disable it, hit that key again.
When "prop bind is on", you can use mouse2 to toggle between freezing and unfreezing.