English Control by a bind.

7 replies
Goto Page
To the start Previous 1 Next To the start
26.08.12 09:54:40 am
Up
GREEN DAY
User
Offline Off
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).
26.08.12 09:56:05 am
Up
oxytamine
User
Offline Off
Settings -> Controls.
coolface.png

Admin/mod comment:

That is not what he asked about.
26.08.12 12:10:24 pm
Up
EngiN33R
Moderator
Offline Off
I'm not sure about that, you could try nested binds, like
Code:
1
bind "p" "bind s forward"
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
26.08.12 12:59:50 pm
Up
GREEN DAY
User
Offline Off
Yep, it works, thanks. However, there is no a function, that I wanted to bind.
26.08.12 02:04:40 pm
Up
Navy Seal
User
Offline Off
user GREEN DAY has written:
Yep, it works, thanks. However, there is no a function, that I wanted to bind.


which one do u need?
26.08.12 03:52:05 pm
Up
GREEN DAY
User
Offline Off
It might sound stupid, but I wanted functions "Previous Weaopn & "Next Weapon". Just for my game-style, but nevermind. ;P
26.08.12 04:08:25 pm
Up
Navy Seal
User
Offline Off
Use this code:
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):
Code:
1
2
bind "mwheelup" "invprev"
bind "mwheeldown" "invnext"
edited 2×, last 26.08.12 04:51:24 pm
26.08.12 04:58:09 pm
Up
GREEN DAY
User
Offline Off
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