Skip to content

Commit 33d8038

Browse files
committed
[release]: v1.2 Public Release
1 parent 077b7b4 commit 33d8038

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

Steam_WorkShop_Description/Workshop-Text

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ ColorList=(ColorName="White",ColorTag="%w",Color=(B=200,G=200,R=200,A=0))
7878

7979
[h1][b][u]Manual Download Links (Recommended)[/u][/b][/h1]
8080

81-
You can find it under 'Whitelisted' folder named 'TraderBoostMut-v1.1'
81+
You can find it under 'Whitelisted' folder named 'TraderBoostMut-v1.2'
8282

8383
- MEGA Link: https://mega DOT nz/folder/YDoEmKiC#s6FGAtgh40-TvB4bHsLaMQ
8484

85-
- Github: https://github.com/Vel-San/KF-TraderBoostMut/releases/tag/v1.1
85+
- Github: https://github.com/Vel-San/KF-TraderBoostMut/releases/tag/v1.2

TraderBoostMut/Classes/BoostMe.uc

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ var() config int iSpeedBoost, iAfterWaveStartBoost, iMatchStartBoost;
44
var() config string sMatchStartBoostMessage, sTraderBoostMessage, sBoostEndMessage;
55
var() config bool bGlobalMSG;
66

7+
var bool bIsBoostActive;
8+
var KFGameType KFGT;
9+
var GameReplicationInfo GRI;
10+
711
function PostBeginPlay()
812
{
9-
local KFGameType KFGT;
10-
local GameReplicationInfo GRI;
11-
1213
KFGT = KFGameType(Level.Game);
1314
GRI = Level.Game.GameReplicationInfo;
1415

1516
Instigator.Health = iSpeedBoost; // Value affects groundspeed
17+
bIsBoostActive = True; // Marker for boost is active
1618

1719
// Start Speed Boost Timer
1820
if ( GRI != none)
@@ -43,11 +45,23 @@ function Timer()
4345

4446
function Tick( float Delta )
4547
{
46-
if (Instigator==None || Instigator.Health <= 0) Destroy();
48+
if ((KFGT.bWaveInProgress && bIsBoostActive) || KFGT.IsInState('PendingMatch') || KFGT.IsInState('GameEnded'))
49+
{
50+
if (bGlobalMSG) class'TraderBoostMut'.default.Mut.CriticalServerMessage(sBoostEndMessage);
51+
else class'TraderBoostMut'.default.Mut.ServerMessage(sBoostEndMessage);
52+
Disable('Timer');
53+
Destroy();
54+
}
55+
if (Instigator==None || Instigator.Health <= 0)
56+
{
57+
Disable('Timer');
58+
Destroy();
59+
}
4760
}
4861

4962
function Destroyed()
5063
{
5164
if (Instigator != None) Instigator.Health = Min(Instigator.Health, 100);
65+
bIsBoostActive = False;
5266
}
5367

TraderBoostMut/Classes/TraderBoostMut.uc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,6 @@ defaultproperties
147147
{
148148
// Mandatory Vars
149149
GroupName = "KF-TraderBoostMut"
150-
FriendlyName = "Trader Booster - v1.1"
150+
FriendlyName = "Trader Booster - v1.2"
151151
Description = "Gives all players a speed boost on trader time; Made by Vel-San /w help of Marco"
152152
}

0 commit comments

Comments
 (0)