Raised This Month: $51 Target: $400
 12% 

[L4D2][REQ]Rescue Time and Disable infected distance


Post New Thread Reply   
 
Thread Tools Display Modes
Forgetest
Member
Join Date: Aug 2020
Old 02-06-2024 , 07:10   Re: [L4D2][REQ]Rescue Time and Disable infected distance
Reply With Quote #11

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[] keyint &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 
PANICoverrideVal 5;    // 5 waves of horde
            
case TANKoverrideVal 3;        // 3 tanks
        
}
        
g_nNextStageType ERROR;

        if (
overrideVal != -1)
        {
            
retVal overrideVal;
            return 
Plugin_Handled;
        }
    }
    else
    {
        
g_nNextStageType retVal;
    }

    return 
Plugin_Continue;

Forgetest is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode