diff options
author | x3Karma <juliuslimck@gmail.com> | 2022-03-11 11:28:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-11 03:28:30 +0000 |
commit | d9c82016bbe8108357dd7b7dd433ea96074da71f (patch) | |
tree | 696c0694099c19964e260fc055869ca51cd623ba | |
parent | 846cd1efbb9e8c8de0f0c50ae90d271281c45719 (diff) | |
download | NorthstarMods-d9c82016bbe8108357dd7b7dd433ea96074da71f.tar.gz NorthstarMods-d9c82016bbe8108357dd7b7dd433ea96074da71f.zip |
Additional scoring fixes (#261)
* Fix Assists being granted to the victim
* Show attacker callsign on MegaKill
* adds battery titan meter gain and fix some AI meter gain
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut | 2 | ||||
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut index 4168de30..8d29c612 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut @@ -291,7 +291,7 @@ void function PostDeathThread_MP( entity player, var damageInfo ) // based on ga alreadyAssisted[attackerInfo.attacker.GetEncodedEHandle()] <- true Remote_CallFunction_NonReplay( attackerInfo.attacker, "ServerCallback_SetAssistInformation", attackerInfo.damageSourceId, attacker.GetEncodedEHandle(), player.GetEncodedEHandle(), attackerInfo.time ) AddPlayerScore( attackerInfo.attacker, "PilotAssist" ) - player.AddToPlayerGameStat( PGS_ASSISTS, 1 ) + attackerInfo.attacker.AddToPlayerGameStat( PGS_ASSISTS, 1 ) } } } diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut index 36862d8a..2d1ff074 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_score.nut @@ -164,7 +164,7 @@ void function ScoreEvent_PlayerKilled( entity victim, entity attacker, var damag else if ( attacker.s.currentTimedKillstreak == TRIPLEKILL_REQUIREMENT_KILLS ) AddPlayerScore( attacker, "TripleKill" ) else if ( attacker.s.currentTimedKillstreak >= MEGAKILL_REQUIREMENT_KILLS ) - AddPlayerScore( attacker, "MegaKill" ) + AddPlayerScore( attacker, "MegaKill", attacker ) } attacker.s.lastKillTime = Time() @@ -237,12 +237,13 @@ void function ScoreEvent_SetupEarnMeterValuesForMixedModes() // mixed modes in t ScoreEvent_SetEarnMeterValues( "PilotBatteryStolen", 0.0, 0.35 ) // this actually just doesn't have overdrive in vanilla even ScoreEvent_SetEarnMeterValues( "Headshot", 0.0, 0.02 ) ScoreEvent_SetEarnMeterValues( "FirstStrike", 0.0, 0.05 ) + ScoreEvent_SetEarnMeterValues( "PilotBatteryApplied", 0.0, 0.35 ) // ai - ScoreEvent_SetEarnMeterValues( "KillGrunt", 0.0, 0.02, 0.5 ) - ScoreEvent_SetEarnMeterValues( "KillSpectre", 0.0, 0.02, 0.5 ) - ScoreEvent_SetEarnMeterValues( "LeechSpectre", 0.0, 0.02 ) - ScoreEvent_SetEarnMeterValues( "KillStalker", 0.0, 0.02, 0.5 ) + ScoreEvent_SetEarnMeterValues( "KillGrunt", 0.02, 0.02, 0.5 ) + ScoreEvent_SetEarnMeterValues( "KillSpectre", 0.02, 0.02, 0.5 ) + ScoreEvent_SetEarnMeterValues( "LeechSpectre", 0.02, 0.02 ) + ScoreEvent_SetEarnMeterValues( "KillStalker", 0.02, 0.02, 0.5 ) ScoreEvent_SetEarnMeterValues( "KillSuperSpectre", 0.0, 0.1, 0.5 ) } |