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

[L4D2] Zed Time v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Author
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Plugin ID:
1799
Plugin Version:
1.4
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Slows down the game like in Killing Floor on random kills.
    Old 07-13-2010 , 19:29   [L4D2] Zed Time v1.4
    Reply With Quote #1

    You ever wish Left 4 Dead 2 was like Killing Floor? Yes? Well I do too.

    What it does:
    Will slow down game when a zombie/survivor is killed based on Cvar settings.

    Servers running this plugin!

    Cvars:
    l4d2_zed_time_version
    l4d2_zed_time_enable "1"
    l4d2_zed_surv_chance "40" How much of a chance does a survivor have of triggering Zed Time(1/Cvar Value)
    l4d2_zed_infct_chance "20" How much of a chance does a infected have of triggering Zed Time
    l4d2_zed_pipe_chance "10" How much of a chance the pipe bomb has of triggering Zed Time
    l4d2_zed_boomer_explosion_chance "10" How much of a chance the boomer exploding has of triggering Zed Time.
    l4d2_zed_restrict "1" Restrict Zed Time to what team, 1(survivor) 2(infected) 3(both)
    l4d2_zed_tank "2" Chance that the tank's death will trigger Zed Time
    l4d2_zed_witch "10" Chance that a witch's death will trigger Zed Time
    l4d2_zed_timer "1.0" How long Zed time lasts
    l4d2_zed_extreme_shot "150" Distance in feet a kill must be to increase chances of Zed Time
    l4d2_zed_charger "1" Enable Zed time for this infected?
    l4d2_zed_smoker "1" Enable Zed time for this infected?
    l4d2_zed_jockey "1" Enable Zed time for this infected?
    l4d2_zed_hunter "1" Enable Zed time for this infected?
    l4d2_zed_boomer "1" Enable Zed time for this infected?
    l4d2_zed_modes "coop,versus,realism,teamversus" Game modes that Zed Time will be enabled in

    Notes:
    This plugin is not fully complete yet, but the initial release provides the basic function it was meant for at the moment.
    The repercussions of creating too many func_timescale entities is not yet known.
    Zed Time will not trigger for Bots, only for human players, if requested I will add a Cvar to control this.

    History:
    1.0 - Initial Release
    1.1 - Headshots now double the chance of getting Zed time, new Cvars: l4d2_zed_witch and l4d2_zed_timer. Chance Cvars defaults now lowered.
    1.2 - Skipped. Now plays sound on Zed Time, new Cvar l4d2_zed_extreme_shot.
    1.3 - Increased chance of getting Zed time if hunter is headshotted in mid air, new Cvars for specific infected.
    1.3.1 - Sound fade out for client that triggers Zed time
    1.3.2 - Fixed Zed Time activating even when it was disabled.
    1.4 - Added l4d2_zed_pipe_chance, l4d2_zed_boomer_explosion_chance, and changed l4d2_zed_witch.

    DUE FOR A REWRITE
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_zed_time.sp - 7335 views - 13.7 KB)
    __________________

    Last edited by McFlurry; 01-05-2011 at 21:15.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    dYZER
    Member
    Join Date: Jan 2010
    Location: Germany
    Old 07-13-2010 , 20:33   Re: [L4D2] Zed Time v1.0
    Reply With Quote #2

    hehe same project that i working on,
    hope ur worx without sv_cheats 1

    here´s my code only working with "sv_cheats 1"
    PHP Code:
    //**(my=[copy/snip from aka matrix bullettime [V0gelz] ) 

    public Action:Event_Infected_Death(Handle:event, const String:name[], bool:dontBroadcast
    {
        if (
    GetConVarInt(n8matrixhead) == 1)
        {
            new 
    headshot GetEventInt(event"headshot"); //headshot only
            
            
    if(headshot == 1
            {
                new 
    n8mrando GetRandomInt(1,5);
                if((
    n8mrando == 3) && (n8mtrixTimer == INVALID_HANDLE)) n8mmatrix();
            }
        }    
    }
    n8mmatrix()
    {
        if (
    n8mtrixTimer == INVALID_HANDLE
        {
            
    CreateTimer(0.1count_15);
            
    CreateTimer(0.2count_14);
            
    CreateTimer(0.3count_13);
            
    CreateTimer(0.4count_12);
            
    CreateTimer(0.6count_11);
            
    CreateTimer(1.0count_10);
            
    CreateTimer(1.2count_9);
            
    CreateTimer(1.5count_8);
            
    CreateTimer(1.8count_7);
            
    CreateTimer(2.1count_6);
            
    CreateTimer(2.3count_5);
            
    CreateTimer(2.5count_4);
            
    CreateTimer(3.0count_3);
            
    CreateTimer(3.5count_2);
            
    CreateTimer(4.0count_1);
            
    //CreateTimer(4.0, count_0); //cooldown timer [n8mtrixTimer]
            //PrintToChatAll("\x04[test]\x01 an"); //debug
        
    }
    }

    public 
    Action:count_1(Handle:timer){
        
    ServerCommand("host_timescale 1.0");
        
    n8mtrixTimer INVALID_HANDLE;
    }
    public 
    Action:count_2(Handle:timerServerCommand("host_timescale 0.9");
    public 
    Action:count_3(Handle:timerServerCommand("host_timescale 0.8");
    public 
    Action:count_4(Handle:timerServerCommand("host_timescale 0.7");
    public 
    Action:count_5(Handle:timerServerCommand("host_timescale 0.6");
    public 
    Action:count_6(Handle:timerServerCommand("host_timescale 0.5");
    public 
    Action:count_7(Handle:timerServerCommand("host_timescale 0.4");
    public 
    Action:count_8(Handle:timerServerCommand("host_timescale 0.3");
    public 
    Action:count_9(Handle:timerServerCommand("host_timescale 0.3");
    public 
    Action:count_10(Handle:timerServerCommand("host_timescale 0.4");
    public 
    Action:count_11(Handle:timerServerCommand("host_timescale 0.5");
    public 
    Action:count_12(Handle:timerServerCommand("host_timescale 0.6");
    public 
    Action:count_13(Handle:timerServerCommand("host_timescale 0.7");
    public 
    Action:count_14(Handle:timerServerCommand("host_timescale 0.8");
    public 
    Action:count_15(Handle:timerServerCommand("host_timescale 0.9"); 
    dYZER is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 07-14-2010 , 02:20   Re: [L4D2] Zed Time v1.0
    Reply With Quote #3

    Using the func_timescale entity is so much simpler. host_timescale is one of those cvars that is almost impossible to change without sv_cheats 1.
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 07-14-2010 , 05:35   Re: [L4D2] Zed Time v1.0
    Reply With Quote #4

    Nice, i wasnt aware changing time was that simple.
    AtomicStryker is offline
    delirium_trigger
    SourceMod Donor
    Join Date: Apr 2009
    Location: Washington
    Old 07-14-2010 , 06:19   Re: [L4D2] Zed Time v1.0
    Reply With Quote #5

    Does the plugin pick a random survivor to experience zed time or does everybody experience it when it happens?

    Could you also offer a new characteristic to the plugin? Is it possible to trigger zed time when the witch is startled? If this is possible could you please make separate cvars for the chances of it activating each startle.
    delirium_trigger is offline
    Herokim
    Senior Member
    Join Date: Mar 2010
    Location: In Fag-o-land
    Old 07-14-2010 , 06:22   Re: [L4D2] Zed Time v1.0
    Reply With Quote #6

    Quote:
    Originally Posted by McFlurry View Post
    l4d2_zed_infct_chance "50" How much of a chance does a survivor have of triggering Zed Time
    l4d2_zed_surv_chance "100" How much of a chance does a survivor have of triggering Zed Time
    I think by accident you misspelled here .Survivors have 2 chances for ZED time ?
    Herokim is offline
    mommafish
    Member
    Join Date: Mar 2010
    Old 07-14-2010 , 08:19   Re: [L4D2] Zed Time v1.0
    Reply With Quote #7

    awsome plugin... but i dont know how to use it.. i set all chances to 100 but it never happened on my game when i kill a special infected
    mommafish is offline
    dirka_dirka
    Veteran Member
    Join Date: Nov 2009
    Old 07-14-2010 , 09:45   Re: [L4D2] Zed Time v1.0
    Reply With Quote #8

    Quote:
    Originally Posted by mommafish View Post
    awsome plugin... but i dont know how to use it.. i set all chances to 100 but it never happened on my game when i kill a special infected
    he described it wrong.. its a random number roll between 1 and what you enter. so 1 is '100%' and 2 is '50%', so on and so on.
    100 in this case, is only 1% - not very likely to happen.
    dirka_dirka is offline
    Searcher64
    Senior Member
    Join Date: Apr 2010
    Old 07-14-2010 , 09:51   Re: [L4D2] Zed Time v1.0
    Reply With Quote #9

    What happens if this happens on versus?
    Searcher64 is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 07-14-2010 , 11:43   Re: [L4D2] Zed Time v1.0
    Reply With Quote #10

    @Atomic Valve's developer community wiki is awesome.
    @Herokim Eh, typo
    @delirium_trigger Everyone experiences it, I'll add that in the next version.
    @mommafish 100 doesn't mean 100% it means there's a 1 in 100 chance of it happening.
    @Searcher If the plugin is not restricted to survivor team only(l4d2_zed_restrict 1) it will trigger Zed time randomly When an Infected attacks with their ability.
    __________________

    Last edited by McFlurry; 07-14-2010 at 11:47.
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    Reply


    Thread Tools
    Display Modes

    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 08:26.


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