View Single Post
ArcticCerebrate
New Member
Join Date: Jul 2023
Old 07-30-2023 , 18:33   Re: [L4D2] ScavengeBotsDS
Reply With Quote #70

I have updated the AI-focused fork of ScavengeBotsDS posted earlier:
https://forums.alliedmods.net/showpo...9&postcount=66

Changes:
- Added a new CVAR "scavengebotsds_buddyWithHuman": (0/1)
This CVAR is enabled by default and is only effective when the buddy-system CVAR, "scavengebotsds_buddy" is also enabled.
When enabled, bots that do not have another bot partner for scavenging will attempt to partner with a human player and pick up any gas cans the human player finds.
When disabled, bots that do not have another bot partner will attempt to scavenge gas cans alone.
Note: Bots that partner with human players will not pick up gas cans that are already marked for pickup by another bot. Human players can pick up a gas can to clear any marked assignments bots have on that gas can.
Note#2: If the prior version of this fork has already created the "l4d2_scavengebotsds.cfg" for CVARS, you may need to manually add the new CVAR into the .cfg file or delete the .cfg file and let the plugin generate a new one.

- Reduced the number of TR_TraceRayFilterEx() calls needed for nearby infected detection. This should give a slight performance improvement.

- Fixed an issue with the newer infected detection code running even when a scavenge is not active. Infected detection should no longer be active until a scavenge session starts.

- Removed an unnecesssary for-loop from the original IsBot() function.

- Bots will now also consider human players for healing. The previous version only checked if bots needed healing.

- Fixed an issue with the Buddy-Pairing system where pairings would be re-established more often than necessary whenever a bot died then was later revived.
Attached Files
File Type: sp Get Plugin or Get Source (scavengebotsds.sp - 677 views - 55.2 KB)
ArcticCerebrate is offline