does Dragonade have the bandwidth detection thing? [message #492208] |
Sun, 16 April 2017 06:31 |
iRANian
Messages: 4308 Registered: April 2011
Karma: 0
|
General (4 Stars) |
|
|
I was wondering because Xpert ported the ssgm 2.0.2 code for it to 4.0 years ago.
The bandwidth detection issue is when during the game the bandwidth of a player starts dropping..ssgm 2.0.2 had code to check for this every few seconds and to reset bandwidth if needed.
Long time and well respected Renegade community member, programmer, modder and tester.
Scripts 4.0 private beta tester since May 2011.
My Renegade server plugins releases
|
|
|
|
|
|
|
Re: does Dragonade have the bandwidth detection thing? [message #492232 is a reply to message #492208] |
Mon, 17 April 2017 21:35 |
|
Gen_Blacky
Messages: 3250 Registered: September 2006
Karma: 1
|
General (3 Stars) |
|
|
I have it in a da plugin. Without it players can abuse sbbo. I think it was just forgotten about.
Toggle Spoiler
void Functions::CheckBW()
{
StringClass str;
int BW = 0;
int ID;
for (SLNode<cPlayer>* PlayerIter = Get_Player_List()->Head(); (PlayerIter != NULL); PlayerIter = PlayerIter->Next())
{
cPlayer *p = PlayerIter->Data();
ID = p->Get_Id();
if (p->IsActive && Get_GameObj(ID))
{
BW = Get_Bandwidth(ID);
int TheBW = PData[ID]->Bandwith;
if (BandwidthDefualt > 0) {
TheBW = BandwidthDefualt;
}
if (BW < TheBW)
{
Console_InputF("setbw %d %d", ID, TheBW);
DA::Page_Player(ID,"Your bandwidth has dropped below the allowed amount. It has been reset." );
str.Format("Player %ls's bandwidth dropped below %d. Their bandwidth has been reset from %d", p->Get_Name(), TheBW, BW);
SSGMGameLog::Log_Message(str,"_ALERT");
}
}
}
}
Every 30 seconds check the players is how its setup.
I was thinking about making a new system to include Set_Net_Update_Rate_Player
Unless someone can say why not to.
[Updated on: Mon, 17 April 2017 21:37] Report message to a moderator
|
|
|
|
Re: does Dragonade have the bandwidth detection thing? [message #492237 is a reply to message #492208] |
Tue, 18 April 2017 10:00 |
dblaney1
Messages: 358 Registered: March 2014 Location: United States
Karma: 0
|
Commander |
|
|
The set_net_update_rate_player i recommend just running on join once. I do that on my server. It only affects updates sent from client to server. Not updates for server to client. Thats controlled by the servers net_update_rate. Its not really a good advantage like the sbbo exploit as setting a low value will make you easier to hit by other players and will make your movement slide a lot. Other characters on your screen will still move normally etc.
|
|
|
|
|