rott/kf_sources/ServerPerks/Classes/SRCustomProgressFloat.uc
2026-07-14 20:27:09 +07:00

36 lines
520 B
Ucode

Class SRCustomProgressFloat extends SRCustomProgress
Abstract;
var float CurrentValue;
replication
{
reliable if( Role==ROLE_Authority && bNetOwner )
CurrentValue;
}
simulated function string GetProgress()
{
return string(CurrentValue);
}
simulated function int GetProgressInt()
{
return CurrentValue;
}
function SetProgress( string S )
{
CurrentValue = float(S);
}
function IncrementProgress( int Count )
{
CurrentValue+=Count;
ValueUpdated();
}
defaultproperties
{
}