diff options
author | x3Karma <juliuslimck@gmail.com> | 2022-01-07 15:36:11 +0800 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-01-09 21:13:53 -0300 |
commit | bc859cb25f1e3f2798cb768741ecb48b28684e21 (patch) | |
tree | 0ed34204c1e67346c30ad059316ad627d9d464e9 /Northstar.CustomServers | |
parent | db2e0edc029427dcbd46fd4a30081ec011417320 (diff) | |
download | NorthstarMods-bc859cb25f1e3f2798cb768741ecb48b28684e21.tar.gz NorthstarMods-bc859cb25f1e3f2798cb768741ecb48b28684e21.zip |
Additional kill score fixes
- Reset number of deaths since last kill when the attacker gets a kill (to prevent dying once and immediately get a Comeback medal)
- Change == sign to >= sign for Dominating killstreaks
- Change == sign to >= sign for Mega Kills
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut index 002b1331..fd6ac646 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut @@ -108,7 +108,7 @@ void function ScoreEvent_PlayerKilled( entity victim, entity attacker, var damag if ( !attacker.IsPlayer() ) return - + attacker.p.numberOfDeathsSinceLastKill = 0 // since they got a kill, remove the comeback trigger // pilot kill AddPlayerScore( attacker, "KillPilot", victim ) @@ -145,7 +145,7 @@ void function ScoreEvent_PlayerKilled( entity victim, entity attacker, var damag attacker.p.playerKillStreaks[ victim ]++ // dominating - if ( attacker.p.playerKillStreaks[ victim ] == DOMINATING_KILL_REQUIREMENT ) + if ( attacker.p.playerKillStreaks[ victim ] >= DOMINATING_KILL_REQUIREMENT ) AddPlayerScore( attacker, "Dominating" ) if ( Time() - attacker.s.lastKillTime > CASCADINGKILL_REQUIREMENT_TIME ) @@ -163,7 +163,7 @@ void function ScoreEvent_PlayerKilled( entity victim, entity attacker, var damag AddPlayerScore( attacker, "DoubleKill" ) else if ( attacker.s.currentTimedKillstreak == TRIPLEKILL_REQUIREMENT_KILLS ) AddPlayerScore( attacker, "TripleKill" ) - else if ( attacker.s.currentTimedKillstreak == MEGAKILL_REQUIREMENT_KILLS ) + else if ( attacker.s.currentTimedKillstreak >= MEGAKILL_REQUIREMENT_KILLS ) AddPlayerScore( attacker, "MegaKill" ) } |