Setting Up the Compile.bat File
NOTE: You can skip this section if you intend to use one of the graphical-interface compiling tools.
Create a batch file (normal text) for easy compiling of model-related files:
Open Notepad++.
Click File > New in the menu.
Click File > Save As... in the menu.
Go to the Source folder.
Set the File name to: compile_model.bat
Click Save button.
Copy-paste the following text into the compile_model.bat file:
@ECHO OFF PROMPT $G CLS SET ModelName=Bill SET StudiomdlPathName="C:\Program Files (x86)\Steam\SteamApps\common\left 4 dead 2\bin\studiomdl.exe" SET Left4Dead2PathFolder="C:\Program Files (x86)\Steam\SteamApps\common\left 4 dead 2\left4dead2" SET StudiomdlParams=-game %Left4Dead2PathFolder% -nop4 -verbose -nox360 TITLE Compile %ModelName% :show_menu ECHO. ECHO [1] Compile world-model for HLMV ECHO [2] Compile world-model for L4D2 ECHO [3] Compile view-model for HLMV ECHO [4] Compile view-model for L4D2 ECHO [X] Exit ECHO ------ CHOICE /C 1234X IF errorlevel 5 goto:eof IF errorlevel 4 goto view_l4d2 IF errorlevel 3 goto view_hlmv IF errorlevel 2 goto world_l4d2 IF errorlevel 1 goto world_hlmv :world_hlmv SET ModelType=world SET TargetApp=HLMV goto compile :world_l4d2 SET ModelType=world SET TargetApp=L4D2 goto compile :view_hlmv SET ModelType=view SET TargetApp=HLMV goto compile :view_l4d2 SET ModelType=view SET TargetApp=L4D2 goto compile :compile ECHO. ECHO Compiling %ModelType%-model for %TargetApp%... SET FileName=%ModelName%_%ModelType%_%TargetApp% %StudiomdlPathName% %StudiomdlParams% .\%FileName%.qc > .\%FileName%.log ECHO ...Done. ECHO ================================================================================ goto show_menu
On the line, SET ModelName=Bill, change Bill to the name of survivor being replaced (one of the following: Bill, Coach, Ellis, Francis, Louis, Nick, Rochelle, Zoey).
Click Save button.
Create and edit the qc files:
Copy the world model qc file two times. There should now be three of the same qc file.
Rename one of the qc files to (where <name> is the name of the replaced survivor): <name>_world_hlmv.qc
Rename one of the qc files to (where <name> is the name of the replaced survivor): <name>_world_l4d2.qc
Rename one of the qc files to (where <name> is the name of the replaced survivor): <name>_world.qci
Select all 3 files and open them in or send them to Notepad++.
For each of the two qc files, delete all lines except the one line with $modelname.
Add to each opf the two qc files, this line (where <name> is the name of the replaced survivor):
$include "<name>_world.qci"
In the hlmv qc file, change the modelname (the text in quotes) to a custom name that won't interfere with an existing game model.
In the l4d2 qc file, change the modelname (the text in quotes) to the file name used for the survivor that is being replaced, as indicated below:
Bill: survivor_namvet.qc
Coach: survivor_coach.qc
Ellis: survivor_mechanic.qc
Francis: survivor_biker.qc
Louis: survivor_manager.qc
Nick: survivor_gambler.qc
Rochelle: survivor_producer.qc
Zoey: survivor_teenangst.qc
In the qci file, delete the line with $modelname.