Half-Life 2

Half-Life 2

Resident Evil 2 - Source
 This topic has been pinned, so it's probably important
Qwazzy  [developer] 23 Nov, 2024 @ 5:13pm
Useful console commands for RE2S
Just a list of useful console commands for tweaking your experience with this campaign.

  • sk_auto_reload_time 9999
  • If you don't like your guns auto-reloading for you when unequipped, this will prevent that. For me, there's nothing more satisfying than finding some ammo and loading it into your gun yourself.

  • r_flashlightfov NUMBER
  • If you don't like the default flashlight effectiveness, raising this number can make it a little stronger... or a lot stronger. Try not to blind yourself.

  • sk_ammo_qty_scale1 1.0
  • sk_ammo_qty_scale2 1.0
  • sk_ammo_qty_scale3 1.0
  • Controls the scale of ammo pickups based on difficulty - scale1 is Easy, scale2 is Normal, scale3 is Hard. If you think this mod gives you too much ammo, here's how to fix it. 1.0 is 100%, 0.3 is 30%, and so on. At 30%, a pistol box only gives 6 shots instead of the usual 20.

  • sk_max_pistol "9999"
  • sk_max_smg1 "9999"
  • sk_max_buckshot "9999"
  • sk_max_357 "9999"
  • Ammo maximum carry for the weapons in this mod. You can change the values to your taste, if you want.
< >
Showing 1-2 of 2 comments
Qwazzy  [developer] 23 Nov, 2024 @ 5:18pm 
How to make a CFG file with your preferred values

Go to steamapps/common/half-life 2/hl2_complete/cfg
Create a new txt file here, rename it to whatever name you want.
Change the file extension from TXT to CFG. Don't worry, you can still open and edit CFG files in Notepad.
Open your CFG.
Add the commands you want, one command per line. For example:
sk_max_pistol "99" sk_max_smg1 "200" sk_max_buckshot "24" sk_max_357 "12"
Save the file.
Go ingame, into a map.
Open console.
Type "exec NAME", where NAME is the name you chose for your cfg file.
Each new map, you'll have to exec the script again. (For the skill-based CVARs, anyway.)
Last edited by Qwazzy; 23 Nov, 2024 @ 5:24pm
Qwazzy  [developer] 23 Nov, 2024 @ 5:23pm 
How to make a CFG file that auto-launches every new map

Get Script MultiLoader:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3367265657
Go to steamapps/common/half-life 2/hl2_complete/cfg
Create a new folder "custom_scripts" if you don't have it yet, enter it
Create a new txt file here, rename it to any three-digit number (examples: 326, 112, 827, and so on).
  • Be aware that if you're already using Script MultiLoader and script mods utilizing it, you can't use the same ID as a mod you're subscribed to or they'll conflict. Since there's currently 1000 slots, the chances of this happening accidentally are pretty tiny, though.
Change the file extension from TXT to CFG. Don't worry, you can still open and edit CFG files in Notepad.
Open your CFG.
Add the commands you want, one command per line. For example:
sk_max_pistol "99" sk_max_smg1 "200" sk_max_buckshot "24" sk_max_357 "12"
Save the file.
Go ingame
If Script MultiLoader isn't at the top of your modlist, put it at the top
That's it, your script will now auto-execute on every new map you play.
If you need to temporarily disable it from executing, you can either 1) change the name of the CFG file so it doesn't auto execute, or 2) upload it as a private mod you can enable and disable via the workshop window.
  • Script MultiLoader launches every script file from 1.cfg to 1000.cfg and every number in between, so changing the name to anything else ("253disabled.cfg") will prevent it from loading on a new map.
Last edited by Qwazzy; 23 Nov, 2024 @ 5:27pm
< >
Showing 1-2 of 2 comments
Per page: 1530 50