From 6cf72b1acaa8c8fe6d87023f590dd2a071016219 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Thu, 9 Dec 2021 19:55:19 +0300 Subject: [PATCH] lifespan --- MskGs/Classes/MskGsMut.uc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MskGs/Classes/MskGsMut.uc b/MskGs/Classes/MskGsMut.uc index b33c162..9024ff7 100644 --- a/MskGs/Classes/MskGsMut.uc +++ b/MskGs/Classes/MskGsMut.uc @@ -8,8 +8,8 @@ var config bool bEnableMapStats; var config string SortStats; var config bool bOfficialNextMapOnly; var config bool bRandomizeNextMap; -var config int WeapDespawnTime; -var config int DoshDespawnTime; +var config int WeapLifespan; +var config int DoshLifespan; var config array KickProtectedList; var config array PerPlayerMaxMonsters; @@ -44,7 +44,7 @@ function InitConfig() SortStats = "CounterDesc"; bOfficialNextMapOnly = True; bRandomizeNextMap = True; - WeapDespawnTime = 2147483647; + WeapLifespan = 60 * 60; case 1: if (PerPlayerMaxMonsters.Length != 6) { @@ -57,9 +57,9 @@ function InitConfig() PerPlayerMaxMonsters.AddItem(36); } case 2: - if (DoshDespawnTime == 0) + if (DoshLifespan == 0) { - DoshDespawnTime = 60 * 5; + DoshLifespan = 60 * 5; } case 2147483647: `log("[MskGsMut] Config updated to version"@CurrentVersion); @@ -206,9 +206,9 @@ function bool CheckRelevance(Actor Other) if (DroppedPickup != None) { if (KFDroppedPickup_Cash(DroppedPickup) != None) - DroppedPickup.Lifespan = DoshDespawnTime; + DroppedPickup.Lifespan = DoshLifespan; else - DroppedPickup.Lifespan = WeapDespawnTime; + DroppedPickup.Lifespan = WeapLifespan; } return SuperRelevant;