Forum

> > CS2D > General > Control by a bind.
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Control by a bind.

7 replies
To the start Previous 1 Next To the start

old Control by a bind.

Laif
User Off Offline

Quote
Does anyone know how to change a control by a bind, and is it even included into the cs2d?
For example, when I press "P" button, my movement will be changed from "W" button (by default) to "S" (for example, of course).

old Re: Control by a bind.

EngiN33R
Moderator Off Offline

Quote
I'm not sure about that, you could try nested binds, like
1
bind "p" "bind s forward"

old Re: Control by a bind.

Laif
User Off Offline

Quote
Yep, it works, thanks. However, there is no a function, that I wanted to bind.

old Re: Control by a bind.

Laif
User Off Offline

Quote
It might sound stupid, but I wanted functions "Previous Weaopn & "Next Weapon". Just for my game-style, but nevermind. ;P

old Re: Control by a bind.

Navy Seal
User Off Offline

Quote
Use this code:
1
2
bind "mwheelup" "invprev; attack"
bind "mwheeldown" "invnext; attack"
Ok I got it after talking with you.
btw do not forget to delete this line from this file (\sys\controls.cfg):
1
2
bind "mwheelup" "invprev"
bind "mwheeldown" "invnext"
edited 2×, last 26.08.12 04:51:24 pm

old Re: Control by a bind.

Laif
User Off Offline

Quote
Nope, it ain't mwheeldown. I knew it before our talk.
EDIT: Ye mwheelup/down. Then I did en error in my bind.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview