Posted: 17 Oct 2007, 20:07
Could I write a game-nuker widget that hoses people's bandwidth, then?
Open Source Realtime Strategy Game Engine
https://springrts.com/phpbb/
Code: Select all
// only allow viewing stats for specific packet types
if ((playerID != -1) && // all system counts can be read
(playerID != gu->myPlayerNum) && // all self counts can be read
(packetID != -1) &&
(packetID != NETMSG_CHAT) &&
(packetID != NETMSG_PAUSE) &&
(packetID != NETMSG_LUAMSG) &&
(packetID != NETMSG_USER_SPEED)) {
// Return -1 as the count
lua_pushnumber(L, -1);
return 1;
}