View Single Post
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