Joe91 / fun-bots

A highly customizable and configurable bot mod for your Venice Unleashed Battlefield 3 server.
https://discord.gg/zNk3qCzk6x
249 stars 46 forks source link

SQDM Spawn bots on all teams but one #209

Closed CCInc closed 2 years ago

CCInc commented 2 years ago

Scope

General bot behavior

Enhancement

Add an edge case to spawn bots in multiple squads on SQDM even when "spawn bots on all teams" is set to No.

Use case

My friends and I like to play all of us vs all the bots, so we set TeamSwitchMode=NoTeamSwitch and "Spawn bots on all teams" to No. In general, this does what we want, however on squad deathmatch in particular it will only spawn the bots in one squad (where instead we want all players to be on one squad and the bots to be distributed into the other squads), so bots have to be manually spawned and moved to the other teams.

Is there a better way I should configure this?

I have checked the following...

Joe91 commented 2 years ago

You are right, this is not handled by the general algorithms. So the target case would be to spawn the bots distributed to the two enemy-squads in case of SQDM? Or would you expect them to also spwan in your "friend"-squad?

CCInc commented 2 years ago

For SQDM: In the case Spawn bots on all teams = YES, then the bots should be distributed into teams Alpha, Beta, Charlie, Delta. In the case Spawn bots on all teams = NO, the bots should be distributed into Beta, Charlie, and Delta (but not Alpha, which would be the "player" team).

Let me know if that makes sense!

Joe91 commented 2 years ago

I think I would propose to spawn the bots with the setting "Spawn bots on all teams = NO" the following way:

This would result in the playerteam always playing against enemy-players that you can kill, what in my opinion is the purpose of this setting... Do you know what I mean with that? What do you think about that?

CCInc commented 2 years ago

Sorry, I'm not quite sure I understand - but I think we both agree that the player team will always be playing against all the bot teams.

SQDM has four total teams, so the bots will be spawned in every team except for the chosen "player team" when Spawn bots on all teams = NO (i.e. 1 player team, 3 bot teams). And when Spawn bots on all teams = YES, the bots will be spawned in every team, including the "player team" (ie all 4 teams have bots in them).

Joe91 commented 2 years ago

Yeah, but since there are always only RU and US soldiers this will result in having one "friendly" team with you. If you are in Alpha, Team Charlie will always have "friendly" soldiers that cannot be killed by you (exept you enable friendly fire). Thats why I think it would be best to distribute them only in the teams that can be killed by your team...

FlashHit commented 2 years ago

what do you mean? Alpha is Team1, Charlie is Team3. The look of the soldier doesn't matter.

Joe91 commented 2 years ago

Aah sorry! That was only a bug in VU once ^^ Now I'm with you...

Joe91 commented 2 years ago

I will try to add this.

Joe91 commented 2 years ago

You might want to set the Config BotsAttackBots to false in that case. Otherwise they will attack each other. I added this on the latest dev-commit. You can try it out and tell me if this is how you imagined... Sorry for beeing that slow in understanding the initial problem :-) ...

CCInc commented 2 years ago

I don't mind the bots also attacking each other. We want to play it like a real game, where each team can shoot all the other teams.

If the bots didn't attack each other, it would basically be TDM :D

On Tue, Feb 1, 2022, 4:15 PM Joe91 @.***> wrote:

Maybe I will have to add the setting again that disables the Bot-Bot-Attack. Because now they will also shoot each other...

— Reply to this email directly, view it on GitHub https://github.com/Joe91/fun-bots/issues/209#issuecomment-1027340352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVRT3JAOROSEH4RO337FU3UZBLO5ANCNFSM5NFLWYCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

CCInc commented 2 years ago

Got a chance to test it out. After fiddling with the settings a bit, it seems to be working well!

With Spawn bots on all teams = NO, the bots spawn in 3 enemy teams. With Spawn bots on all teams = YES, the bots spawn on 3 enemy teams and my team.

Thanks a lot for the patch and the help - let me know if you need me to test anything else for this 😄 I'll update if I see anything after playing with it some more