Hi. If you are going to do it with Stripper:
-you can dump all entities list with
stripper_dump command (addons\stripper\dumps\map_name.cfg for example c2m5_concert.0000.cfg)
-and find there
BeginScript, what entities send commands to director
-as we can see through all list, there are no scripts director executes, so let's make own
-create
c2m5_concert.cfg in addons\stripper\maps\
put there lines:
Code:
modify:
{
match:
{
;let's take logic_auto, as we need entity to send command, maybe director can do it for itself, IDK
"hammerid" "2404832"
}
;insert new line for execution by director
insert:
{
"OnMapSpawn" "director,BeginScript,your_nut_file.nut,0,-1"
}
}
-create your_nut_file.nut in left4dead2\scripts\vscripts\
-put there:
Code:
Msg("Quieting director\n");
DirectorOptions <-
{
ProhibitBosses = true
SpecialRespawnInterval = 999999
CommonLimit = 0
}
The same trick you can do with other maps. Somewhere you can edit existing lines and scripts of events or triggers. To create your own trigger, I think, you should to know origins and bounds, to spawn it properly. My example for c1m1_highway:
Code:
modify:
{
match:
{
;trigger id
"hammerid" "999996"
}
delete:
{
;in my case trigger send command to director to execute the script, I just replaced it
"OnTrigger" "director,BeginScript,C2_highway_ambush,1,-1"
}
insert:
{
"OnTrigger" "director,BeginScript,C2_highway_ambush_edit,1,-1"
}
}
C2_highway_ambush_edit:
Code:
Msg("Initiating Ambush_edited\n");
DirectorOptions <-
{
// This turns off tanks and witches.
ProhibitBosses = false
DisallowThreatType = ZOMBIE_TANK
}
Default .nut files you can find, for example, here
https://github.com/Stabbath/L4D2-Dec...led%20VScripts