This commit is contained in:
INeedBots 2020-09-26 21:15:23 -06:00
parent f26c31c9ad
commit 6f1bb3c9d4
3 changed files with 38 additions and 34 deletions

View File

@ -524,6 +524,7 @@ set scr_allow_intermission "0"
set scr_voting_bots "0"
set scr_nuke_increases_streak "0"
set headshot_detach_head "1"
set scr_killstreaks_increase_killstreak "1"
// _weapon
set scr_allowDropWeaponOnCommand "1"

View File

@ -244,22 +244,24 @@ handleNormalDeath( lifeId, attacker, eInflictor, sWeapon, sMeansOfDeath )
if ( self _hasPerk( "specialty_copycat" ) )
self.pers["copyCatLoadout"] = attacker maps\mp\gametypes\_class::cloneLoadout();
if ( isAlive( attacker ) )
if ( isAlive( attacker ) && !level.scriptIncKillstreak )
{
// killstreaks only advance from kills earned this life
if ( isDefined( level.killStreakSpecialCaseWeapons[sWeapon] ) || sWeapon == "nuke_mp" ) // this is an optimization
{
if (level.killstreaksIncreaseKillstreak)
{
switch ( sWeapon )
{
case "ac130_105mm_mp":
case "ac130_40mm_mp":
case "ac130_25mm_mp":
if ( attacker.ac130LifeId == attacker.pers["deaths"] && !level.scriptIncKillstreak )
if ( attacker.ac130LifeId == attacker.pers["deaths"] )
attacker.pers["cur_kill_streak"]++;
break;
case "cobra_player_minigun_mp":
case "weapon_cobra_mk19_mp":
if ( attacker.heliRideLifeId == attacker.pers["deaths"] && !level.scriptIncKillstreak )
if ( attacker.heliRideLifeId == attacker.pers["deaths"] )
attacker.pers["cur_kill_streak"]++;
break;
case "cobra_20mm_mp":
@ -275,18 +277,17 @@ handleNormalDeath( lifeId, attacker, eInflictor, sWeapon, sMeansOfDeath )
else
killstreakLifeId = attacker.lifeId;
if ( killstreakLifeId == attacker.pers["deaths"] && !level.scriptIncKillstreak && (level.nukeIncreasesStreak || sWeapon != "nuke_mp") )
if ( killstreakLifeId == attacker.pers["deaths"] && (level.nukeIncreasesStreak || sWeapon != "nuke_mp") )
attacker.pers["cur_kill_streak"]++;
break;
default:
if( !level.scriptIncKillstreak )
attacker.pers["cur_kill_streak"]++;
break;
}
}
}
else
{
if( !level.scriptIncKillstreak )
attacker.pers["cur_kill_streak"]++;
}

View File

@ -1391,6 +1391,7 @@ Callback_StartGameType()
setDvarIfUninitialized( "scr_voting_bots", false );
setDvarIfUninitialized( "scr_nuke_increases_streak", true );
setDvarIfUninitialized( "headshot_detach_head", false );
setDvarIfUninitialized( "scr_killstreaks_increase_killstreak", true );
level.extraDamageFeedback = getDvarInt("scr_extraDamageFeedback");
level.allowPrintDamage = getDvarInt("scr_printDamage");
@ -1409,6 +1410,7 @@ Callback_StartGameType()
level.botsVote = getDvarInt( "scr_voting_bots" );
level.headShotDetachHead = getDvarInt("headshot_detach_head");
level.nukeIncreasesStreak = getDvarInt( "scr_nuke_increases_streak" );
level.killstreaksIncreaseKillstreak = getDvarInt( "scr_killstreaks_increase_killstreak" );
if ( level.voting )
level.votingMapsTok = randomizeMaps();