Page 1 of 1
Ammo drop binds
Posted: Mon Oct 15, 2012 7:04 pm
by someoneelse
I would like to set aliases to drop ammo WHEN THE BUTTON IS PRESSED in one second delay, so servers won't be mad...
I tried things like
alias dropr "drop rocketammo; wait 39; dropr;
but it just spams ammo all the time, and the delay doesn't stop servers from yelling at me. I tried +dropr alias, but no idea what to put into -dropr... Any idea?
RE: Ammo drop binds
Posted: Mon Oct 15, 2012 7:12 pm
by infurnus
How's this?
Code: Select all
alias dropon "alias dropon droploop"
alias dropoff "alias dropon wait"
alias droploop "drop rocketammo; wait 39; dropon"
alias +drophold "dropon"
alias -drophold "dropoff; wait 39; alias dropon droploop"
EDIT 3: OK, it should work, I think? I can't quite get the drop command going on my end, but I replaced it with "summon rocket" to test, and I got it repeating and turning off like it should.
EDIT 4: vvvvv skip mine, that one is better!
RE: Ammo drop binds
Posted: Mon Oct 15, 2012 7:18 pm
by Ijon Tichy
what I do is
Code: Select all
set dropitem "rocketammo"
archivecvar dropitem
alias dropon "set dodrop 1; droploop"
alias dropoff "set dodrop 0"
alias droploop "drop $dropitem; wait 35; test $dodrop \"droploop\""
alias +drop dropon
alias -drop dropoff
RE: Ammo drop binds
Posted: Mon Oct 15, 2012 7:24 pm
by someoneelse
well, with "alias dropon "dropon droploop"" I get error "dropon was trying to recurse", and if I changed it to "droploop dropon" it was going into an infinite loop.
Also, for some reason, server still yells that I need to wait a second... I think it may be some error?
__EDIT___
ijon is magical after all. Thanks!