Monday, May 19, 2008

Fortress Forever:: SPY

The file can be downloaded here:
file://www.impulsetfc.com/pc7/ff/spy.cfg

Features:
-Voice confirmation for actions.
-Disguise Cycler (default mousewheel, mouse3 to execute disguise)
-Numpad quick disguises
-WILL WORK WITH 3+ team maps
--Use arrow keys on keyboard to change which team color.

Heres the code if you wish to just take certain parts from it.
:
echo SPY CFG LOADED
resetbinds
resetnumpad
//####################################################################
//General Setup
"speak vox/tfc/will.you.hide"
alias cloakseq "discard;dropitems;cloak"
//class cycler
bind mouse3 "cloakseq"
bind x "cycleleft"
bind v "cycleright"
bind c "enemychsound"
bind ctrl "+togglekey"
//toggle for one key to either give youenemy disguise or when toggle key is pressed gives you team
alias +togglekey "bind c teamchsound"
alias -togglekey "bind c enemychsound"
//changes team spy select from teh arrow keys and wll announce which one with voice
bind uparrow "bluelist;speak vox/tfc/blue.team.activated"
bind leftarrow "redlist;speak vox/tfc/red.team.activated"
bind downarrow "yellowlist;speak vox/tfc/yellow.team.activated"
bind rightarrow "greenlist;speak vox/tfc/green.team.activated"
bind "KP_END" "escout;speak vox/female/one"
bind "KP_DOWNARROW" "esniper;speak vox/female/two"
bind "KP_PGDN" "esoldier;speak vox/female/three"
bind "KP_LEFTARROW" "edemoman;speak vox/female/four"
bind "KP_5" "emedic;speak vox/female/five"
bind "KP_RIGHTARROW" "ehwguy;speak vox/female/six"
bind "KP_HOME" "epyro;speak vox/female/seven"
bind "KP_UPARROW" "espy;speak vox/female/eight"
bind "KP_PGUP" "eengi;speak vox/female/nine"
//#####################################################################
//goal to achieve with the next lines of code is to have two keys,
//which ive selected, to cycle through the list of classes to change into
//then have key that can be toggled to either execute it to be friendly
//or enemy. first im defining teh variables for each class
alias escout "disguise enemy scout"
alias esniper "disguise enemy sniper"
alias esoldier "disguise enemy soldier"
alias edemoman "disguise enemy demoman"
alias emedic "disguise enemy medic"
alias ehwguy "disguise enemy hwguy"
alias epyro "disguise enemy pyro"
alias espy "disguise enemy spy"
alias eengi "disguise enemy engineer"
alias tscout "disguise friendly scout"
alias tsniper "disguise friendly sniper"
alias tsoldier "disguise friendly soldier"
alias tdemoman "disguise friendly demoman"
alias tmedic "disguise friendly medic"
alias thwguy "disguise friendly hwguy"
alias tpyro "disguise friendly pyro"
alias tspy "disguise friendly spy"
alias tengi "disguise friendly engineer"
//now to create the function to cycle adn announce which one you are on and make sound for executing
//the desguise
alias enemychsound "eclassch;speak vox/tfc/armed"
alias teamchsound "tclassch;speak vox/tfc/activated"
alias eclassch escout
alias tclassch tscout
alias cycleleft bcycle9
alias cycleright fcycle2
alias bcycle1 "alias eclassch escout;alias tclassch tscout; alias cycleleft bcycle9; alias cycleright fcycle2;speak vox/female/one"
alias bcycle2 "alias eclassch esniper;alias tclassch tsniper;alias cycleleft bcycle1; alias cycleright fcycle3;speak vox/female/two"
alias bcycle3 "alias eclassch esoldier;alias tclassch tsoldier; alias cycleleft bcycle2;alias cycleright fcycle4;speak vox/female/three"
alias bcycle4 "alias eclassch edemoman;alias tclassch tdemoman; alias cycleleft bcycle3;alias cycleright fcycle5;speak vox/female/four"
alias bcycle5 "alias eclassch emedic;alias tclassch tmedic;alias cycleleft bcycle4;alias cycleright fcycle6;speak vox/female/five"
alias bcycle6 "alias eclassch ehwguy;alias tclassch thwguy;alias cycleleft bcycle5;alias cycleright fcycle7;speak vox/female/six"
alias bcycle7 "alias eclassch epyro;alias tclassch tpyro;alias cycleleft bcycle6;alias cycleright fcycle8;speak vox/female/seven"
alias bcycle8 "alias eclassch espy;alias tclassch tspy;alias cycleleft bcycle7;alias cycleright fcycle9;speak vox/female/eight"
alias bcycle9 "alias eclassch eengi;alias tclassch tengi;alias cycleleft bcycle8;alias cycleright fcycle1;speak vox/female/nine"
alias fcycle1 "alias eclassch escout;alias tclassch tscout; alias cycleleft bcycle9; alias cycleright fcycle2;speak vox/female/one"
alias fcycle2 "alias eclassch esniper;alias tclassch tsniper;alias cycleleft bcycle1; alias cycleright fcycle3;speak vox/female/two"
alias fcycle3 "alias eclassch esoldier;alias tclassch tsoldier; alias cycleleft bcycle2;alias cycleright fcycle4;speak vox/female/three"
alias fcycle4 "alias eclassch edemoman;alias tclassch tdemoman; alias cycleleft bcycle3;alias cycleright fcycle5;speak vox/female/four"
alias fcycle5 "alias eclassch emedic;alias tclassch tmedic;alias cycleleft bcycle4;alias cycleright fcycle6;speak vox/female/five"
alias fcycle6 "alias eclassch ehwguy;alias tclassch thwguy;alias cycleleft bcycle5;alias cycleright fcycle7;speak vox/female/six"
alias fcycle7 "alias eclassch epyro;alias tclassch tpyro;alias cycleleft bcycle6;alias cycleright fcycle8;speak vox/female/seven"
alias fcycle8 "alias eclassch espy;alias tclassch tspy;alias cycleleft bcycle7;alias cycleright fcycle9;speak vox/female/eight"
alias fcycle9 "alias eclassch eengi;alias tclassch tengi;alias cycleleft bcycle8;alias cycleright fcycle1;speak vox/female/nine"
//This part is for the maps that have more than two teams on the map.
//Because the normal setup doesnt work, i have to come up with some new variables
//but basicly to switch the numpad to what team color you are wanting by pressing an
//arrow key:
//uparrow = team 1 (blue)
//leftarrow = team 2 (red)
//downarrow = team 3 (yellow)
//rightarrow = team 4 (green)
//without pressing one of these arrow keys BEFORE pressing a key on the numpad,
//because it will come up withteh spy menu waiting for another selection of class for
//the desguise. but this DOES work.
//goal to be able to change any of the four teams on a map
//that is setup for four team classes.. btw i couldnt use the ones lsited above
// becasue there is extra numbers featured here. wouldnt line up with the first ones..
alias 1scout "disguise blue scout; speak vox/female/one"
alias 1sniper "disguise blue sniper; speak vox/female/two"
alias 1soldier "disguise blue soldier; speak vox/female/three"
alias 1demoman "disguise blue demoman; speak vox/female/four"
alias 1medic "disguise blue medic; speak vox/female/five"
alias 1hwguy "disguise blue hwguy; speak vox/female/six"
alias 1pyro "disguise blue pyro; speak vox/female/seven"
alias 1spy "disguise blue spy; speak vox/female/eight"
alias 1engi "disguise blue engineer; speak vox/female/nine"
alias 2scout "disguise red scout; speak vox/female/one"
alias 2sniper "disguise red sniper; speak vox/female/two"
alias 2soldier "disguise red soldier; speak vox/female/three"
alias 2demoman "disguise red demoman; speak vox/female/four"
alias 2medic "disguise red medic; speak vox/female/five"
alias 2hwguy "disguise red hwguy; speak vox/female/six"
alias 2pyro "disguise red pyro; speak vox/female/seven"
alias 2spy "disguise red spy; speak vox/female/eight"
alias 2engi "disguise red engineer; speak vox/female/nine"
alias 3scout "disguise yellow scout; speak vox/female/one"
alias 3sniper "disguise yellow sniper; speak vox/female/two"
alias 3soldier "disguise yellow soldier; speak vox/female/three"
alias 3demoman "disguise yellow demoman; speak vox/female/four"
alias 3medic "disguise yellow medic; speak vox/female/five"
alias 3hwguy "disguise yellow hwguy; speak vox/female/six"
alias 3pyro "disguise yellow pyro; speak vox/female/seven"
alias 3spy "disguise yellow spy; speak vox/female/eight"
alias 3engi "disguise yellow engineer; speak vox/female/nine"
alias 4scout "disguise green scout; speak vox/female/one"
alias 4sniper "disguise green sniper; speak vox/female/two"
alias 4soldier "disguise green soldier; speak vox/female/three"
alias 4demoman "disguise green demoman; speak vox/female/four"
alias 4medic "disguise green medic; speak vox/female/five"
alias 4hwguy "disguise green hwguy; speak vox/female/six"
alias 4pyro "disguise green pyro; speak vox/female/seven"
alias 4spy "disguise green spy; speak vox/female/eight"
alias 4engi "disguise green engineer; speak vox/female/nine"
//now to change what team is selected with the arrow keys
alias bluelist "bind kp_end 1scout;bind kp_downarrow 1sniper;bind kp_pgdn 1soldier;bind kp_leftarrow 1demoman;bind kp_5 1medic;bind kp_rightarrow 1hwguy;bind kp_home 1pyro;bind kp_uparrow 1spy;bind kp_pgup 1engi"
alias redlist "bind kp_end 2scout;bind kp_downarrow 2sniper;bind kp_pgdn 2soldier;bind kp_leftarrow 2demoman;bind kp_5 2medic;bind kp_rightarrow 2hwguy;bind kp_home 2pyro;bind kp_uparrow 2spy;bind kp_pgup 2engi"
alias yellowlist "bind kp_end 3scout;bind kp_downarrow 3sniper;bind kp_pgdn 3soldier;bind kp_leftarrow 3demoman;bind kp_5 3medic;bind kp_rightarrow 3hwguy;bind kp_home 3pyro;bind kp_uparrow 3spy;bind kp_pgup 3engi"
alias greenlist "bind kp_end 4scout;bind kp_downarrow 4sniper;bind kp_pgdn 4soldier;bind kp_leftarrow 4demoman;bind kp_5 4medic;bind kp_rightarrow 4hwguy;bind kp_home 4pyro;bind kp_uparrow 4spy;bind kp_pgup 4engi"

No comments: