I'm a doctor, not a mechanic

UE3:CoverReplicator (UT3)

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

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[edit]

CoverReplicationData[edit]

Type: array<CoverReplicationInfo>


Default values[edit]

Property Value
bAlwaysRelevant False
bOnlyRelevantToOwner True
NetUpdateFrequency 0.1

Structs[edit]

CoverReplicationInfo[edit]

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[edit]

byte SlotIndex 
CoverLink.ECoverType ManualCoverType 

Instance functions[edit]

ClientReceiveAdjustedSlots[edit]

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[edit]

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[edit]

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[edit]

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[edit]

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[edit]

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

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

NotifyDisabledSlots[edit]

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

notification that the slots on the given CoverLink have been disabled

NotifyEnabledSlots[edit]

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

notification that slots on the given CoverLink have been enabled

NotifySetManualCoverTypeForSlots[edit]

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

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

PurgeOldEntries[edit]

function PurgeOldEntries ()

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

ReplicateInitialCoverInfo[edit]

function ReplicateInitialCoverInfo ()

copies and starts replicating already changed cover info

ServerSendAdjustedSlots[edit]

reliable server function ServerSendAdjustedSlots (int Index)

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

ServerSendDisabledSlots[edit]

reliable server function ServerSendDisabledSlots (int Index)

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

ServerSendEnabledSlots[edit]

reliable server function ServerSendEnabledSlots (int Index)

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

ServerSendInitialCoverReplicationInfo[edit]

reliable server function ServerSendInitialCoverReplicationInfo (int Index)

sends info for one CoverReplicationData to the client

ServerSendManualCoverTypeSlots[edit]

reliable server function ServerSendManualCoverTypeSlots (int Index)

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