Macro Malfunction

TommyVercettiTommyVercetti Join Date: 2003-02-10 Member: 13390Members, Constellation, Reinforced - Shadow
I think this is the right forum to post this in... Anyways,

Recently I tried to
bind "r" "say_team - ReLOADiNG -; +reload"

and now whenever I try to fire with mouse1 the gun plays the fire animation but reloads until I remove the say_team in the config. Help!

Comments

  • Renegade.Renegade. Join Date: 2003-01-15 Member: 12313Members, Constellation
    Simple, every half-life action command (i.e. it performs something: fire, reload, jump etc.) has two counter-parts a + and - command. Remember that ever + command must be met with a - command to stop it, thus if you have "+reload" a
    "-reload" is needed to stop reloading (otherwise you will reload indefinately). It is similar to +attack and -attack, forgetting the -attack would make you shoot/bite infinately. This is also a good time to note that anyone experiencing not being able to respawn this is a result of not entering a - command. If you die in the middle of a jump/attack/reload it may happen (very rare) that the "-" command of what you were doing never got a chance to execute, thus you will not spawn until you finish doing whatever command you previously were doing. In this case pull down your console and type all the most common "-" commands to allievate this.

    So in summary, the solution to your problem would look like this:

    bind "r" "say_team - ReLOADiNG -; +reload; wait; -reload"

    HOWEVER, a much simplier way to avoid the "wait" and other "+/-" junk is by using the NS substituted command for reload which is "impulse 2"
    thus the simplified version would look like:

    bind "r" "say_team - ReLOADiNG -; impulse 2"

    P.S. I would also suggest that you initiate reloading first to minimize reloading time:
    bind "r" "impulse 2; say_team - ReLOADiNG -"
  • TommyVercettiTommyVercetti Join Date: 2003-02-10 Member: 13390Members, Constellation, Reinforced - Shadow
    Thanks, but when I put the text second it always tacks "114" onto the end of the message.
Sign In or Register to comment.