Counter-Strike 2

Counter-Strike 2

Not enough ratings
CS2 Binds / Practice CFG
By FLOXZ0R
Creating a config for CS2, as well as useful bindings for the game.
   
Award
Favorite
Favorited
Unfavorite
CS2 Config
If you have already customized your game and want to save the game settings in one config file, you can use the automatically created cfg files, or create your own.

To save your settings just write the command in the console:
host_writeconfig

An example of the address where the configs created through the console are saved:

However, the game already saves similar files, so creating new ones is not necessary.




Now we need to create a config file in this directory and then transfer all the data from those three files to this one.


So for example data about viewmodel are stored in the file: cs2_machine_convars, and crosshair in cs2_user_convars_0_slot0.vcfg_lastclouded and binds respectively in cs2_user_keys_0_slot0.vcfg_lastclouded.


Next, create a text file in the folder game\csgo\cfg NAME.cfg. There you need to copy and paste the contents of those three files and then save in All Files format. And you are almost done.

Inside the config file you need to delete all "config", "convars" and {. And also before the keys you need to add bind. Example:
bind "s" "+forward" bind "x" "+back" bind "z" "+left" bind "c" "+right" bind "MWHEELUP" "+jump" bind "MWHEELDOWN" "+jump" bind "SHIFT" "+sprint" bind "CTRL" "+duck"

Now when you go into the game you just need to write exec NAME.cfg in the console and everything is ready!
Useful CS2 Binds
If you want to use all these bindings, you don't need to copy all these things from +jumpaction and etc. You can put them once in your config. Example:
alias "+jumpaction" "+jump";alias "+throwaction" "-attack; -attack2";alias "+jumpaction2" "-jump";bind "v" "+jumpaction;+throwaction;+jumpaction2" // jumpthrow bind "i" "+forward;+jumpaction;+throwaction;+jumpaction2" // w+jumpthrow bind "]" "+forward;+throwaction" // w+throw

Binding
Command
Jumpthrow
alias "+jumpaction" "+jump"
alias "+throwaction" "-attack; -attack2"
alias "+jumpaction2" "-jump"
bind "KEY" "+jumpaction;+throwaction;+jumpaction2"
Fast C4 Drop
alias "+c4d" "slot3; slot5;"
alias "-c4d" "drop; slot2; slot1;"
bind "KEY" "+c4d"
Fast Flash Drop
alias "+fdf" "slot7"
alias "-fdf" "drop"
bind "KEY" "+fdf"
W+Jumpthrow
alias "+jumpaction" "+jump"
alias "+throwaction" "-attack; -attack2"
alias "+jumpaction2" "-jump"
bind "KEY" "+forward;+jumpaction;+throwaction;+jumpaction2"
W+throw
alias "+throwaction" "-attack; -attack2"
bind "KEY" "+forward;+throwaction"
Jump+duck
alias +duckjump "+jump; +duck"
alias -duckjump "-jump; -duck"
bind "KEY" "+duckjump"
Change radar scale
bind "KEY" "incrementvar cl_radar_scale 0 1 0.25"
Change crosshair size
bind "KEY" "toggle cl_crosshairsize 1 1000"
Change speed of game from 1 to 10
alias "-wt" "host_timescale 1"
alias "+wt" "host_timescale 10"
bind "KEY" "+wt"
Change speed of demo from 1 to 10
alias "-fx" "demo_timescale 1";
alias "+fx" "demo_timescale 10";
bind "KEY" "+fx"
Pause demo
bind "KEY" "demo_togglepause"
Practice CFG
Config for practice is created in the same way as a regular cfg file just instead of settings you need to write there these commands:
sv_cheats true mp_ignore_round_win_conditions true mp_respawn_on_death_ct true mp_respawn_on_death_t true mp_autokick false mp_autoteambalance false mp_drop_knife_enable 1 bot_kick mp_spectators_max 10 sv_infinite_ammo 1 ammo_grenade_limit_total 10 mp_freezetime 0 mp_roundtime 60 mp_roundtime_defuse 60 sv_grenade_trajectory_prac_pipreview 1 sv_grenade_trajectory_prac_trailtime 8 sv_showimpacts 1 sv_showimpacts_time 10 sv_noclipaccelerate 1200 sv_noclipspeed 1200 mp_teamname_1 PRACTICE mp_teamname_2 PRACTICE mp_limitteams 0 mp_maxmoney 60000 mp_startmoney 60000 mp_buytime 999999 mp_buy_anywhere 1 mp_halftime false mp_restartgame 1 bind "," "sv_rethrow_last_grenade" bind "." "give weapon_hegrenade;give weapon_flashbang;give weapon_smokegrenade;give weapon_molotov" bind "[" "mp_restartgame 1"
8 Comments
NaN 22 Dec, 2023 @ 6:00pm 
It seems valve changed again how macros work, so the drop C4 now must be

alias "+c4d" "slot3; slot5; drop;"
alias "-c4d" "slot2; slot1;"
bind "KEY" "+c4d"
d1ous 16 Oct, 2023 @ 5:42am 
n1
✪ Ntheo 9 Oct, 2023 @ 7:42am 
that's unfortunate :(, thanks anyway
FLOXZ0R  [author] 9 Oct, 2023 @ 5:29am 
Right now the only way i see to do this is to change some settings in the cfg you created. Host_writeconfig creates split files like CS2 itself does.
✪ Ntheo 8 Oct, 2023 @ 5:51am 
Thanks man, was helpful!
What do you think is the fastest way to update your conifg? Like for e.g. I changed audio volume from a menu and want it to stay that way
FLOXZ0R  [author] 24 Sep, 2023 @ 7:56am 
NaN, thanks for bind. Good improvement. I add it in table:steamthis:
NaN 24 Sep, 2023 @ 1:11am 
Thanks for sharing
NaN 24 Sep, 2023 @ 1:10am 
I have a better bind for throwing c4

alias "+c4d" "slot3; slot5;"
alias "-c4d" "drop; slot2; slot1;"
bind "KEY" "+c4d"

this will go back to your weapon after throwing, and will avoid throwing anything if you don't have the bomb