diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-12 14:51:43 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-12 14:51:43 +0100 |
commit | ba41749cc6a6693f11a7f1c7535ff758a461a424 (patch) | |
tree | 945786de1feff62180ea7c451c09482a3af823ac /Northstar.CustomServers/scripts/vscripts/earn_meter | |
parent | 07b7eafd5c1845c70510b695446c23973fed1d4d (diff) | |
download | NorthstarMods-ba41749cc6a6693f11a7f1c7535ff758a461a424.tar.gz NorthstarMods-ba41749cc6a6693f11a7f1c7535ff758a461a424.zip |
add hardpoint, infection changes, fra changes
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 ) |