From 55e00cd6a0c12b4fe227553b3e173e73140c19e7 Mon Sep 17 00:00:00 2001 From: Dinorush Date: Mon, 24 Jan 2022 22:14:06 -0500 Subject: Fix ejects failing to reassign reward. Reset passive gain when titan dies. --- .../mod/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Northstar.CustomServers/mod/scripts/vscripts') 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 ) -- cgit v1.2.3