Ammo drop binds

General help and assistance forum.
Post Reply
User avatar
someoneelse
Forum Regular
Posts: 338
Joined: Sat Aug 18, 2012 10:53 am
Location: Poland

Ammo drop binds

#1

Post by someoneelse » Mon Oct 15, 2012 7:04 pm

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?
Shared keys will now be in Zandro! Thanks devs for their work, and users for the support!
<AlienOverlord> Do you have any friends at all
<AlienOverlord> You play Doom

User avatar
infurnus
Retired Staff / Community Team Member
Posts: 601
Joined: Tue May 29, 2012 9:40 pm
Location: Dusty SEGA Tapes
Clan: Unidoom
Clan Tag: UD
Contact:

RE: Ammo drop binds

#2

Post by infurnus » Mon Oct 15, 2012 7:12 pm

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!
Last edited by infurnus on Mon Oct 15, 2012 7:35 pm, edited 1 time in total.

Ijon Tichy
Frequent Poster Miles card holder
Posts: 901
Joined: Mon Jun 04, 2012 5:07 am

RE: Ammo drop binds

#3

Post by Ijon Tichy » Mon Oct 15, 2012 7:18 pm

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
Last edited by Ijon Tichy on Mon Oct 15, 2012 7:33 pm, edited 1 time in total.

User avatar
someoneelse
Forum Regular
Posts: 338
Joined: Sat Aug 18, 2012 10:53 am
Location: Poland

RE: Ammo drop binds

#4

Post by someoneelse » Mon Oct 15, 2012 7:24 pm

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!
Last edited by someoneelse on Mon Oct 15, 2012 7:37 pm, edited 1 time in total.
Shared keys will now be in Zandro! Thanks devs for their work, and users for the support!
<AlienOverlord> Do you have any friends at all
<AlienOverlord> You play Doom

Post Reply