44 lines
1.5 KiB
Ucode
44 lines
1.5 KiB
Ucode
|
//=============================================================================
|
||
|
// KFSeqEvent_WaveEnd
|
||
|
//=============================================================================
|
||
|
// Event telling Kismet a wave has ended
|
||
|
//=============================================================================
|
||
|
// Killing Floor 2
|
||
|
// Copyright (C) 2016 Tripwire Interactive LLC
|
||
|
// - Matt 'Squirrlz' Farber
|
||
|
//=============================================================================
|
||
|
class KFSeqEvent_WaveEnd extends SequenceEvent;
|
||
|
|
||
|
function SetWaveNum( int WaveNum, int WaveMax )
|
||
|
{
|
||
|
local SeqVar_Int SeqInt;
|
||
|
local SeqVar_Float SeqFloat;
|
||
|
|
||
|
foreach LinkedVariables( class'SeqVar_Int', SeqInt, "Wave Number" )
|
||
|
{
|
||
|
SeqInt.IntValue = WaveNum;
|
||
|
}
|
||
|
|
||
|
foreach LinkedVariables( class'SeqVar_Int', SeqInt, "Wave Max" )
|
||
|
{
|
||
|
SeqInt.IntValue = WaveMax;
|
||
|
}
|
||
|
|
||
|
foreach LinkedVariables( class'SeqVar_Float', SeqFloat, "Wave Pct Complete" )
|
||
|
{
|
||
|
SeqFloat.FloatValue = 100.f * ( float(WaveNum) / float(WaveMax) );
|
||
|
}
|
||
|
}
|
||
|
|
||
|
defaultproperties
|
||
|
{
|
||
|
ObjName="Wave Ended Event"
|
||
|
VariableLinks.Empty
|
||
|
bPlayerOnly=false
|
||
|
|
||
|
OutputLinks(0)=(LinkDesc="Normal Wave")
|
||
|
OutputLinks(1)=(LinkDesc="Boss Wave")
|
||
|
VariableLinks(0)=(ExpectedType=class'SeqVar_Int',LinkDesc="Wave Number",bWriteable=true)
|
||
|
VariableLinks(1)=(ExpectedType=class'SeqVar_Int',LinkDesc="Wave Max",bWriteable=true)
|
||
|
VariableLinks(2)=(ExpectedType=class'SeqVar_Float',LinkDesc="Wave Pct Complete",bWriteable=true)
|
||
|
}
|