Skip to content

Commit 47de7f3

Browse files
Remove CNetMsgScriptHelper multiplayer recipient functions
1 parent 1e87a26 commit 47de7f3

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
@@ -1643,32 +1643,6 @@ void CNetMsgScriptHelper::DispatchUserMessage( const char *msg )
16431643
}
16441644
#endif // GAME_DLL
16451645

1646-
#ifdef GAME_DLL
1647-
void CNetMsgScriptHelper::AddRecipient( HSCRIPT player )
1648-
{
1649-
CBaseEntity *pPlayer = ToEnt(player);
1650-
if ( pPlayer )
1651-
{
1652-
m_filter.AddRecipient( (CBasePlayer*)pPlayer );
1653-
}
1654-
}
1655-
1656-
void CNetMsgScriptHelper::AddRecipientsByPVS( const Vector &pos )
1657-
{
1658-
m_filter.AddRecipientsByPVS(pos);
1659-
}
1660-
1661-
void CNetMsgScriptHelper::AddRecipientsByPAS( const Vector &pos )
1662-
{
1663-
m_filter.AddRecipientsByPAS(pos);
1664-
}
1665-
1666-
void CNetMsgScriptHelper::AddAllPlayers()
1667-
{
1668-
m_filter.AddAllPlayers();
1669-
}
1670-
#endif // GAME_DLL
1671-
16721646
void CNetMsgScriptHelper::WriteInt( int iValue, int bits )
16731647
{
16741648
SCRIPT_NETMSG_WRITE_FUNC
@@ -1926,11 +1900,8 @@ BEGIN_SCRIPTDESC_ROOT_NAMED( CNetMsgScriptHelper, "CNetMsg", SCRIPT_SINGLETON "N
19261900
#ifdef GAME_DLL
19271901
DEFINE_SCRIPTFUNC( SendUserMessage, "Send a usermessage from the server to the client" )
19281902
DEFINE_SCRIPTFUNC( SendEntityMessage, "Send a message from a server side entity to its client side counterpart" )
1929-
DEFINE_SCRIPTFUNC( AddRecipient, "" )
1930-
//DEFINE_SCRIPTFUNC( RemoveRecipient, "" )
1931-
DEFINE_SCRIPTFUNC( AddRecipientsByPVS, "" )
1932-
DEFINE_SCRIPTFUNC( AddRecipientsByPAS, "" )
1933-
DEFINE_SCRIPTFUNC( AddAllPlayers, "" )
1903+
1904+
// TODO: multiplayer
19341905
#else
19351906
DEFINE_SCRIPTFUNC( DispatchUserMessage, "Dispatch a usermessage on client" )
19361907
#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)