rename rankrepinfo

This commit is contained in:
GenZmeY 2022-09-12 03:04:40 +03:00
parent bd9011276e
commit c85532cf78
4 changed files with 7 additions and 13 deletions

View File

@ -259,10 +259,8 @@ private function PostInit()
SetTimer(UpdateInterval, true, nameof(UpdateTimer));
`Log_Base("MessageOfTheDayTimer Length:" @ CfgMessageOfTheDay.default.Message.Length);
if (CfgMessageOfTheDay.default.Message.Length > 0)
{
`Log_Base("init MessageOfTheDayTimer:");
MessageOfTheDayTimer();
SetTimer(CfgMessageOfTheDay.default.DisplayTime, true, nameof(MessageOfTheDayTimer));
}
@ -305,8 +303,6 @@ private function MessageOfTheDayTimer()
MessageIndex = 0;
}
`Log_Base("MessageOfTheDayTimer:" @ MessageIndex);
foreach RepInfos(RepInfo)
{
RepInfo.MessageOfTheDay = CfgMessageOfTheDay.default.Message[MessageIndex];
@ -348,12 +344,12 @@ public function NotifyLogout(Controller C)
public function YAS_RepInfo CreateRepInfo(Controller C)
{
local YAS_RepInfo OwnerRepInfo;
local YAS_RankRepInfo RankRepInfo;
local YAS_RepInfoRank RankRepInfo;
`Log_Trace();
OwnerRepInfo = Spawn(class'YAS_RepInfo', C);
RankRepInfo = Spawn(class'YAS_RankRepInfo', C);
RankRepInfo = Spawn(class'YAS_RepInfoRank', C);
if (OwnerRepInfo != None && RankRepInfo != None)
{

View File

@ -7,7 +7,7 @@ var public repnotify SystemRank RankPlayer, RankAdmin;
var public repnotify String DynamicServerName, MessageOfTheDay;
var public repnotify bool UsesStats, Custom, PasswordRequired;
var public YAS_RankRepInfo RankRepInfo;
var public YAS_RepInfoRank RankRepInfo;
var private KFPlayerController KFPC;
var private YAS_ScoreBoard SC;
@ -39,8 +39,6 @@ public simulated event ReplicatedEvent(name VarName)
{
`Log_Trace();
`Log_Base("ReplicatedEvent:" @ VarName);
switch (VarName)
{
case 'LogLevel':

View File

@ -1,4 +1,4 @@
class YAS_RankRepInfo extends ReplicationInfo;
class YAS_RepInfoRank extends ReplicationInfo;
var public UniqueNetID UID;
var public Rank Rank;

View File

@ -47,7 +47,7 @@ var float PingBars;
var localized String Players, Spectators;
// Cache
var public Array<YAS_RankRepInfo> RepInfos;
var public Array<YAS_RepInfoRank> RepInfos;
var public YAS_Settings Settings;
var public String DynamicServerName, MessageOfTheDay;
@ -61,7 +61,7 @@ var private float FontScalarMod;
function Rank PlayerRank(KFPlayerReplicationInfo KFPRI)
{
local YAS_RankRepInfo RepInfo;
local YAS_RepInfoRank RepInfo;
local Rank Rank;
local bool NeedClean, FoundRepInfo;
@ -90,7 +90,7 @@ function Rank PlayerRank(KFPlayerReplicationInfo KFPRI)
if (!FoundRepInfo)
{
foreach KFPRI.DynamicActors(class'YAS_RankRepInfo', RepInfo)
foreach KFPRI.DynamicActors(class'YAS_RepInfoRank', RepInfo)
{
if (RepInfo.UID.Uid == KFPRI.UniqueId.Uid)
{