- Apr 18, 2019
- 8
- 4
The mtp.cfg file is what is used to enable pyrovision for maps. This python file uses PowerShell to create a new mtp.cfg file in yer "tf/cfg" folder that will enable pyrovision for all the maps you currently have downloaded.
Create a new .py file in yer "steamapps/common/Team Fortress 2" folder and then copy and paste the following into it then save and close it.
Create a new .py file in yer "steamapps/common/Team Fortress 2" folder and then copy and paste the following into it then save and close it.
Python:
import os
def main():
bsp_list = []
for root, dirs, files in os.walk("."):
for file in files:
if file.endswith(".bsp"):
bsp_list.append(file)
with open("tf/cfg/mtp.cfg", "w") as f:
f.write('"VisionFilterShadersMapWhitelist"' + "\n" + "{" + "\n")
for bsp in bsp_list:
f.write("\t" + '"' + bsp + '" "1"' + "\n")
f.write("}")
if __name__ == "__main__":
main()
Then just run the .py and wait for it to finish.
Last edited: