Writing binds
Writing binds
2020-11-25What are binds?
Binds are a set of commands (or a single command) assigned to a chosen key.
Where to put them and how to run them?
You place binds just like your own config. You can put all binds in autoexec.cfg, or create a separate file with the .cfg extension and add this line to autoexec:
exec bindname.cfg
Do the same with the rest of your binds. Put all the binds you create in the etmain folder
(path: \Program Files\Wolfenstein:Enemy Territory\etmain)
Creating binds
Five main commands are used to create a bind.
They are:
bind
set - programs a command and stores it so it can be reused in another part of the bind. For example, you can store a line that changes the crosshair size and color.
It would look like this:
Set crosshair cg_crosshairSize 30; cg_crosshairColor red
Certain values (here the color and the size) are always assigned to a given parameter (here crosshair).
vstr - reads previously stored parameters (set)
Bind x vstr crosshair
Set crosshair cg_crosshairSize 30; cg_crosshairColor red
+vstr works similarly to vstr, but while the bound key is held down, +vstr plays one parameter, and when it is released, it returns another value.
Just like vstr, +vstr goes in front of the parameter. Here, however, there are two parameters (before and after pressing the key).
As an example, a bind that changes the field of view:
Bind x +vstr 90 120
Set 90 cg_fov 80
Set 120 cg_fov 120
While you hold the key, the field of view is 90. When you release it, it goes back to 120 degrees.
You can get an effect similar to +vstr with vstr.
Going back to the example:
Bind x vstr fov
Set fov vstr fov90
Set fov90 cg_fov 90; set fov vstr fov120
Set fov120 cg_fov 120; set fov vstr fov90
Here, however, the field of view changes from 120 to 90 when you press the key and doesn't change back until you press the same key (here x) again.
What can you use to create binds?
To be honest, almost all the cvars we used to create the config. We leave out only the commands that require a restart after being changed. For binds you can use all movement commands, chat commands and voice chat commands.
Chat commands
To make your own lines show up in the chat without typing them, use the say command.
Example:
bind 2 vstr gun
set gun weaponbank 2; say ^1Colt and Luger ^7make a great pair
Voice chat commands
Path cleared. - PathCleared
The enemy is weakened. - EnemyWeak
All clear. - AllClear
Incoming! - Incoming
Fire in the hole! - FireInTheHole
I'm defending. - OnDefense
I'm attacking. - OnOffense
Taking fire! - TakingFire
Mines cleared. - MinesCleared
Enemy in disguise. - EnemyDisguised
Medic! - Medic
I need ammo! - NeedAmmo
I need backup! - NeedBackup
We need an engineer! - NeedEngineer
Cover me! - CoverMe
Hold fire! - HoldFire
Where to? - WhereTo
We need Covert Ops! - NeedOps
Follow me! - FollowMe
Let's go! - LetsGo
Move! - Move
Clear the path! - ClearPath
Defend our objective! - DefendObjective
Disarm the dynamite! - DisarmDynamite
Clear the mines! - ClearMines
Reinforce the offense! - ReinforceOffense
Reinforce the defense! - ReinforceDefense
Yes! - Affirmative
No! - Negative
Thanks a lot! - Thanks
You're welcome. - Welcome
Sorry! - Sorry
Oops! - Oops
Yes! - Affirmative
No! - Negative
The enemy is weakened. - EnemyWeak
Hi! - Hi
Bye. - Bye
Great shot! - GreatShot
Yeah! - Cheer
Thanks a lot! - Thanks
You're welcome. - Welcome
Oops! - Oops
Sorry! - Sorry
Hold your fire! - HoldFire
Good game! - GoodGame
Command acknowledged! - CommandAcknowledged
Command declined! - CommandDeclined
Command completed! - CommandCompleted
Destroy the primary objective! - DestroyPrimary
Destroy the secondary objective! - DestroySecondary
Destroy the construction! - DestroyConstruction
Construction underway! - ConstructionCommencing
Repair the vehicle! - RepairVehicle
Destroy the vehicle! - DestroyVehicle
Escort the vehicle! - EscortVehicle
Cover me! - FTCoverMe
Disarm the dynamite! - FTDisarmDynamite
Fall back! - FTFallBack
Soldier, covering fire! - FTCoveringFire
Deploy mortar! - FTMortar
Heal the squad! - FTHealSquad
Heal me! - FTHealMe
Revive team mate! - FTReviveTeamMate
Revive me! - FTReviveMe
Destroy objective! - FTDestroyObjective
Repair objective! - FTRepairObjective
Construct the objective! - FTConstructObjective
Deploy landmines! - FTDeployLandmines
Disarm landmines! - FTDisarmLandmines
Call airstrike! - FTCallAirStrike
Call artillery! - FTCallArtillery
Call mortar barrage! - FTMortarBarrage
Resupply squad! - FTResupplySquad
Resupply me! - FTResupplyMe
Explore area! - FTExploreArea
Explore at co-ordinates! - FTExploreAtCoordinates
Destroy satchel objective! - FTSatchelObjective
Infiltrate! - FTInfiltrate
Go undercover! - FTGoUndercover
Provide sniper cover! - FTProvideSniperCover
I need a target! - NeedTarget
Meet at waypoint! - FTMeetWaypoint
Attack waypoint! - FTAttackWaypoint
Defend waypoint - FTDefendWaypoint
Key names
0-9 - the same
a-z - the same
insert - INS
home - HOME
page up - PGUP
page down - PGDN
delete - DEL
end - END
Numeric keypad:
Del . - KP_DEL
1 End - KP_END
2 - KP_DOWNARROW
3 - KP_PGDN
4 - KP_LEFTARROW
5 - KP_5
6 - KP_RIGHTARROW
7 - KP_HOME
8 - KP_UPARROW
9 - KP_PGUP
- - KP_MINUS
* - KP_STAR
/ - KP_SLASH
+ - KP_PLUS
enter - KP_ENTER
Example binds
Self kill
bind k "kill; say ^3Not this time"
Switching your nick from normal to clan and back
bind o "vstr nick"
set nick "vstr nick_clan"
set nick_clan "name ^8=^l]^oEoD^l[^8=^oOverCl&ck; set nick vstr nick_ffa"
set nick_ffa "name ^oOverCl&ck; set nick vstr nick_clan"
Put your own nicks after name
Changing the field of view and crouching
bind c "+vstr fov90 fov120"
set fov90 "cg_fov 90; +movedown "
set fov120 "cg_fov 120; -movedown"
Automatic sprint while shooting
bind MOUSE1 +vstr fire_on fire_off
seta fire_on "+attack;+sprint"
seta fire_off "-attack;-sprint"
Capital letters in binds:
1st way: install the 2.60b patch; if you don't want to, read on.
2nd way: wait 5;vsay hi Hello
3rd way:
bind X vstr hi
set hi vsay hi Hello
Instead of hi after vstr and set you can use a different name. The rest is described above.
Player nick shown when you kill someone (and other shortcuts):
[d] - shows the player who last killed you
[k] - shows the player you last killed
[p] - shows the player currently under your crosshair (doesn't work when aiming at an enemy, but works when spectating)
[n] - shows your nick
[w] - shows the weapon you are currently holding
[t] - shows the ammo of the weapon you are currently holding
[s] - shows your current health
[h] - shows the player who last healed you (with health packs it also works on enemies!)
[a] - shows the player who last gave you ammo
[l] - shows your current location
Note! Put ^w in front of e.g. [d] - if someone has the default color (white), it will show up green. Example:
bind j greatshot ^QWhat a shot on me, ^w[d].
Multibind:
A bind that lets you draw a picture in ET.
You already know the basic commands from above, except wait.
For example: wait25 (25 is the delay before the next line of text appears; mostly used on servers with antiflood disabled)
Example multibind:
wait10;say " ^y(\__/) "
wait10;say " ^y(+'.'+) "
wait10;say " ^y(")_(") "
It will work on the Polskie Świry server.
If a line gets cut, increase the wait.
That's about everything on binds :)
Polskie Świry voice chat binds:
The clips are quotes in Polish (mostly from Polish films and cabaret), so their names are left in Polish - that's exactly what you will hear in the game. Some of them contain strong language.
tease10 - cos ty kurwa zrobil
tease09 - idioto zabija cie za to
tease08 - jestem znajomym piaska
tease07 - rzadzisz
tease06 - prawda to dziwka
tease05 - przydalo sie troche polotu i finezji
tease04 - ty mnie sluchasz do cholery ?
tease03 - co ty na zartach sie nie znasz ?
tease02 - no konczcie flaszke i do domu
tease01 - kurwa zesz twoja mac masz zabic kazdego uzbrojonego skurwysyna
taunt10 - kargul ukradli ogiera
taunt09 - wystarczy rysiu
taunt08 - dobry mudzyn
taunt07 - rozstrzelac w pizdu wszystkich
taunt06 - jak kupisz mi dzinsy to zrobie ci loda
taunt05 - bijcie masterczolki
taunt04 - tato tato kupa
taunt03 - lubie placki
taunt02 - ufo porno
taunt01 - super partia kurwo
omg10 - a kaj twa szwesta
omg09 - babciu to jest zajebiste
omg08 - chlopcze tylko nie cieciem
omg07 - jak tatus zrobi dziubek
omg06 - wilk i zajac
omg05 - astalawista
omg04 - speedy gonzales
omg03 - sasiedzi
omg02 - lubisz to suko
omg01 - o boze boze czemus pokaral mnie takim idiota
office10 - a co to znaczy popierdolic ?
office09 - o lalalalala
office08 - Just pure pain
office07 - come on now, who do you
office06 - i gotta feeling
office05 - youll be my only
office04 - dygasz
office03 - sucka
office02 - choinka sie pali
office01 - kurwa moje pole
music10 - my lubimy sie najeba
music09 - choc choc choc usiadz na kolanka
music08 - chuj ci w dupe
music07 - sexualna niebezpieczna
music06 - my heart
music05 - ugryz suchara
music04 - tarantula
music03 - bede bral cie
music02 - bo ja tanczyc chce
music01 - ja to pierdole zdejmuje kominiare
kiddo10 - grzegorz brzenczyszczykiewicz
kiddo09 - to alkohol najwieksza trucizna
kiddo08 - ten chlopczyk ma kaca
kiddo07 - wpierdole was do rzeki
kiddo06 - napil bym sie piwa
kiddo05 - noz to jak zapalka
kiddo04 - miota nim jak szatan
kiddo03 - jestes pipa
kiddo02 - o rzesz kurwa twoja mac powstan
kiddo01 - fuck you kartoflu zapyzialy
jar09 - o ty skurwysynu urwiesz mi od internetu kabel
jar08 - krew sie kurwa poleje
jar07 - cos ty narobil durniu
jar06 - masz pitbula ktory wyglada jak jamnik
jar05 - szczac mi sie chce
jar04 - kup mi fajki na dole
jar03 - tepe chuje
jar02 - no co jest kurwa napierdalamy
jar01 - kupe sobie strzele z rana
fun10 - ja ich kurwa pozabijam
fun09 - no co ty w morde pierdolony bambusie
fun08 - zdrowie
fun07 - osiwiadczam nie ma zadnego killera
fun06 - no i w pizdu i wyladowal
fun05 - co jest stefan
fun04 - powiem ci ja jestem sam na tym swiecie
fun03 - przezyj to sam
fun02 - jestes bardzo fajny facet
fun01 - to dupeczki jazda roznosic drinki
any10 - dziabnol mnie
any09 - beer beer ber latattata
any08 - pinki i mozg
any07 - czy grales w jakies demonizne gry komputerowe
any06 - you are amazing
any05 - hello there
any04 - moj kierowca pil
any03 - impreza u oli
any02 - no kurwa jaki dupszot
any01 - you mada faka
30009 - tylko cale zycie wiezniow we wiezieniu wiezicie
30008 - ty konusie
30007 - zamknij morde
30006 - synek bo jak ja cie pierdolne
30005 - w paniu domu jest bomba
30004 - co sie stalo
30003 - no jak bedziem sie bili czy godzili
30002 - z akumulatorem na jajach jeszcze nikt nie klamal
30001 - looney tunes
New Polskie Świry voice chat binds:
fun0 - v040
fun1 - skacowana wysuszona
fun2 - smerfy lalallaala
fun3 - gracjan kupa
fun4 - jestes pipa
fun5 - tarantula
fun6 - piwo kocham piwo
fun7 - nie wiem czy wjebie jej
fun8 - muminki
fun9 - mniej niz zero
music0 - vip - v060
music1 - bede bral cie
music2 - my lubimy sie najebac
music3 - sadzic palic zalegalizowac
music4 - z buta wjezdzam
music5 - damy rade
music6 - vip - v066
music7 - eminem
music8 - vip - v068
music9 - mery mery
muz0 - dziki zachod
muz1 - chopin
muz2 - dres mam dres
muz3 - v083
muz4 - chuj ci w dupe
muz5 - popatrz na smerfa
muz6 - miesny jez
muz7 - lalalala
muz8 - kill me camper
muz9 - meep meep
oo0 - wazzzap
oo1 - alez to kurwa zjebal
oo2 - fart
oo3 - pan grasz jak dupa
oo4 - lalalallalalalala
oo5 - gdzie pieniadze sa za las
oo6 - otaczaja mnie kretyni
oo7 - kocham piwo
oo8 - siet
oo9 - i w dupach sie poprzewracalo
ps0 - rzadzisz
ps1 - impreza u oli
ps2 - no co ty w morde bambusie
ps3 - cry
ps4 - no co jest kurwa napierdalamy
ps5 - szczac mi sie chce
ps6 - patrzcie go kurwa jaki kozak
ps7 - nie denerwuj mnie
ps8 - bijcie masterczolki
ps9 - prawda to dziwka
pspowiedzonka0 - pierdolisz
pspowiedzonka1 - czego sie przypierdalacie
pspowiedzonka2 - ide na taras i wracam za raz
pspowiedzonka3 - nie stac w grupie
pspowiedzonka4 - demoniczne gry
pspowiedzonka5 - dziabnol mnie
pspowiedzonka6 - dawaj budziem sie dymac
pspowiedzonka7 - zasadzil panu ktos kiedys kopa
pspowiedzonka8 - nawed nie drgnij
pspowiedzonka9 - o kurwa nie trafilem
psteksty0 - zamknij ryj
psteksty1 - zamknij morde
psteksty2 - co jest kurwa
psteksty3 - jest tu jakis cwaniak
psteksty4 - jak o to mogl zrobic
psteksty5 - cps ty narobil durniu
psteksty6 - fakju kartoflu
psteksty7 - miota nim jak szatan
psteksty8 - no poprostu krwa no nie
psteksty9 - czituch
psvoice0 - bo ja tanczyc chce
psvoice1 - nad wszystkim czowa gospodarz domu
psvoice2 - o boze boze boze Bozenko
psvoice3 - czerwone i bure
psvoice4 - dzi dzi
psvoice5 - zobacz dziwko
psvoice6 - nakurwiam wegorza
psvoice7 - godzina 5 minut 30
psvoice8 - pijany i prawdziwy
psvoice9 - slowianie
swiry0 - tato tato kupa
swiry1 - co sie stalo
swiry2 - synek bo jak ja cie pierdolne
swiry3 - zdrowie moj ty seryjny morderco
swiry4 - ja ich kurwa pozabijam
swiry5 - kurwa moje pole
swiry6 - mamo choinka sie pali
swiry7 - a co to znaczy popierdolic
swiry8 - o boze boze czemus pokaral mnie
swiry9 - chlopcze tylko nie cieciem
txt0 - cos ty kurwa zrobil
txt1 - to dupeczki jazda roznosic
txt2 - no i w pizdu i wyladowal
txt3 - masz pitbula ktory wyglada
txt4 - krew sie kurwa poleje
txt5 - lubisz to suko
txt6 - super partia kurwo
txt7 - jak kupisz
txt8 - rozstrzelac w pizdu
txt9 - konczcie flaszke
