PHP Code:
z_discard_min_range : 1000 : , "sv", "cheat" : Don't relocate PZs closer than this regardless of flow distance
Try increasing this cvar to a large value to prevent SI respawning.
Pretty every L4D2 finale is scripted with what's going on next and how many it will be. (How scripted finale works:
https://developer.valvesoftware.com/...d_Panic_Events)
1. If you'd like to extend finale on certain maps, make a script copy from
here in your corresponding folder and do anything you want.
2. If extending all finales, use
this plugin forward to catch the finale values and override.
Code example:
PHP Code:
enum
{
ERROR = -1,
PANIC = 0,
TANK = 1,
DELAY = 2,
};
int g_nNextStageType = ERROR;
public Action L4D_OnGetScriptValueInt(const char[] key, int &retVal)
{
if (key[0] < 'A' || key[0] > 'D')
return Plugin_Continue;
if (strncmp(key[1], "_CustomFinale", 13))
return Plugin_Continue;
if (!strncmp(key[14], "Value", 5))
{
int overrideVal = -1;
switch (g_nNextStageType)
{
case PANIC: overrideVal = 5; // 5 waves of horde
case TANK: overrideVal = 3; // 3 tanks
}
g_nNextStageType = ERROR;
if (overrideVal != -1)
{
retVal = overrideVal;
return Plugin_Handled;
}
}
else
{
g_nNextStageType = retVal;
}
return Plugin_Continue;
}