Counter-Strike 2

Counter-Strike 2

Not enough ratings
How to use buyscripts, hud, crosshairs and more! (+ BUYSCRIPT & AUTOEXEC.CFG )
By [TREIBJAGD] Ano
Hello,
I want to help you people out with some config explainations, basics and expamples. There is some buyscript for you. I also add my config to the end of the guide.
   
Award
Favorite
Favorited
Unfavorite
Getting into your first setup
At first get ingame and set a key for developer console. After you've done that you are ready to go. You can reload any config in your console anytime without restarting your game. That allows you to adjust your config time by time, while being in a match. You also can write you command directly to the console, but it wont be saved to your autoexec.cfg.

Getting into it!



Ok now, go to you counter-strike game folder and search for the csgo and then cfg folder, it should be located on "\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg".
Afterwards you create a new text file called autoexec.cfg.

NOTE: Its important that you have the option for hiding extended known data type names deactivated! Otherwise, it would be ending into a .cfg.txt - ( but you can't see it ). You can find the setting in your explorer or folder options of windows.


Loading your settings!

You are going to write your settings into your autoexec.cfg now. To load them in ingame, you have to use the console and type: exec autoexec.cfg.
(exec tells the game to execute some config.)




You also can make it being load automatically at start of the game by adding the start argument: +exec autoexec.cfg




You could also load any other config at any time the same way!

Getting into your first settings
Ok, this part is going for the real-stuff. So here comes the interesting part of this! All commands can be written directly into your console or configs.

Your first crosshair!
If you try to edit something in your console or config, you will find out that there are many of commands for nearly anything you want.



So here are my settings, the most of them are self explained:
  • Alpha means how strong the color is, it could be invisible as well.
  • Outlines can also be used.
  • You can set a number for color or use RGB code - Red | Green | Blue - (0-255)
  • Gap is the distance between the lines or dots.
  • Size is your crosshair scale.
  • Split tells it how much the lines or dots can spread while shooting or running.
  • Styles are different type of crosshairs, just try them.

cl_crosshair_drawoutline "0"
cl_crosshair_dynamic_maxdist_splitratio "0.35"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "0.5"
cl_crosshair_dynamic_splitdist "7"
cl_crosshair_outlinethickness "1.000000"
cl_crosshair_sniper_show_normal_inaccuracy "0"
cl_crosshair_sniper_width "1"
cl_crosshair_t "0"
cl_crosshairalpha "255.000000"
cl_crosshaircolor "5"
cl_crosshaircolor_b "255"
cl_crosshaircolor_g "255"
cl_crosshaircolor_r "255"
cl_crosshairdot "1"
cl_crosshairgap "5.000000"
cl_crosshairgap_useweaponvalue "0"
cl_crosshairscale "0"
cl_crosshairsize "3.000000"
cl_crosshairstyle "2"
cl_crosshairthickness "0.500000"
cl_crosshairusealpha "1"
cl_fixedcrosshairgap "3"
cl_viewmodel_shift_left_amt "0.5"
cl_viewmodel_shift_right_amt "0.25"

If you are to lazy for this you also can use some crosshairgenerator-map from Steamworkshop. Generate your crosshair and copy the code into your autoexec.cfg


Setting your FOV!
Here you can change your FOV, this is the "smallest" setting. The weapons is in bottom right corner, as much as it can goes. So you have a free view. X Y Z tell you the position of your weapon.

viewmodel_fov "58.000000"
viewmodel_offset_x "2.500000"
viewmodel_offset_y "-2.000000"
viewmodel_offset_z "-2.000000"
viewmodel_presetpos "0"
viewmodel_recoil "0"


Your first buy script!
Before you bind you script, write a unbind for each key you will use. That's important so no keys will be used twice ingame. With this buy script you can buy alot of stuff easy and fast by using your numpad.

Some explaination:
bind "kp_ins" "buy vest; buy vesthelm; buy defuser;" <-- It tells the game that it buys vest, helm and defuser if you hit the numpad insert button.

unbind kp_ins
unbind kp_end
unbind kp_downarrow
unbind kp_pgdn
unbind kp_leftarrow
unbind kp_5
unbind kp_rightarrow
unbind kp_home
unbind kp_uparrow
unbind kp_pgup
unbind kp_minus
unbind kp_plus
unbind kp_enter
unbind kp_del
unbind kp_multiply
unbind pgup

bind "kp_ins" "buy vest; buy vesthelm; buy defuser;"
bind "kp_end" "buy p250;"
bind "kp_downarrow" "buy tec9; buy fiveseven;"
bind "kp_pgdn" "buy ump45;"
bind "kp_leftarrow" "buy galilar; buy famas;"
bind "kp_5" "buy ak47; buy m4a1;"
bind "kp_rightarrow" "buy sg556; buy aug;"
bind "kp_home" "buy nova;"
bind "kp_uparrow" "buy sawedoff; buy mag7;"
bind "kp_pgup" "buy ssg08;"
bind "kp_enter" "buy awp; buy flashbang; buy flashbang; buy smokegrenade;"
bind "kp_minus" "buy smokegrenade; buy molotov; buy incgrenade; buy flashbang;"
bind "kp_plus" "buy flashbang; buy hegrenade; buy smokegrenade;"
bind "kp_del" "buy awp;"
bind "pgup" "buy defuser;"


Your first HUD!
You can adjust the color, the size and the style of your HUD. The radar can also be defined by this commands.



cl_hud_background_alpha "0.5"
cl_hud_bomb_under_radar "1"
cl_hud_color "1"
cl_hud_healthammo_style "1"
cl_hud_playercount_pos "0"
cl_hud_playercount_showcount "1"
cl_hud_radar_scale "1.000000"
hud_scaling "0.700000"
hud_showtargetid "0"
cl_righthand "1"
cl_color "0"
cl_radar_always_centered "1"
cl_radar_icon_scale_min "1.100000"
cl_radar_rotate "1"
cl_radar_scale "0.346731"
cl_radar_square_with_scoreboard "1"




Some usefull stuff!
Here are some commands im using in my config.

net_graph while holding TAB (scorebord):

bind "TAB" "+ng";
alias +ng "+showscores; net_graph 1";
alias -ng "-showscores; net_graph 0";




Buy drop AK/M4:

alias buydrop "buy ak47; buy m4a1; buy m4a1_silencer; slot1; drop"
bind "p" buydrop

At the buyzone press P to drop M4 or AK!


Mute everyone without really muting:

alias "chat_1" "voice_scale 0.8; echo |~Chat_On~|; alias voice_chat chat_0; playvol buttons\blip2 0.5; alias voice_chat chat_1"
alias "chat_0" "voice_scale 0.01; echo |~Chat_Off~|; alias voice_chat chat_1;playvol buttons\blip2 0.5; alias voice_chat chat_1"
bind "u" chat_1
bind "m" chat_0

Press M to MUTE everyone, or press U to UNMUTE everyone. (It's not a real mute, so you can still talk to the others)
Giving you my settings
Here you can find my autoexec.cfg and my training.cfg.
I use to load the trainig.cfg with my console when i want to pratice grenade throwing.
For explaination, echo " " just shows you some feedback inside of your console.
So echo "XY" can be anything you want it to be!

My autoexec.cfg



https://pastebin.com/rv2CyRZL

unbind kp_ins
unbind kp_end
unbind kp_downarrow
unbind kp_pgdn
unbind kp_leftarrow
unbind kp_5
unbind kp_rightarrow
unbind kp_home
unbind kp_uparrow
unbind kp_pgup
unbind kp_minus
unbind kp_plus
unbind kp_enter
unbind kp_del
unbind kp_multiply
unbind pgup
unbind v
unbind c
unbind x
unbind MOUSE3

bind "-" "toggleconsole"
bind "kp_ins" "buy vest; buy vesthelm; buy defuser;"
bind "kp_end" "buy p250;"
bind "kp_downarrow" "buy tec9; buy fiveseven;"
bind "kp_pgdn" "buy ump45;"
bind "kp_leftarrow" "buy galilar; buy famas;"
bind "kp_5" "buy ak47; buy m4a1;"
bind "kp_rightarrow" "buy sg556; buy aug;"
bind "kp_home" "buy nova;"
bind "kp_uparrow" "buy sawedoff; buy mag7;"
bind "kp_pgup" "buy ssg08;"
bind "kp_enter" "buy awp; buy flashbang; buy flashbang; buy smokegrenade;"
bind "kp_minus" "buy smokegrenade; buy molotov; buy incgrenade; buy flashbang;"
bind "kp_plus" "buy flashbang; buy hegrenade; buy smokegrenade;"
bind "kp_del" "buy awp;"
bind "pgup" "buy defuser;"

bind "v" "use weapon_hegrenade"
bind "c" "use weapon_smokegrenade"
bind "x" "use weapon_molotov; use weapon_incgrenade"
bind "MOUSE3" "use weapon_flashbang"

alias buydrop "buy ak47; buy m4a1; buy m4a1_silencer; slot1; drop"
bind "p" buydrop

alias "chat_1" "voice_scale 0.8; echo |~Chat_On~|; alias voice_chat chat_0; playvol buttons\blip2 0.5; alias voice_chat chat_1"
alias "chat_0" "voice_scale 0.01; echo |~Chat_Off~|; alias voice_chat chat_1;playvol buttons\blip2 0.5; alias voice_chat chat_1"
bind "u" chat_1
bind "m" chat_0

fps_max 0
con_enable "1"
cl_crosshair_drawoutline "0"
cl_crosshair_dynamic_maxdist_splitratio "0.35"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "0.5"
cl_crosshair_dynamic_splitdist "7"
cl_crosshair_outlinethickness "1.000000"
cl_crosshair_sniper_show_normal_inaccuracy "0"
cl_crosshair_sniper_width "1"
cl_crosshair_t "0"
cl_crosshairalpha "255.000000"
cl_crosshaircolor "5"
cl_crosshaircolor_b "255"
cl_crosshaircolor_g "255"
cl_crosshaircolor_r "255"
cl_crosshairdot "1"
cl_crosshairgap "5.000000"
cl_crosshairgap_useweaponvalue "0"
cl_crosshairscale "0"
cl_crosshairsize "3.000000"
cl_crosshairstyle "2"
cl_crosshairthickness "0.500000"
cl_crosshairusealpha "1"
cl_fixedcrosshairgap "3"
cl_viewmodel_shift_left_amt "0.5"
cl_viewmodel_shift_right_amt "0.25"
viewmodel_fov "58.000000"
viewmodel_offset_x "2.500000"
viewmodel_offset_y "-2.000000"
viewmodel_offset_z "-2.000000"
viewmodel_presetpos "0"
viewmodel_recoil "0"
cl_bob_lower_amt "5"
cl_bobamt_lat "0.1"
cl_bobamt_vert "0.1"
cl_bobcycle "0.98"
cl_hud_background_alpha "0.5"
cl_hud_bomb_under_radar "1"
cl_hud_color "1"
cl_hud_healthammo_style "1"
cl_hud_playercount_pos "0"
cl_hud_playercount_showcount "1"
cl_hud_radar_scale "1.000000"
hud_scaling "0.700000"
hud_showtargetid "0"
cl_righthand "1"
cl_color "0"
cl_radar_always_centered "1"
cl_radar_icon_scale_min "1.100000"
cl_radar_rotate "1"
cl_radar_scale "0.346731"
cl_radar_square_with_scoreboard "1"

cl_autohelp "0"
cl_showhelp "0
cl_autowepswitch "0"
cl_forcepreload "1"
cl_disablehtmlmotd "1"
cl_disablefreezecam "1"
r_drawtracers_firstperson "0"
r_dynamic "0"

bind "TAB" "+ng";
alias +ng "+showscores; net_graph 1";
alias -ng "-showscores; net_graph 0";

echo " "
echo " "
echo " "
echo " "
echo "Deine autoexec.cfg wurde geladen, viel erfolg in der Schlacht."
echo " "
echo "------------------------------------"
echo " "
echo "Buyscript:"
echo " "
echo "NUM 0 - vesthelm und defuser"
echo "NUM 1 - P250"
echo "NUM 2 - tec9, five-seven oder cz75"
echo "NUM 3 - ump45"
echo "NUM 4 - famas oder galil"
echo "NUM 5 - ak47, m4a1 oder m4a1_silencer"
echo "NUM 6 - aug oder sg552"
echo "NUM 7 - nova"
echo "NUM 8 - mag7 oder sawedoff"
echo "NUM 9 - ssg08"
echo "NUM , - awp"
echo " "
echo "NUM ENTER - smoke, flash, flash"
echo "NUM + - smoke, flash, he"
echo "NUM - - smoke, flash, moly"
echo " "
echo "PageUp - defuser"
echo " "
echo "------------------------------------"
echo " "
echo "V - um eine Granate zu ziehen."
echo "C - um eine Smoke zu ziehen."
echo "X - um den Molotov zu ziehen."
echo "M. Maustaste - um eine Flash zu ziehen."
echo " "
echo "Mit den Tasten U & M kannst du den Voicechat an und abschalten."
echo " "
echo "Mit P dropst du am Spawn eine AK oder M4."
echo " "
echo " "
echo " "



My training.cfg

sv_cheats 1
bot_kick all
sv_grenade_trajectory 1
sv_infinite_ammo 1
sv_grenade_trajectory_time 15
ammo_grenade_limit_total 10
mp_freezetime 0
mp_timelimit 10000
mp_buy_anywhere 1
mp_round_restart_delay 0
mp_roundtime 1000
mp_roundtime_defuse 123132132
mp_startmoney 16000
mp_restartgame 1




I hope, i could help you. If you have questions, just ask!
Have a nice day!
1 Comments
next time , put some more work and add comments for every command :steamfacepalm: