Announcement

Collapse
No announcement yet.

IF, IF NOT, & THEN console commands?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • IF, IF NOT, & THEN console commands?

    Are there any quake console commands that work like the IF, IF NOT, and THEN commands in qbasic? Like "IF +w4 THEN +w4a". Something like that. Does anyone know if there is a way to do something similar? A way to carry out one command or another depending on whether or not another specific command has already occurred.

    -Legend

  • #2
    im not sure about netquake clients, but this defo exists in qw clients
    Yet I still beat you more easily than a hammer can beat a fresh batch of Rowntree's fruit jelly.
    The 300pingGOD ( july '98 )

    Comment


    • #3
      i smeel a hack ;O

      if health < 1 switch to axe... ie empty backpacks
      www.quakeone.com/qrack | www.quakeone.com/cax| http://en.twitch.tv/sputnikutah

      Comment


      • #4
        u can make ur config to switch to axe all the time ur not firing anyways..

        Code:
        alias AXE "impulse 1"
        alias SG  "impulse 2"
        alias SSG "impulse 3"
        alias NG  "impulse 4"
        alias SNG "impulse 5"
        alias GL  "impulse 6"
        alias RL  "impulse 7"
        alias LG  "impulse 8"
        
        bind "1" "alias selected AXE"
        bind "2" "alias selected SG "
        bind "3" "alias selected SSG"
        bind "4" "alias selected NG "
        bind "5" "alias selected SNG"
        bind "6" "alias selected GL "
        bind "7" "alias selected RL "
        bind "8" "alias selected LG "
        
        alias +fire "selected;+attack;AXE"
        alias -fire "-attack"
        
        bind "MOUSE1" "+fire"
        Last edited by =peg=; 01-30-2007, 06:59 AM.

        Comment


        • #5
          Originally posted by R00k View Post
          i smeel a hack ;O

          if health < 1 switch to axe... ie empty backpacks
          Yeah good going r00k give them ideas

          Comment


          • #6
            nothing new...

            Comment


            • #7
              Not sure but i googled Quake console commands; this seemed to be the best page...
              http://www.zedtoo.demon.co.uk/quake/q3.html
              e|------------------------0---------------
              B|---------------0^1----------------1----
              G|---------------2------2------0^2-------
              D|---------------2-------2--2-------------
              A|---------------0------------------------
              E|----------------------------------------

              Comment


              • #8
                the_f0qer is living in pre-q1-source days LOL.

                btw peg, as you know qw removed the "impulse 1/2" switching with the drop best weapon pack function
                Yet I still beat you more easily than a hammer can beat a fresh batch of Rowntree's fruit jelly.
                The 300pingGOD ( july '98 )

                Comment


                • #9
                  I don't code, I just play =]
                  The most I've ever coded was autoexec.cfg:
                  Code:
                  +mlook         
                  cl_backspeed 400      
                  cl_forwardspeed 400  
                  cl_sidespeed 400
                  cl_upspeed 400
                  crosshair "1"
                  cl_bob 0.00
                  cl_rollangle 0.
                  v_kickpitch 0.0
                  v_kicktime 0.0
                  v_kickroll 0.0
                  gl_triplebuffer 1
                  gl_flashblend 0
                  gl_texturemode GL_LINEAR_MIPMAP_LINEAR
                  r_wateralpha .6
                  r_waterwarp 0
                  r_novis 1
                  pq_waterblend 0
                  pq_fullpitch 0
                  pq_drawfps 1
                  If you call that coding anyway.
                  e|------------------------0---------------
                  B|---------------0^1----------------1----
                  G|---------------2------2------0^2-------
                  D|---------------2-------2--2-------------
                  A|---------------0------------------------
                  E|----------------------------------------

                  Comment


                  • #10
                    scipting is totally not coding

                    Comment


                    • #11
                      true allthough u can do some pretty complicated stuff with just a few aliases (or a lot)

                      Comment


                      • #12
                        People who build firewalls using shell scripts can get pretty complex. But it's scripting ^_^

                        Comment

                        Working...
                        X