Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bind a key for 2 or 3 actions?

8 views
Skip to first unread message

drbrain

unread,
Jul 17, 1999, 3:00:00 AM7/17/99
to
In article <7mq2gn$199$1...@the-fly.zip.com.au>, Grot wrote:
>I was wondering if & how to bind a single key for 2 or 3 actions. As in jump
>& fire then say move back.
>I've tried a few combinations in config file but will only do 1 of the
>comands or none at all.
>
>I tried lines like...
>bind k "+moveup"; "+attack"
>bind k "+moveup" "+attack"
>bind k "+moveup +attack" etc...

bind is deprecated, you need to use set:

set foobar "+moveup;wait;+attack;wait;-attack;wait;-moveup"
bind r vstr foo

you have to wait a gametic after every action because you can't two things at
the same time (but since a gametic is <<1s, it just seems they happen
simoultanously).

dont forget to use 'vstr foo', instead of 'foo' in the bind command. vstr will
evalute the variable you set, and not to show it.

cheers,
Markus

--
http://www.theclq.com/asp/info.asp?pid=1424642

Grot

unread,
Jul 18, 1999, 3:00:00 AM7/18/99
to

I was wondering if & how to bind a single key for 2 or 3 actions. As in jump
& fire then say move back.

I've tried a few combinations in config file but will only do 1 of the
comands or none at all.

I tried lines like...

bind k "+moveup"; "+attack"

bind k "+moveup" "+attack"

bind k "+moveup +attack" etc...

If anyone knows how to do this, could you please let me know.

Thanks

Grot

ps. This question is for Quake3

Otser

unread,
Jul 18, 1999, 3:00:00 AM7/18/99
to
Grot <scot...@zip.com.au> wrote

> I tried lines like...
>
> bind k "+moveup"; "+attack"
>
> bind k "+moveup" "+attack"
>
> bind k "+moveup +attack" etc...
>
> If anyone knows how to do this, could you please let me know.

Hi, fellow Zipster! :)

You *almost* got it right above... hehehe... do this:

bind k "+moveup ; +attack"

On some PC's you might need a "wait" or two like so:

bind k "+moveup ; wait ; +attack"

Regards, Otser.

--
Visit my web site: http://www.zipworld.com.au/~otser
You'll find Quake, Psion 3c and Amiga stuff there!

Pete Hind

unread,
Jul 18, 1999, 3:00:00 AM7/18/99
to
Dunno about Quake 3...but for normal Quake and Quake 2, you need to create an
alias and then bind that to your key. Try this:

alias runfire "+forward; +attack"
bind k "runfire"

you always need a ';' between commands. I used +forward insead of +moveup as
+moveup is for climbing and will fire into the ladder you are climbing.

Hope this helps
Cheers
Setanta


Grot wrote:

> I was wondering if & how to bind a single key for 2 or 3 actions. As in jump
> & fire then say move back.
>
> I've tried a few combinations in config file but will only do 1 of the
> comands or none at all.
>

> I tried lines like...
>
> bind k "+moveup"; "+attack"
>
> bind k "+moveup" "+attack"
>
> bind k "+moveup +attack" etc...
>
> If anyone knows how to do this, could you please let me know.
>

> Thanks
>
> Grot
>
> ps. This question is for Quake3

--
"No dammit, it's not OK. Where's the [NOT OK] button?"
(Micro$oft General Protection Fault No. !@#$%*&)

Email: pmh...@zipworld.com.au (Remove "Spamblock" to reply).
ph...@carlo-high.nsw.edu.au (work)
http://www.zipworld.com.au/~pmhind

0 new messages