Help - Search - Members - Calendar
Full Version: Macro Malfunction
Unknown Worlds Forums > Natural Selection > Natural Selection Help > Tech Support
TommyVercetti
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!
R_e_n_e_g_a_d_e
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 -"
TommyVercetti
Thanks, but when I put the text second it always tacks "114" onto the end of the message.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.