1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFSeqCond_IsWeeklyEvent.uc

35 lines
1.0 KiB
Ucode
Raw Permalink Normal View History

2021-10-05 17:50:32 +00:00
//=============================================================================
// KFSeqCond_IsWeeklyEvent
//=============================================================================
// Condition to check if we are in an specified weekly event
//=============================================================================
// Killing Floor 2
// Copyright (C) 2021 Tripwire Interactive LLC
//=============================================================================
class KFSeqCond_IsWeeklyEvent extends SequenceCondition;
var() int WeeklyIndex;
function Activated()
{
2022-03-29 17:30:25 +00:00
local KFGameReplicationInfo KFGRI;
KFGRI = KFGameReplicationInfo(GetWorldInfo().GRI);
2021-10-05 17:50:32 +00:00
2022-03-29 17:30:25 +00:00
if (KFGRI != none && KFGRI.bIsWeeklyMode && KFGRI.CurrentWeeklyIndex == WeeklyIndex)
2021-10-05 17:50:32 +00:00
{
2022-03-29 17:30:25 +00:00
OutputLinks[0].bHasImpulse = true;
}
else
{
OutputLinks[1].bHasImpulse = true;
2021-10-05 17:50:32 +00:00
}
}
defaultproperties
{
ObjColor=(R=255,G=0,B=255,A=255)
ObjName="IsWeeklyEvent"
OutputLinks(0)=(LinkDesc="True")
OutputLinks(1)=(LinkDesc="False")
}