In Need of CS:Source Help

sirspotti

Senior member
Dec 29, 2004
497
0
76
Ok, all I want to do is be able to toggle walking/running by touching a key once. Anyone know of an easy way to do this or a good tutorial for complete n00bs?
 

duragezic

Lifer
Oct 11, 1999
11,234
4
81
In Quake you could like so:

bind shift run
alias run "+speed; bind shift walk"
alias walk "-speed; bind shift run"

I think it was like that. Put that in your config file. The commands are probably not the same for Source but then again they could be. Look at your config file or while in the game type "bind shift" or whatever key is your sprint to see what command it is.
 

PsharkJF

Senior member
Jul 12, 2004
653
0
0
Okay, running in CS:S is a hold to toggle command, and you want to convert it to a push to toggle.

First, go into console and type:

bind "THEKEYTHATTOGGLES" - write down the command it gives. It should be +something. This is key.

Create a blank text file for this, and call it running.cfg or something.
In it, put this in:

alias "movefast" "+something; bind KEY moveslow"
alias "moveslow" "-something; bind KEY movefast"
bind "KEY" "movefast"

In your CS:S directory, you should have an autoexec.cfg. In it, put the following:

exec running.cfg

This converts running into push once to move slow, push again to move fast, and will execute upon entering a game, thus ensuring it is bound to a key. However, I don't trust the autoexec.cfg, so we're going to do another change.

Open your config.cfg, and add the following line at the bottom:

bind "KEY" "movefast"

Close, run CS:S, bring down console, type in:

map "MAPNAMEHEREOMGIDONTPLAYCSSOYOUHAVETOFIGURETHISOUTYOURSELFMAN"

Once map loads, exit, and check to make sure the key bind for "movefast" is still in your config.cfg. Mark your config.cfg read-only - provided the settings in it are one's you'd like to keep for a while.

Edit: You can substitute "movefast" for "moveslow" in the bind line depending which way CS:S defaults you. i.e. if you WALK by holding the key, you can change the bind command.