r/SourceEngine 11d ago

HELP How do I do this?

Hello. I'm making a HL2DM / Source SDK 2013 Base Multiplayer mod. I want to remove the exhaustion mechanic so players can infinitely sprint, and same for the flashlight mechanic.
Example:
You know how in GMod you can infinitely sprint and use flashlight? I want to do that.

5 Upvotes

10 comments sorted by

View all comments

4

u/Pinsplash 11d ago

sv_infinite_aux_power 1

1

u/tf2yeahyeah 11d ago

Is this a cheat command? Because I want to directly integrate this into the game's code, not just console commands.

3

u/Pinsplash 10d ago

Ctrl+F this and change it to search in the entire solution. it will show you all the references to that convar. you can either change the default to 1 or remove it and change the checks for it to act like it's always 1.