Skip to content

Commit 20a131f

Browse files
committed
[release]: v1.4 Public Release
1 parent e2aeec7 commit 20a131f

3 files changed

Lines changed: 20 additions & 36 deletions

File tree

Steam_WorkShop_Description/Workshop-Text

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,4 @@ 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.3'
82-
83-
- MEGA Link: https://mega DOT nz/folder/YDoEmKiC#s6FGAtgh40-TvB4bHsLaMQ
84-
85-
- Github: https://github.com/Vel-San/KF-TraderBoostMut/releases/tag/v1.3
81+
- Github: https://github.com/Vel-San/KF-TraderBoostMut/releases/tag/v1.4

TraderBoostMut/Classes/BoostMe.uc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,37 @@ function PostBeginPlay()
2222
if (GRI.ElapsedTime < 10)
2323
{
2424
// Match Start Boost
25-
if (bGlobalMSG) class'TraderBoostMut'.default.Mut.CriticalServerMessage(sMatchStartBoostMessage);
26-
else class'TraderBoostMut'.default.Mut.ServerMessage(sMatchStartBoostMessage);
25+
if (bGlobalMSG) class'TraderBoostMut'.default.Mut.CriticalServerMessage(sMatchStartBoostMessage, Instigator);
26+
else class'TraderBoostMut'.default.Mut.ServerMessage(sMatchStartBoostMessage, Instigator);
2727
SetTimer(iMatchStartBoost, false); // Recommended 10 seconds is for wave start countdown
2828
}
2929
else
3030
{
3131
// Trader Time Boost
32-
if (bGlobalMSG) class'TraderBoostMut'.default.Mut.CriticalServerMessage(sTraderBoostMessage);
33-
else class'TraderBoostMut'.default.Mut.ServerMessage(sTraderBoostMessage);
32+
if (bGlobalMSG) class'TraderBoostMut'.default.Mut.CriticalServerMessage(sTraderBoostMessage, Instigator);
33+
else class'TraderBoostMut'.default.Mut.ServerMessage(sTraderBoostMessage, Instigator);
3434
SetTimer(KFGT.TimeBetweenWaves + iAfterWaveStartBoost, false);
3535
}
3636
}
3737
}
3838

3939
function Timer()
4040
{
41-
if (bGlobalMSG) class'TraderBoostMut'.default.Mut.CriticalServerMessage(sBoostEndMessage);
42-
else class'TraderBoostMut'.default.Mut.ServerMessage(sBoostEndMessage);
41+
if (bGlobalMSG) class'TraderBoostMut'.default.Mut.CriticalServerMessage(sBoostEndMessage, Instigator);
42+
else class'TraderBoostMut'.default.Mut.ServerMessage(sBoostEndMessage, Instigator);
4343
Destroyed();
4444
}
4545

4646
function Tick( float Delta )
4747
{
4848
if ((KFGT.bWaveInProgress && bIsBoostActive) || KFGT.IsInState('PendingMatch') || KFGT.IsInState('GameEnded'))
4949
{
50-
if (bGlobalMSG) class'TraderBoostMut'.default.Mut.CriticalServerMessage(sBoostEndMessage);
51-
else class'TraderBoostMut'.default.Mut.ServerMessage(sBoostEndMessage);
52-
Disable('Timer');
50+
if (bGlobalMSG) class'TraderBoostMut'.default.Mut.CriticalServerMessage(sBoostEndMessage, Instigator);
51+
else class'TraderBoostMut'.default.Mut.ServerMessage(sBoostEndMessage, Instigator);
5352
Destroyed();
5453
}
5554
if (Instigator==None || Instigator.Health <= 0)
5655
{
57-
Disable('Timer');
5856
Destroyed();
5957
}
6058
}
@@ -63,5 +61,7 @@ function Destroyed()
6361
{
6462
if (Instigator != None) Instigator.Health = Min(Instigator.Health, 100);
6563
bIsBoostActive = False;
64+
Disable('Timer');
65+
Disable('Tick');
6666
}
6767

TraderBoostMut/Classes/TraderBoostMut.uc

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,33 +50,21 @@ function Tick(float DeltaTime)
5050
}
5151
}
5252

53-
function ServerMessage(string Msg)
53+
function ServerMessage(string Msg, Pawn P)
5454
{
55-
local Controller C;
56-
local PlayerController PC;
57-
for (C = Level.ControllerList; C != none; C = C.nextController)
55+
if (P != none)
5856
{
59-
PC = PlayerController(C);
60-
if (PC != none)
61-
{
62-
SetColor(Msg);
63-
PC.ClientMessage(Msg);
64-
}
57+
SetColor(Msg);
58+
P.ClientMessage(Msg);
6559
}
6660
}
6761

68-
function CriticalServerMessage(string Msg)
62+
function CriticalServerMessage(string Msg, Pawn P)
6963
{
70-
local Controller C;
71-
local PlayerController PC;
72-
for (C = Level.ControllerList; C != none; C = C.nextController)
64+
if (P != none)
7365
{
74-
PC = PlayerController(C);
75-
if (PC != none)
76-
{
77-
SetColor(Msg);
78-
PC.ClientMessage(Msg, 'CriticalEvent');
79-
}
66+
SetColor(Msg);
67+
P.ClientMessage(Msg, 'CriticalEvent');
8068
}
8169
}
8270

@@ -147,6 +135,6 @@ defaultproperties
147135
{
148136
// Mandatory Vars
149137
GroupName = "KF-TraderBoostMut"
150-
FriendlyName = "Trader Booster - v1.3"
138+
FriendlyName = "Trader Booster - v1.4"
151139
Description = "Gives all players a speed boost on trader time; Made by Vel-San /w help of Marco"
152140
}

0 commit comments

Comments
 (0)