ItsMods

Full Version: Final killcam slowmo thing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
One of my friend asked me to write a mod for him, what is slowing down the time in the final killcam.

I think I need the killcam.gsc, but I don't where to place the timescale command and how to place it for only final killcam.
He also wants a final killcam for the last kill if timelimit reached.

Also @G-Man told me I need to use an onEnd trigger, but idk how to use it.

Gametype is war/tdm and sometimes sd.

Ideas?
onEnd does not exist, I said you have to code it Tongue
i dont fully understand what you looking fore, coz final killcam slowmo popular mod.

Download and put it on MAIN folder...


you can regulate it here
open iw_30.iwd
open killcam.gsk

doFinalKillCamFX( camTime )
{
if ( isDefined( level.doingFinalKillcamFx ) )
return;
level.doingFinalKillcamFx = true;

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;
}


if there is time limit, make it with time and with 99999999999 points, then at the last 5 seconds make it to give 99999999999 points for kill... idk maybe will help )
In _killcam.gsc change this numbers

Code:
    setSlowMotion( 1.0, 0.25, intoSlowMoTime ); // start timescale, end timescale, lerp duration
    wait( intoSlowMoTime + .5 );
    setSlowMotion( 0.25, 1, 1.0 );
Will try out all tomorrow.