dgrrr Posted April 10, 2002 Share Posted April 10, 2002 How do I change the "duck" key to a Toggle, as well as the walk/run key, instead of Momentary as they are now? And do I kneed to add a switch to the command line when starting the game? Link to comment Share on other sites More sharing options...
Schizophrenic Posted April 10, 2002 Share Posted April 10, 2002 I would imagine it's something like this: set crouchon "+movedown; set crouch vstr crouchoff" set crouchoff "-movedown; set crouch vstr crouchon" set crouch "vstr crouchon" bind key crouch set walkon "+speed; set walk vstr walkoff" set walkoff "-speed; set walk vstr walkon" set walk "vstr walkon" bind key walk But do note that I haven't tested this and I'm not very good with Q3-style scripting (the old fashioned aliases were far easier to do), but something like that should work. Link to comment Share on other sites More sharing options...
WhiteChedda Posted April 10, 2002 Share Posted April 10, 2002 Originally posted by Schizophrenic I would imagine it's something like this: set crouchon "+movedown; set crouch vstr crouchoff" set crouchoff "-movedown; set crouch vstr crouchon" set crouch "vstr crouchon" bind key crouch set walkon "+speed; set walk vstr walkoff" set walkoff "-speed; set walk vstr walkon" set walk "vstr walkon" bind key walk But do note that I haven't tested this and I'm not very good with Q3-style scripting (the old fashioned aliases were far easier to do), but something like that should work. Looks about right to me. For Q3 anyway, have not tried it in JK2, I always used, you just prefer the Mr. Miagi naming convention, wax on, wax off. set duck "+movedown; set crouchswitch vstr stand" set stand "-movedown; set crouchswitch vstr duck" set crouchswitch "vstr duck" bind c "vstr crouchswitch" walking I always saw it used with the mouse wheel, but I think its cl_run you want to set rather than speed, maybe both work though. Seems like speed will be a protected variable unless cheats are enabled though. Link to comment Share on other sites More sharing options...
debri Posted April 11, 2002 Share Posted April 11, 2002 The top advice for crouching works on my system. for a run toggle though, all you need is this 1 line: bind 'KEY' "cl_run !" eg. bind SHIFT "cl_run !" the SHIFT key will now toggle running on and off. The exclamation marks acts as the 0/1 toggle. Neat huh. Enjoy Link to comment Share on other sites More sharing options...
WhiteChedda Posted April 12, 2002 Share Posted April 12, 2002 Originally posted by debri The top advice for crouching works on my system. for a run toggle though, all you need is this 1 line: bind 'KEY' "cl_run !" eg. bind SHIFT "cl_run !" the SHIFT key will now toggle running on and off. The exclamation marks acts as the 0/1 toggle. Neat huh. Enjoy Heh, I had forgotten about the cryptic !, I am so used to using toggle like so bind SHIFT "toggle cl_run" thanks for the reminder. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.