aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDinorush <onparnorthstar@gmail.com>2022-01-24 22:14:06 -0500
committerBarichello <artur@barichello.me>2022-01-26 20:56:34 -0300
commit55e00cd6a0c12b4fe227553b3e173e73140c19e7 (patch)
tree89a1e9336503301c251cc382dc5ca7b4bdfc0e6e
parentb347b644ce26a5b027c2ec467c21307157a004d5 (diff)
downloadNorthstarMods-55e00cd6a0c12b4fe227553b3e173e73140c19e7.tar.gz
NorthstarMods-55e00cd6a0c12b4fe227553b3e173e73140c19e7.zip
Fix ejects failing to reassign reward. Reset passive gain when titan dies.
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut5
1 files changed, 4 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut b/Northstar.CustomServers/mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut
index 58cd15c2..ff25b6a9 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut
@@ -129,8 +129,11 @@ void function EarnMeterMP_PlayerLifeThink( entity player )
if ( desiredEarnMeterMode == eEarnMeterMode.DEFAULT )
{
- if ( !IsTitanAvailable( player ) && PlayerEarnMeter_GetOwnedFrac( player ) == 1.0 ) // this should only be the case after player has dropped their titan
+ if ( !IsTitanAvailable( player ) && lastEarnMeterMode == eEarnMeterMode.PET ) // this should only be the case after player's auto died (or they ejected)
+ {
+ lastPassiveGainTime = Time()
EarnMeterMP_ReplaceReward( player, pilotReward, pilotRewardFrac )
+ }
if ( PlayerEarnMeter_GetRewardFrac( player ) != 0 )
PlayerEarnMeter_EnableReward( player )