Skip to content

Instantly share code, notes, and snippets.

@mtbossa
Last active March 3, 2024 16:12
Show Gist options
  • Save mtbossa/4dd0e835caad039a251a80dad7d76346 to your computer and use it in GitHub Desktop.
Save mtbossa/4dd0e835caad039a251a80dad7d76346 to your computer and use it in GitHub Desktop.
CS GO configs
// T shape purple crosshair = CSGO-C74A4-ohCQM-PriOz-Ptd9e-JxN6H
// T shape green crosshair = CSGO-R9PEE-ASrnG-2pnCC-qmvbT-HS9zP
// Dot crosshair = CSGO-ePGBc-quEju-DMzsB-vM2r7-5AKeB
// Sections:
// 1. Crosshair
// 2. General
// 3. Mouse
// 4. Scripts
// 5. Binds
// 6. Advanced binds
////////////// 1. CROSSHAIR SETTINGS
cl_crosshair_sniper_width 1
// Default static blue
// cl_crosshair_drawoutline 1
// cl_crosshair_dynamic_maxdist_splitratio 0.300000
// cl_crosshair_dynamic_splitalpha_innermod 1
// cl_crosshair_dynamic_splitalpha_outermod 0.5
// cl_crosshair_dynamic_splitdist 7
// cl_crosshair_friendly_warning 1
// 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 3
// cl_crosshaircolor_b 255.000000
// cl_crosshaircolor_g 0.000000
// cl_crosshaircolor_r 255.000000
// cl_crosshairdot 1
// cl_crosshairgap 0.805789
// cl_crosshairgap_useweaponvalue 0
// cl_crosshairsize 0.830774
// cl_crosshairstyle 1
// cl_crosshairthickness 0.436982
// cl_crosshairusealpha 1
// cl_fixedcrosshairgap -2.500000
// Green T shape
cl_crosshair_drawoutline 1
cl_crosshair_dynamic_maxdist_splitratio 0.300000
cl_crosshair_dynamic_splitalpha_innermod 1.000000
cl_crosshair_dynamic_splitalpha_outermod 0.500000
cl_crosshair_dynamic_splitdist 7
cl_crosshair_friendly_warning 1
cl_crosshair_outlinethickness 1.000000
cl_crosshair_sniper_show_normal_inaccuracy 0
cl_crosshair_sniper_width 1
cl_crosshair_t 1
cl_crosshairalpha 255.000000
cl_crosshaircolor 5
cl_crosshaircolor_b 0
cl_crosshaircolor_g 255
cl_crosshaircolor_r 0
cl_crosshairdot 0
cl_crosshairgap -1.200000
cl_crosshairgap_useweaponvalue 0
cl_crosshairsize 1.400000
cl_crosshairstyle 4
cl_crosshairthickness 0.800000
cl_crosshairusealpha 1
cl_fixedcrosshairgap 3.000000
////////////// END CROSSHAIR SETTINGS
////////////// 2. GENERAL SETTINGS
// Communication
cl_chatfilters 63
// HUD
cl_hud_color 2
safezonex 0.92
safezoney 0.95
// Radar
cl_radar_always_centered 0
cl_radar_scale 0.3
cl_hud_radar_scale 1.15
cl_radar_icon_scale_min 1
cl_radar_rotate 1
cl_radar_square_with_scoreboard 1
// FPS
// fps_max 236 // 4 below monitor's refresh rate when G-Sync enabled
fps_max 0 // 4 below monitor's refresh rate when G-Sync enabled
r_eyeshift_y 1
r_drawtracers 0
r_dynamic 0
// Spray
r_drawtracers_firstperson 1 // Show bullets
viewmodel_recoil 0
// Audio
voice_scale 0.2
voice_enable 1
snd_deathcamera_volume 0
snd_mapobjective_volume 0 // The bomb music played prior to the ten-second warning
snd_menumusic_volume 0
snd_roundend_volume 0
snd_roundstart_volume 0
snd_mvp_volume 0
snd_tensecondwarning_volume 0.20
bind pgup "incrementvar volume 0.0 1 0.1"
bind pgdn "incrementvar volume 0.0 1 -0.1"
// Network
cl_cmdrate 128
cl_updaterate 128
cl_interp 0.0
cl_interp_ratio 1
cl_interpolate 1
cl_lagcompensation 1
net_client_steamdatagram_enable_override 1 // SDR beta
// Aliases
alias q quit
alias d disconnect
////////////// END GENERAL SETTINGS
////////////// 3. MOUSE SETTINGS
sensitivity 0.27
zoom_sensitivity_ratio_mouse 1.02
m_rawinput 1
m_pitch 0.022
m_customaccel 0
m_mouseaccel1 0
m_mouseaccel2 0
m_mousespeed 0
////////////// END MOUSE SETTINGS
////////////// 4. SCRIPTS
// Nade lineup
bind f4 +crosshairsmoke
alias -crosshairsmoke "cl_crosshairsize 1.4;cl_crosshairdot 0;cl_crosshairgap -1.2; cl_crosshair_t 1"
alias +crosshairsmoke "cl_crosshairsize 1337;cl_crosshairdot 1;cl_crosshairgap 10; cl_crosshair_t 0"
// Jump Throw
alias +jumpthrow "+jump;-attack"
alias -jumpthrow -jump
bind v +jumpthrow
// Fast Q
alias +knife slot3
alias -knife lastinv
bind q +knife
// awp view model
alias "awp_viewmodel" "cl_bobamt_lat 0.1;cl_bob_lower_amt 5;cl_bobamt_vert 0.1;viewmodel_fov 68;viewmodel_offset_x -2.0;viewmodel_offset_y -2.0;viewmodel_offset_z -2"
alias "default_viewmodel" "viewmodel_fov 68; viewmodel_offset_x 2.5; viewmodel_offset_y 0; viewmodel_offset_z -1.5; viewmodel_presetpos 3; cl_viewmodel_shift_left_amt 0.5; cl_viewmodel_shift_right_amt 0.25; viewmodel_recoil 0; cl_righthand 1"
bind mouse5 .dosomething; alias .dosomething .doitnow
alias .doitnow "awp_viewmodel; alias .dosomething .stopit"
alias .stopit "default_viewmodel; alias .dosomething .doitnow"
// Drop C4 Fast
bind f1 "use weapon_knife; use weapon_c4; drop; slot1"
// Score
alias +scorenet "net_graph 1;+showscores;cl_showfps 1;alias scorenet_switch scorenet_off"
alias -scorenet "net_graph 0;-showscores;cl_showfps 0;alias scorenet_switch scorenet_on"
bind TAB +scorenet
// Radar Zoom when holding use key
// Binded on alt (advanced)
alias +usezoom "+use; cl_radar_scale 0.9"
alias -usezoom "-use; cl_radar_scale 0.4"
////////////// END SCRIPTS
////////////// 5. BINDS
bind i +spray_menu
bind t +lookatweapon
bind x "use weapon_knife; use weapon_smokegrenade"
bind c "use weapon_knife; use weapon_hegrenade"
bind z "use weapon_knife; use weapon_molotov;use weapon_incgrenade"
bind l "toggle cl_righthand 0 1"
bind w "+forward;r_cleardecals"
bind space "+jump"
bind mwheelup "+jump"
bind mwheeldown "+jump"
bind mouse4 +voicerecord
bind i radio1
bind o radio2
bind p radio3
BindToggle . voice_enable
////////////// END BINDS
////// 6. Alternative Command Script - by MrMaxim
//// Aliases
alias throw_flash "use weapon_knife; use weapon_flashbang"
alias injection "slot12"
//Part 1 (Input Primary/Default Command)
alias defE "bind e +usezoom"
alias defF "bind f throw_flash"
//Part 2 (Make sure the keyboard letters are the same as part 1)
alias keyE "bind e customE"
alias keyF "bind f customF"
//Part 3 (Input Secondary Command)
alias customE drop
alias customF injection
//Part 4 (Don't touch, wierdo)
alias +secondarycommand "keyE;keyF"
alias -secondarycommand "defE;defF"
//Part 5 (Toggle - Holding this will trigger your secondary commands)
bind alt +secondarycommand
////////////// END ADVANCED BINDS
/* nadetraining.nut
* Popflash Training Script
* by S0lll0s, Bidj and Rurre
*
* goes into /csgo/scripts/vscripts/nadetraining.nut
*
* USAGE, in console:
* script_execute nadetraining
* script nadeSetup()
* bind "anykey" "script nadeSavePos()"
* bind "anykey" "script pauseScript()"
* Press the nadeSavePos() key before every nade you want to save, all following nades will fly the same path.
* regardless of how you throw them. To pause the script and throw nades freely use the other bind pauseScript().
*/
this.nadePos <- null;
this.nadeVel <- null;
this.nadeSaveMode <- true;
this.nadeLastNade <- null;
this.isPaused <- false;
printl( @"nadetraining executed" );
printl( @"type to start: script nadeSetup()" );
function nadeSetup() {
printl( @"[NT] nadetraining.nut" );
printl( @"[NT] Popflash Training Script" );
printl( @"[NT] by S0lll0s, Bidj and Rurre" );
printl( @"[NT] USAGE:" );
printl( @"[NT] bind ""anykey"" ""script nadeSavePos()""" );
printl( @"[NT] bind ""anyotherkey"" ""script pauseScript()""" );
printl( @"[NT] Press the key before every nade you save, all following nades will fly the same path" );
printl( @"[NT] starting setup..." );
SendToConsole( @"sv_cheats 1" );
SendToConsole( @"ent_remove nadeTimer" );
SendToConsole( @"ent_create logic_timer" );
SendToConsole( @"ent_fire logic_timer addoutput ""targetname nadeTimer""" );
SendToConsole( @"ent_fire nadeTimer toggle" );
SendToConsole( @"ent_fire nadeTimer addoutput ""refiretime 0.05""" );
SendToConsole( @"ent_fire nadeTimer enable" );
SendToConsole( @" ent_fire nadeTimer addoutput ""startdisabled 0""" );
SendToConsole( @" ent_fire nadeTimer addoutput ""UseRandomTime 0""" );
SendToConsole( @" ent_fire nadeTimer addoutput ""ontimer nadeTimer,RunScriptCode,nadeThink()""" );
printl( @"[NT] done. You can turn off sv_cheats now." );
}
function nadeSavePos() {
nadeSaveMode = true;
ScriptPrintMessageCenterAll( "Saving next Flashbang or Grenade" );
}
function nadeThink() {
local nade = null;
while ( Entities.FindByClassname(nade, "flashbang_projectile") != null ) {
nade = Entities.FindByClassname(nade, "flashbang_projectile");
saveRestore( nade );
}
nade = null;
while ( Entities.FindByClassname(nade, "hegrenade_projectile") != null ) {
nade = Entities.FindByClassname(nade, "hegrenade_projectile");
saveRestore( nade );
}
}
function pauseScript()
{
if(isPaused == false)
{
isPaused = true;
ScriptPrintMessageCenterAll( "Pausing script. You can now throw grenades freely." );
}
else
{
isPaused = false;
ScriptPrintMessageCenterAll( "Resuming script. Last saved grenade remembered." );
}
}
function saveRestore( nade ) {
if (isPaused == false){
if ( nadeLastNade != nade ) {
if ( nadeSaveMode ) {
ScriptPrintMessageCenterAll( "Saved" );
nadePos = nade.GetCenter();
nadeVel = nade.GetVelocity();
nadeSaveMode = false;
} else {
nade.SetAbsOrigin( nadePos );
nade.SetVelocity( nadeVel );
}
nadeLastNade = nade;
}
}
}
sv_cheats 1
sv_infinite_ammo 2
ammo_grenade_limit_total 5
sv_grenade_trajectory 1
sv_grenade_trajectory_time 10
mp_buytime 9999
mp_buy_anywhere 1
sv_regeneration_force_on 1
mp_warmup_end
mp_freezetime 0
mp_roundtime 60
mp_roundtime_defuse 60
mp_limitteams 0
mp_autoteambalance 0
mp_maxmoney 60000
mp_startmoney 60000
mp_restartgame 1
bot_kick
bind "J" "noclip"
bot_dont_shoot 1
bot_knives_only
bind "k" "bot_place"
bot_stop 1
// Server config
sv_cheats 1
mp_limitteams 0
mp_autoteambalance 0
mp_roundtime 60
mp_roundtime_defuse 60
mp_maxmoney 60000
mp_startmoney 60000
mp_freezetime 0
mp_buytime 9999
mp_buy_anywhere 1
sv_infinite_ammo 1
ammo_grenade_limit_total 5
bot_kick
mp_warmup_end
//Practice
sv_grenade_trajectory 1
sv_grenade_trajectory_time 10
sv_showimpacts 1
sv_showimpacts_time 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment