Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[HELP] Slow motion killcams

Опубликовано:

So, I'm trying to get a proper slow motion but I can't understand the function properly, can somebody explain me throughoutly what does each line do on this script I copied from the net:

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

intoSlowMoTime = camTime;
if ( intoSlowMoTime > 0.5 ) // What lasts 0.5 seconds?
{
intoSlowMoTime = 0.5; // What 0.5?
wait( camTime - 0.5 ); // What 0.5?
}

setDvar("timescale", .08); // What lasts 0.08 seconds?
wait( intoSlowMoTime + .08 ); // What lasts 0.08 seconds?
setDvar("timescale", 1); // This is where it speeds up back to 1?

level.doingFinalKillcamFx = undefined;
}

 

I tried figuring it out myself by modifying the numbers, but it caused everything to be messed up.

I mainly would like the slow mo to start earlier, and be a little bit faster. If somebody could help me on this one I'd really appreciate it.

Featured Replies

Опубликовано:

Just replace it with this code:

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

wait 3.47;

for (i = 1 ; i >= 0.099999; i -= 0.175)
{	
	setDvar("sv_cheats", 1);
	setDvar("timescale", i);

	wait 0.00001;
}
wait 0.20;
for (i = 0.09999 ; i <= 1; i += 0.10)
{	
	setDvar("sv_cheats", 1);
	setDvar("timescale", i);

	wait 0.01;
}
setDvar("sv_cheats", 1);
setDvar("timescale", 1);

intoSlowMoTime = camTime;
if ( intoSlowMoTime > 1.0 )
{
	intoSlowMoTime = 1.0;
	wait( camTime - 1.0 );
}


level.doingFinalKillcamFx = undefined;
}

Опубликовано:
  • Автор

Yeah, I have that one atm, It' very nice but not so nice for players with crappy connections. Can you tell me how to make the slow-mo last longer, or is it even possible to stretch it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.