mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-05-12 23:44:50 +00:00
slow mo
This commit is contained in:
parent
eb81d47543
commit
4e1bd57f69
@ -524,6 +524,10 @@ set bots_loadout_allow_op "0"
|
|||||||
set sv_printradarupdates "1"
|
set sv_printradarupdates "1"
|
||||||
|
|
||||||
|
|
||||||
|
// _killcam
|
||||||
|
set scr_killcam_doSlowmo "1"
|
||||||
|
|
||||||
|
|
||||||
// _gamelogic
|
// _gamelogic
|
||||||
set scr_extraDamageFeedback "1"
|
set scr_extraDamageFeedback "1"
|
||||||
set scr_printDamage "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_whenTimePassed "0"
|
||||||
set scr_nuke_canCall_whenScoreLimitClose "0"
|
set scr_nuke_canCall_whenScoreLimitClose "0"
|
||||||
set scr_nuke_canCall_whenScoreLimitClose_selfOnly "0"
|
set scr_nuke_canCall_whenScoreLimitClose_selfOnly "0"
|
||||||
|
set scr_nuke_doSlowmo "1"
|
||||||
|
|
||||||
// _emp
|
// _emp
|
||||||
set scr_emp_doesFriendlyFire "0"
|
set scr_emp_doesFriendlyFire "0"
|
||||||
|
@ -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\_utility;
|
||||||
#include maps\mp\gametypes\_hud_util;
|
#include maps\mp\gametypes\_hud_util;
|
||||||
|
|
||||||
@ -9,6 +19,9 @@ init()
|
|||||||
precacheShader("specialty_copycat");
|
precacheShader("specialty_copycat");
|
||||||
|
|
||||||
level.killcam = maps\mp\gametypes\_tweakables::getTweakableValue( "game", "allowkillcam" );
|
level.killcam = maps\mp\gametypes\_tweakables::getTweakableValue( "game", "allowkillcam" );
|
||||||
|
|
||||||
|
setDvarIfUninitialized( "scr_killcam_doSlowmo", true );
|
||||||
|
level.killcam_doSlowmo = getDVarInt("scr_killcam_doSlowmo");
|
||||||
}
|
}
|
||||||
|
|
||||||
killcam(
|
killcam(
|
||||||
@ -232,9 +245,13 @@ doFinalKillCamFX( camTime )
|
|||||||
wait( camTime - 1.0 );
|
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 );
|
wait( intoSlowMoTime + .5 );
|
||||||
//setSlowMotion( 0.25, 1, 1.0 );
|
|
||||||
|
if (level.killcam_doSlowmo)
|
||||||
|
setSlowMotion( 0.25, 1, 1.0 );
|
||||||
|
|
||||||
level.doingFinalKillcamFx = undefined;
|
level.doingFinalKillcamFx = undefined;
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
- scr_nuke_canCall_whenScoreLimitClose_selfOnly <bool>
|
- scr_nuke_canCall_whenScoreLimitClose_selfOnly <bool>
|
||||||
false - (default) wether or not to take into account just the caller's score, or everyone's score
|
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
|
Thanks: H3X1C, Emosewaj, RaidMax
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -64,7 +67,7 @@ init()
|
|||||||
level.cancelMode = getDvarInt( "scr_nukeCancelMode" );
|
level.cancelMode = getDvarInt( "scr_nukeCancelMode" );
|
||||||
|
|
||||||
level.nukeEndsGame = !getDvarInt( "scr_nuke_is_moab" );
|
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.nukeKillsAll = getDvarInt( "scr_nuke_kills_all" );
|
||||||
level.nukeEmpDuration = getDvarFloat( "scr_nuke_emp_duration" );
|
level.nukeEmpDuration = getDvarFloat( "scr_nuke_emp_duration" );
|
||||||
level.nukePermAftermath = getDvarFloat( "scr_nuke_perm_vision" );
|
level.nukePermAftermath = getDvarFloat( "scr_nuke_perm_vision" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user