L4D2 Level Design/Boss Prohibition: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{otherlang2
{{otherlang2
| ru=L4D2 Level Design/Boss Prohibition:ru}}
| ru=L4D2 Level Design/Boss Prohibition:ru}}
{{L4D2 level intro menu}}
{{L4D2 level intro menu}}
Left4Dead 2 no longer relies on the mission.txt file to prohibit Tanks and Witches on maps. This is now done with a script file that you should place in your '''left4dead2/scripts/vscripts''' folder (you may need to add the '''vscripts''' subfolder yourself).
Left4Dead 2 no longer relies on the mission.txt file to prohibit Tanks and Witches on maps. This is now done with a script file that you should place in your '''left4dead2/scripts/vscripts''' folder (you may need to add the '''vscripts''' subfolder yourself).
Line 15: Line 14:
In your map, place a '''logic_auto''' entity and add an output. The output should target the AI Director entity and make it fire the script by using the BeginScript action. In the parameter field, you set the name of your script (without the '''.nut''' extention)
In your map, place a '''logic_auto''' entity and add an output. The output should target the AI Director entity and make it fire the script by using the BeginScript action. In the parameter field, you set the name of your script (without the '''.nut''' extention)


{{Navbar-last|:L4D2_Level_Design/Add-on Notes|L4D2 Level Design}}


== See also ==
== See also ==
* [[L4D2 Vscripts]]
* [[L4D2 Vscripts]]
{{Navbar-last|:L4D2_Level_Design/Add-on Notes|L4D2 Level Design}}


[[Category:Left 4 Dead 2]]
[[Category:Left 4 Dead 2]]

Revision as of 22:04, 17 July 2010

Template:Otherlang2

Left4Dead 2 no longer relies on the mission.txt file to prohibit Tanks and Witches on maps. This is now done with a script file that you should place in your left4dead2/scripts/vscripts folder (you may need to add the vscripts subfolder yourself). Add the following to a text file:


DirectorOptions <-
{
   ProhibitBosses = true
}

Save the textfile with the extention .nut in the vscripts folder. In your map, place a logic_auto entity and add an output. The output should target the AI Director entity and make it fire the script by using the BeginScript action. In the parameter field, you set the name of your script (without the .nut extention)


See also

L4D2_Level_Design/Add-on Notes Return to L4D2 Level Design