REM ----------------------
REM Left 4 Dead models fix. Useful when importing L4D models to Garry's Mod 10
REM This .bat creates '.dx80.vtx', '.dx90.vtx' and '.sw.vtx' files for all L4D models automaticaly
REM ----------------------
REM Usage :
REM ----------------------
REM Extract this .bat file to \models folder after you have Extracted L4D content. After run this bat and it will do everything automaticaly for you.
REM ----------------------
REM Credits :
REM ----------------------
REM Created by Ferdam
REM Version 4.0
REM Before erase all dx80, dx90 and sw files
FOR /R %%a IN ("*.dx80.vtx") DO del "%%a"
FOR /R %%a IN ("*.dx90.vtx") DO del "%%a"
FOR /R %%a IN ("*.sw.vtx") DO del "%%a"
REM Create new copies of dx80, dx90 and sw files
FOR /R %%a IN ("*.vtx") DO copy "%%a" "%%~dpa%%~na.dx80.vtx"
FOR /R %%a IN ("*.vtx") DO copy "%%a" "%%~dpa%%~na.dx90.vtx"
FOR /R %%a IN ("*.vtx") DO copy "%%a" "%%~dpa%%~na.sw.vtx"
REM Delete wrong combinations
FOR /R %%a IN ("*.dx80.dx90.sw.vtx") DO del "%%a"
FOR /R %%a IN ("*.dx80.dx90.vtx") DO del "%%a"
FOR /R %%a IN ("*.dx80.sw.vtx") DO del "%%a"
FOR /R %%a IN ("*.dx90.sw.vtx") DO del "%%a"
pause