Originally posted by Teamrider
I'm currently making my own patch. Now i looked into some patches and was wondering whats the difference between vstr and exec
exec is a command that executes an entire .cfg or .gsc depending on what type of patch youre editing, in other words, activates the dvars and cvars in what youre executing. heres an example of how its used.
exec MainMenuHere.cfg
It will set everything in the .cfg to what you have vstrs set to.
vstrs do this.
vstr Example
set Example "g_compassShowEnemies 1"
now, you have Example set to activate radar, so when you vstr Example, it goes to it and activates what you have it set to do. In other words, a vstr goes to a custom set string of DVars and CVars that you have made, and exec fully executes a .cfg or .gsc and activates everything within it. Make sense?