Recipient filters

Engine structures the SDK declares by hand: CRecipientFilter, CSingleRecipientFilter.

Header source2mod/schema/recipientfilter.h

CRecipientFilter

Inherits IRecipientFilter

Constructors

CRecipientFilter(NetChannelBufType_t nBufType = BUF_RELIABLE, bool bInitMessage = false);

GetNetworkBufType

NetChannelBufType_t GetNetworkBufType(void) const override;

IsInitMessage

bool IsInitMessage(void) const override;

GetRecipients

const CPlayerBitVec& GetRecipients(void) const override;

GetPredictedPlayerSlot

CPlayerSlot GetPredictedPlayerSlot(void) const override;

CopyFrom

void CopyFrom(const CRecipientFilter& src);
ParameterType
srcconst CRecipientFilter&

Reset

void Reset();

MakeInitMessage

void MakeInitMessage();

MakeReliable

void MakeReliable();

AddRecipient

void AddRecipient(CPlayerSlot slot);
ParameterType
slotCPlayerSlot

RemoveRecipient

void RemoveRecipient(CPlayerSlot slot);
ParameterType
slotCPlayerSlot

RemoveAllRecipients

void RemoveAllRecipients();

HasRecipient

bool HasRecipient(CPlayerSlot slot) const;
ParameterType
slotCPlayerSlot

GetRecipientCount

int GetRecipientCount() const;

AddPlayersFromBitMask

void AddPlayersFromBitMask(const CPlayerBitVec& playerbits);
ParameterType
playerbitsconst CPlayerBitVec&

RemovePlayersFromBitMask

void RemovePlayersFromBitMask(const CPlayerBitVec& playerbits);
ParameterType
playerbitsconst CPlayerBitVec&

SetFromBitmask

void SetFromBitmask(uint64_t mask);
ParameterType
maskuint64_t

SetPredictedPlayer

void SetPredictedPlayer(CPlayerSlot slot);
ParameterType
slotCPlayerSlot

IsUsingPredictionRules

bool IsUsingPredictionRules() const;

IgnorePredictionCull

bool IgnorePredictionCull() const;

SetIgnorePredictionCull

void SetIgnorePredictionCull(bool ignore);
ParameterType
ignorebool

CSingleRecipientFilter

Inherits CRecipientFilter

Constructors

CSingleRecipientFilter(CPlayerSlot nRecipientSlot, NetChannelBufType_t nBufType = BUF_RELIABLE, bool bInitMessage = false);

On this page