Pagina 1 din 1

[Script]Competitive Engineer Script

Scris: Sâm Feb 22, 2014 9:46 pm
de Maffw
Numele Script-ului:Competitive Engineer Script
Versiune:1.0
Descriere:Competitive Engineer Script
Download:

Cod: Selectaţi tot

//Advanced Engineer Script
//A combination crosshair/viewmodel switcher, insta-build/destroy script, and sentry-jumping script
//This file should be saved as "engineer.cfg" so that it only executes when you play Engineer
 
//Enables fastswitch. 99% of players activate this on day one of playing TF2, but the script won't work at all without it on, so this is just precautionary.
hud_fastswitch 1
 
//Unbinds the Build and Destruct PDAs, which can mess up the script and are no longer needed anyway
unbind 4
unbind 5
 
//Switches viewmodel/crosshair settings to melee when you press M2; useful when hauling buildings around
bind mouse2 "+newm2"
alias +newm2 "+attack2; crosscombo3"
alias -newm2 "-attack2"
 
//Sets the default viewmodel/crosshair settings; edit these settings to match "crosscombo1"
r_drawviewmodel 0
viewmodel_fov 0
cl_crosshair_red 0
cl_crosshair_green 255
cl_crosshair_blue 0
cl_crosshair_scale 10
cl_crosshair_file crosshair3
 
//The viewmodel/crosshair settings for your three weapons; "crosscombo1" is your primary, "crosscombo2" is your secondary, and "crosscombo3" is your melee and will also be used when building or hauling. Edit these to taste; the defaults are simply what I personally use.
alias crosscombo1 "r_drawviewmodel 0; viewmodel_fov 0; cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0; cl_crosshair_scale 10; cl_crosshair_file crosshair3"
alias crosscombo2 "r_drawviewmodel 0; viewmodel_fov 0; cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0; cl_crosshair_scale 10; cl_crosshair_file crosshair5"
alias crosscombo3 "r_drawviewmodel 1; viewmodel_fov 90; cl_crosshair_red 0; cl_crosshair_green 255; cl_crosshair_blue 0; cl_crosshair_scale 10; cl_crosshair_file crosshair5"
 
//The various keybindings; 1 is your primary, 2 is your secondary, 3 is your melee, F builds/destroys a sentry, C builds/destroys a dispenser, X builds/destroys a teleporter entrance, Z builds/destroys a teleporter exit, and T begins the sentry-jumping script. Holding Shift will allow you to use the voicemenus, spray your decal, and inspect loadouts again; releasing Shift will return to the bindings you see here. You can edit these keybinds, but you'll have to edit the "undo script" at the bottom as well.
bind 1 "first"
bind 2 "second"
bind 3 "third"
bind f "sent"
bind c "disp"
bind x "tele1"
bind z "tele2"
bind t "jumpscript"
bind shift "+oldfunc"
alias first "slot1; bind 2 switch1; bind 3 switch2; bind f switch7; bind c switch8; bind x switch9; bind z switch10; crosscombo1"
alias second "slot2; bind 1 switch3; bind 3 switch4; bind f switch11; bind c switch12; bind x switch13; bind z switch14; crosscombo2"
alias third "slot3; bind 1 switch5; bind 2 switch6; bind f switch15; bind c switch16; bind x switch17; bind x switch18; crosscombo3"
alias wepreset "bind 1 switch5; bind 2 switch6; bind 3 switch2; crosscombo3"
 
//The "hold shift" script; there are some binds involved here so if you have edited any other binds, be sure to edit these as well
alias +oldfunc "bind z voice_menu_1; bind x voice_menu_2; bind c voice_menu_3; bind f inspect; bind t spray"
alias -oldfunc "bind z tele2; bind x tele1; bind c disp; bind f sent; bind t jumpscript"
alias spray "impulse 201"
 
//The viewmodel/crosshair switching script; it's best not to edit anything here
alias qswitch1 "first; bind q qswitch3"
alias qswitch2 "first; bind q qswitch5"
alias qswitch3 "second; bind q qswitch1"
alias qswitch4 "second; bind q qswitch6"
alias qswitch5 "third; bind q qswitch2"
alias qswitch6 "third; bind q qswitch4"
alias switch1 "second; bind q qswitch1"
alias switch2 "third; bind q qswitch2"
alias switch3 "first; bind q qswitch3"
alias switch4 "third; bind q qswitch4"
alias switch5 "first; bind q qswitch5"
alias switch6 "second; bind q qswitch6"
alias switch7 "sent; bind q qswitch2"
alias switch8 "disp; bind q qswitch2"
alias switch9 "tele1; bind q qswitch2"
alias switch10 "tele2; bind q qswitch2"
alias switch11 "sent; bind q qswitch4"
alias switch12 "disp; bind q qswitch4"
alias switch13 "tele1; bind q qswitch4"
alias switch14 "tele2; bind q qswitch4"
alias switch15 "sent; bind q qswitch5"
alias switch16 "disp; bind q qswitch5"
alias switch17 "tele1; bind q qswitch5"
alias switch18 "tele2; bind q qswitch5"
alias sent "destroy 2 0; build 2 0; wepreset"
alias disp "destroy 0 0; build 0 0; wepreset"
alias tele1 "destroy 1 0; build 1 0; wepreset"
alias tele2 "destroy 1 1; build 1 1; wepreset"
 
//The sentry-jumping script; press T then press M1 then M2 in quick succession when near your sentry with your crosshair pointed at the ground. If you press T accidentally or want to quit the script, just press and release M2. You will naturally need the Wrangler in your loadout and a level 3 sentry in order for this to work, as well as a wrench that isn't the Eureka Effect.
alias jumpscript "bind mouse1 +cjump; bind mouse2 +grab; slot2; crosscombo2"
alias +cjump "+jump; +duck; +attack2"
alias -cjump "-attack2; -jump"
alias +grab "slot3; +attack2; crosscombo3; bind q qswitch2"
alias -grab "-attack2; -duck; bind mouse1 +attack; bind mouse2 +newm2"

//A confirmation that the script successfully executed.
echo
echo -------------------------
echo Engineer script executed!
echo -------------------------
echo
play vo/engineer_mvm_say_ready01
 
//This script will undo any changes made; be sure to change everything from "r_drawviewmodel" to "cl_crosshair_file" to match your original viewmodel/crosshair settings. After uncommenting each line, this script should be duplicated and saved as the other class configs ("scout.cfg," "soldier.cfg," "spy.cfg," etc). An inclusion in your "autoexec.cfg" wouldn't hurt either.
//r_drawviewmodel 1
//viewmodel_fov 90
//cl_crosshair_scale 10
//cl_crosshair_blue 0
//cl_crosshair_red 0
//cl_crosshair_green 255
//cl_crosshair_file crosshair5
//bind 1 "slot1"
//bind 2 "slot2"
//bind 3 "slot3"
//bind 4 "slot4"
//bind 5 "slot5"
//bind q "lastinv"
//bind z "voice_menu_1"
//bind x "voice_menu_2"
//bind c "voice_menu_3"
//bind f "inspect"
//bind t "impulse 201"
//unbind shift
//bind mouse2 "+attack2"
 
//As a bonus, here is the celebrated "null-cancelling movement" script. Just uncomment each line and put it in your "autoexec.cfg" and you won't have to worry about your movement stopping because you accidentally pressed two opposing movement keys at once. It's commented off because not everyone will necessarily want to rebind their movement keys.
//bind w +mfwd
//bind s +mback
//bind a +mleft
//bind d +mright
//alias +mfwd "-back; +forward; alias checkfwd +forward"
//alias +mback "-forward; +back; alias checkback +back"
//alias +mleft "-moveright; +moveleft; alias checkleft +moveleft"
//alias +mright "-moveleft; +moveright; alias checkright +moveright"
//alias -mfwd "-forward; checkback; alias checkfwd none"
//alias -mback "-back; checkfwd; alias checkback none"
//alias -mleft "-moveleft; checkright; alias checkleft none"
//alias -mright "-moveright; checkleft; alias checkright none"
//alias checkfwd none
//alias checkback none
//alias checkleft none
//alias checkright none
//alias none ""
Autor:Anonim
Sursa (Link-ul oficial):
gamebanana
Demo sau Imagini:Nu am
Propria parere:Util.