rename rankrepinfo
This commit is contained in:
parent
bd9011276e
commit
c85532cf78
@ -259,10 +259,8 @@ private function PostInit()
|
|||||||
|
|
||||||
SetTimer(UpdateInterval, true, nameof(UpdateTimer));
|
SetTimer(UpdateInterval, true, nameof(UpdateTimer));
|
||||||
|
|
||||||
`Log_Base("MessageOfTheDayTimer Length:" @ CfgMessageOfTheDay.default.Message.Length);
|
|
||||||
if (CfgMessageOfTheDay.default.Message.Length > 0)
|
if (CfgMessageOfTheDay.default.Message.Length > 0)
|
||||||
{
|
{
|
||||||
`Log_Base("init MessageOfTheDayTimer:");
|
|
||||||
MessageOfTheDayTimer();
|
MessageOfTheDayTimer();
|
||||||
SetTimer(CfgMessageOfTheDay.default.DisplayTime, true, nameof(MessageOfTheDayTimer));
|
SetTimer(CfgMessageOfTheDay.default.DisplayTime, true, nameof(MessageOfTheDayTimer));
|
||||||
}
|
}
|
||||||
@ -305,8 +303,6 @@ private function MessageOfTheDayTimer()
|
|||||||
MessageIndex = 0;
|
MessageIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
`Log_Base("MessageOfTheDayTimer:" @ MessageIndex);
|
|
||||||
|
|
||||||
foreach RepInfos(RepInfo)
|
foreach RepInfos(RepInfo)
|
||||||
{
|
{
|
||||||
RepInfo.MessageOfTheDay = CfgMessageOfTheDay.default.Message[MessageIndex];
|
RepInfo.MessageOfTheDay = CfgMessageOfTheDay.default.Message[MessageIndex];
|
||||||
@ -348,12 +344,12 @@ public function NotifyLogout(Controller C)
|
|||||||
public function YAS_RepInfo CreateRepInfo(Controller C)
|
public function YAS_RepInfo CreateRepInfo(Controller C)
|
||||||
{
|
{
|
||||||
local YAS_RepInfo OwnerRepInfo;
|
local YAS_RepInfo OwnerRepInfo;
|
||||||
local YAS_RankRepInfo RankRepInfo;
|
local YAS_RepInfoRank RankRepInfo;
|
||||||
|
|
||||||
`Log_Trace();
|
`Log_Trace();
|
||||||
|
|
||||||
OwnerRepInfo = Spawn(class'YAS_RepInfo', C);
|
OwnerRepInfo = Spawn(class'YAS_RepInfo', C);
|
||||||
RankRepInfo = Spawn(class'YAS_RankRepInfo', C);
|
RankRepInfo = Spawn(class'YAS_RepInfoRank', C);
|
||||||
|
|
||||||
if (OwnerRepInfo != None && RankRepInfo != None)
|
if (OwnerRepInfo != None && RankRepInfo != None)
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@ var public repnotify SystemRank RankPlayer, RankAdmin;
|
|||||||
var public repnotify String DynamicServerName, MessageOfTheDay;
|
var public repnotify String DynamicServerName, MessageOfTheDay;
|
||||||
var public repnotify bool UsesStats, Custom, PasswordRequired;
|
var public repnotify bool UsesStats, Custom, PasswordRequired;
|
||||||
|
|
||||||
var public YAS_RankRepInfo RankRepInfo;
|
var public YAS_RepInfoRank RankRepInfo;
|
||||||
|
|
||||||
var private KFPlayerController KFPC;
|
var private KFPlayerController KFPC;
|
||||||
var private YAS_ScoreBoard SC;
|
var private YAS_ScoreBoard SC;
|
||||||
@ -39,8 +39,6 @@ public simulated event ReplicatedEvent(name VarName)
|
|||||||
{
|
{
|
||||||
`Log_Trace();
|
`Log_Trace();
|
||||||
|
|
||||||
`Log_Base("ReplicatedEvent:" @ VarName);
|
|
||||||
|
|
||||||
switch (VarName)
|
switch (VarName)
|
||||||
{
|
{
|
||||||
case 'LogLevel':
|
case 'LogLevel':
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
class YAS_RankRepInfo extends ReplicationInfo;
|
class YAS_RepInfoRank extends ReplicationInfo;
|
||||||
|
|
||||||
var public UniqueNetID UID;
|
var public UniqueNetID UID;
|
||||||
var public Rank Rank;
|
var public Rank Rank;
|
@ -47,7 +47,7 @@ var float PingBars;
|
|||||||
var localized String Players, Spectators;
|
var localized String Players, Spectators;
|
||||||
|
|
||||||
// Cache
|
// Cache
|
||||||
var public Array<YAS_RankRepInfo> RepInfos;
|
var public Array<YAS_RepInfoRank> RepInfos;
|
||||||
|
|
||||||
var public YAS_Settings Settings;
|
var public YAS_Settings Settings;
|
||||||
var public String DynamicServerName, MessageOfTheDay;
|
var public String DynamicServerName, MessageOfTheDay;
|
||||||
@ -61,7 +61,7 @@ var private float FontScalarMod;
|
|||||||
|
|
||||||
function Rank PlayerRank(KFPlayerReplicationInfo KFPRI)
|
function Rank PlayerRank(KFPlayerReplicationInfo KFPRI)
|
||||||
{
|
{
|
||||||
local YAS_RankRepInfo RepInfo;
|
local YAS_RepInfoRank RepInfo;
|
||||||
local Rank Rank;
|
local Rank Rank;
|
||||||
local bool NeedClean, FoundRepInfo;
|
local bool NeedClean, FoundRepInfo;
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ function Rank PlayerRank(KFPlayerReplicationInfo KFPRI)
|
|||||||
|
|
||||||
if (!FoundRepInfo)
|
if (!FoundRepInfo)
|
||||||
{
|
{
|
||||||
foreach KFPRI.DynamicActors(class'YAS_RankRepInfo', RepInfo)
|
foreach KFPRI.DynamicActors(class'YAS_RepInfoRank', RepInfo)
|
||||||
{
|
{
|
||||||
if (RepInfo.UID.Uid == KFPRI.UniqueId.Uid)
|
if (RepInfo.UID.Uid == KFPRI.UniqueId.Uid)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user