VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::SingleRecipientFilter Class Reference

Routes a user message to a single player slot. More...

#include <RecipientFilter.hpp>

+ Inheritance diagram for VoltMod::SingleRecipientFilter:

Public Member Functions

 SingleRecipientFilter (int slot)
 
NetChannelBufType_t GetNetworkBufType () const override
 
bool IsInitMessage () const override
 
const CPlayerBitVec & GetRecipients () const override
 
CPlayerSlot GetPredictedPlayerSlot () const override
 

Detailed Description

Routes a user message to a single player slot.

IGameEventSystem exposes two PostEventAbstract overloads; the IRecipientFilter form is the reliable one. The raw client-bitmask overload silently dropped server-originated messages on current CS2 builds, so pass one of these filters instead.

Definition at line 15 of file RecipientFilter.hpp.

Constructor & Destructor Documentation

◆ SingleRecipientFilter()

VoltMod::SingleRecipientFilter::SingleRecipientFilter ( int  slot)
inlineexplicit

Definition at line 18 of file RecipientFilter.hpp.

References VoltMod::ReadFile().

Member Function Documentation

◆ GetNetworkBufType()

NetChannelBufType_t VoltMod::SingleRecipientFilter::GetNetworkBufType ( ) const
inlineoverride

Definition at line 26 of file RecipientFilter.hpp.

References VoltMod::ReadFile().

◆ GetPredictedPlayerSlot()

CPlayerSlot VoltMod::SingleRecipientFilter::GetPredictedPlayerSlot ( ) const
inlineoverride

Definition at line 29 of file RecipientFilter.hpp.

References VoltMod::ReadFile().

◆ GetRecipients()

const CPlayerBitVec & VoltMod::SingleRecipientFilter::GetRecipients ( ) const
inlineoverride

Definition at line 28 of file RecipientFilter.hpp.

◆ IsInitMessage()

bool VoltMod::SingleRecipientFilter::IsInitMessage ( ) const
inlineoverride

Definition at line 27 of file RecipientFilter.hpp.


The documentation for this class was generated from the following file: