diff --git a/articles/20220718-csgo-surf/20220718-csgo-surf.md b/articles/20220718-csgo-surf/20220718-csgo-surf.md index 62a47fb..496927c 100644 --- a/articles/20220718-csgo-surf/20220718-csgo-surf.md +++ b/articles/20220718-csgo-surf/20220718-csgo-surf.md @@ -1,49 +1,14 @@ # 20220718 CSGO surf -```java -bot_kick all; // Remove all bots -sv_cheats 1; // allow config commands to be used - -//-- The main options controlling surf speed -sv_airaccelerate 150; // acceleration while in air (the main option - must be 150) -sv_accelerate 10; // acceleration when walking -sv_maxvelocity 10000; // uncap max velocity - -//-- bunny hopping -sv_enablebunnyhopping 1; // enable bunny hopping -sv_autobunnyhopping 1; // enable automatic bunny hopping while holding space - -//-- disable stamina -sv_staminamax 0; // the max stamina penalty -sv_staminajumpcost 0; // disable stamina cost from jumping -sv_staminalandcost 0; // disable stamina cost from landing -sv_staminarecoveryrate 0; // disable stamina recovery -sv_accelerate_use_weapon_speed 0; // don't change acceleration based on player weapon -sv_falldamage_scale 0; // disable fall damage - -//-- keybinds -bind mouse1 +left; // turn left with left mouse click -bind mouse2 +right; // turn right with right mouse click - -//-- time -mp_roundtime 60; // set round time to 60 minutes (max value) -mp_timelimit 99999999; // set game time to "unlimited" (huge) -mp_roundtime_deployment 0; // disable "bomb defusal game mode" round time -mp_freezetime 0; // remove countdown before game starts -mp_round_restart_delay 0; // remove countdown before - -//-- weapons -give weapon_knife; // ensure that the player has a knife -give weapon_knife_butterfly; // give the player a butterfly knife -ent_fire weapon_knife addoutput "classname weapon_knifegg" - -mp_drop_knife_enable 1; // allow the player to drop the knife -r_drawviewmodel 0; // hide the knife, but leave the crosshair - -//-- start a fresh game, good luck sliding those triangles -endround; // restart the map -god; // invincibility -``` +This article contains all of my `.cfg` files that I use when playing CSGO Surf + +- [20220718 CSGO surf](#20220718-csgo-surf) + - [Installation](#installation) + - [Online CFG](#online-cfg) + +--- + +## Installation You'll need to write this into a file in the "cfg" directory of your CSGO installation. @@ -61,14 +26,75 @@ After setting the `$STEAM_HOME` variable in your shell, you can use the followin vim "$STEAM_HOME/steamapps/common/Counter-Strike Global Offensive/csgo/cfg/surf.cfg" ``` -Now, in CS:GO, you can use the tilde (~) character to open the terminal, and type and run the following command to load this config file: - -```shell -exec surf -``` - -You can go one step further and _bind_ this to a key! I use the "p" key - -```shell -bind p "exec surf" -``` +### Online CFG + +I load this file when playing surf on public online servers (e.g. [Surf Heaven AU](https://surfheaven.eu/servers/)) + +> _see [my toggle keybind article](../20240126_cs_surf_-_toggle_all_saveloc_keybinds/20240126_cs_surf_-_toggle_all_saveloc_keybinds.md) for an explanation of how the CFG toggle keybind works!_ + +- `_surf_online.cfg_` + ```java + // turnbinds + bind mouse1 +left; // turn left with left mouse click + bind mouse2 +right; // turn right with right mouse click + + // stage teleports + bind t "say !r"; // teleport to start of map + bind u "say !rs"; // teleport to start of stage + + // saveloc (bind by default) + exec surf_saveloc_on.cfg; + alias saveloc_on "alias saveloc saveloc_off; exec surf_saveloc_on.cfg"; + alias saveloc_off "alias saveloc saveloc_on; exec surf_saveloc_off.cfg"; + alias saveloc "saveloc_off"; + // toggle saveloc + bind . "saveloc"; + + alias "hud_toggle" "hud_off" + alias "hud_off" "cl_draw_only_deathnotices 1; alias hud_toggle hud_on"; + alias "hud_on" "cl_draw_only_deathnotices 0; alias hud_toggle hud_off"; + bind l "hud_toggle" + + // info/debug commands + bind 5 "say !tier" // show current map info + bind 6 "say !pb" // show personal best time + ``` +- `_surf_saveloc_on.cfg_` + ```java + // This file contains all SurfTimer saveloc keybinds + + // set teleport location, play beep sound + bind q "sm_saveloc ; playvol buttons\blip1 0.5"; + // teleport to location + bind e "sm_tele"; + bind mwheeldown "sm_tele"; + + // change to previous/next teleport location + bind 1 "sm_teleprev"; + bind p "sm_teleprev"; + bind 2 "sm_telenext"; + + // enable back arrow key + bind s +back; + + say "saveloc enabled"; + ``` +- `_surf_saveloc_off.cfg_` + ```java + // This file _disables_ all SurfTimer saveloc keybinds + + // set teleport location + unbind q; + // teleport to location + unbind e; + unbind mwheeldown; + + // change to previous/next teleport location + unbind 1; + unbind p; + unbind 2; + // disable back arrow key + unbind s; + + say "saveloc disabled"; + ``` \ No newline at end of file diff --git a/articles/20220718-csgo-surf/surf_online.cfg b/articles/20220718-csgo-surf/surf_online.cfg new file mode 100755 index 0000000..9f5c6df --- /dev/null +++ b/articles/20220718-csgo-surf/surf_online.cfg @@ -0,0 +1,24 @@ +// turnbinds +bind mouse1 +left; // turn left with left mouse click +bind mouse2 +right; // turn right with right mouse click + +// stage teleports +bind t "say !r"; // teleport to start of map +bind u "say !rs"; // teleport to start of stage + +// saveloc (bind by default) +exec surf_saveloc_on.cfg; +alias saveloc_on "alias saveloc saveloc_off; exec surf_saveloc_on.cfg"; +alias saveloc_off "alias saveloc saveloc_on; exec surf_saveloc_off.cfg"; +alias saveloc "saveloc_off"; +// toggle saveloc +bind . "saveloc"; + +alias "hud_toggle" "hud_off" +alias "hud_off" "cl_draw_only_deathnotices 1; alias hud_toggle hud_on"; +alias "hud_on" "cl_draw_only_deathnotices 0; alias hud_toggle hud_off"; +bind l "hud_toggle" + +// info/debug commands +bind 5 "say !tier" // show current map info +bind 6 "say !pb" // show personal best time diff --git a/articles/20220718-csgo-surf/surf_saveloc_off.cfg b/articles/20220718-csgo-surf/surf_saveloc_off.cfg new file mode 100755 index 0000000..f4503d0 --- /dev/null +++ b/articles/20220718-csgo-surf/surf_saveloc_off.cfg @@ -0,0 +1,16 @@ +// This file _disables_ all SurfTimer saveloc keybinds + +// set teleport location +unbind q; +// teleport to location +unbind e; +unbind mwheeldown; + +// change to previous/next teleport location +unbind 1; +unbind p; +unbind 2; +// disable back arrow key +unbind s; + +say "saveloc disabled"; diff --git a/articles/20220718-csgo-surf/surf_saveloc_on.cfg b/articles/20220718-csgo-surf/surf_saveloc_on.cfg new file mode 100755 index 0000000..6d2de47 --- /dev/null +++ b/articles/20220718-csgo-surf/surf_saveloc_on.cfg @@ -0,0 +1,17 @@ +// This file contains all SurfTimer saveloc keybinds + +// set teleport location, play beep sound +bind q "sm_saveloc ; playvol buttons\blip1 0.5"; +// teleport to location +bind e "sm_tele"; +bind mwheeldown "sm_tele"; + +// change to previous/next teleport location +bind 1 "sm_teleprev"; +bind p "sm_teleprev"; +bind 2 "sm_telenext"; + +// enable back arrow key +bind s +back; + +say "saveloc enabled";