Wolfenstein Enemy Territory

Learn Wolfenstein ET from the Inside Out!

TwitterMy ImageMy Image
admin On April - 27 - 2010
Wolfenstein ET: bind in a bind
As a newbie I didn’t know you can add binds inside binds. In this case I mean there is the function to let you bind a key only when you launch it by pressing another key.

For example, i want to be able to quit ET only if I pressed esc and then press delete.

bind ESC “bind DEL quit”

Notice this can also be made in an improved way with the +vstr function, so you have to hold esc while pressing delete to be able to quit.

bind ESC “+vstr quitON quitOFF”
set quitON “bind DEL quit”
set quitOFF “bind DEL echo ^qPress Esc First!”  // (or “unbind DEL”)

Next Chapter

Be the first to like.

GD Star Rating
loading…

Bind in a Bind, 5.0 out of 5 based on 2 ratings

Categories: Featured, Scripting Guide
  • Dov*

    Will this bind work?

    Bind ESC “bind DEL say Cheer;unbind DEL”

    Greets,
    Dov*

    GD Star Rating
    loading...
    • admin

      Yes that should work.
      So it would mean when you press ESC and then press DEL it would cheer and then unbind DEL again.

      Great and short alternative for the one I used, just that you can’t cancel the bind unless you actually press DEL and make the command run.

      GD Star Rating
      loading...
    • Moanraker

      No, it wont work. It will bind it, and immediatly delete it.
      I think it should be more like

      bind ESC “+vstr cheerTrue cheerFalse”
      set cheerTrue “bind DEL say cheer” (BTW, this could be vsay Cheer)
      set cheerFalse “bind DEL echo ^qPress Esc First!” // (or “unbind DEL”)

      GD Star Rating
      loading...
      • admin

        So basically what I wrote in the post itself :D

        GD Star Rating
        loading...
  • Drifty

    Hey I got a question,
    Will this work?

    I’m trying to get the first 2 settings that mouse2 is binded as weapalt, and the 3rd will activate the sniperscript as you push mouse2.
    It would help me so much if you could help me.
    Thanks

    set sniper0 “bind MOUSE2 +weapalt ;com_maxfps 125 ; sensitivity 1.1 ; m_pitch 0.016; set cyclesniper vstr sniper1; echo ^7Sniper mode OFF”
    set sniper1 “bind MOUSE2 +weapalt ;com_maxfps 125 ; sensitivity 1.1 ; m_pitch 0.016; set cyclesniper vstr sniper2; echo ^7Sniper mode 1″
    set sniper2 “+weapalt; com_maxfps 125 ; sensitivity 1.1 ; m_pitch 0.016; set cyclesniper vstr sniper0; echo ^7Sniper mode 2″

    set cyclesniper vstr sniper0
    bind x vstr cyclesniper

    GD Star Rating
    loading...
    • admin

      Everything should work except the last line wont as you probably expect.
      I don’t know what sniperscript you’re talking about, if you use

      set sniper2 “+weapalt; com…”

      you will scope your rifle when pressing that x and it will remain until you undo it with mouse2.
      so maybe you need to replace that with the vstr of the sniper script you’re talking about.

      GD Star Rating
      loading...
  • Drifty

    mhm yea it wasn’t for me.. But i think I shouldnt bind it in one vstr.. or would I?

    GD Star Rating
    loading...
    • admin

      It’s always a little safer to spread out vstrs, yes.

      Sorry for the late responce :D

      GD Star Rating
      loading...

About Us

This is the unofficial site of Wolfenstein Enemy Territory. You will be able to find resources like cool screenshots and configs here, but also tutorials to get the maximum out of your game. If there is anything you wish to ask or if you have any advice... Just post a comment on an article or contact us through the Contact form. V57!

Recent Comments