Raised This Month: $51 Target: $400
 12% 

[L4D/L4D2] Infected Bots Control (1.0.0)


Post New Thread Reply   
 
Thread Tools Display Modes
jamalsheref2
Senior Member
Join Date: May 2017
Old 11-11-2023 , 22:49   Re: [L4D/L4D2] Infected Bots Control (1.0.0)
Reply With Quote #1731

This plugin still broken I put spawn timers at 30 - 25 sec and they still sometimes spawn early
jamalsheref2 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 11-16-2023 , 16:19   Re: [L4D/L4D2] Infected Bots Control (1.0.0)
Reply With Quote #1732

Quote:
Originally Posted by jamalsheref2 View Post
This plugin still broken I put spawn timers at 30 - 25 sec and they still sometimes spawn early
I think this only starts when you have 5 players or more on the server.
In the same way to add + special Infected, zombies... starts from 5 players
But I'm not sure.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie

Last edited by Mi.Cura; 11-16-2023 at 16:22.
Mi.Cura is offline
jamalsheref2
Senior Member
Join Date: May 2017
Old 11-24-2023 , 16:25   Re: [L4D/L4D2] Infected Bots Control (1.0.0)
Reply With Quote #1733

Quote:
Originally Posted by Mi.Cura View Post
I think this only starts when you have 5 players or more on the server.
In the same way to add + special Infected, zombies... starts from 5 players
But I'm not sure.
its not a 5 players or more match its just a 4v4 l4d1 versus pub game an I'm using this plugin for that and its still unbalance because of the bugs it still has

Last edited by jamalsheref2; 11-24-2023 at 16:26.
jamalsheref2 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 11-24-2023 , 17:38   Re: [L4D/L4D2] Infected Bots Control (1.0.0)
Reply With Quote #1734

Well I don't use versus mode on my servers.
I also don't understand why this plugin was adapted for versus as well.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
jamalsheref2
Senior Member
Join Date: May 2017
Old 12-11-2023 , 15:24   Re: [L4D/L4D2] Infected Bots Control (1.0.0)
Reply With Quote #1735

Quote:
Originally Posted by Mi.Cura View Post
Well I don't use versus mode on my servers.
I also don't understand why this plugin was adapted for versus as well.
Because there are people that still plays vs?
jamalsheref2 is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 12-11-2023 , 16:35   Re: [L4D/L4D2] Infected Bots Control (1.0.0)
Reply With Quote #1736

Quote:
Originally Posted by jamalsheref2 View Post
Because there are people that still plays vs?
That's not what I meant, I know there are people who play versus.
I just said that this plugin has problems in versus mode, as reported here.

But I don't see reports of Coop mode...

Simple...
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie
Mi.Cura is offline
ZBzibing
Senior Member
Join Date: Dec 2012
Old 12-14-2023 , 09:13   Re: [L4D/L4D2] Infected Bots Control (1.0.0)
Reply With Quote #1737

Code:
l4d_infectedbots_tank_spawn_probability "5","When each time spawn S.I., how much percent of chance to spawn tank"
I've always thought it was inaccurate here and here.
Code:
GetRandomInt(1, 100) <= g_iSpawnTankProbability) 
modify
GetRandomInt(1, 100) >= g_iSpawnTankProbability)
I think it's more accurate to correct for less than
__________________
Please forgive, If I'm not describing it accurately. I use google translate
Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
ZBzibing is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 12-15-2023 , 05:59   Re: [L4D/L4D2] Infected Bots Control (1.0.0)
Reply With Quote #1738

Quote:
Originally Posted by ZBzibing View Post
Code:
l4d_infectedbots_tank_spawn_probability "5","When each time spawn S.I., how much percent of chance to spawn tank"
Code:
GetRandomInt(1, 100) <= g_iSpawnTankProbability) 
modify
GetRandomInt(1, 100) >= g_iSpawnTankProbability)
Logic dead...
__________________

Last edited by HarryPotter; 12-15-2023 at 05:59.
HarryPotter is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 12-15-2023 , 17:52   Re: [L4D/L4D2] Infected Bots Control (1.0.0)
Reply With Quote #1739

Quote:
Originally Posted by ZBzibing View Post
Code:
l4d_infectedbots_tank_spawn_probability "5","When each time spawn S.I., how much percent of chance to spawn tank"
I've always thought it was inaccurate here and here.
Code:
GetRandomInt(1, 100) <= g_iSpawnTankProbability) 
modify
GetRandomInt(1, 100) >= g_iSpawnTankProbability)
I think it's more accurate to correct for less than
It does not make sense to check if the RNG is greater than the set probability because you will increase its chances. The 5% chance will become 95% if you use ">=" instead of "<=" here. The goal is to get a number that is less than or equal to 5. We want the Tank to have a low chance of spawning.

@HarryPotter I noticed some redundancy in this code block:
PHP Code:
if  (g_bL4D2Version)
{
    if ( ( (
g_bFinaleStarted && g_bTankSpawnFinal == true) || !g_bFinaleStarted ) &&
        
g_iSpawnCounts[SI_TANK] < g_iTankLimit &&
        
GetRandomInt(1100) <= g_iSpawnTankProbability
    {
        return 
7;
    }
    else 
//spawn other S.I.
    
{
        
int generate;
        for(
int i 1<= 3i++)
        {
            
generate GenerateIndex()+1;
            if(
generate 0) break;
        }

        return 
generate;
    }
}
else
{
    if ( ( (
g_bFinaleStarted && g_bTankSpawnFinal == true) || !g_bFinaleStarted ) &&
        
g_iSpawnCounts[SI_TANK] < g_iTankLimit &&
        
GetRandomInt(1100) <= g_iSpawnTankProbability
    {
        return 
7;
    }
    else
    {
        
int generate;
        for(
int i 1<= 3i++)
        {
            
generate GenerateIndex()+1;
            if(
generate 0) break;
        }

        return 
generate;
    }

In both versions of the game, the same logic is being executed. If this is intentional, I suggest removing the game check for this code block. Lines 3696-3735 on Github.
__________________

Last edited by Psyk0tik; 12-15-2023 at 17:57.
Psyk0tik is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 12-15-2023 , 20:36   Re: [L4D/L4D2] Infected Bots Control (1.0.0)
Reply With Quote #1740

Quote:
Originally Posted by Psyk0tik View Post

@HarryPotter I noticed some redundancy in this code block:
In both versions of the game, the same logic is being executed. If this is intentional, I suggest removing the game check for this code block. Lines 3696-3735 on Github.
Thank you
__________________
HarryPotter is offline
Reply



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 03:31.


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