ItsMods

Full Version: Final killcam Slowmo only on predefined maps.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, before i had slowmo killcam but too many players was whining that its too laggy or too stupid, but i (not only me) like it and i was looking a way to make it torn on\off, but i didnt found anything. now i think what if it possible to place a code that will torn on slowmo in some maps.

if(getDvar("mapname") == "mp_favela")
{
do_slowmo
}

But im not sure if there exist any dvars or commands for torning on slowmo. It would be greate if some of you help me with this. Thank you.
solved

Code:
doFinalKillCamFX( camTime )
{
    if ( isDefined( level.doingFinalKillcamFx ) )
        return;
    level.doingFinalKillcamFx = true;
    if(getDvar("mapname") == "mp_rust"  || getDvar("mapname") == "mp_quarry" )
    {
    intoSlowMoTime = camTime;
    if ( intoSlowMoTime > 0.5 )
    {
        intoSlowMoTime = 0.5;
        wait( camTime - 0.5 );
    }
    
    setDvar("timescale", .08);
    wait( intoSlowMoTime + .08 );
    setDvar("timescale", 1);
    
    level.doingFinalKillcamFx = undefined;
    }
    else
    {
        intoSlowMoTime = camTime;
    if ( intoSlowMoTime > 1.5 )
    {
        intoSlowMoTime = 1.5;
        wait( camTime - 1.5 );
    }
    
    setDvar("timescale", 1);
    wait( intoSlowMoTime + 1 );
    setDvar("timescale", 1);
    
    level.doingFinalKillcamFx = undefined;
    }
}