This commit is contained in:
INeedBots 2020-10-04 00:10:20 -06:00
parent eb81d47543
commit 4e1bd57f69
3 changed files with 28 additions and 3 deletions

View File

@ -524,6 +524,10 @@ set bots_loadout_allow_op "0"
set sv_printradarupdates "1"
// _killcam
set scr_killcam_doSlowmo "1"
// _gamelogic
set scr_extraDamageFeedback "1"
set scr_printDamage "1"
@ -574,6 +578,7 @@ set scr_nuke_perm_vision "1"
set scr_nuke_canCall_whenTimePassed "0"
set scr_nuke_canCall_whenScoreLimitClose "0"
set scr_nuke_canCall_whenScoreLimitClose_selfOnly "0"
set scr_nuke_doSlowmo "1"
// _emp
set scr_emp_doesFriendlyFire "0"

View File

@ -1,3 +1,13 @@
/*
_nuke modded
Author: INeedGames
Date: 09/22/2020
DVARS:
- scr_killcam_doSlowmo <bool>
true - (default) should do a slowmo effect when final killcam
*/
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
@ -9,6 +19,9 @@ init()
precacheShader("specialty_copycat");
level.killcam = maps\mp\gametypes\_tweakables::getTweakableValue( "game", "allowkillcam" );
setDvarIfUninitialized( "scr_killcam_doSlowmo", true );
level.killcam_doSlowmo = getDVarInt("scr_killcam_doSlowmo");
}
killcam(
@ -232,9 +245,13 @@ doFinalKillCamFX( camTime )
wait( camTime - 1.0 );
}
//setSlowMotion( 1.0, 0.25, intoSlowMoTime ); // start timescale, end timescale, lerp duration
if (level.killcam_doSlowmo)
setSlowMotion( 1.0, 0.25, intoSlowMoTime ); // start timescale, end timescale, lerp duration
wait( intoSlowMoTime + .5 );
//setSlowMotion( 0.25, 1, 1.0 );
if (level.killcam_doSlowmo)
setSlowMotion( 0.25, 1, 1.0 );
level.doingFinalKillcamFx = undefined;
}

View File

@ -25,6 +25,9 @@
- scr_nuke_canCall_whenScoreLimitClose_selfOnly <bool>
false - (default) wether or not to take into account just the caller's score, or everyone's score
- scr_nuke_doSlowmo <bool>
true - (default) should do a slowmo effect when nuke
Thanks: H3X1C, Emosewaj, RaidMax
*/
@ -64,7 +67,7 @@ init()
level.cancelMode = getDvarInt( "scr_nukeCancelMode" );
level.nukeEndsGame = !getDvarInt( "scr_nuke_is_moab" );
level.nukeDoSlowmo = !getDvarInt( "scr_nuke_doSlowmo" );
level.nukeDoSlowmo = getDvarInt( "scr_nuke_doSlowmo" );
level.nukeKillsAll = getDvarInt( "scr_nuke_kills_all" );
level.nukeEmpDuration = getDvarFloat( "scr_nuke_emp_duration" );
level.nukePermAftermath = getDvarFloat( "scr_nuke_perm_vision" );