Popular Post ShankNinja 801 Posted September 14, 2020 Popular Post Share Posted September 14, 2020 DARK RP - CONSOLE/BINDING/AUTOEXEC.CFG SCRIPT GUIDE Welcome! Don’t know what any of the above means? Don’t worry, that’s what this guide is for. CONSOLE If you don’t know what the console is then you’re rather fresh. It’s possible you’ll even need to enable the Developer Console, though it should be enabled by default. Once it’s enabled, your console will look like this when you hit the `/~ key (also called Tilde - usually located below your escape key) BINDING Binding is simple. Use the following format to make any bind you wish: Bind key command For example: bind f lastinv ^the above command will replace your F key’s function (if it was used previously) to the “lastinv” command, which swaps between your current and last weapon. It’s also my favorite console command. bind f ^the above command will check what the f key is doing. If it’s unused, it will return: “f” = “” In the above, I’ve checked that F is unused, bound it to lastinv, and then checked that it’s being used. Now for a slightly more complex bind: bind k " ; +left ; +forward ; +duck ; +walk" ^this bind enables the K key to cause you to go Left+Forward while Crouching and Walking. If you ever had to step away from the keyboard to eat or use the bathroom, this type of command will lead the server to thinking you’re still active, buying you time before the Auto-Slay kicks in. ALIASES Aliases are a little more complicated than binding. Think of it like a shortcut to commands: alias garnet "connect 208.103.169.33:27015" ^this alias creates a command alias called Garnet, in which if you type just ‘garnet’ into the console it will run the command "connect 208.103.169.33:27015", connecting you to Garnet DarkRP#1. This in itself is somewhat useful and time saving, but you can do the same thing with creating a Toggle-Key. Lets use the above example from Binding: bind k " ; +left ; +forward ; +duck ; +walk" Using this would still require you to have to use another key to turn off the AFK Macro: bind l " ; -left ; -forward ; -duck ; -walk" However, if we use a simple alias, we can have the same key turn on and turn off the AFK function: alias disable "alias toggleafk enable; -right;-forward;-duck" alias enable "alias toggleafk disable; +right;+forward;+duck" alias toggleafk "enable" The above set of aliases allow you to create two aliases, one for enablement and disablement, and a third for the toggle. Then you just bind the toggleafk alias to a key: bind u toggleafk Now, every time you hit the U key, it will run either Enable or Disable. Enable will enable the macro, while also re-aliasing the toggleafk to Disable, so that the next time it’s pressed it will Disable the macro, and re-alias toggleafk to Enable. I hope the above wasn’t too complicated! That is about as hard as it gets. There is one gigantic flaw with aliases however: the game will not remember them. You will need to use Autoexec.cfg to make settings that remain every time you open Garry’s Mod. AUTOEXEC.CFG This is where it all comes together. You have the console enabled, can bind keys, can alias keys and bind those aliases! Now, lets get to business and find the autoexec.cfg file… There’s an easy way and a more complicated way, and the more complicated way is only good if you know exactly where to look so we’re going to go the easy way. Open up steam, right-click Garry’s Mod from your library, click Properties, the Local Files Tab, Browse Local Files, then go into the garrysmod folder to find the Config folder: Now you should see a folder like this: If you don’t see a file called autoexec.cfg, make a new file (don’t name it anything) and open it up: Now, Save-As this document from notepad with a new name, autoexec.cfg but ensure that you set Save As Type = All Files, not Text Document, or it will still be a Text Document and not the CFG file Garry’s Mod needs. Now I’ll give you my entire autoexec.cfg file; use as little or as much as you want in your autoexec.cfg file. If you made changes while in game, save it and run this command from console: exec autoexec ^this is how you execute any other script that isn’t autoexec. Autoexec will run every time you run Garry’s Mod, automatically (automatically execute = autoexec) All of the Aliases have my own keybindings, which I don’t have in the autoexec. You will want to make a bind for any aliases that you want to use below with your preferred key: Anything that is formatted with two slashes like this: //this is a comment Is a code comment and will not run; it is there for informational purposes but will not cause any issues. SHANKNINJA’S AUTOEXEC.CFG CONFIGURATION NOTE: ONLY USE WHAT YOU WANT! IF YOU COPY-PASTE THE WHOLE THING, YOUR GRAPHICS WILL DEGRADE BUT YOUR FRAMES WILL IMPROVE //Toggle automatic AFK Spin+Crouch (quieter if crouched) alias disable "alias toggleafk enable; -right;-forward;-duck" alias enable "alias toggleafk disable; +right;+forward;+duck" alias toggleafk "enable" //Toggle automatic walking alias disablewalk "alias togglewalk enablewalk; -forward; -walk" alias enablewalk "alias togglewalk disablewalk; +forward; +walk" alias togglewalk "enablewalk" //Toggle crouch alias disablecrouch "alias togglecrouch enablecrouch; -duck" alias enablecrouch "alias togglecrouch disablecrouch; +duck" alias togglecrouch "enablecrouch" //Toggle Right-click alias disableattack2 "alias toggleattack2 enableattack2; -attack2" alias enableattack2 "alias toggleattack2 disableattack2; +attack2" alias toggleattack2 "enableattack2" //Toggle Shoot alias disableattack1 "alias toggleattack1 enableattack1; -attack" alias enableattack1 "alias toggleattack1 disableattack1; +attack" alias toggleattack1 "enableattack1" //Toggle E/Use key alias disableuse "alias toggleuse enableuse; -use" alias enableuse "alias toggleuse disableuse; +use" alias toggleuse "enableuse" //Toggle thirdperson and firstperson (not needed for GarnetGaming) alias disable3ptoggle "alias toggle3ptoggle enable3ptoggle; thirdperson" alias enable3ptoggle "alias toggle3ptoggle disable3ptoggle; firstperson" alias toggle3ptoggle "enable3ptoggle" alias garnet "connect 208.103.169.33:27015" //Multithreading gmod_mcore_test 1 mat_queue_mode -1 cl_threaded_bone_setup 1 //gmod_mcore_test 1 //mat_queue_mode 2 //cl_threaded_bone_setup 1 //everything after this line will degrade //graphics but improve performance. //FPS Config M9KGasEffect 0 mat_bloom_scalefactor_scalar 0 r_3dsky 0 mat_bloomscale 0 cl_forcepreload 1 cl_smooth 0 cl_detaildist 1 cl_detailfade 800 cl_ejectbrass 0 cl_show_splashes 0 mat_compressedtextures 1 mat_bumpmap 1 mat_clipz 0 mat_filterlightmaps 0 mat_filtertextures 0 mat_mipmaptextures 0 mat_softwarelighting 1 mat_specular 1 mat_picmip 2 mat_parallaxmap 0 r_fastzreject -1 r_threaded_particles 1 r_threaded_renderables 1 r_decal_cullsize 1 r_drawflecks 0 r_drawmodeldecals 0 r_dynamic 0 r_lod 0 r_WaterDrawReflection 0 r_WaterDrawRefraction 0 r_waterforceexpensive 0 r_cheapwaterend 1 lod_TransitionDist 1 dsp_enhance_stereo 0 snd_mixahead 0.7 fps_max 120 muzzleflash_light 0 ai_expression_optimization 0 sv_forcepreload 1 cl_threaded_client_leaf_system 1 r_threaded_client_shadow_manager 1 r_threaded_particles 1 r_threaded_renderables 1 r_queued_ropes 1 studio_queue_mode 1 r_fastzreject -1 r_queued_post_processing 0 cl_forcepreload 1 mat_shadowstate 0 r_shadowmaxrendered 0 r_shadowrendertotexture 0 r_shadows 0 //Don't use this stuff unless you know what you're doing (hint: you don’t) //This is network related but caused a lot //of problems when I used it so I don’t recommend it. // EXPERIMENTAL CONNECTION CONFIG (un-comment the bits you understand) //cl_cmdrate 66 //cl_interp 0 //cl_interp_ratio 1 //cl_lagcompensation 1 //cl_pred_optimize 2 //cl_smooth 0 //cl_smoothtime 0.01 //cl_updaterate 66 //rate 60000 5 2 1 3 2 Quote Link to comment
Titan1 174 Posted September 14, 2020 Share Posted September 14, 2020 This config is crazy! Im getting like 100+ fps lol 1 Quote Link to comment
ShankNinja 801 Posted September 14, 2020 Topic Author Share Posted September 14, 2020 18 minutes ago, Titan1 said: This config is crazy! Im getting like 100+ fps lol That config is the only reason I'm able to have 30+ FPS after 14 hours of being ingame. It's ridiculously OP. Quote Link to comment
crimes 13 Posted October 6, 2020 Share Posted October 6, 2020 Im on mac so this doesn't work D: but thanks for the tutorial. there actually might be a way to do it on mac i dont know though. Quote Link to comment
ShankNinja 801 Posted October 6, 2020 Topic Author Share Posted October 6, 2020 15 hours ago, crimes said: Im on mac so this doesn't work but thanks for the tutorial. there actually might be a way to do it on mac i dont know though. @crimes tell me if this helps. If not, I can hop on a discord screen share sometime to see if we can figure out what to do on your end. All I do know, is that it DOES work, it's just the matter of getting it in the right place. 1 Quote Link to comment
Gl1tch 107 Posted March 14, 2021 Share Posted March 14, 2021 I normally run 90ish FPS so I'm curious what would go down If I gave it a shot... Ill wait until I feel I'm in a tech mood and give it a go! Quote Link to comment
Reynolds 69 Posted January 29, 2023 Share Posted January 29, 2023 Replying to save for later on MRP lol 1 Quote Link to comment
mossly 144 Posted February 2, 2023 Share Posted February 2, 2023 I'd like to add one of my favorite command blocks alias voiceon "+voicerecord; bind x voiceoff" alias voiceoff "-voicerecord; bind x voiceon" bind x voiceon this will make your mic toggle rather than hold 1 Quote Link to comment
ShankNinja 801 Posted February 3, 2023 Topic Author Share Posted February 3, 2023 19 hours ago, mossly said: I'd like to add one of my favorite command blocks alias voiceon "+voicerecord; bind x voiceoff" alias voiceoff "-voicerecord; bind x voiceon" bind x voiceon this will make your mic toggle rather than hold I do something similar. My macro is: bind f11 ";+voicerecord" Using this, it sticks your mic on toggle. Using my default Push-To-Talk (V) resets it to not be toggled on 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.