NEOTOKYO°

NEOTOKYO°

Not enough ratings
Zwiadowca Athletic Config
By Zwiadowca
I made this guide as a way of easily sharing the latest version of my config for NEOTOKYO. It contains snippets of code from others on this platform, all credits are in the config itself next to the code in question.
   
Award
Favorite
Favorited
Unfavorite
Keybinds
This config assumes you have mouse buttons 4 and 5 on your mouse, to which cloak and vision are assigned to by default to free up c and v for throwables binds. These and other binds can be changed, search for 'bind x' and 'bind "x"' where x is the key in question.
Known Bugs
Hold To Aim
- When pressing down the aim button while a weapon is being reloaded and lifting it back up once the weapon has finished reloading and can be aimed in, the lifting of the aim button will toggle on aiming with the weapon, and the hold to aim button becomes the hold to not aim button. This can be fixed when playing as recon and assault by tapping shift quickly, and by switching weapons when playing as a support.

Toggle Lean
- When a lean button is pressed an odd number of times while the character is unable to lean because they are in mid air, the next press of that lean button after the character has landed will seemingly do nothing. This next press also fixes the issue and any further presses of the lean button should work as normal. Jumping or sprinting will also fix this.

Nade Swapping
- If a character does not have every piece of utility, there is no guarantee that every press of the slot4 button will switch to another throwable, instead sometimes the character will switch to the next throwable and then immediately back to the previous one. I suggest using separate keybinds for each of the throwables instead, the config has some default ones provided.

Reload While Sprinting
- To complete a reload, you must stop sprinting with the weapon you are reloading in your hands. Switching to a different weapon before the reload is complete will cancel the reload. This is not so much a bug as a game functionality I guess, and there's no way around it.
- If your sprint stops because of reasons other than releasing shift, such as releasing all the movement keys and coming to a stop, running into a wall and coming to a stop, or running out of stamina, pressing the reload key while the shift key is still held down will initiate sprint for a split second if this is possible before the reload commences.
How To Use
All configs live inside the .../Steam/steamapps/common/NEOTOKYO/neotokyosource/cfg folder.

Either
- copy the config below into autoexec.cfg in this folder
Or
- create a new .cfg file in this folder and give it a name
- paste the config below into this new file
- add the line "exec nameYouGaveToTheConfigHere.cfg" to autoexec.cfg
The Config
// Zwiadowca athletic config // @Author Adam Tomaszewski // @Version 1.1 // Features // - Toggle lean // - Hold to aim // - Hold to walk // - Better nadeswitching // - Reload while sprinting // - Attacking stops sprinting // Note: Many of these features are closely intertwined and so cannot be easily swapped to the original functionality // Keybinds should be easy to change, search for 'bind x' and 'bind "x"' to replace any keybind with your preffered keybind // Toggle lean // Note: pressing a lean button an odd number of times when in mid-air will cause these to not work properly the first time that same button is pressed again when on the ground // Modified code from soft as HELLs toggle lean script alias leanl_t "leanl_on" alias leanl_on "-sprint; alias leanl_t leanl_off; alias leanr_t leanr_on; -leanr; w5; w5; +leanl" alias leanl_off "alias leanl_t leanl_on; -leanl" alias leanr_t "leanr_on" alias leanr_on "-sprint; alias leanr_t leanr_off; alias leanl_t leanl_on; -leanl; w5; w5; +leanr" alias leanr_off "alias leanr_t leanr_on; -leanr" bind "q" "leanr_t" bind "e" "leanl_t" // End code from soft as HELLs toggle lean script // Reset lean button state on jump since game automatically un-leans us on jump alias +jumpPress "+jump; leanl_off; leanr_off; spec_mode" alias -jumpPress "-jump" bind "space" +jumpPress // Note: Supports cannot sprint,and so the game does not automatically disable walking and aiming when sending the +sprint command as a support. Thus hold to aim and hold to walk can become hold to not aim and hold to not walk when pressing // the sprint key as a support while aiming or walking. use these keybinds to change the behavior of the sprint key based on your selected class bind "o" "alias sprintPress normalSprint;" bind "p" "alias sprintPress doNothing;" alias normalSprint "+sprint; leanl_off; leanr_off; alias mouse2Release doNothing; alias doReload doReloadWithSprint; alias walkRelease doNothing" alias sprintPress normalSprint alias +sprinting sprintPress alias -sprinting "-sprint; alias doReload doReloadWithoutSprint" bind "shift" +sprinting // Hold to aim // Note: pressing the aim button down while reloading will cause the aim to toggle in if aim button is released after the reload is completed and aiming becomes possible again. This can be fixed by switching weapons or pressing the sprint key // Credit to rnld for the original hold to aim config alias "w5" "wait;wait;wait;wait;wait" alias zoomToggle "+aim; w5;w5; -aim;" alias doNothing "" alias mouse2PressNormal "-sprint; zoomToggle; alias mouse2Release zoomToggle; spec_prev" alias mouse2Press mouse2PressNormal alias mouse2Release zoomToggle alias +mouse2Pressed mouse2Press alias -mouse2Pressed mouse2Release bind "mouse2" +mouse2Pressed bind "g" "+toss; w5;w5; -toss; alias mouse2Release doNothing" // Note: pressing the aim button down with a non-aimable weapon, switching weapons to an aimable weapon and releasing the aim button causes the weapon to remain aimed in upon aim button release. Cannot fix this for throwables since the game can // auto-switch us away from throwables once they run out of ammunition, can only fix this for the knife currently. (could bind mouse2 press and release to do nothing and then mouse1 release could reenable aiming but there is a small delay between // releasing mouse1 and the grenade being thrown, and in the case of detpacks its different as well) bind "1" "alias mouse2Press mouse2PressNormal; alias mouse2Release doNothing; bind 4 nadeswap_frag1; slot1;" bind "2" "alias mouse2Press mouse2PressNormal; alias mouse2Release doNothing; bind 4 nadeswap_frag1; slot2;" bind "3" "bind 4 nadeswap_frag1; slot3;" // Better switching between explosives // Note: this allows switching to the detpack with the slot4 key, but it means that if you do not have all the available utility, switching between two different utilities will sometimes keep you with your original utility and require a second // press of the slot4 key // Modified code from Rains nadeswap.cfg alias "nadeswap_frag1" "slot4; w5; w5; use weapon_grenade; bind 4 nadeswap_smoke1" alias "nadeswap_smoke1" "slot4; w5; w5; use weapon_smokegrenade; bind 4 nadeswap_det1" alias "nadeswap_det1" "slot4; w5; w5; use weapon_remotedet; bind 4 nadeswap_frag1" bind 4 "nadeswap_frag1" // End Modified Code from Rains nadeswap.cfg bind "f" "use weapon_grenade" bind "c" "use weapon_smokegrenade" bind "v" "use weapon_remotedet" // Hold to walk alias walkToggle "+walk; w5;w5; -walk; alias walkRelease walkToggle" alias walkPress walkToggle alias walkRelease walkToggle alias +walkPressed walkPress alias -walkPressed walkRelease bind "alt" +walkPressed // Reload while sprinting // Note: if you stop sprinting because of environmental reasons or because you ran out of sprint, and you initiate a reload with the sprint key still pressed, your character will start sprinting if its possible alias doReloadWithoutSprint "+reload; w5;w5;w5; -reload; alias mouse2Release doNothing" alias doReloadWithSprint "-sprint; +reload; w5;w5;w5; -reload; +sprint; alias mouse2Release doNothing" alias doReload doReloadWithoutSprint bind "r" doReload // Prioritise shooting over sprinting alias +mouse1Pressed "-sprint; +attack; spec_next" alias -mouse1Pressed "-attack; bind 4 nadeswap_frag1" bind "mouse1" +mouse1Pressed // Set sound type to Headphones snd_surround_speakers "0" bind "k" "hud_reloadscheme"
Closing Remarks
Thank you for your interest, comments and suggestions on how to improve the config are greatly appreciated.