diff --git a/main/server.cfg b/main/server.cfg index e54fa1a..faf85ab 100644 --- a/main/server.cfg +++ b/main/server.cfg @@ -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" diff --git a/userraw/maps/mp/gametypes/_killcam.gsc b/userraw/maps/mp/gametypes/_killcam.gsc index 8e62e5c..76baed8 100644 --- a/userraw/maps/mp/gametypes/_killcam.gsc +++ b/userraw/maps/mp/gametypes/_killcam.gsc @@ -1,3 +1,13 @@ +/* + _nuke modded + Author: INeedGames + Date: 09/22/2020 + + DVARS: + - scr_killcam_doSlowmo + 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; } diff --git a/userraw/maps/mp/killstreaks/_nuke.gsc b/userraw/maps/mp/killstreaks/_nuke.gsc index 3a83732..acf3981 100644 --- a/userraw/maps/mp/killstreaks/_nuke.gsc +++ b/userraw/maps/mp/killstreaks/_nuke.gsc @@ -25,6 +25,9 @@ - scr_nuke_canCall_whenScoreLimitClose_selfOnly false - (default) wether or not to take into account just the caller's score, or everyone's score + - scr_nuke_doSlowmo + 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" );