UE3:CoverReplicator (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
UT3 Object >> Actor >> Info >> ReplicationInfo >> CoverReplicator
Package:
Engine
This class in other games:

this handles replicating cover changes to a client can't use variable replication on the CoverLinks because the slots list is a dynamic array also, that could potentially be a whole lot of channels if LDs mess with a lot of cover via Kismet, so this is more efficient

Properties

CoverReplicationData

Type: array<CoverReplicationInfo>


Default values

Property Value
bAlwaysRelevant False
bOnlyRelevantToOwner True
NetUpdateFrequency 0.1

Structs

CoverReplicationInfo

CoverLink Link
CoverLink that was changed
array<byte> SlotsEnabled
indices of slots that were enabled
array<byte> SlotsDisabled
indices of slots that were disabled
array<byte> SlotsAdjusted
indices of slots that were adjusted
array<ManualCoverTypeInfo> SlotsCoverTypeChanged
slots that have had cover type manually set

ManualCoverTypeInfo

byte SlotIndex
CoverLink.ECoverType ManualCoverType

Instance functions

ClientReceiveAdjustedSlots

reliable client function ClientReceiveAdjustedSlots (int Index, CoverLink Link, byte NumSlotsAdjusted, byte SlotsAdjusted[8], bool bDone)

client receives just the auto-adjusted slots for the given CoverLink

ClientReceiveDisabledSlots

reliable client function ClientReceiveDisabledSlots (int Index, CoverLink Link, byte NumSlotsDisabled, byte SlotsDisabled[8], bool bDone)

client receives just the disabled slots for the given CoverLink

ClientReceiveEnabledSlots

reliable client function ClientReceiveEnabledSlots (int Index, CoverLink Link, byte NumSlotsEnabled, byte SlotsEnabled[8], bool bDone)

client receives just the enabled slots for the given CoverLink

ClientReceiveInitialCoverReplicationInfo

reliable client function ClientReceiveInitialCoverReplicationInfo (int Index, CoverLink Link, byte NumSlotsEnabled, byte SlotsEnabled[8], byte NumSlotsDisabled, byte SlotsDisabled[8], byte NumSlotsAdjusted, byte SlotsAdjusted[8], byte NumCoverTypesChanged, ManualCoverTypeInfo SlotsCoverTypeChanged[8], bool bDone)

replicates the information for one CoverReplicationData entry bDone indicates whether or not there is more data coming for this entry (because some arrays have more than 8 elements)

ClientReceiveManualCoverTypeSlots

reliable client function ClientReceiveManualCoverTypeSlots (int Index, CoverLink Link, byte NumCoverTypesChanged, ManualCoverTypeInfo SlotsCoverTypeChanged[8], bool bDone)

client receives just the manual adjusted slots for the given CoverLink

NotifyAutoAdjustSlots

function NotifyAutoAdjustSlots (CoverLink Link, const out array<intSlotIndices)

notification that the slots on the given CoverLink have been auto-adjusted

NotifyDisabledSlots

function NotifyDisabledSlots (CoverLink Link, const out array<intSlotIndices)

notification that the slots on the given CoverLink have been disabled

NotifyEnabledSlots

function NotifyEnabledSlots (CoverLink Link, const out array<intSlotIndices)

notification that slots on the given CoverLink have been enabled

NotifySetManualCoverTypeForSlots

function NotifySetManualCoverTypeForSlots (CoverLink Link, const out array<intSlotIndices, CoverLink.ECoverType NewCoverType)

notification that the slots on the given CoverLink have been manually adjusted

PurgeOldEntries

function PurgeOldEntries ()

removes entries that are no longer valid (i.e. the CoverLink has been streamed out)

ReplicateInitialCoverInfo

function ReplicateInitialCoverInfo ()

copies and starts replicating already changed cover info

ServerSendAdjustedSlots

reliable server function ServerSendAdjustedSlots (int Index)

send just the auto-adjusted slots for the CoverLink at the given index

ServerSendDisabledSlots

reliable server function ServerSendDisabledSlots (int Index)

send just the disabled slots for the CoverLink at the given index

ServerSendEnabledSlots

reliable server function ServerSendEnabledSlots (int Index)

send just the enabled slots for the CoverLink at the given index

ServerSendInitialCoverReplicationInfo

reliable server function ServerSendInitialCoverReplicationInfo (int Index)

sends info for one CoverReplicationData to the client

ServerSendManualCoverTypeSlots

reliable server function ServerSendManualCoverTypeSlots (int Index)

send just the manual adjusted slots for the CoverLink at the given index