• Scripts that you wrote.
    63 replies, posted
Use this thread to post some scripts that you wrote for TF2, (and maybe even request some) I'm not gonna bother commenting them. First one: Makes you move left and right rather quickly, in a zig-zag fashion. (It's a goddamn mess.) Borrows heavily from some script I found. Basically, I stole someone's template, a template that I like to use in almost all of my looping scripts. [code]---zigzag--- bind "/" "togglezigzag" alias "nocmd" "" alias "zigzagger" "zigzag" alias "zigzag" "+moveleft; wait 100; -moveleft; +moveright; wait 100; -moveright; zigzagger" alias "zigzagend" "alias zigzagger nocmd" alias "togglezigzag" "zigzagon" alias "zigzagon" "alias zigzagger zigzag; zigzagger; alias togglezigzag zigzagoff" alias "zigzagoff" "zigzagend; alias togglezigzag zigzagon" ---zigzag---[/code] Second one: Used to take advantage of certain source mod servers, to make you almost invincible. One of my first scripts, and once again a stolen template. [code]---hax--- alias "nocmd" "" alias "haxloop" "hax" alias "hax" "sm_health; sm_ammo; sm_uber; wait 2; 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" ---hax---[/code] This third one makes no goddamn sense, and I made it out of pure boredom. If you hold down shift and press the screenshot button, it will then continue to take 1 screenshot for each frame. It's a great way to rape your FPS AND your hard drive space! (It's incredibly sloppy and unoptimized. I literally wrote it just now. Untested. Written from scratch, no stolen template this time!) [code]bind "f5" "takepicture" alias "takepicture" "jpeg; alias startrecord nocmd" alias "startrecord" "nocmd" bind "shift" "+alterscreenshot" alias "+alterscreenshot" "alterscreenshoton" alias "-alterscreenshot" "alterscreenshotoff" alias "alterscreenshoton" "bind f5 recorder" alias "alterscreenshotoff" "bind f5 takepicture" alias "recorder" "rebindrecord;startrecord" alias "rebindrecord" "alias startrecord jpeg;endrecord" alias "endrecord" "wait 1;startrecord"[/code] Post away!
I have this in my autoexec.cfg. [code]alias hon "exec hwmon" alias hoff "exec hwmoff"[/code] And I have two cfg files named hwmon.cfg and hwmoff.cfg inside my cfg folder which have these commands in them. hwmon [code]mp_usehwmmodels 1 mp_usehwmvcds 1[/code] hwmoff [code]mp_usehwmmodels 0 mp_usehwmvcds 0[/code] So when I type hon, it turns on HWM models and when I type hoff it turns off HWM models. It basically just makes it easier for me to turn HWM models on and off.
The wait command doesn't work anymore in tf2.
[QUOTE=Reg;18181561]The wait command doesn't work anymore in tf2.[/QUOTE] It does, servers just have the ablilty to disable it via cvar now.
bind mousewheelup +forward bind mousewheeldown +back and bind the entire keyboard to kill.
[QUOTE=iLife_Aftermath;18182469]bind mousewheelup +forward bind mousewheeldown +back and bind the entire keyboard to kill.[/QUOTE] best idea ever
[code]bind "capslock" "say rtd"[/code]
bind "f1" "say rtd" bind "mouse3" "say !vip" [editline]03:57PM[/editline] also for admins bind "mouse1" "sm_slay @aim"
[QUOTE=BassB;18183708] bind "mouse1" "sm_slay @aim"[/QUOTE] Admin in kinda OP, I think Valve should nerf it. RageBinds : [quote] alias whine1 "say "FUCK YOU FUCKING FUCKER FUCK!"; bind X whine2" alias whine2 "say "Your mother smell like a a less attractive woman"; bind X whine3" alias whine3 "say "HAHAHA, something funny on tv, was afk"; bind X whine4" alias whine4 "say " JEEZ fps lag I CANT TAKE IT"; bind X whine5" alias whine5 "say "HORNY i got distracted by neighbours daughter"; bind X whine6" alias whine6 "say "toiletlicking DEAD KANGAROO SITTING IN CHAIR"; bind X whine7" alias whine7 "say "cumguzzling rusty cat CAN YOU FUCKING BELIEVE THIS SHIT?!"; bind X whine8" alias whine8 "say " WONDERFUL, SIMPLY FUCKING WONDERFUL who made this mouse omg"; bind X whine9" alias whine9 "say "ASDASFFASXZXVVZ!"; bind X whine10" alias whine10 "say "FUCK THIS! I'm off to CS again n00bs!"; bind X whine11" alias whine11 "say "NO WAY kid pulling my trouser"; bind X whine12" alias whine12 "say "WTF! Fucking noobgame! "; bind X whine13" alias whine13 "say "silly cat pissing on the cookies I WANTED TO EAT THEM"; bind X whine14" alias whine14 "say "WONDERFUL, SIMPLY FUCKING WONDERFUL madonna playing"; bind X whine15" alias whine15 "say "lucky bastard"; bind X whine16" alias whine16 "say "drug dealer wans his bmoney back"; bind X whine17" alias whine17 "say "common sense WHAT IS THE ODDS?"; bind X whine18" alias whine18 "say "My mouse slipped! Seriously!"; bind X whine19" alias whine19 "say "broken my arm just now FUCK YOU"; bind X whine20" alias whine20 "say "aimbotter FOR FUCKS SAKE"; bind X whine21" alias whine21 "say "A BIRD FLEW THROUGH WINDOW FUCK YOU"; bind X whine22" alias whine22 "say "goddamn dog farted FFS?"; bind X whine23" alias whine23 "say "Fucking w+m1 noskill!"; bind X whine24" alias whine24 "say "THE MEDICS REVIVED SOMEONE NEXTDOOR THE SOUND ZZZ FUCK YOU"; bind X whine25" alias whine25 "say "GF PREGNANT OK??"; bind X whine1" bind X whine1[/quote]
[QUOTE=PiXeN;18184539]Admin in kinda OP, I think Valve should nerf it. RageBinds :[quotealias whine1 "say "FUCK YOU FUCKING FUCKER FUCK!"; bind X whine2" alias whine2 "say "Your mother smell like a a less attractive woman"; bind X whine3" alias whine3 "say "HAHAHA, something funny on tv, was afk"; bind X whine4" alias whine4 "say " JEEZ fps lag I CANT TAKE IT"; bind X whine5" alias whine5 "say "HORNY i got distracted by neighbours daughter"; bind X whine6" alias whine6 "say "toiletlicking DEAD KANGAROO SITTING IN CHAIR"; bind X whine7" alias whine7 "say "cumguzzling rusty cat CAN YOU FUCKING BELIEVE THIS SHIT?!"; bind X whine8" alias whine8 "say " WONDERFUL, SIMPLY FUCKING WONDERFUL who made this mouse omg"; bind X whine9" alias whine9 "say "ASDASFFASXZXVVZ!"; bind X whine10" alias whine10 "say "FUCK THIS! I'm off to CS again n00bs!"; bind X whine11" alias whine11 "say "NO WAY kid pulling my trouser"; bind X whine12" alias whine12 "say "WTF! Fucking noobgame! "; bind X whine13" alias whine13 "say "silly cat pissing on the cookies I WANTED TO EAT THEM"; bind X whine14" alias whine14 "say "WONDERFUL, SIMPLY FUCKING WONDERFUL madonna playing"; bind X whine15" alias whine15 "say "lucky bastard"; bind X whine16" alias whine16 "say "drug dealer wans his bmoney back"; bind X whine17" alias whine17 "say "common sense WHAT IS THE ODDS?"; bind X whine18" alias whine18 "say "My mouse slipped! Seriously!"; bind X whine19" alias whine19 "say "broken my arm just now FUCK YOU"; bind X whine20" alias whine20 "say "aimbotter FOR FUCKS SAKE"; bind X whine21" alias whine21 "say "A BIRD FLEW THROUGH WINDOW FUCK YOU"; bind X whine22" alias whine22 "say "goddamn dog farted FFS?"; bind X whine23" alias whine23 "say "Fucking w+m1 noskill!"; bind X whine24" alias whine24 "say "THE MEDICS REVIVED SOMEONE NEXTDOOR THE SOUND ZZZ FUCK YOU"; bind X whine25" alias whine25 "say "GF PREGNANT OK??"; bind X whine1" bind X whine1[/quote][/QUOTE] I love you
ragequit.cfg alias ragequit "echo 'LOL YOU SUCK FAGGOT'; wait 200; prompt quit"
[QUOTE=LEETNOOB;18184973]ragequit.cfg alias ragequit "echo 'LOL YOU SUCK FAGGOT'; wait 200; prompt quit"[/QUOTE] why echo? echo doesn't write on the game chat, just in console. [editline]06:05PM[/editline] oh and prompt quit is not a command
[QUOTE=Reg;18185153]why echo? echo doesn't write on the game chat, just in console. [editline]06:05PM[/editline] oh and prompt quit is not a command[/QUOTE] [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=LEETNOOB;18184973]ragequit.cfg alias ragequit "echo 'LOL YOU SUCK FAGGOT'; wait 200; prompt quit"[/QUOTE] 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=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] The above is true. Put thought into your raging scripts.
Bind "all" "Quit" Done.
He's a leet noob, what can you do.
I don't think all works either.
[QUOTE=BlackWind;18185368]Bind "all" "Quit" Done.[/QUOTE] Here's another console newbie.
[code] alias +jumpeh "+jump; +duck" alias -jumpeh "-duck; -jump" bind "space" "+jumpeh" echo "Crouch Jump Loaded Properly." [/code] :downs: [code]bind h "disguise 8 -2;wait 10;taunt;+attack2;wait 20;-attack2;wait 400;lastdisguise"[/code] Cloaked taunt, 100% working. Oh and I edited the FAN jump script a bit. [code] bind 1 "slot1; fanon" bind 2 "slot2" bind 3 "slot3; fanoff" alias "fanon" "bind mouse2 +fanjump;playgamesound TFPlayer.CritHit" alias "fanoff" "bind mouse2 +attack2;playgamesound Bullets.DefaultNearmiss" alias +fanjump "+jump;+duck;wait 3;+attack" alias -fanjump "-jump;-duck;wait 3;-attack" echo "ROCKET SCOOT LOADED, RAINBOWS MAKE ME FLY!" [/code]
[code]bind "mouse1" "kill; wait 50; say i'm a faggot" bind "w" "+back" bind "a" "+jump" bind "s" "+forward" bind "d" "+jump"[/code] I used to do this with some noob friends of mine, was pretty funny. But sometimes I had to quckly write this on console, or just put it in an autoexec.cfg, then watch him playing.. :P
[QUOTE=Reg;18185395]Here's another console newbie.[/QUOTE] Here's another Sarcasm newbie.
[QUOTE=BlackWind;18186569]Here's another Sarcasm newbie.[/QUOTE] That wasn't sarcasm.
[QUOTE=EDDY TT;18186421][code] alias +jumpeh "+jump; +duck" alias -jumpeh "-duck; -jump" bind "space" "+jumpeh" echo "Crouch Jump Loaded Properly." [/QUOTE] :downs: [quote] hasn't crouch-jump been removed? [editline]08:52PM[/editline] [QUOTE=Hellduck07;18186599]That wasn't sarcasm.[/QUOTE] Not even a bit
[code]alias wep1 "slot1; wep1com; alias mouseup wep-3; alias mousedown wep2; alias quickswap wep-3; alias lastwep wep1; alias curwepcom wep1com; keybind1" alias wep2 "slot2; wep2com; alias mouseup wep-1; alias mousedown wep3; alias quickswap wep-1; alias lastwep wep2; alias curwepcom wep2com; keybind2" alias wep3 "slot3; wep3com; alias mouseup wep-2; alias mousedown wep1; alias quickswap wep-2; alias lastwep wep3; alias curwepcom wep3com; keybind3" alias wep-1 "slot1; wep1com; alias mouseup wep-3; alias mousedown wep2; alias quickswap wep2; alias lastwep wep-1; alias curwepcom wep1com; keybind-1" alias wep-2 "slot2; wep2com; alias mouseup wep-1; alias mousedown wep3; alias quickswap wep3; alias lastwep wep-2; alias curwepcom wep2com; keybind-2" alias wep-3 "slot3; wep3com; alias mouseup wep-2; alias mousedown wep1; alias quickswap wep1; alias lastwep wep-3; alias curwepcom wep3com; keybind-3" alias keybind1 "alias key1 wep1; alias key2 mousedown; alias key3 mouseup" alias keybind2 "alias key1 mouseup; alias key2 wep2; alias key3 mousedown" alias keybind3 "alias key1 mousedown; alias key2 mouseup; alias key3 wep3" alias keybind-1 "alias key1 wep-1; alias key2 mousedown; alias key3 mouseup" alias keybind-2 "alias key1 mouseup; alias key2 wep-2; alias key3 mousedown" alias keybind-3 "alias key1 mousedown; alias key2 mouseup; alias key3 wep-3" alias mouseup "wep-3" alias mousedown "wep2" alias quickswap "lastwep" alias lastwep "wep2" alias curwepcom "wep1com" alias key1 "wep1" alias key2 "mousedown" alias key3 "mouseup" alias key4 "slot4; extrakey" alias key5 "slot5; extrakey" alias extrakey "alias mouseup wep-3; alias mousedown wep1; alias quickswap lastwep; curwepcom; noreload" // DO NOT MESS WITH THE ABOVE STUFF alias wep1com "" alias wep2com "" alias wep3com "" //BACKUP bind MWHEELUP mouseup bind MWHEELDOWN mousedown bind Q quickswap bind 1 key1 bind 2 key2 bind 3 key3 //bind 4 key4 //bind 5 key5[/code] I could get everything I have out of my files... but that would be a massive undertaking.
[QUOTE=Rythyrix;18187837][code]alias wep1 "slot1; wep1com; alias mouseup wep-3; alias mousedown wep2; alias quickswap wep-3; alias lastwep wep1; alias curwepcom wep1com; keybind1" alias wep2 "slot2; wep2com; alias mouseup wep-1; alias mousedown wep3; alias quickswap wep-1; alias lastwep wep2; alias curwepcom wep2com; keybind2" alias wep3 "slot3; wep3com; alias mouseup wep-2; alias mousedown wep1; alias quickswap wep-2; alias lastwep wep3; alias curwepcom wep3com; keybind3" alias wep-1 "slot1; wep1com; alias mouseup wep-3; alias mousedown wep2; alias quickswap wep2; alias lastwep wep-1; alias curwepcom wep1com; keybind-1" alias wep-2 "slot2; wep2com; alias mouseup wep-1; alias mousedown wep3; alias quickswap wep3; alias lastwep wep-2; alias curwepcom wep2com; keybind-2" alias wep-3 "slot3; wep3com; alias mouseup wep-2; alias mousedown wep1; alias quickswap wep1; alias lastwep wep-3; alias curwepcom wep3com; keybind-3" alias keybind1 "alias key1 wep1; alias key2 mousedown; alias key3 mouseup" alias keybind2 "alias key1 mouseup; alias key2 wep2; alias key3 mousedown" alias keybind3 "alias key1 mousedown; alias key2 mouseup; alias key3 wep3" alias keybind-1 "alias key1 wep-1; alias key2 mousedown; alias key3 mouseup" alias keybind-2 "alias key1 mouseup; alias key2 wep-2; alias key3 mousedown" alias keybind-3 "alias key1 mousedown; alias key2 mouseup; alias key3 wep-3" alias mouseup "wep-3" alias mousedown "wep2" alias quickswap "lastwep" alias lastwep "wep2" alias curwepcom "wep1com" alias key1 "wep1" alias key2 "mousedown" alias key3 "mouseup" alias key4 "slot4; extrakey" alias key5 "slot5; extrakey" alias extrakey "alias mouseup wep-3; alias mousedown wep1; alias quickswap lastwep; curwepcom; noreload" // DO NOT MESS WITH THE ABOVE STUFF alias wep1com "" alias wep2com "" alias wep3com "" //BACKUP bind MWHEELUP mouseup bind MWHEELDOWN mousedown bind Q quickswap bind 1 key1 bind 2 key2 bind 3 key3 //bind 4 key4 //bind 5 key5[/code] I could get everything I have out of my files... but that would be a massive undertaking.[/QUOTE] A little bit of an explanation would be a big help.
I think it's a quickswitch script. Choosing primary weapon will bind mousewheelup to secondary and mousewheeldown to melee. If you select secondary, then mousewheelup will be bound to primary. With some additionnal stuff, but that's what is does.
[QUOTE=Reg;18187791] hasn't crouch-jump been removed? [/QUOTE] 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]
[code] clear echo Liseda.cfg //[CLASSES]// cl_class Scout //-[MOUSEBINDINGS]// bind "mouse3" "slot3" bind "mouse4" "slot2" bind "mouse5" "slot1" //[CONSOLE]// //-[NETGRAPH] net_graph 1 net_graphpos 3 net_graphpos 10 net_graphshowinterp 0 net_graphshowlatency 0 net_graphproportionalfont 0 //-[CROSSHAIR] cl_crosshair_file crosshair3 cl_crosshair_scale 27.58000 cl_crosshaircolor "0" cl_dynamiccrosshair "1" cl_scalecrosshair "1" cl_crosshairalpha "200" //-[SETTINGS] con_enable 1 cl_logofile "materials/vgui/logos/ui/spraylol.vtf" jpeg_quality 100 commentary 0 sensitivity 4 setinfo name "Liseda" cl_showpluginmessages "0" cl_showhelp "0" hud_fastswitch 1 //Mouse m_pitch "0.022" m_filter "0" m_side "0.8" m_yaw "0.022" m_forward "1" m_customaccel "0" m_customaccel_scale "0.04" m_customaccel_max "0" m_customaccel_exponent "1" m_mouseaccel1 "0" m_mouseaccel2 "0" m_mousespeed "1" cl_mouselook "1" cl_idealpitchscale "0.8" //Net Settings cl_allowdownload "0" cl_allowupload "0" cl_cmdrate "101" cl_updaterate "101" rate "25000" //-[HLSS] alias hlss-START "voice_inputfromfile 1; voice_loopback 1; +voicerecord; alias ToggleWAV hlss-STOP" alias hlss-STOP "voice_inputfromfile 0; voice_loopback 0; -voicerecord; alias ToggleWAV hlss-START" alias ToggleWAV "hlss-START" voice_fadeouttime 0 bind "F5" "ToggleWav" mp_usehwmmodels 1 mp_usehwmvcds 1 dsp_enhance_stereo 1 clear[/code] meh, nothing special. (yeah, i know it's pretty much my config)
I've done a few. Just fun stuff or self-convenience. Simple bindings I have are F5 to "jpeg" (everyone should have this) coupled with "jpeg_quality 100", "inspect" bound to F, O bound to "kill" and P bound to "explode", and del bound to "sm_admin" for the one time I was an admin on a server before it died. :( I also moved the three menu keys on M, comma, and period to the left, down, and right arrow keys since for me the original keys are hard to find when not looking at the keyboard. I've also stuck the backpack button Valve added onto the keypad 0 key. As for scripts, I've only fully created a few. One that's useful for Reag's "jumpeh" (By the way, I didn't know you were the one who created this, Reag. Been using it for ages. :buddy:) is a button that you can hold to switch spectator modes. You can change uparrow to whatever you want. Just hold the bound button while in spectator and press the spacebar to cycle through modes. Let go of the bound key to change it back to crouch jump. [code]//Spectator Mode Function Fix (for crouch jump) alias "+specfix" "bind space +jump" alias "-specfix" "bind space +jumpeh" bind "UPARROW" "+specfix"[/code] Another script I made allows me to view my weapon slots on the right side of the screen when I have weapon fast switch turned on. I made it rather hastily, so it's probably got some unnecessary bits in it, but at least it works. [code]//HUD Buckets with Weapon Fast Switch alias +slotcheck1 "slot1;slot7" alias -slotcheck1 "+attack;wait 1;-attack" bind 1 "+slotcheck1" alias +slotcheck2 "slot2;slot8" alias -slotcheck2 "+attack;wait 1;-attack" bind 2 "+slotcheck2" alias +slotcheck3 "slot3;slot9" alias -slotcheck3 "+attack;wait 1;-attack" bind 3 "+slotcheck3" alias +slotcheck4 "slot4;slot10" alias -slotcheck4 "+attack;wait 1;-attack" bind 4 "+slotcheck4" alias +slotcheck5 "slot5;slot10" alias -slotcheck5 "+attack;wait 1;-attack" bind 5 "+slotcheck5"[/code] I'm sure a lot of you already have your own form of this, but I couldn't find one myself so I just made one. It lets you toggle voice on and off rather than holding the button down. It's called "Game Boy Music Player" because initially I was using it to stream audio directly from a Game Boy plugged into my computer. Sounds dumb, but I brought many enjoyable classics to micspam servers. :buddy: That and I'm far too lazy to set up and keep HLSS so I tend to just plug shit directly into my computer like an iPod. It's also fun to use the DSi's sound program in-game. :v: [code]//Game Boy Music Player alias gameboytoggle "gb1" alias gb1 "+voicerecord; alias gameboytoggle gb2" alias gb2 "-voicerecord; alias gameboytoggle gb1" bind "n" "gameboytoggle"[/code] Lastly, I made a script that brings back the scrapped "melee dare" voice clips to the characters supported by them. It also adds some unused punching voiceovers for the Heavy that makes punching really fun. :buddy: [url]http://www.facepunch.com/showthread.php?t=799814[/url]
Sorry, you need to Log In to post a reply to this thread.