diff options
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/earn_meter')
-rw-r--r-- | Northstar.CustomServers/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut b/Northstar.CustomServers/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut index a465164d..b41640ad 100644 --- a/Northstar.CustomServers/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut +++ b/Northstar.CustomServers/scripts/vscripts/earn_meter/sv_earn_meter_mp.gnut @@ -1,8 +1,10 @@ global function Sv_EarnMeterMP_Init global function EarnMeterMP_SetTitanLoadout +global function EarnMeterMP_SetPassiveMeterGainEnabled struct { float playingStartTime + bool passiveMeterGainEnabled = true } file void function Sv_EarnMeterMP_Init() @@ -21,6 +23,11 @@ void function EarnMeterMP_SetTitanLoadout( entity player ) PlayerEarnMeter_SetGoal( player, EarnObject_GetByRef( GetTitanLoadoutForPlayer( player ).titanClass ) ) } +void function EarnMeterMP_SetPassiveMeterGainEnabled( bool enabled ) +{ + file.passiveMeterGainEnabled = enabled +} + void function SetupPlayerEarnMeter( entity player ) { PlayerEarnMeter_Reset( player ) @@ -117,7 +124,7 @@ void function EarnMeterMP_PlayerLifeThink( entity player ) PlayerEarnMeter_RefreshGoal( player ) } - if ( Time() - lastPassiveGainTime > 4.0 ) // this might be 5.0 + if ( Time() - lastPassiveGainTime > 4.0 && file.passiveMeterGainEnabled ) // this might be 5.0 { lastPassiveGainTime = Time() PlayerEarnMeter_AddOwnedFrac( player, 0.01 ) |