Skip to content

Commit 7cceb59

Browse files
Remove CNetMsgScriptHelper multiplayer recipient functions
1 parent 09443c8 commit 7cceb59

File tree

2 files changed

+2
-39
lines changed

2 files changed

+2
-39
lines changed

sp/src/game/shared/mapbase/vscript_singletons.cpp

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,32 +1667,6 @@ void CNetMsgScriptHelper::DispatchUserMessage( const char *msg )
16671667
}
16681668
#endif // GAME_DLL
16691669

1670-
#ifdef GAME_DLL
1671-
void CNetMsgScriptHelper::AddRecipient( HSCRIPT player )
1672-
{
1673-
CBaseEntity *pPlayer = ToEnt(player);
1674-
if ( pPlayer )
1675-
{
1676-
m_filter.AddRecipient( (CBasePlayer*)pPlayer );
1677-
}
1678-
}
1679-
1680-
void CNetMsgScriptHelper::AddRecipientsByPVS( const Vector &pos )
1681-
{
1682-
m_filter.AddRecipientsByPVS(pos);
1683-
}
1684-
1685-
void CNetMsgScriptHelper::AddRecipientsByPAS( const Vector &pos )
1686-
{
1687-
m_filter.AddRecipientsByPAS(pos);
1688-
}
1689-
1690-
void CNetMsgScriptHelper::AddAllPlayers()
1691-
{
1692-
m_filter.AddAllPlayers();
1693-
}
1694-
#endif // GAME_DLL
1695-
16961670
void CNetMsgScriptHelper::WriteInt( int iValue, int bits )
16971671
{
16981672
SCRIPT_NETMSG_WRITE_FUNC
@@ -1950,11 +1924,8 @@ BEGIN_SCRIPTDESC_ROOT_NAMED( CNetMsgScriptHelper, "CNetMsg", SCRIPT_SINGLETON "N
19501924
#ifdef GAME_DLL
19511925
DEFINE_SCRIPTFUNC( SendUserMessage, "Send a usermessage from the server to the client" )
19521926
DEFINE_SCRIPTFUNC( SendEntityMessage, "Send a message from a server side entity to its client side counterpart" )
1953-
DEFINE_SCRIPTFUNC( AddRecipient, "" )
1954-
//DEFINE_SCRIPTFUNC( RemoveRecipient, "" )
1955-
DEFINE_SCRIPTFUNC( AddRecipientsByPVS, "" )
1956-
DEFINE_SCRIPTFUNC( AddRecipientsByPAS, "" )
1957-
DEFINE_SCRIPTFUNC( AddAllPlayers, "" )
1927+
1928+
// TODO: multiplayer
19581929
#else
19591930
DEFINE_SCRIPTFUNC( DispatchUserMessage, "Dispatch a usermessage on client" )
19601931
#endif

sp/src/game/shared/mapbase/vscript_singletons.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ class CNetMsgScriptHelper
102102
void DispatchUserMessage( const char *msg );
103103
#endif
104104

105-
#ifdef GAME_DLL
106-
public:
107-
void AddRecipient( HSCRIPT player );
108-
void AddRecipientsByPVS( const Vector &pos );
109-
void AddRecipientsByPAS( const Vector &pos );
110-
void AddAllPlayers();
111-
#endif // GAME_DLL
112-
113105
public:
114106
void WriteInt( int iValue, int bits );
115107
void WriteUInt( int iValue, int bits );

0 commit comments

Comments
 (0)