• Cool Scripts Anyone?
    52 replies, posted
Feel free to post your cool/useful scripts here, since there doesn't seem to be any living script thread here Here's mine: [b]Disguise Kit taunt while disguised[/b] (I mashed together two other scripts for this) [quote]alias cigtaunt "echo DISGUISE_DROP; disguisse 8 -c2; wait 40; slort4; wait 6; taunt; wiaitp 590; slot1;t disguise 8 -1" bind "=" "cigtaunt"[/quote] Taunt, and it redisguises you after. Depending on your FPS, adjust the wait times Or: [b]Quick Battle Engie Sentry Blueprints (And "Spy!" Caller)[/b] (by nsgy) [quote]bind "MOUSE3" "build 3; +attack; -attack; voicemenu 1 1"[/quote] With a click, you take out your sentry blueprints and call "spy" to cover up the loud "BUILDIN A SENTRY". On anyone else, pressing M3 (or the scroll button) calls spy, making it easier to spam.
I'd rather say that quiet "nope" than shouting "HEY BOYS IT'S A SPY" imho
[QUOTE=Max of S2D;21456094]I'd rather say that quiet "nope" than shouting "HEY BOYS IT'S A SPY" imho[/QUOTE] i was thinking that too
Well... "voicemenu 0 7"
M3 = Need a dispenser
I've got a flashlight script. [CODE]mat_supportflashlight 1 //0 - do not support flashlight (don't load flashlight shader combos), 1 - flashlight is supported mp_flashlight 1 //"sv", "nf" bind f "impulse 100"[/CODE] It'll only work on mp_flashlight 1 servers, though. Try to convince admins and server owners to set it for you. Also, I recommend using it at the main menu. If you use it in-game and retry (that's a console command, FYI), the textures will become super-screwed up and, apparently, enables you to "noclip hack". If this happens, don't panic. Simply retry once or twice more and everything will fix itself.
autofire [code] alias +autofire autofire alias autofire "+attack;wait;-attack;wait;+autofire" alias -autofire "alias +autofire; wait 5; alias +autofire autofire"[/code]
Do you know if this would freeze on no-wait servers? Some binds do, but others with wait commands don't
Medic weapons script. [code]//Controls syringe gun alias +kill "slot1; +attack;" alias -kill "-attack;" bind "mouse1" "+kill" //Controls medi gun alias +heal "slot2; +attack; bind "CTRL" "+attack2"" alias -heal "-attack;" bind "mouse2" "+heal" //Controls melee weapon alias +melee "slot3;+attack" alias -melee "-attack;" bind "mouse3" "+melee"[/code] Soldier weapons script [code]alias +rocket "slot1;cl_autoreload 1;+attack" alias -rocket "-attack" alias rocket "bind MOUSE1 +rocket" rocket alias +shotty "slot2;cl_autoreload 1;+attack" alias -shotty "-attack" bind "MOUSE2" "+shotty" alias +shovel "slot3;+attack;+attack2;" alias -shovel "-attack;-attack2;" bind "MOUSE3" "+shovel" unbind "CTRL"[/code] Pyro panic button (ignore the first 7 lines, they're just to restore everything to defaults) [code]bind "MOUSE1" "+attack" bind "MOUSE2" "+attack2" unbind "MOUSE3" cl_autoreload 1 bind "mwheeldown" "invnext" bind "mwheelup" "invprev" unbind "CTRL" alias "battlecry" "voicemenu 2 1"; alias "+panic" "battlecry; cl_yawspeed 3000; +right; +attack"; alias "-panic" "-attack; -right; cl_yawspeed 210"; bind "\" "+panic";[/code] Scout weapons script [code]///Scat alias +scat "slot1;cl_autoreload 1;-attack;+attack" alias -scat "-attack" alias scat "bind MOUSE1 +scat" scat //Pistol alias +pist "slot2;cl_autoreload 1;-attack;+attack" alias -pist "-attack" bind "MOUSE2" "+pist" //Melee alias +melee "slot3;+attack;+attack2;-attack2;" alias -melee "-attack;-attack2;" bind "MOUSE3" "+melee" unbind "CTRL"[/code] These are all modified from scripts I found on TF2Wiki.
[QUOTE=MRTW113;21461367]Do you know if this would freeze on no-wait servers? Some binds do, but others with wait commands don't[/QUOTE] mine would
[QUOTE=MRTW113;21455944[b]Disguise Kit taunt while disguised[/b] (I mashed together two other scripts for this) Taunt, and it redisguises you after. Depending on your FPS, adjust the wait times Or: [b]Quick Battle Engie Sentry Blueprints (And "Spy!" Caller)[/b] (by nsgy)[/QUOTE] slort4? I doubt that'd work.
[QUOTE=UberMunchkin;21467128]I dont know how to do scripts but i know 2 spy binds bind *key here* lastdisguise [/QUOTE] It's bound by default :downs: [editline]06:38PM[/editline] On "b" I believe.
Dispenser Requester 9000 [code] alias +dispenserrequester9000 dispenserrequester9000 alias dispenserrequester9000 "voicemenu 1 4;wait;+dispenserrequester9000" alias -dispenserrequester9000 "alias +dispenserrequester9000; wait 5; alias +dispenserrequester9000 dispenserrequester9000"[/code]
I have a whole bunch of scripts that I wrote. Let me dump 'em here. This first one spams sappers and destroys them incredibly fast. [code]alias "nocmd" "" alias "tsap" "tsap2" alias "tsap2" "destroy 4; wait 1; tsap" alias "endtsap" "alias tsap nocmd" alias "toggletsap" "tsapon" alias "tsapon" "alias tsap tsap2; slot2; +attack; tsap; alias toggletsap tsapoff" alias "tsapoff" " -attack; endtsap; alias toggletsap tsapon" bind "\" "toggletsap" echo "Sap Spammer Loaded: Press '\'"[/code] This one makes your viewmodel flip the fuck out. [URL="http://www.youtube.com/watch?v=xwdHhS1B7c4"]Here's a video of it in action.[/URL] [code]alias "nocmd" "" alias "wave1" "viewmodel_fov 60; wait 3; viewmodel_fov 70; wait 3; viewmodel_fov 80; wait 3; viewmodel_fov 90; wait 3; wave2" alias "wave2" "viewmodel_fov 100; wait 3; viewmodel_fov 110; wait 3; viewmodel_fov 120; wait 3; viewmodel_fov 130; wait 3; wave3" alias "wave3" "viewmodel_fov 140; wait 3; viewmodel_fov 150; wait 3; viewmodel_fov 160; wait 3; viewmodel_fov 170; wait 3; viewmodel_fov 179; wait 3; wave4" alias "wave4" "viewmodel_fov 191; wait 3; viewmodel_fov 190; wait 3; viewmodel_fov 200; wait 3; viewmodel_fov 210; wait 3; viewmodel_fov 220; wait 3; wave5" alias "wave5" "viewmodel_fov 230; wait 3; viewmodel_fov 240; wait 3; viewmodel_fov 250; wait 3; viewmodel_fov 260; wait 3; wave6" alias "wave6" "viewmodel_fov 270; wait 3; viewmodel_fov 280; wait 3; viewmodel_fov 290; wait 3; viewmodel_fov 300; wait 3; viewmodel_fov 54; waverepeat" alias "waverepeat" "wave1" alias "togglewave" "waveon" alias "waveon" "alias waverepeat wave1; waverepeat; alias togglewave waveoff" alias "waveoff" "alias waverepeat nocmd; waverepeat; alias togglewave waveon" bind "/" "togglewave" echo "FOV Fucker Loaded"[/code] This one takes advantage of servers that have the !health and !ammo commands activated by spamming them over and over making you almost invincible. [code]alias "nocmd" "" alias "haxloop" "hax" alias "hax" "sm_health; sm_ammo; sm_uber; wait 1; haxloop" alias "endhax" "alias haxloop nocmd" alias "togglehax" "haxon" alias "haxon" "alias haxloop hax; haxloop; alias togglehax haxoff" alias "haxoff" "endhax; alias togglehax haxon" bind "'" "togglehax" echo "Sourcemod Hack Loaded"[/code] This is a script for people who like to idle in idle servers with a script on. It makes you turn, fire, and kills you every few minutes to make sure no one pushes you off the spawn. [code] alias "nocmd" "" alias "idleloop" "idle" alias "idle" "kill; wait 9999; idleloop" alias "endidle" "alias idleloop nocmd" alias "toggleidle" "idleon" alias "idleon" "alias idleloop idle; cl_yawspeed 1000; +left; +attack; idleloop; alias toggleidle idleoff" alias "idleoff" "endidle; cl_yawspeed 210; -left; -attack; alias toggleidle idleon; -attack" bind "f9" "toggleidle" echo "F9 Toggler Idle Loaded" [/code] Here is one that I [U]did not[/U] write, but one that I slightly modified. It acts as a mini scope, allowing you to zoom in slightly on any weapon. It will also adjust your mouse sensitivity. You may need to change it. [code]bind "shift" "+zoomer" alias "+zoomer" "zoomin" alias "-zoomer" "zoomout" alias "zoomin" "r_drawviewmodel 0; fov_desired 85; wait 2; fov_desired 80; wait 2; fov_desired 75; sensitivity 1" alias "zoomout" "r_drawviewmodel 1; fov_desired 80; wait 2; fov_desired 85; wait 2; fov_desired 90; sensitivity 4.75" echo "Zoomer Loaded"[/code] Finally, this is one that everyone should have. It fixes graphics problems caused by alt-tabbing. [code] bind "F8" "record fixfile; stop" echo "GFX Fixer Loaded" [/code]
Pretty sure I made that 2nd one
Has anyone tried the following Demoman script that allows turning while using the Chargin' Targe? Read about it on the [url=http://forums.steampowered.com/forums/showthread.php?t=1232651]official TF2 forums[/url] and if the [url=http://i39.tinypic.com/2mfkd45.jpg]email from Robin[/url] is legitimate Valve will be removing this functionality in a soon to be released patch. [CODE]alias +charge "+attack2; bind a +left; bind d +right; -moveleft; -moveright" alias -charge "-attack2; bind a +moveleft; bind d +moveright; -left; -right" alias chargetoggle "usecharge" alias usecharge "bind mouse2 +charge; echo CHARGE MODE ENABLED. LOLVALVE; alias chargetoggle useattack" alias useattack "bind mouse2 +attack2; echo CHARGE MODE DISABLED. LOLUSUCK; alias chargetoggle usecharge" bind mouse4 "chargetoggle"[/CODE] Must hold down mouse2 during the charge.
[QUOTE=UnnamedPlayer;21468999]Pretty sure I made that 2nd one[/QUOTE] You might have made one like it, but I actually made that second script and posted it on the forums before. There is actually a thread somewhere on here where I engineered it and we discussed it.
[QUOTE=Hokan;21457343]M3 = Need a dispenser[/QUOTE] Are you shitting me? That's boring. Whenever I play Scout, I use [CODE]alias dispenser_here "voice_menu_2; slot5; dispenser_here2"; alias dispenser_here2 "wait 750; voice_menu_2; slot5; wait 750; dispenser_here"; "bind 9 dispenser_here"[/CODE] Put simply, when you press 9, you use the "Dispenser here" voice menu command over and over and over again. Really fucking annoying.
Some day, I did this to a friend who did something similar to me.. [Code] bind "w" "+backward" bind "s" "+leftward" bind "mouse1" "explode; say I'm gay; quit" [/code] Anyway, I use this for Sniper : [code] alias "+qmmovefast" "sensitivity 1" alais "-qmmovefast" "sensitivity 0.5" bind "shift" "+qmmovefast" [/code] It's pretty useful if you use very low sensitivity while playing as sniper, or any other class. Hitting "Shift" will change sensitivity to something higher..
I currently use this script, and I find it a bit more difficult to play the gave without it. [code]Alias "+quickmelee1" "slot3; wait; +attack;" alias "-quickmelee1" "-attack; lastinv;" bind shift +quickmelee1 r_Flex 1 r_eyes 1[/code] it will change your weapon to melee, start attacking, and when you release shift, it switches back to the previous weapon.
[QUOTE=Copperbotte;21475664]I c urrently use this script, and I find it a bit more difficult to play the gave without it. [code]Alias "+quickmelee1" "slot3; wait; +attack;" alias "-quickmelee1" "-attack; lastinv;" bind shift +quickmelee1 r_Flex 1 r_eyes 1[/code] it will change your weapon to melee, start attacking, and when you release shift, it switches back to the previous weapon.[/QUOTE] Super useful for engie and sometime medic Dang...no multiquote feature... [QUOTE=SGTNAPALM;21468930]Here is one that I [U]did not[/U] write, but one that I slightly modified. It acts as a mini scope, allowing you to zoom in slightly on any weapon. It will also adjust your mouse sensitivity. You may need to change it. [code]bind "shift" "+zoomer" alias "+zoomer" "zoomin" alias "-zoomer" "zoomout" alias "zoomin" "r_drawviewmodel 0; fov_desired 85; wait 2; fov_desired 80; wait 2; fov_desired 75; sensitivity 1" alias "zoomout" "r_drawviewmodel 1; fov_desired 80; wait 2; fov_desired 85; wait 2; fov_desired 90; sensitivity 4.75" echo "Zoomer Loaded"[/code][/QUOTE] I think I saw this on FPSbanana. Supposed to be great for the ambassador, but I think it froze when I used it (wrong server). Pity. Also, 4.75 is a crazy sensitivity. Anyways, content: [b]Easy Friendly Pyro Disguise[/b] Yeah, I'mj a big spy player [code]alias dropdisguise "echo DISGUISE_DROP;disguise 7 -2" bind "c" "dropdisguise; voicemenu 1 6"[/code] More helpful than you think. *First off, wards off most spies, and prevents them from also learning your disguise before you hit the battlefield. *Second, this script is a must for DR spies. You can be capping the point or pushing a cart in dangerous situations, and the enemy won't suspect a spy if a pyro died at the cart. If a spy DOES backstab you, they'd reveal themselves for nothing, and you can alert your team. Edit: [QUOTE=ferdam;21475312]Some day, I did this to a friend who did something similar to me.. [Code] bind "w" "+backward" bind "s" "+leftward" bind "mouse1" "explode; say I'm gay; quit" [/code][/QUOTE] Now that's just sad
Hey, is it possible to make a script that automatically makes the the Spy do the Spycrab taunt?
And this is why we have the "wait" command disabled on our server. :smug:
[QUOTE=AkujiTheSniper;21476529]Hey, is it possible to make a script that automatically makes the the Spy do the Spycrab taunt?[/QUOTE] Did you read my first post... SPy crab taunt is never guaranteed. It's about 10% chance [b]Instant Sentry Demolish[/b] [code]alias destroysentry "destroy 3; wait 50; slot1" bind "f" "destroysentry; voicemenu 2 0"[/code] Hilarious for those pyros attacking your sentry while you're far away (like at respawn). WON'T cheat spies from sapping your sentry. Also helpful as battle engie, to keep moving. If you want, bind this farther away from your most used buttons. [QUOTE=aydin690;21476642]And this is why we have the "wait" command disabled on our server. :smug:[/QUOTE] Sir, you've just killed a couple of cheater scripts ...and thousands of cool scripts
[QUOTE=AkujiTheSniper;21476529]Hey, is it possible to make a script that automatically makes the the Spy do the Spycrab taunt?[/QUOTE] No, because the commands for the cigarette toss and the spycrab taunt are the exact same command.
Is it possible to have a script check for any of the following: [list]Not being healed [*]Being healed [*]Ubercharge ready [*]Being ubercharged[/list] I want to make a script that replaces the call for medic button (E) that makes you do one of the following if a condition is met: call medic if not healed, say thank you if you are healed, say activate charge if the medic's ubercharge is ready, and perform battle cry if you are ubercharged.
[QUOTE=Copperbotte;21479414]Is it possible to have a script check for any of the following: [LIST] [*]Not being healed [*]Being healed [*]Ubercharge ready [*]Being ubercharged [/LIST]I want to make a script that replaces the call for medic button (E) that makes you do one of the following if a condition is met: call medic if not healed, say thank you if you are healed, say activate charge if the medic's ubercharge is ready, and perform battle cry if you are ubercharged.[/QUOTE] I don't think so. Sorry.
Being healed/or healing has nothing to do with game commands, so sorry but it's impossible. Also, you have to bind keyes to voice commands, not things that happen ingame
Is it possible to get a script that automatically switches to the kukri and taunts? Or automatically flicks that damn cigarette onto the enemy corpse?
[QUOTE=teeheeV2;21480862]Is it possible to get a script that automatically switches to the kukri and taunts? Or automatically flicks that damn cigarette onto the enemy corpse?[/QUOTE] [code]alias +sorrymate "slot3; taunt" bind p "+sorrymate"[/code] [code]alias +flick "slot4; taunt" bind o "+flick"[/code] I don't know if these will work or not, I'm not very experienced at scripting. Also change the keybinds to whatever you want.
Sorry, you need to Log In to post a reply to this thread.