Raised This Month: $32 Target: $400
 8% 

[L4D2 SERVER REWORK DDOS] Player Management by CanadaRox


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
canadianjeff
BANNED
Join Date: Sep 2016
Old 07-08-2021 , 22:20   [L4D2 SERVER REWORK DDOS] Player Management by CanadaRox
#1

someone needs to apply this patch to server rework github

Code:
index 5004ff8..66ed1f0 100644
--- addons/sourcemod/scripting/playermanagement.sp
+++ addons/sourcemod/scripting/playermanagement.sp
@@ -61,6 +61,8 @@ public OnPluginStart()
        survivor_limit = FindConVar("survivor_limit");
        HookConVarChange(survivor_limit, survivor_limitChanged);

+       antiddos = FindConVar("director_no_survivor_bots");
+
        z_max_player_zombies = FindConVar("z_max_player_zombies");

        l4d_pm_supress_spectate = CreateConVar("l4d_pm_supress_spectate", "0", "Don't print messages when players spectate");
@@ -103,7 +105,10 @@ public Action:FixBots_Cmd(client, args)

 public survivor_limitChanged(Handle:convar, const String:oldValue[], const String:newValue[])
 {
-       FixBotCount();
+       if (antiddos != 1)
+       {
+               FixBotCount();
+       }
 }

 public OnClientAuthorized(client, const String:auth[])

Last edited by asherkin; 03-07-2022 at 03:53. Reason: Restore to previous version.
canadianjeff is offline
A1mDev
Junior Member
Join Date: Jun 2021
Old 07-13-2021 , 04:51   Re: [L4D2 SERVER REWORK DDOS] Player Management by CanadaRox
#2

I don't quite understand what you want to say?
A1mDev is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 07-13-2021 , 23:39   Re: [L4D2 SERVER REWORK DDOS] Player Management by CanadaRox
#3

he wants someone pushing this to the github repo [again³³]
__________________
Marttt is offline
canadianjeff
BANNED
Join Date: Sep 2016
Old 07-14-2021 , 01:31   Re: [L4D2 SERVER REWORK DDOS] Player Management by CanadaRox
#4

if you set director_no_survivor_bots to 1 with this stupid plugin loaded it will spawn like 200 survivors in 2 seconds causing a server crash ddos basically this tiny patch fix this

whats so hard to understand????? where did I go wrong??????????

Last edited by canadianjeff; 07-14-2021 at 01:31.
canadianjeff is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 07-14-2021 , 04:24   Re: [L4D2 SERVER REWORK DDOS] Player Management by CanadaRox
#5

If is a "fix" you should always post in the proper place (aka the author forum thread/post or in the issue/pull request on github)

Quote:
whats so hard to understand?????
__________________
Marttt is offline
canadianjeff
BANNED
Join Date: Sep 2016
Old 07-14-2021 , 06:07   Re: [L4D2 SERVER REWORK DDOS] Player Management by CanadaRox
#6

well the author does not want to nor seem to care about these things so I leave it to other people to lend a helping hand I mean fix it or dont fix I also dont care as the patch is already applied to my server but anyone else using the github version will suffer this ddos problem
canadianjeff is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 07-15-2021 , 06:36   Re: [L4D2 SERVER REWORK DDOS] Player Management by CanadaRox
#7

Need to fix the cause, not the consequences.

That is a very strange fix.

Maybe some other plugin change "survivor_limit" ConVar to very high values and that's why you're receiving described behaviour.

PS. Strange to see a patch without even a link to a plugin where it should be applied to.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
canadianjeff
BANNED
Join Date: Sep 2016
Old 07-17-2021 , 05:00   Re: [L4D2 SERVER REWORK DDOS] Player Management by CanadaRox
#8

people who have made comments on this thread know exactly where it should go they just refuse
canadianjeff is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 07-17-2021 , 10:02   Re: [L4D2 SERVER REWORK DDOS] Player Management by CanadaRox
#9

What is the relationship to people who answered in this topic? I'm speaking directly about you.

You public some shit without explaining why it should work, what is relationship to "director_no_survivor_bots" ConVar, and even without linking to source code where it is related to.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 07-17-2021 , 10:41   Re: [L4D2 SERVER REWORK DDOS] Player Management by CanadaRox
#10

Quote:
Originally Posted by canadianjeff View Post
people who have made comments on this thread know exactly where it should go they just refuse
Don’t expect people to do things for you if you can’t even be bothered to give more details in your main post. Not everyone knows what you mean by “server rework github.” You assume that everyone has the same thought process as you and then you act condescending when people point out your issues. Either apply the patch yourself or just stop expecting others to do it for you.
__________________
Psyk0tik is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode