• Scripts that you wrote.
    63 replies, posted
[QUOTE=EDDY TT;18188417]For gods sake do some research, [B]NO IT HASN'T, THAT SCRIPT SIMULATES WHAT HAPPENS WHEN YOU PRESS THE S-P-A-C-E-B-A-R AKA JUMP AND C-T-R-L AKA DUCK. NOT THE SHITTY LOLOLOLOLOL 20000000 CROUCH-JUMPS-PER-SECOND SCRIPT[/B], which valve added a system to stop. [/end of rant at your lack of logic and ablity to read release notes when they come out][/QUOTE] Is it a crime to forget the order of two words?
[QUOTE=Reg;18189552]Is it a crime to forget the order of two words?[/QUOTE] Yes.
[QUOTE=Elexar;18185225][code] alias ragequit "say FUCK THIS SHIT I'M OUT; wait 200; quit" bind f10 ragequit[/code] there I'm also using a self-modified version of the auto-pistol script.[/QUOTE] Valve made all the pistols automatic. You don't need scripts for that no more.
[QUOTE=PiXeN;18185292]Ok. So, basically, you came here, you tried to make a ten second cfg thinking that people will laugh, and you fail by putting two commands that doesn't work on TF2. Nice job mate.[/QUOTE] Okay mate.
Ultimaat pyro script +forward +attack1 :downs:
[QUOTE=Hellduck07;18203005]Ultimaat pyro script +forward +attack1 :downs:[/QUOTE] :bandwagon:
[QUOTE=Hellduck07;18203005]Ultimaat pyro script +forward +attack1 :downs:[/QUOTE] too bad +attack1 isn't a valid command
tf2wiki.net/wiki/user:NiteCyper (THE GOOGLE DOCS PAGE) There is always room for improvement. Peeves: r_drawviewmodel conflict with Spy's alt-fire (watches, programmed to render view-models so I know if I am cloaked or am holding the Dead Ringer open and thus, unable to shoot) while using or switching to the Ambassador (which causes "r_Drawviewmodel 0"). I've never perfected the Pyro's infinitesimal spurt. Still need to also fix pressing "r" (+reload) in conjunction with conditional reload (only have "+reload" if Spy's gun view-model is "0") and Spy's alt-fire. Many other pending fixes detailed in commentary form at the top of the config. Will implement some interesting commands from this thread when possible. Scout does not have infinite-bonk-spam bound. Pyro doesn't have mouse-wheel-spurt bound. To remove the jump-spammer from the Medic's panic-button (it's now bound), although I'd rather have the least binds possible. Rapid-fire and rapid-alt-fire (explode stickies) yet to be incorporated to Demoman's stuff. To incorporate from this thread: zig-zag (Bonk!-aftereffects-nullifier), test "mp_usehwmmodels 0" & "mp_usehwmvcds 0" (what are they?), "playgamesound TFPlayer.CritHit" & " Bullets.DefaultNearmiss"
This is a script I wrote so I can use shift as a modifier key to bind multiple commands to one key. For example, E is +use, but Shift + E is the voice command for "Thanks!". I use it to put all the voice commands I use a lot within easy reach, and to select sound clips in HLDJ. [code]// VOICE SHIT alias voice_medic "voicemenu 0 0" alias voice_thanks "voicemenu 0 1" alias voice_gogogo "voicemenu 0 2" alias voice_goleft "voicemenu 0 4" alias voice_goright "voicemenu 0 5" alias voice_incoming "voicemenu 1 0" alias voice_spy "voicemenu 1 1" alias voice_help "voicemenu 2 0" alias nogod "las; wait 10; bind = nogod; hldjsf" alias no "las; wait 10; bind = no; hldjsf" alias yes "las; wait 10; bind = yes; hldjsf" alias shutup "las; wait 10; bind = shutup; hldjsf" alias sneakuponme "las; wait 10; bind = sneakuponme; hldjsf" alias fatguy "las; wait 10; bind = fatguy; hldjsf" alias sonofabitch "las; wait 10; bind = zbSonOfABitch; hldjsf" alias resetvoicebinds1 "bind q lastinv; bind e +use; bind s +back; bind w +forward; bind a +moveleft; bind d +moveright; bind z voice_medic" alias resetvoicebinds2 "bind home playaudio; bind pgup +lookup; unbind del; bind end sonofabitch; bind pgdn +lookdown" alias resetvoicebinds "resetvoicebinds1; resetvoicebinds2" resetvoicebinds alias voicetoggle1 "bind q voice_spy; bind e voice_thanks; bind s voice_incoming; bind w voice_gogogo; bind a voice_goleft; bind d voice_goright; bind z voice_help" alias voicetoggle2 "bind home nogod; bind end no; bind del shutup; bind pgup sneakuponme; bind pgdn fatguy" alias +voicetoggle "voicetoggle1; voicetoggle2" alias -voicetoggle "-forward; -back; -moveleft; -moveright; resetvoicebinds" bind shift "+voicetoggle" alias voiceshit "exec voiceshithelp" alias lam switchtomusic alias las alias switchtomusic "bind = 3; hldj_select_dir; wait 10; alias las switchtosound; alias lam" alias switchtosound "bind = 2; hldj_select_dir; wait 10; alias lam switchtomusic; alias las"[/code] "lam" and "las" are used to switch between my sound clip and music directories in HLDJ, but it doesn't work very well. "voiceshithelp" just echos all the binds in case I forget.
I need a script that makes me spin in circles and use my flamethrower
cl_yawspeed 2000 +left +attack
[QUOTE=Da Fat Cat v3;18233930]I need a script that makes me spin in circles and use my flamethrower[/QUOTE] [code]---panic--- Alias "nocmd" "" alias "battleCry" "repeatCry" alias "repeatCry" "voicemenu 2 1; wait 50; battleCry" alias "endCry" "alias battleCry nocmd" alias "togglePanic" "panicOn" alias "panicOn" "cl_yawspeed 1024; +left; +attack; alias battleCry repeatCry; battleCry; alias togglePanic panicOff" alias "panicOff" "-attack; -left; cl_yawspeed 210; endCry; alias togglePanic panicOn" bind "p" "togglePanic" ---panic--- [/code] I'm not even gonna pretend to have wrote that, a quick search on FPSBANANA found it. Even screams the battle cry for you while you do it! :fuckyou: The above poster basically said it, anyway.
[QUOTE=Da Fat Cat v3;18233930]I need a script that makes me spin in circles and use my flamethrower[/QUOTE] alias script "+right; +attack" bind "f1" "script"
[QUOTE=BassB;18238313]alias script "+right; +attack" bind "f1" "script"[/QUOTE] that would make you permanently spin around. Alias +spin "cl_yawspeed 3000;+left;+attack" Alias -spin "cl_yawspeed (your normal);-left;-attack" Bind "key" "+spin"
-snip-
alias blast "blast_on" alias blast_on "wait 3;+attack; +attack2; wait 3; -attack2; alias blast blast_off" alias blast_off "-attack; alias blast blast_on" bind mouse4 blast
Proper ragequit: [code]//Ragequit Script!!! Alias "ragequit" "say Executing ragequit.exe in; panicOn; wait 180; say 5; wait 180; say 4; wait 180; say 3; wait 180; say 2; wait 60; taunt; wait 120; say 1; wait 180; panicOff; explode; wait 180; disconnect" bind "F12" "ragequit" ------------------------------------------------------------ alias "nocmd" "" alias "jeer" "repeatJeer" alias "repeatJeer" "voicemenu 2 3; wait 50; jeer" alias "endJeer" "alias jeer nocmd" [/code] Stab & Sap:[code]bind "MOUSE1" "+attack" bind "MOUSE2" "+attack2" -reload Alias !stab "+attack; wait 5; -attack; wait 25" alias !sap "slot2; +attack; wait 5; -attack; wait 5; +attack" alias !stab&!sap "unbind mouse3; unbind mwheelup; unbind mwheeldown; !stab; wait 30; lastdisguise; !sap; wait 150; -attack; bind mouse3 !stab&!sap; bind mwheelup invprev; bind mwheeldown invnext; slot3; +attack; wait 5; -attack; wait 5; slot1; wait; +attack; wait 5; -attack" bind f !stab&!sap[/code] Perfect rocket jump:[code]// Uber Rocket Jump alias +ubrrj "+duck; +attack; +jump" alias -ubrrj "-duck; -attack; -jump" bind mouse2 +ubrrj bind "MOUSE1" "+attack" -reload [/code]
[code]//thirdperson shoulder script with a loser attempt at fixing aiming bind mouse5 +attack3 alias +attack3 "play zoomin;cam_zoom_in;cam_ideallag 0.5;cam_idealyaw 0.65;fov 60;cl_crosshair_scale 32" alias -attack3 "play zoomout;cam_zoom_out;cam_ideallag 2.5;cam_idealyaw 0;fov 90;cl_crosshair_scale 0" alias cam_zoom_in_dist "cam_idealdist 135;wait 1;cam_idealdist 122;wait 1;cam_idealdist 110;wait 1;cam_idealdist 104;wait 1;cam_idealdist 95;wait 1;cam_idealdist 82;wait 1;cam_idealdist 70;wait 1;cam_idealdist 68;wait 1;cam_idealdist 65" alias cam_zoom_in_up_1 "cam_idealdistup 0;wait 1;cam_idealdistup -3;wait 1;cam_idealdistup -6;wait 1;cam_idealdistup -8;wait 1;cam_idealdistup -10" alias cam_zoom_in_up_2 "cam_idealdistup -12;wait 1;cam_idealdistup -14;wait 1;cam_idealdistup -16;wait 1;cam_idealdistup -18;wait 1;cam_idealdistup -20" alias cam_zoom_in_up "cam_zoom_in_up_1;wait 1;cam_zoom_in_up_2" alias cam_zoom_in_pitch "cam_zoom_in_pitch_1;wait 1;cam_zoom_in_pitch_2" alias cam_zoom_in_pitch_2 "cam_idealpitch 0.5;wait 1;cam_idealpitch 0.6;wait 1;cam_idealpitch 0.7;wait 1;cam_idealpitch 0.8;wait 1;cam_idealpitch 0.9" alias cam_zoom_in_pitch_1 "cam_idealpitch 0;wait 1;cam_idealpitch 0.1;wait 1;cam_idealpitch 0.2;wait 1;cam_idealpitch 0.3;wait 1;cam_idealpitch 0.4" alias cam_zoom_in_right_1 "cam_idealdistright 0;wait 1;cam_idealdistright 1;wait 1;cam_idealdistright 3;wait 1;cam_idealdistright 4;wait 1;cam_idealdistright 5" alias cam_zoom_in_right_2 "cam_idealdistright 7;wait 1;cam_idealdistright 9;wait 1;cam_idealdistright 11;wait 1;cam_idealdistright 14" alias cam_zoom_in_right "cam_zoom_in_right_1;wait 1;cam_zoom_in_right_2" alias cam_zoom_in "cam_zoom_in_pitch;cam_zoom_in_right;cam_zoom_in_up;cam_zoom_in_dist" alias cam_zoom_out "cam_zoom_out_pitch;cam_zoom_out_up;cam_zoom_out_dist;cam_zoom_out_right" alias cam_zoom_out_dist "cam_idealdist 65;wait 1;cam_idealdist 68;wait 1;cam_idealdist 70;wait 1;cam_idealdist 82;wait 1;cam_idealdist 95;wait 1;cam_idealdist 104;wait 1;cam_idealdist 110;wait 1;cam_idealdist 135;wait 1;cam_idealdist 150" alias cam_zoom_out_up_2 "cam_idealdistup -10;wait 1;cam_idealdistup -8;wait 1;cam_idealdistup -6;wait 1;cam_idealdistup -3;wait 1;cam_idealdistup 0" alias cam_zoom_out_up_1 "cam_idealdistup -20;wait 1;cam_idealdistup -18;wait 1;cam_idealdistup -16;wait 1;cam_idealdistup -14;wait 1;cam_idealdistup -12" alias cam_zoom_out_up "cam_zoom_out_up_1;wait 1;cam_zoom_out_up_2" alias cam_zoom_out_pitch "cam_zoom_out_pitch_1;wait 1;cam_zoom_out_pitch_2" alias cam_zoom_out_pitch_1 "cam_idealpitch 0.9;wait 1;cam_idealpitch 0.8;wait 1;cam_idealpitch 0.7;wait 1;cam_idealpitch 0.6;wait 1;cam_idealpitch 0.5" alias cam_zoom_out_pitch_2 "cam_idealpitch 0.4;wait 1;cam_idealpitch 0.3;wait 1;cam_idealpitch 0.2;wait 1;cam_idealpitch 0.1;wait 1;cam_idealpitch 0" alias cam_zoom_out_right_2 "cam_idealdistright 5;wait 1;cam_idealdistright 4;wait 1;cam_idealdistright 3;wait 1;cam_idealdistright 2;wait 1;cam_idealdistright 0" alias cam_zoom_out_right_1 "cam_idealdistright 14;wait 1;cam_idealdistright 11;wait 1;cam_idealdistright 9;wait 1;cam_idealdistright 7" alias cam_zoom_out_right "cam_zoom_out_right_1;wait 1;cam_zoom_out_right_2"[/code] i just made this so i could fuck around with bots as a huntsman sniper [media]http://www.youtube.com/watch?v=GOcjDr1DFVA[/media]
Goddamn me and my Page missings.
[QUOTE=Pikablu07;18271963][code]//thirdperson shoulder script with a loser attempt at fixing aiming bind mouse5 +attack3 alias +attack3 "play zoomin;cam_zoom_in;cam_ideallag 0.5;cam_idealyaw 0.65;fov 60;cl_crosshair_scale 32" alias -attack3 "play zoomout;cam_zoom_out;cam_ideallag 2.5;cam_idealyaw 0;fov 90;cl_crosshair_scale 0" alias cam_zoom_in_dist "cam_idealdist 135;wait 1;cam_idealdist 122;wait 1;cam_idealdist 110;wait 1;cam_idealdist 104;wait 1;cam_idealdist 95;wait 1;cam_idealdist 82;wait 1;cam_idealdist 70;wait 1;cam_idealdist 68;wait 1;cam_idealdist 65" alias cam_zoom_in_up_1 "cam_idealdistup 0;wait 1;cam_idealdistup -3;wait 1;cam_idealdistup -6;wait 1;cam_idealdistup -8;wait 1;cam_idealdistup -10" alias cam_zoom_in_up_2 "cam_idealdistup -12;wait 1;cam_idealdistup -14;wait 1;cam_idealdistup -16;wait 1;cam_idealdistup -18;wait 1;cam_idealdistup -20" alias cam_zoom_in_up "cam_zoom_in_up_1;wait 1;cam_zoom_in_up_2" alias cam_zoom_in_pitch "cam_zoom_in_pitch_1;wait 1;cam_zoom_in_pitch_2" alias cam_zoom_in_pitch_2 "cam_idealpitch 0.5;wait 1;cam_idealpitch 0.6;wait 1;cam_idealpitch 0.7;wait 1;cam_idealpitch 0.8;wait 1;cam_idealpitch 0.9" alias cam_zoom_in_pitch_1 "cam_idealpitch 0;wait 1;cam_idealpitch 0.1;wait 1;cam_idealpitch 0.2;wait 1;cam_idealpitch 0.3;wait 1;cam_idealpitch 0.4" alias cam_zoom_in_right_1 "cam_idealdistright 0;wait 1;cam_idealdistright 1;wait 1;cam_idealdistright 3;wait 1;cam_idealdistright 4;wait 1;cam_idealdistright 5" alias cam_zoom_in_right_2 "cam_idealdistright 7;wait 1;cam_idealdistright 9;wait 1;cam_idealdistright 11;wait 1;cam_idealdistright 14" alias cam_zoom_in_right "cam_zoom_in_right_1;wait 1;cam_zoom_in_right_2" alias cam_zoom_in "cam_zoom_in_pitch;cam_zoom_in_right;cam_zoom_in_up;cam_zoom_in_dist" alias cam_zoom_out "cam_zoom_out_pitch;cam_zoom_out_up;cam_zoom_out_dist;cam_zoom_out_right" alias cam_zoom_out_dist "cam_idealdist 65;wait 1;cam_idealdist 68;wait 1;cam_idealdist 70;wait 1;cam_idealdist 82;wait 1;cam_idealdist 95;wait 1;cam_idealdist 104;wait 1;cam_idealdist 110;wait 1;cam_idealdist 135;wait 1;cam_idealdist 150" alias cam_zoom_out_up_2 "cam_idealdistup -10;wait 1;cam_idealdistup -8;wait 1;cam_idealdistup -6;wait 1;cam_idealdistup -3;wait 1;cam_idealdistup 0" alias cam_zoom_out_up_1 "cam_idealdistup -20;wait 1;cam_idealdistup -18;wait 1;cam_idealdistup -16;wait 1;cam_idealdistup -14;wait 1;cam_idealdistup -12" alias cam_zoom_out_up "cam_zoom_out_up_1;wait 1;cam_zoom_out_up_2" alias cam_zoom_out_pitch "cam_zoom_out_pitch_1;wait 1;cam_zoom_out_pitch_2" alias cam_zoom_out_pitch_1 "cam_idealpitch 0.9;wait 1;cam_idealpitch 0.8;wait 1;cam_idealpitch 0.7;wait 1;cam_idealpitch 0.6;wait 1;cam_idealpitch 0.5" alias cam_zoom_out_pitch_2 "cam_idealpitch 0.4;wait 1;cam_idealpitch 0.3;wait 1;cam_idealpitch 0.2;wait 1;cam_idealpitch 0.1;wait 1;cam_idealpitch 0" alias cam_zoom_out_right_2 "cam_idealdistright 5;wait 1;cam_idealdistright 4;wait 1;cam_idealdistright 3;wait 1;cam_idealdistright 2;wait 1;cam_idealdistright 0" alias cam_zoom_out_right_1 "cam_idealdistright 14;wait 1;cam_idealdistright 11;wait 1;cam_idealdistright 9;wait 1;cam_idealdistright 7" alias cam_zoom_out_right "cam_zoom_out_right_1;wait 1;cam_zoom_out_right_2"[/code] i just made this so i could fuck around with bots as a huntsman sniper [media]http://www.youtube.com/watch?v=GOcjDr1DFVA[/media][/QUOTE] [media]http://www.youtube.com/watch?v=fJrepRsOuPo[/media]
Did just fix the objects so ic an have fun with the RCbots [code]objects { // Engineer Objects OBJ_SENTRYGUN { ClassName obj_sentrygun StatusName "#TF_Object_Sentry" BuildTime 1 MaxObjects 500 Cost 1 CostMultiplier 1 UpgradeCost 1 UpgradeDuration 1.5 MaxUpgradeLevel 0 BuilderWeaponName "Sentry Gun" BuilderPlacementString "Place on ground" SelectionSlot 3 SelectionPosition 0 SapperAttachTime 0.0 IconActive obj_sentrygun IconInactive obj_sentrygun Viewmodel "models/weapons/v_models/v_toolbox_engineer.mdl" Playermodel "models/weapons/w_models/w_toolbox.mdl" DisplayPriority 4 HudStatusIcon "obj_status_sentrygun_1" VisibleInWeaponSelection 0 ExplodeSound "Building_Sentry.Explode" ExplodeEffect "ExplosionCore_buildings" MetalToDropInGibs 200 UpgradeSound "Building_Sentrygun.Built" } OBJ_DISPENSER { ClassName obj_dispenser StatusName "#TF_Object_Dispenser" BuildTime 1 MaxObjects 500 Cost 1 CostMultiplier 1 UpgradeCost 1 UpgradeDuration 1.5 MaxUpgradeLevel 0 BuilderWeaponName "Dispenser" BuilderPlacementString "Place on ground" SelectionSlot 3 SelectionPosition 1 SapperAttachTime 0.0 IconActive obj_dispenser IconInactive obj_dispenser Viewmodel "models/weapons/v_models/v_toolbox_engineer.mdl" Playermodel "models/weapons/w_models/w_toolbox.mdl" DisplayPriority 3 HudStatusIcon "obj_status_dispenser" VisibleInWeaponSelection 0 ExplodeSound "Building_Dispenser.Explode" ExplodeEffect "ExplosionCore_buildings" MetalToDropInGibs 200 UpgradeSound "Building_Sentrygun.Built" } OBJ_TELEPORTER_ENTRANCE { ClassName obj_teleporter_entrance StatusName "#TF_Object_Tele_Entrance" BuildTime 1 MaxObjects 100 Cost 1 CostMultiplier 1 UpgradeCost 1 UpgradeDuration 1.5 MaxUpgradeLevel 0 BuilderWeaponName "Teleporter Entrance" BuilderPlacementString "Place on ground" SelectionSlot 3 SelectionPosition 2 SapperAttachTime 0.0 IconActive obj_teleporter_entrance IconInactive obj_teleporter_entrance SolidToPlayerMovement 1 Viewmodel "models/weapons/v_models/v_toolbox_engineer.mdl" Playermodel "models/weapons/w_models/w_toolbox.mdl" DisplayPriority 2 HudStatusIcon "obj_status_tele_entrance" VisibleInWeaponSelection 0 ExplodeSound "Building_Teleporter.Explode" ExplodeEffect "ExplosionCore_buildings" MetalToDropInGibs 200 UpgradeSound "Building_Sentrygun.Built" } OBJ_TELEPORTER_EXIT { ClassName obj_teleporter_exit StatusName "#TF_Object_Tele_Exit" BuildTime 1 MaxObjects 100 Cost 1 CostMultiplier 1 UpgradeCost 1 UpgradeDuration 1.5 MaxUpgradeLevel 0 BuilderWeaponName "Teleporter Exit" BuilderPlacementString "Place on ground" SelectionSlot 3 SelectionPosition 3 SapperAttachTime 0.0 IconActive obj_teleporter_exit IconInactive obj_teleporter_exit SolidToPlayerMovement 1 Viewmodel "models/weapons/v_models/v_toolbox_engineer.mdl" Playermodel "models/weapons/w_models/w_toolbox.mdl" DisplayPriority 1 HudStatusIcon "obj_status_tele_exit" VisibleInWeaponSelection 0 ExplodeSound "Building_Teleporter.Explode" ExplodeEffect "ExplosionCore_buildings" MetalToDropInGibs 200 UpgradeSound "Building_Sentrygun.Built" } OBJ_ATTACHMENT_SAPPER { ClassName obj_attachment_sapper StatusName "Object Sapper" BuildTime 0.000000000000000001 MaxObjects -1 Cost 0 CostMultiplier 1 UpgradeCost 0 UpgradeDuration 0 MaxUpgradeLevel 0 BuilderWeaponName "Object Sapper" BuilderPlacementString "Place on object" SelectionSlot 1 SelectionPosition 0 SapperAttachTime 0.0 IconActive obj_attachment_sapper IconInactive obj_attachment_sapper Viewmodel "models/weapons/v_models/v_sapper_spy.mdl" Playermodel "models/weapons/w_models/w_sapper.mdl" DisplayPriority 1 HudStatusIcon "obj_status_sapper" VisibleInWeaponSelection 1 autoswitchto 1 ExplodeSound "Weapon_Sapper.Removed" ExplodeEffect "ExplosionCore_sapperdestroyed" MetalToDropInGibs 10 UpgradeSound "Building_Sentrygun.Built" } } [/code] Only fixed BuildTime, MaxObjects, Cost, UpgradeCost. Then bind "k" "build 0" //despencers bind "j" "build 3" //sentries in console. No bind for teleport for some reason but it works.
Here's my scripts that I wrote That's right none
[code]alias +sens "sensitivity 1" alias -sens "sensitivity 4" bind shift +sens[/code]
Does anyone have the airblast script ? The one that only sucks 1 ammo per airblast, i just want to see how it works.
[QUOTE=PiXeN;18281921]Does anyone have the airblast script ? The one that only sucks 1 ammo per airblast, i just want to see how it works.[/QUOTE] there is no such script. however its possible to make it LOOK like it.
I've made a few scripts, but I am on the wrong computer.
[QUOTE=Omolong;18301057]I've made a few scripts, but I am the wrong computer.[/QUOTE] Yes, Yes you [b]ARE[/b] the wrong computer.
[QUOTE=kill3r;18303321]Yes, Yes you [b]ARE[/b] the wrong computer.[/QUOTE] I never noticed....
Reviving old thread for a request. Could some write me a script that will allow me to automatically switch weapons when I scroll? You know how you can scroll through your weapons using the mouse wheel, but have to click to select a weapon? Can a script be written that will automatically switch, without the necessary click? I found a script on tf2wiki, but it binds the melee weapon to mouse button 3, which I have set to reload. [code]//Weapons Switching alias primary "slot1; wait; bind MWHEELUP secondary" alias secondary "slot2; wait; bind MWHEELUP primary" bind "MWHEELUP" "primary" alias primary2 "slot1; wait; bind MWHEELDOWN secondary2" alias secondary2 "slot2; wait; bind MWHEELDOWN primary2" bind "MWHEELUP" "primary" bind "MWHEELDOWN" "primary2" alias melee "slot3; bind MOUSE3" bind "MOUSE3" "melee" [/code]
[QUOTE=Eight Bit;18519797]Reviving old thread for a request. Could some write me a script that will allow me to automatically switch weapons when I scroll? You know how you can scroll through your weapons using the mouse wheel, but have to click to select a weapon? Can a script be written that will automatically switch, without the necessary click? I found a script on tf2wiki, but it binds the melee weapon to mouse button 3, which I have set to reload. [code]//Weapons Switching alias primary "slot1; wait; bind MWHEELUP secondary" alias secondary "slot2; wait; bind MWHEELUP primary" bind "MWHEELUP" "primary" alias primary2 "slot1; wait; bind MWHEELDOWN secondary2" alias secondary2 "slot2; wait; bind MWHEELDOWN primary2" bind "MWHEELUP" "primary" bind "MWHEELDOWN" "primary2" alias melee "slot3; bind MOUSE3" bind "MOUSE3" "melee" [/code][/QUOTE] Options>Keyboard>Enable Quick Switch. No script is needed. Or you could use that script and change "MOUSE3" to something else. Personally, I have it so scroll up is primary, scroll down is secondary, and F is melee.
Sorry, you need to Log In to post a reply to this thread.