x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 

Forum

script management tutroiol

Created 6th June 2010 @ 12:03

Add A Reply Pages: 1

Sketch

MM

This script tutorial contains no scripts as such. It is here just to show you how to effectively manage all your class binds and stops them from clashing.

This is to stop people ever asking Q.”so when i put this in my script, do i need to do something to my other scripts” A.NO YOU FECKING DONT!

Right. First off let us assume you have made your lovely soldier script and your lovely scout script. You go into game to test and you find that you load up your soldier configuration and everything is lovely all your binds are perfect and your overly complicated weapon switching system works exactly as you intended. Half way through your epic spree of pwning noobs in the public server of your choice you decide its time for some scout! But wait oh no! what has happened all the binds from your soldier config have stayed and you no longer have a taunt button! next stop etf2l forums!

here is your simple solution, you stupid loincloth wearing monobrow fuck!:

1.Create a new document in notepad
2.In this at the top write “//unbinds” so that you know that all the unbinds below it are unbinds!
3.Underneath where you just wrote the title (this is where it gets complicated) you now need to use the “unbind” command for EVERY key in ANY of your scripts that has been modified from the default. For example:

“soldier.cfg” has a jump script on the “shift” key. It also has a weapon switching script that is not default and it is bound to “q,e and 2” Here goes:

//unbinds
unbind “shift”
unbind “q”
unbind “e”
unbind “2”

these buttons will no longer interfere with your scout config.
MAKE SURE YOU UNBIND ALL MODIFIED KEYS (unless your modification is permanent through all of your scripts. As in; all of your classes use the modification)

5.OK so now you have finished unbinding pretty much all of the keys on your keyboard you filthy script whore. We can now start rebinding default keys for tf2.
why do this? it gives you a stable platform across all of your scripts in which to work from and modify.

Under your unbinds you need to rebind the default keys. I’ve done it for you. its a bit overkill but it gives flexibility and it doesn’t break anything

//Rebinds
bind “MOUSE1” “+attack”
bind “MOUSE2” “+attack2”
bind “MWHEELDOWN” “invprev”
bind “MWHEELUP” “invnext”
bind z voice_menu_1
bind x voice_menu_2
bind c voice_menu_3
bind “q” “lastinv”
bind “r” “+reload”
bind “1” “Slot1”
bind “2” “Slot2”
bind “3” “slot3”
bind “4” “Slot4”
bind “5” “slot5”
bind “6” “slot6”
bind “7” “slot7”
bind “8” “slot8”
bind “9” “slot9”
bind “w” “+forward”
bind “a” “+moveleft”
bind “s” “+back”
bind “d” “+moveright”
bind “ctrl” “+duck”
bind “SPACE” “+jump”
bind “TAB” “+showscores”

6. Final step

In EVERY class.cfg file you MUST put this:

exec “clearmyconfig.cfg”

ps.

*1 if you have a problem with this. i dont care.
*2 if you have a problem with scripting ask chris
*3 if you have a problem with the lack of a step 4 see *1
*4 if you have the burning desire to troll or flame please feel free. its what these forums were designed for. will give + marks for effort and wit and -marks for un-creativity and repetition and repetition of an overused theme; such as “noob fag”
*5 i do sincerely hope this has helped someone.

“inb4 omg flame prediction fag”

ive been using this forever i thought it would be useful for someone.


Last edited by Sketch,

Dummy

only knobs use sripts gtfo -_-

Starkie

ulti?
sniper

Quoted from Dummy

only knobs use sripts gtfo -_-

*Cough cough*

baerbel

trick17
trick17

can you stop posting shit comments. next time its a ban. thank you.

Dummy

Quoted from Starkie

[…]
*Cough cough*

well euhm. hush stark, i’m totally not using that rocket jump script since like a year anymore. >.>
<.<

clearmyconfig.cfg should have all binds and an unbindall at the beginning.
Also, it is just stupid to do


unbind "q"
bind "q" "slot1"

instead of simply


bind "q" "slot1"

Zappah

nou

Quoted from dotfloat™

clearmyconfig.cfg should have all binds and an unbindall at the beginning.
Also, it is just stupid to do


unbind "q"
bind "q" "slot1"

instead of simply


bind "q" "slot1"

Add A Reply Pages: 1