mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-04 17:50:30 +03:00
Remove CNetMsgScriptHelper multiplayer recipient functions
This commit is contained in:
parent
6d3c53fe0f
commit
9c942903e9
@ -1643,32 +1643,6 @@ void CNetMsgScriptHelper::DispatchUserMessage( const char *msg )
|
||||
}
|
||||
#endif // GAME_DLL
|
||||
|
||||
#ifdef GAME_DLL
|
||||
void CNetMsgScriptHelper::AddRecipient( HSCRIPT player )
|
||||
{
|
||||
CBaseEntity *pPlayer = ToEnt(player);
|
||||
if ( pPlayer )
|
||||
{
|
||||
m_filter.AddRecipient( (CBasePlayer*)pPlayer );
|
||||
}
|
||||
}
|
||||
|
||||
void CNetMsgScriptHelper::AddRecipientsByPVS( const Vector &pos )
|
||||
{
|
||||
m_filter.AddRecipientsByPVS(pos);
|
||||
}
|
||||
|
||||
void CNetMsgScriptHelper::AddRecipientsByPAS( const Vector &pos )
|
||||
{
|
||||
m_filter.AddRecipientsByPAS(pos);
|
||||
}
|
||||
|
||||
void CNetMsgScriptHelper::AddAllPlayers()
|
||||
{
|
||||
m_filter.AddAllPlayers();
|
||||
}
|
||||
#endif // GAME_DLL
|
||||
|
||||
void CNetMsgScriptHelper::WriteInt( int iValue, int bits )
|
||||
{
|
||||
SCRIPT_NETMSG_WRITE_FUNC
|
||||
@ -1926,11 +1900,8 @@ BEGIN_SCRIPTDESC_ROOT_NAMED( CNetMsgScriptHelper, "CNetMsg", SCRIPT_SINGLETON "N
|
||||
#ifdef GAME_DLL
|
||||
DEFINE_SCRIPTFUNC( SendUserMessage, "Send a usermessage from the server to the client" )
|
||||
DEFINE_SCRIPTFUNC( SendEntityMessage, "Send a message from a server side entity to its client side counterpart" )
|
||||
DEFINE_SCRIPTFUNC( AddRecipient, "" )
|
||||
//DEFINE_SCRIPTFUNC( RemoveRecipient, "" )
|
||||
DEFINE_SCRIPTFUNC( AddRecipientsByPVS, "" )
|
||||
DEFINE_SCRIPTFUNC( AddRecipientsByPAS, "" )
|
||||
DEFINE_SCRIPTFUNC( AddAllPlayers, "" )
|
||||
|
||||
// TODO: multiplayer
|
||||
#else
|
||||
DEFINE_SCRIPTFUNC( DispatchUserMessage, "Dispatch a usermessage on client" )
|
||||
#endif
|
||||
|
@ -102,14 +102,6 @@ public:
|
||||
void DispatchUserMessage( const char *msg );
|
||||
#endif
|
||||
|
||||
#ifdef GAME_DLL
|
||||
public:
|
||||
void AddRecipient( HSCRIPT player );
|
||||
void AddRecipientsByPVS( const Vector &pos );
|
||||
void AddRecipientsByPAS( const Vector &pos );
|
||||
void AddAllPlayers();
|
||||
#endif // GAME_DLL
|
||||
|
||||
public:
|
||||
void WriteInt( int iValue, int bits );
|
||||
void WriteUInt( int iValue, int bits );
|
||||
|
Loading…
x
Reference in New Issue
Block a user