How to make a CS2 practice config you can load again
Save the commands you use for a private session and load them next time with exec practice.
Save a practice.cfg next to your other configs
Open the game’s folder from Steam and go to game/csgo/cfg. Create a plain-text file called practice.cfg and save these commands in it. They enable local practice commands, remove bots, give you unlimited ammo and show the grenade camera.
sv_cheats 1
bot_kick
sv_infinite_ammo 1
sv_grenade_trajectory_prac_pipreview 1Load it once your private map is running
Start your own local match from Play → Practice. Choose Infinite Warmup if you want to stay in the session for a while. Join a side, open the developer console and run the config. Pick up a grenade and throw it to check that the preview works and you still have another grenade.
If the console can’t find the file, check the game/csgo/cfg path and the .cfg extension. Keep these commands in a separate file and run it when you’re hosting practice.
exec practice