2022-09-12 00:04:40 +00:00
|
|
|
class YAS_RepInfoRank extends ReplicationInfo;
|
2022-09-07 16:13:13 +00:00
|
|
|
|
|
|
|
var public UniqueNetID UID;
|
|
|
|
var public Rank Rank;
|
|
|
|
|
|
|
|
replication
|
|
|
|
{
|
|
|
|
if (bNetInitial)
|
|
|
|
UID;
|
|
|
|
|
|
|
|
if (bNetDirty)
|
|
|
|
Rank;
|
|
|
|
}
|
|
|
|
|
|
|
|
public simulated function bool SafeDestroy()
|
|
|
|
{
|
|
|
|
return (bPendingDelete || bDeleteMe || Destroy());
|
|
|
|
}
|
|
|
|
|
|
|
|
public simulated event PreBeginPlay()
|
|
|
|
{
|
|
|
|
if (bPendingDelete || bDeleteMe) return;
|
|
|
|
|
|
|
|
Super.PreBeginPlay();
|
|
|
|
|
|
|
|
if (Role == ROLE_Authority || WorldInfo.NetMode == NM_StandAlone)
|
|
|
|
{
|
|
|
|
if (Controller(Owner) != None && Controller(Owner).PlayerReplicationInfo != None)
|
|
|
|
{
|
|
|
|
UID = Controller(Owner).PlayerReplicationInfo.UniqueID;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
Role = ROLE_Authority
|
|
|
|
RemoteRole = ROLE_SimulatedProxy
|
|
|
|
|
|
|
|
bAlwaysRelevant = true
|
|
|
|
bSkipActorPropertyReplication = false
|
|
|
|
}
|